Skip to Content
-2

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

May 04, 2017 at 02:46 AM

190

avatar image

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.

10 |10000 characters needed characters left characters exceeded

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.

0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Jelena Perfiljeva
May 05, 2017 at 08:22 PM
0

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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.

0

If your question has been answered then kindly close it.

0
Raymond Giuseppi
May 22, 2017 at 07:20 AM
0

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)

Share
10 |10000 characters needed characters left characters exceeded