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

What are the different types of parameters? How can you distinguish between different kinds of parameters?

761


What is the difference between abap and hr abap? : abap hr

875


2)In production what is the user exit?

1767


how to create view in bdc..??

2606


How to read files and process BDC's automatically ?

1802


What is new enhancement framework?

1118


What are the advantages and disadvantages of different types of bdc's?

781


How table control cn be generated using bdc? : abap bdc

754


Where do you find info on new developments in SAP?

1777


How do u set up background jobs in SAP? What r the steps? What are the event driven batch jobs?

865


Which one is better joins or views and why?

851


​​What is view proxy in abap?

1010


5) How to rereive text elements in SF and script?

1914


What is a logical database?

893


What are the function module in bdc?

919