<?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: Variants in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329743#M512477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could set up your variant with a variable providing the value of the field that you want to change.  Go to transaction STVARV and create a parameter; enter a value for the parameter.  Now go to transaction SE38 and type in your program name.  Click on the "Variants" button.  Give your variant a name and click on the "Create" button.  Enter the values you want and then click on the "Attributes" button.  Give your variant name a meaning.  Now scroll down to find the field that you want to set dynamically.  Select the field.  Now in column "Selection Variable" click on the dropdown button at the right end of the field.  Choose "T" for type of variable and click the check mark.  In the column for "Name of Variable" click on the dropdown button at the right end of the field.  Scroll down and select the parameter that you created in STVARV.  Click on the check mark.    Save your variant.  Now you can change the value of the field in your variant by changing the parameter value in STVARV whenever you want.  I hope this helps.&lt;/P&gt;&lt;P&gt; - April King&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2007 14:29:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-12T14:29:46Z</dc:date>
    <item>
      <title>Variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329740#M512474</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;Please tell me How to set the values in a variant dynamically for a particular report program. I need to run a report as a background job with the same variant everytime but need to put the values in the variant dynamically. How can i achieve this?&lt;/P&gt;&lt;P&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;Priyank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 13:20:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329740#M512474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T13:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329741#M512475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HAI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the types of varients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use transaction variant to make your fields mandatory, hidden or display. You can hide unwanted screens and fields in any of the standard SAP programs without changing any of the standard programs. Additional features such as making the variant as default on the standard SAP transaction code is only available on 4.6x. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction SHD0 - Create a variant for the required transaction bychanging the layout through hiding fields and screens. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction SE93 - Create a variant transaction (e.g. for VA02 you canname it as ZA02). Next allocate the transaction variant to this varianttransaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create and change the Zxxx area menu with the new transaction variant. In this way, the user does have to remembers any extra transaction codes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 4.6c, you can default your transaction variant as the standard variant. (SHD0 - Edit -&amp;gt; Activate/Deactivate asstandard variant) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example for using transaction variant (restricting the field displayfor CO11N - Goods movement) :- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to restrict changes to the fields in Goods movement forone group of users. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a transaction variant for CO11N &lt;/P&gt;&lt;P&gt;2. Create a new transction code for the transaction variant and assign an authorization object to it &lt;/P&gt;&lt;P&gt;3. Divide the users into this two transaction code. Those who can change the field using CO11N. For those that have limited &lt;/P&gt;&lt;P&gt;field change, give them the authorizationfor ZCO11 (this is a new transaction code you have to create). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, please check this links:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_webas620/helpdata/en/eb/5fab41d79b11d296190000e82de14a/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_webas620/helpdata/en/eb/5fab41d79b11d296190000e82de14a/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/43/132f9803d76f40e10000000a422035/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/43/132f9803d76f40e10000000a422035/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/tvar.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/tvar.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 13:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329741#M512475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T13:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329742#M512476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not need to change the format in the variant. Just want to populate the values in the respective fields dynamically..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any further hints???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 13:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329742#M512476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T13:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329743#M512477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could set up your variant with a variable providing the value of the field that you want to change.  Go to transaction STVARV and create a parameter; enter a value for the parameter.  Now go to transaction SE38 and type in your program name.  Click on the "Variants" button.  Give your variant a name and click on the "Create" button.  Enter the values you want and then click on the "Attributes" button.  Give your variant name a meaning.  Now scroll down to find the field that you want to set dynamically.  Select the field.  Now in column "Selection Variable" click on the dropdown button at the right end of the field.  Choose "T" for type of variable and click the check mark.  In the column for "Name of Variable" click on the dropdown button at the right end of the field.  Scroll down and select the parameter that you created in STVARV.  Click on the check mark.    Save your variant.  Now you can change the value of the field in your variant by changing the parameter value in STVARV whenever you want.  I hope this helps.&lt;/P&gt;&lt;P&gt; - April King&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 14:29:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329743#M512477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T14:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329744#M512478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi April,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mean that whenever i want to change the value in the selection variable, i need to update the table TVARVC through an update statement for the parameter i create there and thereafter i can execute the report with the respective variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is my understanding correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Priyank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 05:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329744#M512478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T05:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329745#M512479</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. read the variant using the FM &amp;lt;b&amp;gt;RS_VARIANT_CONTENTS&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;2. Change the variant using the FM &amp;lt;b&amp;gt;RS_CHANGE_CREATED_VARIANT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---Patil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Santhosh Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 06:07:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329745#M512479</guid>
      <dc:creator>santhosh_patil</dc:creator>
      <dc:date>2007-06-13T06:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329746#M512480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   1. What u can do list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get all the variant of the standard report and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: variant(14).&lt;/P&gt;&lt;P&gt;variant = 'VARIANT1'. " Based on ur condition change the value to the variable&lt;/P&gt;&lt;P&gt;SUBMIT REPORT01 &lt;/P&gt;&lt;P&gt;       VIA SELECTION-SCREEN &lt;/P&gt;&lt;P&gt;       USING SELECTION-SET VARIANT  "Check here&lt;/P&gt;&lt;P&gt;       USING SELECTION-SETS OF PROGRAM 'REPORT00' &lt;/P&gt;&lt;P&gt;       AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 .Use the fm: RS_VARIANT_CONTENTS to get the values of the different values in the screen.&lt;/P&gt;&lt;P&gt;move those values to screen fields in the INITIALIZATION event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 06:32:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329746#M512480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T06:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329747#M512481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wish I could give both April and Santosh the full 10 points. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am opting to use the solution given by Santosh. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+ 10 for you Santosh. Thanks a lot. &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;Priyank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 10:16:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329747#M512481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T10:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329748#M512482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is correct.&lt;/P&gt;&lt;P&gt; - April&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 12:15:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variants/m-p/2329748#M512482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T12:15:13Z</dc:date>
    </item>
  </channel>
</rss>

