Skip to Content

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

Build the output file problem


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
          INTO outfile.

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


Define the alias via FILE transaction, read [Creating and Defining Logical Paths |] and [Creating and Defining Logical Filenames|]

In your program, use the FM FILE_GET_NAME, read first [Using Logical Files in ABAP Programs|]. 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




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