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
by passing the following values i can use that.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
ORDER_HEADER_IN = H_RTAB00_HEADER
SALESDOCUMENT = WRK_L_VBELN
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