‎2009 Apr 17 9:11 PM
Hi,
Thanks in advance
I need step by step procedure to create sales orders using BAPI from a text file
‎2009 Apr 18 3:31 PM
create report prorgam in se38
create selection screen with below fileds
header file name
itme file name
radio button 1 : Local PC
radio button 2 : application server
if local PC = X
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = gv_file
filetype = gc_filetype
TABLES
data_tab = gt_text_file
EXCEPTIONS
LOOP AT gt_text_file INTO wa_text_file.
SPLIT wa_text_file-line AT gc_comma INTO list of your fileds
append internal table
endloop.
else.
OPEN DATASET gv_file FOR INPUT IN TEXT MODE ENCODING DEFAULT
WITH SMART LINEFEED.
LOOP AT gt_text_file INTO wa_text_file.
SPLIT wa_text_file-line AT gc_comma INTO list of your fileds
append internal table
endloop.
after that your ready with internal tbale
loop your internal table
call the sales order cretae BAPI
endif.