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

if while coding power goes off , how to retrieve the codes?

1849


What are the user interfaces of interactive lists?

751


How to convert normal function module to bapi?

1770


Explain the table, which contain the details of all the name of the programs and forms?

728


How to find the return code of a statement in abap programs?

850


Can a filed occur in several field groups?

795


What are the sequences of event block?

824


What are authorization objects and what statement is used to perform an authorization check in an abap program?

754


WHY CLUSTER TABLE CALLED AS CLUSTER TABLE.

1962


Is there any BAPI to retrieve list of customers and their sales areas i.e., Cust No, Distr Channel and Division for all the customers.

1800


Give an example of interface from your project explaining why you used it?

1114


What is a view in sap? : abap data dictionary

810


could anyone tell me what r real time questions been asked in interviews?i am in urgent need..thanks in advance

1678


WHAT ARE THE MANDATORY FIELDS TO BE FILLED FROM TABLES BAPIITEMIN, BAPIPARTNR, BAPIITEMEX, BAPICUCFG, BAPICUINS, BAPICUPRT, AND BAPICUVAL IN BAPI 'BAPI_QUOTATION_CREATEFROMDATA

2292


What actually happens in real-time recruitment? : sap abap hr

798