There is a file in application server. How can you upload it
and separate it as per different fields?

Answer Posted / ranjan

open dataset p_file for input in textmode encoding default.
if sy-subrc = 0.
do.
read dataset p_file into w_rec.
if sy-subrc = 0.
split w_rec at ',' into wa_final-fld1
wa_final-fld2
.
.
.

append wa_final to i_final.
else.
exit.
enddo.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are BAPI different from Normal function modules ?

1570


Where are you used type casting?

904


What is the difference between the exits created in M.M and S&D?

1609


How do you use tab sets in layout sets?

653


What is the master data necessary before you can start posting in MM?

831






What are the uses of secondary indexes?

545


How to read 5th record from Hash Internal Table?

834


What are the different types of the variable in the sap abap?

585


What are advantages and disadvantages of logical data base

1754


SM35 transaction, How to automate BDC ?

609


Define spool request?

663


What is the client concept in sap?

553


What is a view in sap? : abap data dictionary

622


Where the payroll results are stored

1902


any one can tell me which is the tables can store in ddic plese dont say db02l,please give me different ways of resideing the tables ?

1978