Skip to Content
0
Former Member
Dec 10, 2008 at 11:45 AM

'BAPI_ACC_GL_POSTING_POST' - Vendor account number

455 Views

Hi,

I am using 'BAPI_ACC_GL_POSTING_POST' for posting G/L accounts .

how to do it for Vendor account numbers.

i have the code as

  IF IT_HEADER-BLART = 'KR' OR IT_HEADER-BLART = 'KA'.
      IT_ACCGL-ACTTYPE  = 'K'.
      IT_ACCGL-VENDOR_NO = IT_ITEM-NEWKO.
    ENDIF.

But the BAPI -


needs a GL account number also. otherwise it is showing error and the document is not posted.

Can any one help me in this. How to pass on values to the BAPI for VENDOR ACCOUNT NUMBERS.

Vikki.