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

Answer Posted / pavani

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.
enddo.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How collect statement is different from append?

533


What is a multiple line field?

588


How to load data from ms excel sheet to sap by using bdc method ? : abap bdc

724


What is the use of 'table index'?

630


Does sap handle multiple currencies?

606






What is difference between float and packed data type?

638


What are the steps in creating screen ?

1463


visibility section for class level and attributes level

815


can anyone do BDC or BAPI for F-02 and F-04 transactions.If it LSMW also.Kindly let me know.

3038


Explain the advantages of abap query tool?

526


What is the length of function code at user-command?

755


Is it possible to run host command from SAP environment? How do you run?

616


Suppose the client wants me the vacancy to be displayed on a website as well as ess. How should I do it? : sap abap hr

534


Explain the advantages and disadvantages of different types of bdc's?

603


Proxy Programming with ABAP - How to develop the Proxy identification through programming

1883