Skip to Content

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

how can i change zz-field in VA01 transaction using BAPI_SALEORDER_CHANGE

Hi ,

i have to change the some customized fields (z-fields ) in transaction va02.

how can i change the customized fields using bapi. i am using 'BAPI_SALEORDER_CHANGE' .

i am writing my test program like this :

wa_extension-structure = 'VBAK-ZZDELVRNO'."'BAPE_VBAK'.

*"'VBAK-ZZDELVRNO'.

wa_extension-VALUEPART1 = '100000303810'.

wa_extension-VALUEPART2 = '123456'.

append wa_extension to it_extension.

MOVE: con_upgrade TO l_header_inx-updateflag,

con_x TO l_header_inx-bill_block. " Billing.

  • l_faksk TO l_header_in-bill_block. " Billing block.

*--Call Bapi 'BAPI_SALESORDER_CHANGE' to change billing block

CALL FUNCTION 'BAPI_SALESORDER_CHANGE'

EXPORTING

salesdocument = l_vbeln

order_header_in = l_header_in

order_header_inx = l_header_inx

TABLES

EXTENSIONIN = it_extension

return = it_return2.

i don't know exactly wat's the value i have to populate into table EXTENSIONIN .

it's very urgent .

Thanks,

kumar.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question