<?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: Create dynamic variant name in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814465#M1882132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of creating custom table I think we can take index from table VARID also and we can use that . But I am exploring do we have any other option to create some unique number so that I can concatenate with user name or other .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jan 2015 15:31:50 GMT</pubDate>
    <dc:creator>kamesh_g</dc:creator>
    <dc:date>2015-01-30T15:31:50Z</dc:date>
    <item>
      <title>Create dynamic variant name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814452#M1882119</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;I am creating jobs through a SE38 program and building variant through program only .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot hard code the variant name because program can be executed multiple times with out completing the current running job .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to have a unique variant name every time to resolve the issue . Here length of the variant name is14 characters only .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i cannot concatenate sy-uname sy-date and sy-uzeit . Do we have any other option to have unique variant name every time .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i checked with FMs to create random number like NUMBER_GET_NEXT , ICL_ULAE_RUN_NUMBER_GET_NEXT and etc .but these are random numbers so cannot concatenate with this number as this number may repeat frequently also. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body worked on this kind of requirement let me know the ideas .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kamesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 22:55:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814452#M1882119</guid>
      <dc:creator>kamesh_g</dc:creator>
      <dc:date>2015-01-29T22:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic variant name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814453#M1882120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not use the same variant name, and manage the run parameters within the program you are running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 23:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814453#M1882120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-29T23:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic variant name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814454#M1882121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'NUMBER_GET_NEXT' will get a random number? i don`t think so.&lt;/P&gt;&lt;P&gt;It`s must be sequential as you defined in SNRO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create a BJob, using 'JOB_OPEN', SUMIT report WITH parameter, 'JOB_CLOSE', seems not need a unique variant name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Archer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 02:20:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814454#M1882121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-30T02:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic variant name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814455#M1882122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I explained the issue if I use same variant name . Multiple users can execute the report multiple times a day . So if earlier job is not completed variant is not taking new parameter values . And i tried with change variant also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 03:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814455#M1882122</guid>
      <dc:creator>kamesh_g</dc:creator>
      <dc:date>2015-01-30T03:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic variant name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814456#M1882123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I explained why I need unique variant name in the thread itself .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 03:26:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814456#M1882123</guid>
      <dc:creator>kamesh_g</dc:creator>
      <dc:date>2015-01-30T03:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic variant name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814457#M1882124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Kamesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about defining a table or using TVARC entry and updating every time whenever a job is executed and then increasing the number once it is finished?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 03:55:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814457#M1882124</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2015-01-30T03:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic variant name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814458#M1882125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayanthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even job name is same every time .Only variant parameters are different . So I am not able to check which job is related to .&amp;nbsp; There is no inputs how many times program will be executed also .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kamesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 05:04:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814458#M1882125</guid>
      <dc:creator>kamesh_g</dc:creator>
      <dc:date>2015-01-30T05:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic variant name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814459#M1882126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayanthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I am doing variant in the program like below because variant can be of 14 characters only . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;2char identifier&amp;gt;&amp;lt;sy-uname &amp;gt;&amp;lt;hours and minutes of sy-uzeit&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 05:10:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814459#M1882126</guid>
      <dc:creator>kamesh_g</dc:creator>
      <dc:date>2015-01-30T05:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic variant name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814460#M1882127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define entry in a table for maintaining a value which is of type numeric(say variant_val = 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In program, before you execute the job, read the table and then take the value variant_val from the table.&lt;BR /&gt;Once the job is finished, in program, update the table entry value to +1(now it will be 2).&lt;/P&gt;&lt;P&gt;Next time, it will read different value from the table. Every time, value will be different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 05:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814460#M1882127</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2015-01-30T05:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic variant name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814461#M1882128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may even think about concatenating variant value from table with current date.&lt;/P&gt;&lt;P&gt;This way, even you can reset the variant value to 1 whenever it reaches 1000 while updating.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 05:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814461#M1882128</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2015-01-30T05:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic variant name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814462#M1882129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use below blog, which is created by me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where, i have to try to execute the program in background with the help of Dynamic Variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code is attached in attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="49098" __jive_macro_name="document" class="jive_macro_document jive_macro" data-orig-content="Run in Background and Get in ALV Format" href="https://community.sap.com/" modifiedtitle="true" title="Run in Background and Get in ALV Format"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/servlet/JiveServlet/download/49098-2-222402/ZPRV_BACKGROUND_PROCESS.txt.zip"&gt;ZPRV_BACKGROUND_PROCESS.txt.zip &lt;/A&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;Praveer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 05:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814462#M1882129</guid>
      <dc:creator>ipravir</dc:creator>
      <dc:date>2015-01-30T05:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic variant name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814463#M1882130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamesh,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;KAMESH G wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi Jayanthi,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Currently I am doing variant in the program like below because variant can be of 14 characters only . &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;2char identifier&amp;gt;&amp;lt;sy-uname &amp;gt;&amp;lt;hours and minutes of sy-uzeit&amp;gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; The Maximum variant length is 14. The Username length is up-to 12 characters, in those case, I hope creating variant based on username with hours/minutes, may have some complications. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;As &lt;STRONG style="font-size: 10.8000001907349px; color: #333333; background: #ffffff;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="-1" data-externalid="" data-presence="null" data-userid="27571" data-username="jayanthi.jayaraman" href="https://answers.sap.com/people/jayanthi.jayaraman" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7; background: transparent;"&gt;Jayanthi Jayaraman&lt;/A&gt;&lt;/STRONG&gt;suggested, it is better to maintain the table for variant. Even for maintaining program standards, instead of hard coding, it is better to use tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajkumar Narasimman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 10:15:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814463#M1882130</guid>
      <dc:creator>rajkumarnarasimman</dc:creator>
      <dc:date>2015-01-30T10:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic variant name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814464#M1882131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not sure . For this simple thing customer accepts custom table or not . And again clean up program needed to delete the custom table entries . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 15:29:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814464#M1882131</guid>
      <dc:creator>kamesh_g</dc:creator>
      <dc:date>2015-01-30T15:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic variant name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814465#M1882132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of creating custom table I think we can take index from table VARID also and we can use that . But I am exploring do we have any other option to create some unique number so that I can concatenate with user name or other .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 15:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814465#M1882132</guid>
      <dc:creator>kamesh_g</dc:creator>
      <dc:date>2015-01-30T15:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic variant name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814466#M1882133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Kamesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need to write clean up program since you will be updating the same entry(either TVARC or some other custom table) in the same program after the job is successful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 04:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-dynamic-variant-name/m-p/10814466#M1882133</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2015-02-02T04:20:00Z</dc:date>
    </item>
  </channel>
</rss>

