09-16-2005 7:15 AM
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
09-16-2005 7:23 AM
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
09-16-2005 7:25 AM
Hi,
check the program L2032U12, it's using BAPI_SALESORDER_CREATEFROMDAT2
this will helpful for you
Cheers,
Sasi
09-16-2005 7:48 AM
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