<?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 Adding a Variable name to a filename in background processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-variable-name-to-a-filename-in-background-processing/m-p/3166874#M753379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, Currently when I run a background process I am giving it a file name of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  file_name = '/tmp/END_CUST'.&lt;/P&gt;&lt;P&gt;  CONCATENATE file_name '_'  v_dat '_' v_tim '.txt' INTO file_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works and shows the filename correctly. However before running the background processing, I choose a variant and would like to concatenate that name in to it as well. I am not having luck with this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards for helpful answers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2007 15:37:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-11T15:37:20Z</dc:date>
    <item>
      <title>Adding a Variable name to a filename in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-variable-name-to-a-filename-in-background-processing/m-p/3166874#M753379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, Currently when I run a background process I am giving it a file name of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  file_name = '/tmp/END_CUST'.&lt;/P&gt;&lt;P&gt;  CONCATENATE file_name '_'  v_dat '_' v_tim '.txt' INTO file_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works and shows the filename correctly. However before running the background processing, I choose a variant and would like to concatenate that name in to it as well. I am not having luck with this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards for helpful answers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 15:37:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-variable-name-to-a-filename-in-background-processing/m-p/3166874#M753379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T15:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Variable name to a filename in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-variable-name-to-a-filename-in-background-processing/m-p/3166875#M753380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting this into Intialization section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;file_name = '/tmp/END_CUST'.
CONCATENATE file_name '_' v_dat '_' v_tim '.txt' INTO file_name.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 15:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-variable-name-to-a-filename-in-background-processing/m-p/3166875#M753380</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-12-11T15:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Variable name to a filename in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-variable-name-to-a-filename-in-background-processing/m-p/3166876#M753381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change the file names as follows on the INITLISATION event of your Report. This will give you Exact results which you expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INITIALIZATION.
  CONCATENATE '\' sy-host 'WFNewHire_' sy-datlo  '_' sy-timlo '_SAP.dat' INTO p_hires.
  CONCATENATE '\' sy-host 'WFTerms_' sy-datlo '_' sy-timlo '_SAP.dat' INTO p_terms.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 15:39:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-variable-name-to-a-filename-in-background-processing/m-p/3166876#M753381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T15:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Variable name to a filename in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-variable-name-to-a-filename-in-background-processing/m-p/3166877#M753382</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;The variant name should be in the system variable SY-SLSET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: V_LEN TYPE I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file_name = '/tmp/END_CUST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_LEN = STRLEN( SY-SLSET ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE file_name '_' SY-SELST(V_LEN) '_' v_dat '_' v_tim '.txt' INTO file_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 15:40:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-variable-name-to-a-filename-in-background-processing/m-p/3166877#M753382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T15:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Variable name to a filename in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-variable-name-to-a-filename-in-background-processing/m-p/3166878#M753383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am afraid none of the above has worked. Very weird.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 15:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-variable-name-to-a-filename-in-background-processing/m-p/3166878#M753383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T15:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Variable name to a filename in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-variable-name-to-a-filename-in-background-processing/m-p/3166879#M753384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dipesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The current variant name is stored in system variable&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;gt;SY-SLSET&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Hence, you can concatenate it like this for eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file_name = '/tmp/END_CUST'.&lt;/P&gt;&lt;P&gt;CONCATENATE file_name '_' v_dat '_' v_tim '.txt' INTO file_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;concatenate file_name sy-slset into file_name.&amp;lt;/b&amp;gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 15:49:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-variable-name-to-a-filename-in-background-processing/m-p/3166879#M753384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T15:49:01Z</dc:date>
    </item>
  </channel>
</rss>

