Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

extension2 in bapi_acc_document_post


i am posting account documnet in using bapi_acc_document_post with custom feilds on BKPF.

so i already append custom structure as Z0CUST01 to BKPF table which contains ZA1, ZA2.

when i tried to post, i got no error , document successfully posted, but no customed filed saved in BKPF table.

what's wrong? please help me

DATA: ls_zzz TYPE Z0CUST01.

CLEAR it_ext2.

it_ext2-structure = 'Z0CUST01'.

ls_zzz-za1 = 'AAA'.

ls_zzz-za2 = 'BBB'.

MOVE ls_zzz TO it_ext2-valuepart1.

APPEND it_ext2.

call function 'BAPI_ACC_DOCUMENT_POST'


documentheader = gd_documentheader

customercpd = gd_customercpd

contractheader = gd_fica_hd


obj_type = l_type

obj_key = l_key

obj_sys = l_sys


accountgl = it_accountgl

accountreceivable = it_accountreceivable

accountpayable = it_accountpayable

accounttax = it_accounttax

currencyamount = it_currencyamount

  • criteria = it_criteria

  • valuefield = it_valuefield

  • extension1 = it_ext

return = it_return

  • paymentcard = it_paymentcard

  • contractitem = it_fica_it.

extension2 = it_ext2

  • realestate = it_re.

Former Member


have a look at [SAP documentation|].


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question