Application Development and Automation 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: 
Read only

Sales order upload using bapi

Former Member
0 Likes
349

Hi,

Thanks in advance

I need step by step procedure to create sales orders using BAPI from a text file

1 REPLY 1
Read only

Former Member
0 Likes
320

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.