<?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 Function Module for creating file name in Application Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-creating-file-name-in-application-server/m-p/2371062#M525376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;Can you suggest me a function module to generate a file name for a flat file to be save on application server using DATASET.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Required filename format : &amp;lt;table name &amp;gt;.&amp;lt;times tamp&amp;gt;.TXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2007 13:49:47 GMT</pubDate>
    <dc:creator>manoj_goyal2</dc:creator>
    <dc:date>2007-06-04T13:49:47Z</dc:date>
    <item>
      <title>Function Module for creating file name in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-creating-file-name-in-application-server/m-p/2371062#M525376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;Can you suggest me a function module to generate a file name for a flat file to be save on application server using DATASET.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Required filename format : &amp;lt;table name &amp;gt;.&amp;lt;times tamp&amp;gt;.TXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 13:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-creating-file-name-in-application-server/m-p/2371062#M525376</guid>
      <dc:creator>manoj_goyal2</dc:creator>
      <dc:date>2007-06-04T13:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for creating file name in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-creating-file-name-in-application-server/m-p/2371063#M525377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need a function module.. with the OPEN DATASET &amp;lt;filename&amp;gt;... FOR OUTPUT  the system opens the file in write mode. If the file already exists, its existing content is deleted. If the file does not exist, the &amp;lt;b&amp;gt;system creates it&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 13:57:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-creating-file-name-in-application-server/m-p/2371063#M525377</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-06-04T13:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for creating file name in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-creating-file-name-in-application-server/m-p/2371064#M525378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know OPEN DATASET will create the file, but I need the function module to generate the file name in following format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;table name&amp;gt;.&amp;lt;time stamp&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like I should be able to pass the table name, and FM gives me the full file name in above format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 14:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-creating-file-name-in-application-server/m-p/2371064#M525378</guid>
      <dc:creator>manoj_goyal2</dc:creator>
      <dc:date>2007-06-04T14:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for creating file name in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-creating-file-name-in-application-server/m-p/2371065#M525379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mg,&lt;/P&gt;&lt;P&gt;You just need to concatenate the SY-UZEIT value to the table name you're providing. This can be done as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONCATENATE 'MARA' SY-UZEIT INTO FILE_NAME SEPARATED BY '.'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anil Madhavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 14:19:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-creating-file-name-in-application-server/m-p/2371065#M525379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T14:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for creating file name in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-creating-file-name-in-application-server/m-p/2371066#M525380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data w_filename type FILEEXTERN.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;put the table in the variable w_table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;concatenate w_table sy-datum sy-uzeit into w_filename&lt;/P&gt;&lt;P&gt;                                   separated by '.' .&lt;/P&gt;&lt;P&gt;open dataset w_filename for output in text mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 14:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-creating-file-name-in-application-server/m-p/2371066#M525380</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-06-04T14:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for creating file name in Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-creating-file-name-in-application-server/m-p/2371067#M525381</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;Please try this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF FILE1,
        CONST1(01) TYPE C VALUE '_',
        FIELD1     LIKE SY-DATUM,
        CONST2(01) TYPE C VALUE '_',
        FIELD2     LIKE SY-UZEIT,
      END OF FILE1.

DATA: FILENAME LIKE EDI_PATH-PTHNAM.

MOVE SY-DATUM  TO FILE1-FIELD1.
MOVE SY-UZEIT  TO FILE1-FIELD2.
CONCATENATE &amp;lt;table name&amp;gt; FILE1 INTO FILENAME.

...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 14:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-creating-file-name-in-application-server/m-p/2371067#M525381</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-06-04T14:25:02Z</dc:date>
    </item>
  </channel>
</rss>

