Skip to Content
author's profile photo Former Member
Former Member



I am trying to use the BAPI_ACC_DOCUMENT_POST for posting vendor invoices. But, I want to know if this BAPI allows us to post documents for Different vendors in different Line items in the AccountsPayable table? Can we use this BAPI for multiple Vendors?

Thanks a lot. I would appreciate your help



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 17, 2009 at 01:18 PM

    Hi Gopal,

    This Funtional module can be multiple vendor line items refer to the code it might help you

    FORM vendor_payable .
      DATA idx TYPE sy-tabix.
      CLEAR lin.
      LOOP AT it_vendor INTO lw_vendor.
        DESCRIBE TABLE it_bapiaccr09 LINES lin.
        idx = lin + 1.
        it_bapiacap09-itemno_acc   = idx.
        it_bapiacap09-vendor_no    = lw_vendor-saknr.
    *  it_bapiacap09-PMNTTRMS     = '0001'.
        APPEND it_bapiacap09.
        CLEAR it_bapiacap09.
        lw_vendor-wrbtr  = -1 * lw_vendor-wrbtr.
        it_bapiaccr09-itemno_acc   = idx.
        it_bapiaccr09-currency_iso = 'INR'.
        it_bapiaccr09-amt_doccur   = lw_vendor-wrbtr .
        it_bapiaccr09-amt_base     = lw_vendor-wrbtr.
        APPEND it_bapiaccr09.
        CLEAR :it_bapiaccr09.
    ENDFORM.                    " VENDOR_PAYABLE



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.