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

BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
649

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.

4 REPLIES 4
Read only

Former Member
0 Likes
587

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]

[BAPI Userextension Concept|;

Also check documentation for data dictionary structure BAPIPAREX.

Regards,

Adrian

Read only

Former Member
0 Likes
587

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

Read only

Former Member
0 Likes
587

Vinaya,

wor area -- you need to declare wa_extensionin as that of TYPE bapiparex.

Regards

Ankit Attrish

Read only

Former Member
0 Likes
587

Solved by self.