cancel
Showing results for 
Search instead for 
Did you mean: 

OKB9 Settings issue - for PA Segment and Valuation Area together

Former Member
0 Kudos


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

Accepted Solutions (1)

Accepted Solutions (1)

waman_shirwaicar
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Answers (2)

Answers (2)

pavan_kumar18
Employee
Employee
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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


pavan_kumar18
Employee
Employee
0 Kudos

Hi,

In that case you need to go for COPA Assessment cycle.

Where you can maintain the relevant sender and receiver information.

Regards,

Pavan Kumar Arvapally

Former Member
0 Kudos

Hi Pavan,

Assessment cycle will be general rule of allocation.

It wont give the specific cost incurred for the material as in original transaction.

Hence the vales for each material in FI and COPA will not be same If Assessment cycle is done.

Thanks and regards