on 07-03-2014 5:01 AM
Hi,
IN OKB9, I wan to use PA segment check box and Account Assignment Details as '1'.
System is not allowing to do this.
But wit Valuation Area mandatory, we have assigned for different valuation area to different cost centers.
And the transaction to flow to COPA, I want to select PA segment check box.
System is not allowing me to do that, giving message error as 'Detailed assignments are not allowed to profitability segments'.
How to post this to COPA.?
Regards
Kami
Dear Kami,
I assume that you get error KT313 in OKB9 ?
KT 313:'Detailed assignments are not allowed to profitability segments'
This is because when you have a detailed account assignment to cost center based on valuation area the PA segment cannot be assigned in OKB9
The only way to resolve this is to get account assignment to PA segment via OKC9 substitution. You can refer note 173071 which explains how to code the substitution in order to derive the PA segment.
As explained in note 173071 you need to code the conditions / prerequisites under which you want account assignment to a PA segment. Then you need to call FM COPA_PROFITABILITY_SEGMENT as explained in the note.
I believe that once the PA segment gets determined in OKC9 then OKB9 will not be called to determine the cost center. So then you may need to call OKB9 as well as explained in note 105024
"In a user exit in the substitution, you can call the function module K_ACCOUNT_ASSIGNMENT_GET to read the default account assignment (OKB9)"
* Read OKB9 entries
CALL FUNCTION 'K_ACCOUNT_ASSIGNMENT_GET'
EXPORTING
BUKRS = COBL-BUKRS
WERKS = COBL-WERKS
BWKEY = COBL-BWKEY
GSBER = COBL-GSBER
KSTAR = COBL-HKONT
I_COBL = COBL
IMPORTING
KOSTL = LD_KOSTL
PRCTR = LD_PRCTR
Please try this in a development system.
regards
Waman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Waman,
Thanks for this.
So what I understand is in the same substitution User exit, I have to write a code in both the function module :
1) COPA_PROFITABILITY_SEGMENT - to call PA segment
2) K_ACCOUNT_ASSIGNMENT_GET - read OKB9.
Please correct me if my understanding from your explanation is Ok?
ABAP work. !!!!!
regards
Kami
Hi,
System will not allow two assignments, please remove cost centers/ Orders and select only profitability segment.
profitability segment only check box is enough. Acct assignment detail "1" is not required.
Regards,
Pavan Kumar Arvapally
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kami,
It's just enough to tick "PrfSeg" field in OKB9. CO-PA characterictics (defining segement) will be determined automatically based on the information contained in your FI/MM document.
Regards,
Szymon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Szymon / Pavan
If am doing GI/GR: Physical Inventory warehouse, system ask for Cost Object for that cost element.
To maintain that cost element, we use OKB9, 'Account Assignment Details '1', where by system picks Cost center based on Valuation class.
So, in OKB9 I am not able to select "PrfSeg" field, because I have to keep 'Account Assignment Details '1'.
But also I want to post to COPA.
I hope I am clear with my question.
How can I acheive this.
Regards
Kami
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.