2007 Jun 26 12:08 PM
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
2007 Jun 26 12:11 PM
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
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
2007 Jun 26 12:11 PM
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
2007 Jun 26 12:16 PM
Hi,
Check in the Tables for EXTENSIONIN - if so you can your fields.
Ex: BAPI_PO_CREATE
Thanks,
Anitha
2007 Jun 26 12:17 PM
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.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |