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

What are pooled tables? : abap data dictionary

665


In delivery processing which step comes first picking, packing, posting goods issue ?

1637


How the transaction that are programmed by the user can be protected?

641


What are the drill-down features provided by abap/4 in interactive lists?

598


What is a development class? : abap data dictionary

703






what is difference between set screen and call screen ?

556


hi experts,,, what is meant by documentation? test casr preparation? documentation and preparation and Tcode for this? quality and releasing? test case scenario?

1722


What is interactive reporting?

618


Did you create any joins?

550


Badi concepts

923


What is an update task?

586


What are the sequences of event block?

625


What is the difference between get and get late?

593


Can we specify the next screen number with a variable?

565


If I want to execute a program only in background not in foreground is there any option for this? : abap bdc

560