Skip to Content
avatar image
Former Member

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


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.

Add comment
10|10000 characters needed characters exceeded

  • Former Member


    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?



  • Get RSS Feed

2 Answers

  • May 05, 2017 at 08:22 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • May 22, 2017 at 07:20 AM

    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)

    Add comment
    10|10000 characters needed characters exceeded