<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Build the output file problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769295#M1462925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also there is FM FTP_R3_to_server that wil upload the file from R3 to FTP and FTP_Server_to_R3 which will get file from R3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the following programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RSFTP002&lt;/P&gt;&lt;P&gt;RSFTP003&lt;/P&gt;&lt;P&gt;RSFTP004&lt;/P&gt;&lt;P&gt;RSFTP006&lt;/P&gt;&lt;P&gt;RSFTP007&lt;/P&gt;&lt;P&gt;RSFTP009&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;tanmaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Apr 2010 13:08:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-12T13:08:42Z</dc:date>
    <item>
      <title>Build the output file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769288#M1462918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;good day guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
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. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: balaji kiran on Apr 12, 2010 2:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 12:33:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769288#M1462918</guid>
      <dc:creator>former_member251546</dc:creator>
      <dc:date>2010-04-12T12:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Build the output file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769289#M1462919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Balaji ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Method 1&lt;/STRONG&gt;  :   There is a table called &lt;STRONG&gt;PATH&lt;/STRONG&gt;    , where we used to maintain our , Please check in your Environment ( DEV , QA, LIVE ) its available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can retrieve path directly and dynamically from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Method 2 :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can keep one either a parameter for passing the file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can keep three Option button ( DEV , QA , Live ) . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on a given file name or based on a selection , you can form the file name dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prasath Arivazhagan on Apr 12, 2010 2:47 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 12:42:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769289#M1462919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T12:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Build the output file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769290#M1462920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can create the parameter in that parameter ask the user to pass the path...or you can pass different paths as per requirement and do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM build_output_filename .
  CLEAR outfile.
l_path =  'D:/FTP/MMI/MMISTOCK/BABZAPART'.
*This directory must be changed to make use of ALIAS FTP_DIR, as       *
*the directory name is different between Dev, QA and Prod              *
  CONCATENATE      l_path "here out put file
               sy-datum sy-timlo
               '.txt'
          INTO outfile.
ENDFORM. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;P&gt;tanmaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 12:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769290#M1462920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T12:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Build the output file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769291#M1462921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;if i want use the "ALIAS FTP_DIR" for the output file..&lt;/P&gt;&lt;P&gt;how to use it?&lt;/P&gt;&lt;P&gt;Plz let me know?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 12:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769291#M1462921</guid>
      <dc:creator>former_member251546</dc:creator>
      <dc:date>2010-04-12T12:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Build the output file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769292#M1462922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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] &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NB: The file PATH is maintained via transaction FILE, create a logical file name definition like &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;D:/FTP/MMI/MMISTOCK/BABZAPART&amp;lt;PARAM_1&amp;gt;&amp;lt;PARAM_2&amp;gt;.txt&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 12:59:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769292#M1462922</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-04-12T12:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Build the output file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769293#M1462923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi balaji ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to connect to FTP there are some FM , which you can use....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FTP_CONNECT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    user                   =&lt;/P&gt;&lt;P&gt;    password               =&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCOUNT                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    host                   =&lt;/P&gt;&lt;P&gt;    rfc_destination        =&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GATEWAY_USER           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GATEWAY_PASSWORD       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GATEWAY_HOST           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HANDLE                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOT_CONNECTED          = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                 = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to connect from FTP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now put your file from sap server to the destination machine.&lt;/P&gt;&lt;P&gt;and pass to the fm FTP command list&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FTP_COMMAND_LIST'&lt;/P&gt;&lt;P&gt;                               EXPORTING&lt;/P&gt;&lt;P&gt;                                 handle              =&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                               COMMAND_INDEX       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                               tables&lt;/P&gt;&lt;P&gt;                                 data                =&lt;/P&gt;&lt;P&gt;                                 commands            =&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                               TCPIP_ERROR         = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                               COMMAND_ERROR       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                               DATA_ERROR          = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                               OTHERS              = 4&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                                       .&lt;/P&gt;&lt;P&gt;                             IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                             ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally call fm FTP disconnect to disconnect the FTP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take  help of where used of these FM and use accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'FTP_DISCONNECT'&lt;/P&gt;&lt;P&gt;                         EXPORTING&lt;/P&gt;&lt;P&gt;                           handle        =&lt;/P&gt;&lt;P&gt;                                 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;tanmaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 13:04:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769293#M1462923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T13:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Build the output file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769294#M1462924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;See class CL_GUI_FRONTEND_SERVICES .&lt;/P&gt;&lt;P&gt;for ur requirement it may be Useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Raghava Channooru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 13:06:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769294#M1462924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T13:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Build the output file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769295#M1462925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also there is FM FTP_R3_to_server that wil upload the file from R3 to FTP and FTP_Server_to_R3 which will get file from R3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the following programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RSFTP002&lt;/P&gt;&lt;P&gt;RSFTP003&lt;/P&gt;&lt;P&gt;RSFTP004&lt;/P&gt;&lt;P&gt;RSFTP006&lt;/P&gt;&lt;P&gt;RSFTP007&lt;/P&gt;&lt;P&gt;RSFTP009&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;tanmaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 13:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769295#M1462925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T13:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Build the output file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769296#M1462926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Good day Mr.Rymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u dont mind, do u have sample code..if uve ,plz send it&lt;/P&gt;&lt;P&gt;I understand the concept.&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 13:34:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769296#M1462926</guid>
      <dc:creator>former_member251546</dc:creator>
      <dc:date>2010-04-12T13:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Build the output file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769297#M1462927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First create the logical file name with 2 parameters as i wrote before, then in your program use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'FILE_GET_NAME'
     EXPORTING
          logical_filename = 'FTP_DIR'
          parameter_1      = sy-datum
          parameter_2      = sy-uzeit
     IMPORTING
          file_name        = filename
     EXCEPTIONS
          file_not_found   = 1
          OTHERS           = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And use this filename with GUI_(UP|DOWN)LOAD FMs or CL_GUI_FRONTEND_SERVICES class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use special variable in the file name definitions, so you don't have any longer to use parameters for date and time, define logical filename as &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;D:/FTP/MMI/MMISTOCK/BABZAPART&amp;lt;DATE&amp;gt;&amp;lt;TIME&amp;gt;.txt&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 13:44:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769297#M1462927</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-04-12T13:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Build the output file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769298#M1462928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some more information on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i mentioned in my last post , you can get the File path from the TABLE &lt;STRONG&gt;PATH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just login to your system   ---&amp;gt; open the table  PATH&lt;/P&gt;&lt;P&gt;     --- &amp;gt; go for F4 help on field PATHINTERN with Z*  ---&amp;gt; if any path maintained for your interface you will get  record like below ( Path will be maintained as mentioned below )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PATHINTERN    --          FILESYS                       --   PATHEXTERN&lt;/P&gt;&lt;P&gt;ZINF                  --          UNIX                             --   /oracle/Live/abap/&amp;lt;FILENAME&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if so ,  you can retrieve that particular record and just replace &amp;lt;FILENAME&amp;gt; with your file name , then you will complete path dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example :   &lt;STRONG&gt;/oracle/Live/abap/EXAMPLE_FILE.txt&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the Code for retrieving such info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

"selection screen 
TABLES : PATH.
PARAMETER      : fname LIKE rlgrap-filename Default 'SAMPLE.txt'.

* Get the File Name with Application path
 
if fname is initial.     "if the file name is not given in the selection screen  picking from PATH

 CLEAR : path.

  SELECT SINGLE * FROM  path WHERE  pathintern  = 'ZINF'
          AND    filesys     = sy-opsys.
  IF sy-subrc NE 0.
    SELECT SINGLE * FROM  path  WHERE  pathintern  = 'ZINF'
           AND    filesys   = 'UNIX'.    " Condtion may vary based on your requirement
  ENDIF.

   REPLACE '&amp;lt;FILENAME&amp;gt;' WITH 'EXAMPLE_FILE' INTO path-pathextern.

    CONCATENATE path-pathextern sy-datum+6(2) '-' sy-datum+4(2) '-'
                     sy-datum+0(4) '.txt'
          INTO fname.    
 Endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Furthur processing ----- &amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 14:04:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/build-the-output-file-problem/m-p/6769298#M1462928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T14:04:00Z</dc:date>
    </item>
  </channel>
</rss>

