<?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: How to insert a name into a dynamic file name in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928817#M1485459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keshav,&lt;/P&gt;&lt;P&gt;                  if the file and path name is this &lt;/P&gt;&lt;P&gt;/ZDATA/G15/US/USEISWTOL1/GLB/HROISWTL01/US16.USEISWTOL1.HROISWTL01.000000000341.DAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to replace the sequence number which we are getting at the end with a name called 'FLAG'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We cannot use " REPLACE" command as the sequence number changes dynamically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishal'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vishal_reddy786 on May 14, 2010 10:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 May 2010 08:22:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-14T08:22:44Z</dc:date>
    <item>
      <title>How to insert a name into a dynamic file name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928811#M1485453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;                  how do we need to insert a name into the dynamic file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example  we are getting the dynamic file name as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/zdata/G15/us/useiswtol1/glb/hroiswtl01/US16.USEISWTOL1.HROISWTL01.DAT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in between HROISWTL01 and .DAT we need to insert a name called FLAG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harish Kasyap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 06:37:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928811#M1485453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-14T06:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a name into a dynamic file name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928812#M1485454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; For example  we are getting the dynamic file name as&lt;/P&gt;&lt;P&gt;&amp;gt; /zdata/G15/us/useiswtol1/glb/hroiswtl01/US16.USEISWTOL1.HROISWTL01.DAT'&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where are you getting the dynamic filename from ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 06:43:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928812#M1485454</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-05-14T06:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a name into a dynamic file name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928813#M1485455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;                we are getting the name from a functional module which is specific to our system and we cant change it.how to insert the name after retrieving the file name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 06:48:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928813#M1485455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-14T06:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a name into a dynamic file name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928814#M1485456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which FM you are using to get dynamic file name ? is it FILE_GET_NAME or something else ? If you are using FM to get dynamic file name then check the parameter whether the FM returning only file name or not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 06:54:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928814#M1485456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-14T06:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a name into a dynamic file name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928815#M1485457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, u can say we are using the Fm GET_FILE_NAME ...but after we get the FILE NAME we need to insert FLAG in the middle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 07:11:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928815#M1485457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-14T07:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a name into a dynamic file name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928816#M1485458</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;just usef fm &lt;STRONG&gt;/SAPDMC/LSM_PATH_FILE_SPLIT&lt;/STRONG&gt;, it will split the file name and path name.&lt;/P&gt;&lt;P&gt;path = /zdata/G15/us/useiswtol1/glb/hroiswtl01/US16.USEISWTOL1.&lt;/P&gt;&lt;P&gt;filename = HROISWTL01.DAT&lt;/P&gt;&lt;P&gt;concatenate path 'FLAG' filename into path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 08:18:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928816#M1485458</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-05-14T08:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a name into a dynamic file name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928817#M1485459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keshav,&lt;/P&gt;&lt;P&gt;                  if the file and path name is this &lt;/P&gt;&lt;P&gt;/ZDATA/G15/US/USEISWTOL1/GLB/HROISWTL01/US16.USEISWTOL1.HROISWTL01.000000000341.DAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to replace the sequence number which we are getting at the end with a name called 'FLAG'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We cannot use " REPLACE" command as the sequence number changes dynamically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishal'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vishal_reddy786 on May 14, 2010 10:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 08:22:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928817#M1485459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-14T08:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a name into a dynamic file name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928818#M1485460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We cannot use " REPLACE" command as the sequence number changes dynamically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually what do you want to replace.&lt;/P&gt;&lt;P&gt;is it the name of the file or anything else ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 08:36:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928818#M1485460</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-05-14T08:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a name into a dynamic file name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928819#M1485461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keshav,&lt;/P&gt;&lt;P&gt;               As i said we are getting a sequence number in the end...... for example '000000000341'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This  sequence number should be replaced with a name called 'FLAG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u got my point.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vishal_reddy786 on May 14, 2010 10:58 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 08:56:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928819#M1485461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-14T08:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a name into a dynamic file name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928820#M1485462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some more questions:&lt;/P&gt;&lt;P&gt;Is it always the same length , same position ?&lt;/P&gt;&lt;P&gt;After splitting the path and file how will the result look ( considering the path from your question ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 09:24:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928820#M1485462</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-05-14T09:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a name into a dynamic file name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928821#M1485463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Keshav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same lenght and same postion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/ZDATA/G15/US/USEISWTOL1/GLB/HROISWTL01/US16.USEISWTOL1.HROISWTL01.000000000341.DAT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of above we need to get &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/ZDATA/G15/US/USEISWTOL1/GLB/HROISWTL01/US16.USEISWTOL1.HROISWTL01.FLAG.DAT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 09:38:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928821#M1485463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-14T09:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a name into a dynamic file name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928822#M1485464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so after splitting your file name will be 000000000341.DAT .&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
split filename at '.' into part1 part2.
concatenate path 'FLAG' '.' part2 into path.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

if filename ca '.'.
sy-fdpos = sy-fdpos - 1.
filename+0(syfd-pos) = 'FLAG'.
clear path.
concatenate path filename into path.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 09:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928822#M1485464</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-05-14T09:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a name into a dynamic file name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928823#M1485465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishal,&lt;/P&gt;&lt;P&gt;Do this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Split whole of your string into itab separated by '.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;split &amp;lt;path&amp;gt; at '.' into table it_text.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Now, the second last record of your int tab would be the number you want to replace by "FLAG".&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Just replace it with FLAG.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Now loop at it_text and merge the path into string again.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 10:21:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928823#M1485465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-14T10:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a name into a dynamic file name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928824#M1485466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Resolved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 11:26:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928824#M1485466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-14T11:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a name into a dynamic file name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928825#M1485467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please share the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 11:32:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-a-name-into-a-dynamic-file-name/m-p/6928825#M1485467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-14T11:32:30Z</dc:date>
    </item>
  </channel>
</rss>

