<?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: dynamic name Flat file reading. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-name-flat-file-reading/m-p/5498341#M1257820</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;yes it is possible, make sure that u r file  name pattern and input file pattern should be same. in such a way that make the file name it is easy to handle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2009 04:16:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-16T04:16:01Z</dc:date>
    <item>
      <title>dynamic name Flat file reading.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-name-flat-file-reading/m-p/5498338#M1257817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;  my client wants to schedule a BDC program for daily running.&lt;/P&gt;&lt;P&gt;But the file name is changed daily eventhough path is fixed.&lt;/P&gt;&lt;P&gt;can this be done.&lt;/P&gt;&lt;P&gt;can we read dynamic file from local system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;Vikash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 03:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-name-flat-file-reading/m-p/5498338#M1257817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T03:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic name Flat file reading.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-name-flat-file-reading/m-p/5498339#M1257818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Although the path remains the same and the filename changes, is there any common pattern in the name of the file?&lt;/P&gt;&lt;P&gt;for eg..&lt;/P&gt;&lt;P&gt;..../ abc_20090416.txt, etc&lt;/P&gt;&lt;P&gt;If the name of file is dynamic based on either the current date or current time, we can handle these dynamic files in our program. But if the name of the file changes altogther handling it wont be possible. think about some common pattern for filename.&lt;/P&gt;&lt;P&gt;Hope i am clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mansi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 04:00:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-name-flat-file-reading/m-p/5498339#M1257818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T04:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic name Flat file reading.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-name-flat-file-reading/m-p/5498340#M1257819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas,&lt;/P&gt;&lt;P&gt;It can be done, just make some rule for the file name, like filename will be always the system date,&lt;/P&gt;&lt;P&gt;so as u know the path just u need to concatenate the system date with the file path and u can pass to the gui_upload FM to upload the file for the BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u get my point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 04:00:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-name-flat-file-reading/m-p/5498340#M1257819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T04:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic name Flat file reading.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-name-flat-file-reading/m-p/5498341#M1257820</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;yes it is possible, make sure that u r file  name pattern and input file pattern should be same. in such a way that make the file name it is easy to handle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 04:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-name-flat-file-reading/m-p/5498341#M1257820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T04:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic name Flat file reading.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-name-flat-file-reading/m-p/5498342#M1257821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt; yes the file has the name pattern "SAP Forex Upload_10042009.xls" the dates will keep on changing..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with warm regards.&lt;/P&gt;&lt;P&gt;vikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 04:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-name-flat-file-reading/m-p/5498342#M1257821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T04:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic name Flat file reading.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-name-flat-file-reading/m-p/5498343#M1257822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes. so u can at initialissation for the paramter which takes the filepath name you can set to synamic filename as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : p_filename  type RSVAR-FILEPATH.
initialization.

concatenate '/....SAP Forex Upload_' sy-datum+06(02) sy-datum+04(02) sy-datum+00(04) into p_filename.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 04:26:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-name-flat-file-reading/m-p/5498343#M1257822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T04:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic name Flat file reading.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-name-flat-file-reading/m-p/5498344#M1257823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amresh,&lt;/P&gt;&lt;P&gt;Can u elaborate the solution.&lt;/P&gt;&lt;P&gt;the excel file is having a fixed pattern name that is "ddmmyyyy.xls" &lt;/P&gt;&lt;P&gt;what i need to concatenate .&lt;/P&gt;&lt;P&gt;currently i have put file path as parameter.&lt;/P&gt;&lt;P&gt;can u give me any sample code so that it ll be easy for me to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Vikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 04:30:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-name-flat-file-reading/m-p/5498344#M1257823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T04:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic name Flat file reading.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-name-flat-file-reading/m-p/5498345#M1257824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the initialization event...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate p_path sy-datum '.xls' into p_path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use this p_path in gui_upload or open dataset... to read the file...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can provide a p_date type d in the selection screen and concatenate p_path p_date '.xls' into p_path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 04:40:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-name-flat-file-reading/m-p/5498345#M1257824</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-04-16T04:40:13Z</dc:date>
    </item>
  </channel>
</rss>

