‎2010 Jan 28 6:21 AM
Hi There,
I have added the structure of one field in VBAP. Now I need to make an enhancement to the BAPI BAPI_SALESORDER_CREATEFROMDAT2 but not sure of how to go about with it?
Thanks.
‎2010 Jan 28 7:37 AM
Hi,
You need to pass this value via table EXTENSIONIN. EXTENSIONIN-STRUCTURE set as BAPE_VBAP. For more detailed info check:
[Sales Order Interface |http://wiki.sdn.sap.com/wiki/display/ABAP/SalesOrderInterface]
[Actions by the BAPI Developer|http://help.sap.com/saphelp_46c/helpdata/en/c3/4099a68b8911d396b70004ac96334b/content.htm]
Also check documentation for data dictionary structure BAPIPAREX.
Regards,
Adrian
‎2010 Jan 28 2:27 PM
Hi Vinaya,
you need to follow following steps:
1. Add customer structures in the structures VBAPKOZ ,VBAPKOZX,BAPE_VBAP and BAPE_VBAPX using INCLUDE or APPEND.
2. Then pass the values to BAPI tables parameter EXTENSTIONIN. check the example below:
MOVE c_bape_vbak TO wa_extensionin-structure.
MOVE p_order_header-promo_cd TO wa_extensionin-valuepart1+10(10).
MOVE p_web_userid(220) TO wa_extensionin-valuepart1+20(220).
APPEND wa_extensionin TO i_extensionin.
CLEAR wa_extensionin.
MOVE c_bape_vbakx TO wa_extensionin-structure.
MOVE c_update TO wa_extensionin-valuepart1+10(1).
MOVE c_update TO wa_extensionin-valuepart1+11(1).
APPEND wa_extensionin TO i_extensionin.
Then pass this internal table to BAPI.
Regards
Ankit Attrish
‎2010 Jan 28 2:30 PM
Vinaya,
wor area -- you need to declare wa_extensionin as that of TYPE bapiparex.
Regards
Ankit Attrish
‎2010 Mar 02 3:25 AM