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

Explain how do you use structures in the abap programs?

538


What is the different between template and a table?

606


Explain what are the various types of selection screen event?

556


What are lock objects?

597


Explain the difference between call screen and leave screen?

604






What is value table?

580


Difference between user exit and badis?

609


Can any tell me ECC 5.0, ECC 6.0 Released year? and difference between them?

1976


Search help exit details.

928


What are the 3 types of tables in sap? : abap data dictionary

651


What is use of transparent table in abap? How it is different from pool tables?

631


What are the buffering options in abap?

564


What are the other modules integrated with om? : sap abap hr

542


What is a type-pool?

613


in bdc session method. if u run the record in fore ground manually i have a 7 records but at the time of record processing first record produces the error how can u process records manually in fore ground please tell me any one knows?

1743