‎2008 Jul 29 8:41 AM
Hi All,
Good day.
I got one requirement, where I need to write a Online program that will create a flat file on Unix. The probable Unix file will be send from the selection screen, where the user selects that with a fixed length & format.
Do I need to do it with the Datasets? or is it possible to go with Upload function modules?
Please, send one example program of such kind.
Thanks,
Kal Chand
‎2008 Jul 29 9:10 AM
Hi,
You are going to create a flat file in the Unix Operating system which is nothing but the application server.
There are no standard function modules to write the file in the application server, so you need to use the DATA SET concept only.
1. Open Data Set file name
2. Transfer Data Set file name
3. close Data set file name
I believe this will help you to finish your requirement.
Thanks,
Mahesh.
‎2008 Jul 29 9:10 AM
Hi,
You are going to create a flat file in the Unix Operating system which is nothing but the application server.
There are no standard function modules to write the file in the application server, so you need to use the DATA SET concept only.
1. Open Data Set file name
2. Transfer Data Set file name
3. close Data set file name
I believe this will help you to finish your requirement.
Thanks,
Mahesh.
‎2008 Jul 29 2:27 PM
Hi All,
I got the answer...
IF NOT V_FLNAME IS INITIAL.
OPEN DATASET V_FLNAME FOR OUTPUT IN TEXT MODE.
TRANSFER IT_INFILE TO V_FLNAME.
IF SY-SUBRC NE 0.
MESSAGE I002(ZZ) WITH
'Unable to download report record:' SY-SUBRC.
ENDIF.
CLOSE DATASET V_FLNAME.
ENDIF.
Thanks,
Kal Chand