Skip to Content

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

extension2 in bapi_acc_document_post

hi,

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'

exporting

documentheader = gd_documentheader

customercpd = gd_customercpd

contractheader = gd_fica_hd

importing

obj_type = l_type

obj_key = l_key

obj_sys = l_sys

tables

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
replied

Hi,

have a look at [SAP documentation|http://help.sap.com/saphelp_nw04/helpdata/en/6b/3f6d2b6d0711d396a50004ac96334b/frameset.htm].

Cheers

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