cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Account requires an Assignment to CO object error in BAPI_ACC_DOCUMENT_POST Function module

anusha708
Member
0 Kudos
426

error.pngWe need to post a Document by changing the Debit credit indicator for 2 G/L accounts. So, I have passed the G/L accounts and currency amount details in Function module BAPI_ACC_DOCUMENT_POST. But I'm getting the error as 'Account requires an Assignment to CO object". Kindly please help me if any other data needs to be passed to it.

Accepted Solutions (0)

Answers (1)

Answers (1)

Patryk_Waledziak
Participant
0 Kudos

Probably your GL is created as cost element.

You need to check your configuration and specify weather this cost element give impact to cost center or profitability segment.

If it is give impact to cost center then assign cost center against to cost element or assign it to PA.

Hope it will help you.