cancel
Showing results for 
Search instead for 
Did you mean: 

How to use BAPI_ACC_DOCUMENT_POST for simple(cost center) and complex(asset) posting entries?

P13599469
Explorer
0 Kudos

Hi,

I am trying to enhance an existing custom program which is being for Vendor invoice with simple(Expense entries - cost centers) posting entries. This is working fine for positive and negative values. My requirement is to enhance this program to allow complex posting with assets. I don't see any option or flag to inform the BAPI about complex posting entries.

Please let me know how to do both simple and complex postings using the above mentioned BAPI.

P13599469
Explorer
0 Kudos

Hi,

I already wrote BDC program for FB60 and that is working fine for Positive values, but not able to use that for negative values. I have to write one more BDC logic gor FB65 for negative values, I dont want to write that, instead I wanted to achieve with the BAPI.

Can anybody help me?

Regards,

Dileep.

Accepted Solutions (0)

Answers (2)

Answers (2)

Jelena
Active Contributor

I'm not sure what exactly do you mean by "complex" posting. But, in general, you can only give a BAPI certain values (which should be documented) and expect it to perform a certain function. If BAPI has no parameters to receive your data then it might not be capable of performing what you expect.

All the BAPIs have been discussed on SCN many times and some even have KBA / FAQ notes provided by SAP. Just search using better keywords.

P13599469
Explorer
0 Kudos

Hi Jelena,

Thanks for your reply, When we create Vendor invoice using FB60 we can see the 'complex posting' option under menu option 'Environment'. we are posting Assets under complex posting.

No problem, I have written BDC program(FB60) to solve this.

Thank you.

Dileep.

Jelena
Active Contributor
0 Kudos

If your question has been answered then kindly close it.

raymond_giuseppi
Active Contributor
0 Kudos

There is not 'complex' posting in the BAPI, just different ways to fill the parameters. The not complex version of the FI transactions are simplified dynpros for input of GL account, amounts, D/C indicator and coding block (basically it create only posting keys 40/50 items) when the complex version allows input of the PstKy field (so Asset D/C for example)

Have you yet enough time to try again the BAPI, keeping the GL account fields initial but filling the asset number fields (NB: for asset you must also pass LC amounts to the BAPI)