Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Build the output file problem

Hi,

good day guys

we dev the interface for stock information for mmi interface. For build output file. we coded as below as. but i need to build the out put file with Alias. how to do it?plz let me know

FORM build_output_filename .
  CLEAR outfile.
*This directory must be changed to make use of ALIAS FTP_DIR, as       *
*the directory name is different between Dev, QA and Prod              *
  CONCATENATE 'D:/FTP/MMI/MMISTOCK/BABZAPART'       "here out put file
               sy-datum sy-timlo
               '.txt'
          INTO outfile.
ENDFORM. 

Edited by: balaji kiran on Apr 12, 2010 2:33 PM

replied

Define the alias via FILE transaction, read [Creating and Defining Logical Paths |http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3deb358411d1829f0000e829fbfe/frameset.htm] and [Creating and Defining Logical Filenames|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3df8358411d1829f0000e829fbfe/frameset.htm]

In your program, use the FM FILE_GET_NAME, read first [Using Logical Files in ABAP Programs|http://help.sap.com/saphelp_nw04/helpdata/en/9f/db95e635c111d1829f0000e829fbfe/frameset.htm]. The FM accept 2 parameters to be included in the actual file name, so you should not get any problem.

NB: The file PATH is maintained via transaction FILE, create a logical file name definition like

D:/FTP/MMI/MMISTOCK/BABZAPART<PARAM_1><PARAM_2>.txt

Regards,

Raymond

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question