Application Development 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: 

Bapi help

Former Member
0 Kudos

Hi all,

i am new to bapi. And i have to code for that too..

i have to use BAPI "BAPI_SALESORDER_CREATEFROMDAT2". cananyone send me the code for this BAPI. i.e. what are the parameters to pass and what all code is reuqiered..

plz help as its very important for me

3 REPLIES 3

Former Member
0 Kudos

by passing the following values i can use that.

CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'

EXPORTING

ORDER_HEADER_IN = H_RTAB00_HEADER

IMPORTING

SALESDOCUMENT = WRK_L_VBELN

TABLES

RETURN = TTAB01_L_RETURN

ORDER_ITEMS_IN = TTAB02_L_ITEM_IN

ORDER_PARTNERS = TTAB04_L_PARTNER

ORDER_SCHEDULES_IN = TTAB03_L_SCHED_IN.

In addtion u need to do commit work externally after the execution of this fm

For more information, u just go thru the function module documention in SE37.

Message was edited by: Venkat

Former Member
0 Kudos

Hi,

check the program L2032U12, it's using BAPI_SALESORDER_CREATEFROMDAT2

this will helpful for you

Cheers,

Sasi

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

You can refer the FunctionModule documentation.It is avaialble in English.Refer to OSS 93091.

If you used Where-Used_list for that Fucntion Module,you can find lot of sample programs using the function module.

Message was edited by: Jayanthi Jayaraman