‎2007 Mar 02 5:33 PM
Hi i have a text file and need to create a planned order using the data from the text file.
I need to usea bapi_plannedorder_create..
Does anyone have any example for this.
Madhu.
‎2007 Mar 02 5:37 PM
‎2007 Mar 02 5:41 PM
upload your text file into an internal table and populate the parameters in the BAPI . Call this BAPI and immediately call the
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
move-corresponding plafw to bapiplaf_i1.
move plafw-manual_comp to bapiplaf_i1-manual_component. "note 308954
clear plafw.
call function 'BAPI_PLANNEDORDER_CREATE'
exporting
headerdata = bapiplaf_i1
importing
plannedorder = i_bapiplnum
return = message.
move i_bapiplnum to plafw-plannedorder_num.
let me know if you have more questions and award points if it helps.
‎2007 Mar 02 5:51 PM