Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

issue in BAPI_PO_CREATE1 extension

Former Member
0 Likes
443

hi everybody

i have used BAPI_PO_CREATE1 to create a purchase order

in the header table, there are 3 custom fields which have been added

I have added them in the extension but im getting an error that one of the custom fields is mandatory

the code is below:

Clear gw_te_header.

gw_te_header-zzctyp = 's'.

gw_te_header-zzcpro = '1'.

gw_te_header-zzcsub = 'd'.

CLEAR gw_extension.

gw_extension-structure = 'BAPI_TE_MEPOHEADER'.

gw_extension-valuepart1 = gw_te_header-zzctyp.

gw_extension-valuepart2 = gw_te_header-zzcpro.

gw_extension-valuepart3 = gw_te_header-zzcsub.

APPEND gw_extension TO gi_extension.

thanks

hi everybody

i have used BAPI_PO_CREATE1 to create a purchase order

in the header table, there are 3 custom fields which have been added

I have added them in the extension but im getting an error that one of the custom fields is mandatory

the code is below:

Clear gw_te_header.

gw_te_header-zzctyp = 's'.

gw_te_header-zzcpro = '1'.

gw_te_header-zzcsub = 'd'.

CLEAR gw_extension.

gw_extension-structure = 'BAPI_TE_MEPOHEADER'.

gw_extension-valuepart1 = gw_te_header-zzctyp.

gw_extension-valuepart2 = gw_te_header-zzcpro.

gw_extension-valuepart3 = gw_te_header-zzcsub.

APPEND gw_extension TO gi_extension.

thanks

1 REPLY 1
Read only

Former Member
0 Likes
378

solved