<?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: Naming file dynamically in Application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/naming-file-dynamically-in-application-server/m-p/10613506#M1863040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Custodio &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1024/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2014 09:24:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-09-15T09:24:57Z</dc:date>
    <item>
      <title>Naming file dynamically in Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/naming-file-dynamically-in-application-server/m-p/10613499#M1863033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am uploading a file in application server using open data set. The application server path is given in the selection screen. How can i name the file dynamically while it is getting uploaded in the application server?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 05:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/naming-file-dynamically-in-application-server/m-p/10613499#M1863033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-15T05:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Naming file dynamically in Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/naming-file-dynamically-in-application-server/m-p/10613500#M1863034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can give it any name you want for a new file, so you just need to concatenate the path with whatever you want to name the file whatever you want, ie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*concatenates path + constant "/myfile/" + system date&lt;/P&gt;&lt;P&gt;lv_file &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;|{ p_path }/myfile/{ sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;datum }|&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;OPEN &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;DATASET &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;lv_file &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;FOR &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;OUTPUT&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 06:19:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/naming-file-dynamically-in-application-server/m-p/10613500#M1863034</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2014-09-15T06:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Naming file dynamically in Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/naming-file-dynamically-in-application-server/m-p/10613501#M1863035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shristi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Put your condition before your open dataset&amp;nbsp; code&lt;/P&gt;&lt;P&gt;If sy-name = x.&lt;/P&gt;&lt;P&gt;v_file = whatever name you want.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman';"&gt; OPEN DATASET v_file FOR OUTPUT IN TEXT MODE.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman';"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 06:23:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/naming-file-dynamically-in-application-server/m-p/10613501#M1863035</guid>
      <dc:creator>aarif_baig</dc:creator>
      <dc:date>2014-09-15T06:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Naming file dynamically in Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/naming-file-dynamically-in-application-server/m-p/10613502#M1863036</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;Thanks for the reply.&lt;/P&gt;&lt;P&gt;But the condition here is, multiple pdf are being generated and i have to give seperate names to each pdf and then upload it into al11.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 06:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/naming-file-dynamically-in-application-server/m-p/10613502#M1863036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-15T06:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Naming file dynamically in Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/naming-file-dynamically-in-application-server/m-p/10613503#M1863037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shristi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So multiple pdf is displaying data from different internal tables right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE 'PDF1'.&lt;/P&gt;&lt;P&gt;file = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 12px;"&gt;OPEN DATASET v_file FOR OUTPUT IN TEXT MODE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px;"&gt;TRANSFER `1234567890` TO file.&lt;/P&gt;&lt;P style="margin-bottom: 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px;"&gt;CLOSE DATASET file.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 12px;"&gt;CASE 'PDF2'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; font-family: 'Times New Roman';"&gt;OPEN DATASET v_file FOR OUTPUT IN TEXT MODE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; font-family: 'Times New Roman';"&gt;file = 'y'.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px;"&gt;TRANSFER `1234567890` TO file.&lt;/P&gt;&lt;P style="margin-bottom: 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px;"&gt;CLOSE DATASET file.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; font-family: 'Times New Roman';"&gt;and so on.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 06:40:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/naming-file-dynamically-in-application-server/m-p/10613503#M1863037</guid>
      <dc:creator>aarif_baig</dc:creator>
      <dc:date>2014-09-15T06:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Naming file dynamically in Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/naming-file-dynamically-in-application-server/m-p/10613504#M1863038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;You can concatenate file name with the system date (sy-datum) and system time (sy-uzeit) so that each and every file will be uniquely named.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Philip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 06:42:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/naming-file-dynamically-in-application-server/m-p/10613504#M1863038</guid>
      <dc:creator>philipdavy</dc:creator>
      <dc:date>2014-09-15T06:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Naming file dynamically in Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/naming-file-dynamically-in-application-server/m-p/10613505#M1863039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I said, you can concatenate whatever you want to file name.&amp;nbsp; You can concatenate sy-uname / sy-uzeit as mention before (just don't forget to use get time before this or you may have same uzeit and even this is not guaranteed), or you can create a counter variable and concatenate this counter as well (guaranteed you will not have same filename)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 06:47:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/naming-file-dynamically-in-application-server/m-p/10613505#M1863039</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2014-09-15T06:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Naming file dynamically in Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/naming-file-dynamically-in-application-server/m-p/10613506#M1863040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Custodio &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1024/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 09:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/naming-file-dynamically-in-application-server/m-p/10613506#M1863040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-15T09:24:57Z</dc:date>
    </item>
  </channel>
</rss>

