cancel
Showing results for 
Search instead for 
Did you mean: 

How to use BAPI_ACC_DOCUMENT_POST for CO-PA Account Assignment

Former Member
0 Kudos

hi all,

when i used bapi to posting docment,but for document_type ='DR'(customer invoice), it is related with Profit. Segment.

it returned following message in return table:

E RW 609 Error in document: ZBKPF ZY2005 DEVCLNT230

E F5 808 Field Prof.Segmt is a required field for G/L account CN10 50600824

W KI 166 Enter a true account assignment object with revenues

maybe due to i haven't fill parameter:CRITERIA and VALUEFIELD

but i have no idea about this.

would you please give some idea, sample code is great .

thanks.

helen

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi, Qunli

If you haven't the documentation of the BAPI, you can search in here http://ifr.sap.com/catalog/query.asp

You can find the BAPI in SAP FI(470 or above). Under the 'Accounting Interface' hierarchy, you can find a 'AcctngBilling' BO, and the Post method of it is the BAPI you're calling. (you can search to demonstrate in Tcode BAPI). There is some explain for the interface, if it is not enough, I have some sample application which call this BAPI.

Hope it will be helpful.

Thanks a lot