<?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: dynamically change a variant in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-change-a-variant/m-p/7940379#M1600644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your link is great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, my goal is to by changing the variant's name TO set the date field = "variant name"  automatically &lt;/P&gt;&lt;P&gt;at SM37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;I have a finished job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I copy this finished job to a new job;&lt;/P&gt;&lt;P&gt;2) change this new job's variant name to a new date (e.g. 20110303)&lt;/P&gt;&lt;P&gt;3) then automatically the date field of  above variant will be set to 20110303.&lt;/P&gt;&lt;P&gt;4) save job&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to do this without coding.&lt;/P&gt;&lt;P&gt;I appreciate your kindness.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 May 2011 19:04:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-29T19:04:53Z</dc:date>
    <item>
      <title>dynamically change a variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-change-a-variant/m-p/7940375#M1600640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We've  developed a  program  with ONLY  one input field: date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because we have to run this program against too many discrete dates, so it is too hard to create all variants before hand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) at SM37,  run a pre-defined variant for this program;&lt;/P&gt;&lt;P&gt;2) after above run is done, select the job, select "change", &lt;/P&gt;&lt;P&gt;3) change the variant name (e.g.  from 20110101 to 20110102) , &lt;/P&gt;&lt;P&gt;4) We hope above name change can automatically create a variant  with  a date "20110102"  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to make step 4)  happen?   In other word, can the variant content be changed by &lt;/P&gt;&lt;P&gt;changing the variant's name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will save us tons of time.   Becasue if we pre-define thousands of varaints &lt;/P&gt;&lt;P&gt;1) it is time consuming to create them;&lt;/P&gt;&lt;P&gt;2) even  looking for the right variant to run at SM37 will be very hard -- since the list is too long;&lt;/P&gt;&lt;P&gt;3) very easy to make mistake since the list is too long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore we want above improvement very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 May 2011 20:38:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-change-a-variant/m-p/7940375#M1600640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-28T20:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically change a variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-change-a-variant/m-p/7940376#M1600641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your need to use a dynamic variant and run your program using SM36 transaction. this way will allow you run program on date indicated.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 May 2011 22:35:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-change-a-variant/m-p/7940376#M1600641</guid>
      <dc:creator>former_member235395</dc:creator>
      <dc:date>2011-05-28T22:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically change a variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-change-a-variant/m-p/7940377#M1600642</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;create the dynamic variant and provide this variant name when you create back ground using SM36.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For creating Dynamic variant please go through below link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;link removed, points unassigned&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kishan P on May 30, 2011 11:54 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 May 2011 10:38:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-change-a-variant/m-p/7940377#M1600642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-29T10:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically change a variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-change-a-variant/m-p/7940378#M1600643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you ma create a small trigger program to [submit the program several times as JOB steps..|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_VIA_JOB.htm].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION 'JOB_OPEN'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, in a loop, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT submitable TO SAP-SPOOL
                    SPOOL PARAMETERS print_parameters
                    WITHOUT SPOOL DYNPRO
                    VIA JOB name NUMBER number
                    WITH date_parameter = date_value
                    AND RETURN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and finally&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'JOB_CLOSE'
      EXPORTING
        jobcount             = number
        jobname              = name
        strtimmed            = 'X'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use [Function Module GET_PRINT_PARAMETERS|http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba56d35c111d1829f0000e829fbfe/content.htm] to determine  SPOOL PARAMETERS value.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 May 2011 13:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-change-a-variant/m-p/7940378#M1600643</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-05-29T13:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically change a variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-change-a-variant/m-p/7940379#M1600644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your link is great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, my goal is to by changing the variant's name TO set the date field = "variant name"  automatically &lt;/P&gt;&lt;P&gt;at SM37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;I have a finished job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I copy this finished job to a new job;&lt;/P&gt;&lt;P&gt;2) change this new job's variant name to a new date (e.g. 20110303)&lt;/P&gt;&lt;P&gt;3) then automatically the date field of  above variant will be set to 20110303.&lt;/P&gt;&lt;P&gt;4) save job&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to do this without coding.&lt;/P&gt;&lt;P&gt;I appreciate your kindness.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 May 2011 19:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-change-a-variant/m-p/7940379#M1600644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-29T19:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically change a variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-change-a-variant/m-p/7940380#M1600645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's impossible to setup a parameter with the variant name without coding. Moreover, it does not really make sense. Maybe you should explain more about what is your real requirement. Something that would maybe fit your requirement is to use variant variables (for example, one variant where your date parameters equals "current date"). I give you the documentation link so that you can see the possibilities : &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/c0/980398e58611d194cc00a0c94260a5/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/c0/980398e58611d194cc00a0c94260a5/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 May 2011 20:11:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-change-a-variant/m-p/7940380#M1600645</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-05-29T20:11:45Z</dc:date>
    </item>
  </channel>
</rss>

