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

Adding field to a Standard BAPI

Former Member
0 Likes
1,645

Hi,

I have a requirement, such that I have to add a field to a standard BAPI. What is the procedure?

Thank You in Advance.

Regards,

Dhana

1 ACCEPTED SOLUTION
Read only

former_member404244
Active Contributor
0 Likes
921

hI,

Check if ur bapi has EXTENSIONIN structure in the tables parameter.If it is there then go to the structure and add the field by append structure method.

Regards,

Nagaraj

3 REPLIES 3
Read only

former_member404244
Active Contributor
0 Likes
922

hI,

Check if ur bapi has EXTENSIONIN structure in the tables parameter.If it is there then go to the structure and add the field by append structure method.

Regards,

Nagaraj

Read only

Former Member
0 Likes
921

Hi,

Check in the Tables for EXTENSIONIN - if so you can your fields.

Ex: BAPI_PO_CREATE

Thanks,

Anitha

Read only

Former Member
0 Likes
921

data : l_bape_vbap like bape_vbap.

data : l_bape_vbapx like bape_vbapx. "Must have the z fields

loop at t_contract_item_inx into wa_contract_item_inx.

check wa_contract_item_inx-itm_number = l_posvalue.

l_bape_vbap-vbeln = wa_mtype-vbeln.

l_bape_vbap-posnr = wa_contract_item_inx-itm_number.

l_bape_vbap-zzsecapmtyp = wa_mtype-ZZSECAPMTYP.

l_bape_vbap-zzsecappostn = wa_mtype-ZZSECAPPOSTN.

wa_extensionin-structure = 'BAPE_VBAP'.

wa_extensionin-valuepart1 = l_bape_vbap.

append wa_extensionin to t_extensionin.

clear wa_extensionin.

l_bape_vbapx-vbeln = s_vbeln-low.

l_bape_vbapx-posnr = wa_contract_item_inx-itm_number.

l_bape_vbapx-zzsecapmtyp = 'X'.

l_bape_vbapx-zzsecappostn = 'X'.

wa_extensionin-structure = 'BAPE_VBAPX'.

wa_extensionin-valuepart1 = l_bape_vbapx.

append wa_extensionin to t_extensionin.

clear wa_extensionin.

endloop.

In BAPI use this extention..

Tables

contract_data_inx = t_contract_data_inx

  • CONTRACT_KEYS =

extensionin = t_extensionin.