<?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: Regarding variants in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-variants/m-p/2070429#M428801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sree Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variants in Background Mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variants are the only method for passing values to a report program in a background job. Therefore, when you run a program in the background, you must use a variant (or SUBMIT... VIA JOB). To avoid you having to create a new variant each time you run the report, ABAP contains a mechanism allowing you to pass variable values to variants. See variable values in variants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure that an executable program is always started using a variant, you can specify in the program attributes that the program may only be started in this way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Features&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creation of variants &lt;/P&gt;&lt;P&gt;Display, change, copy, print, and delete variants &lt;/P&gt;&lt;P&gt;Use and definition of variables in variants&lt;/P&gt;&lt;P&gt;Variable date calculation &lt;/P&gt;&lt;P&gt;User-specific fixed values &lt;/P&gt;&lt;P&gt;Fixed values in table TVARV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You access the variant maintenance tool from the initial screen of the ABAP Editor. Enter the name of the program, select Variants in the Sub-objects group box, and then choose Display or Change. &lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above screen allows you to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create variants &lt;/P&gt;&lt;P&gt;Display the variant directory &lt;/P&gt;&lt;P&gt;Display and change values and attributes &lt;/P&gt;&lt;P&gt;Copy, delete, and rename variants&lt;/P&gt;&lt;P&gt;Before creating a new variant for a program, you should check whether you can use or adapt an existing variant instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two ways to display variants: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Position the cursor on the Variant field on the initial screen and press F4. The following dialog box lists all of the available variants:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Variants ® Directory on the initial screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating Variants &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prerequisites&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must have defined one or more selection screens for the relevant program. The program may have any type except type S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the initial screen of the ABAP Editor, enter the name of the program for which you want to create a variant, select Variants in the Sub-objects group box, and choose Change. &lt;/P&gt;&lt;P&gt;On the variant maintenance initial screen, enter the name of the variant you want to create.&lt;/P&gt;&lt;P&gt;Note the naming convention for variants (see below). &lt;/P&gt;&lt;P&gt;Choose Create.&lt;/P&gt;&lt;P&gt;If the program has more than one selection screen, a dialog box appears in which you can assign the variant to one or more screens. The dialog box does not appear if the program only has one selection screen. In this case, the selection screen of the program appears straight away. &lt;/P&gt;&lt;P&gt;If there is more than one selection screen, select the screens for which you want to create the variant. &lt;/P&gt;&lt;P&gt;Example:&lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you choose Variant for all selection screens, the variant also applies to any selection screens that you create after creating the variant. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, the variant only supplies values to the selection screens that you select in the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Continue.&lt;/P&gt;&lt;P&gt;The (first) selection screen of the program appears.&lt;/P&gt;&lt;P&gt;If your program has more than one selection screen, use the scroll buttons in the left-hand corner of the application toolbar to navigate between them. If you keep scrolling forwards, the Continue button appears on the last selection screen. &lt;/P&gt;&lt;P&gt;Enter the required selections, including multiple and dynamic selections. &lt;/P&gt;&lt;P&gt;Choose Continue.&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you have finished, an overview screen appears (ABAP: Save Attributes of Variant), on which you can enter the attributes of your variant and save it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that when you create a new variant, you must enter both values and attributes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Names of variants: Names can consist of up to 14 alphanumeric characters. The "% " character is not allowed. If you want the variant to be transported automatically with its program, you must create a system variant. The name of a system variant starts "CUS&amp;amp;" for customers, and "SAP&amp;amp;" for SAP system variants. You can only use the "&amp;amp;" character within this prefix in the name of a system variant. It may not occur in any other context. System variants are administered by the Workbench Organizer. Although you can create and access variants from any client, they are always stored in client "000". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this Link : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/0a/af73ec76ac11d1ad670000e8a6353a/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/0a/af73ec76ac11d1ad670000e8a6353a/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Mar 2007 12:07:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-28T12:07:09Z</dc:date>
    <item>
      <title>Regarding variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-variants/m-p/2070427#M428799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks&lt;/P&gt;&lt;P&gt;    How can I add the variants for background scheduling jobs.&lt;/P&gt;&lt;P&gt;Please let me know the detailed procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points are assured for correct answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 12:04:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-variants/m-p/2070427#M428799</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-03-28T12:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-variants/m-p/2070428#M428800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;From your program, Save the Selection screen values from the Selection screen and create a variant for that values, then goto SM36, and create a backgroun job, there give the Program name and below that you have an option to select the Variant, just press the F4, you will get all the variants for that program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 12:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-variants/m-p/2070428#M428800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T12:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-variants/m-p/2070429#M428801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sree Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variants in Background Mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variants are the only method for passing values to a report program in a background job. Therefore, when you run a program in the background, you must use a variant (or SUBMIT... VIA JOB). To avoid you having to create a new variant each time you run the report, ABAP contains a mechanism allowing you to pass variable values to variants. See variable values in variants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure that an executable program is always started using a variant, you can specify in the program attributes that the program may only be started in this way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Features&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creation of variants &lt;/P&gt;&lt;P&gt;Display, change, copy, print, and delete variants &lt;/P&gt;&lt;P&gt;Use and definition of variables in variants&lt;/P&gt;&lt;P&gt;Variable date calculation &lt;/P&gt;&lt;P&gt;User-specific fixed values &lt;/P&gt;&lt;P&gt;Fixed values in table TVARV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You access the variant maintenance tool from the initial screen of the ABAP Editor. Enter the name of the program, select Variants in the Sub-objects group box, and then choose Display or Change. &lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above screen allows you to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create variants &lt;/P&gt;&lt;P&gt;Display the variant directory &lt;/P&gt;&lt;P&gt;Display and change values and attributes &lt;/P&gt;&lt;P&gt;Copy, delete, and rename variants&lt;/P&gt;&lt;P&gt;Before creating a new variant for a program, you should check whether you can use or adapt an existing variant instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two ways to display variants: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Position the cursor on the Variant field on the initial screen and press F4. The following dialog box lists all of the available variants:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Variants ® Directory on the initial screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating Variants &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prerequisites&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must have defined one or more selection screens for the relevant program. The program may have any type except type S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the initial screen of the ABAP Editor, enter the name of the program for which you want to create a variant, select Variants in the Sub-objects group box, and choose Change. &lt;/P&gt;&lt;P&gt;On the variant maintenance initial screen, enter the name of the variant you want to create.&lt;/P&gt;&lt;P&gt;Note the naming convention for variants (see below). &lt;/P&gt;&lt;P&gt;Choose Create.&lt;/P&gt;&lt;P&gt;If the program has more than one selection screen, a dialog box appears in which you can assign the variant to one or more screens. The dialog box does not appear if the program only has one selection screen. In this case, the selection screen of the program appears straight away. &lt;/P&gt;&lt;P&gt;If there is more than one selection screen, select the screens for which you want to create the variant. &lt;/P&gt;&lt;P&gt;Example:&lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you choose Variant for all selection screens, the variant also applies to any selection screens that you create after creating the variant. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, the variant only supplies values to the selection screens that you select in the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Continue.&lt;/P&gt;&lt;P&gt;The (first) selection screen of the program appears.&lt;/P&gt;&lt;P&gt;If your program has more than one selection screen, use the scroll buttons in the left-hand corner of the application toolbar to navigate between them. If you keep scrolling forwards, the Continue button appears on the last selection screen. &lt;/P&gt;&lt;P&gt;Enter the required selections, including multiple and dynamic selections. &lt;/P&gt;&lt;P&gt;Choose Continue.&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you have finished, an overview screen appears (ABAP: Save Attributes of Variant), on which you can enter the attributes of your variant and save it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that when you create a new variant, you must enter both values and attributes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Names of variants: Names can consist of up to 14 alphanumeric characters. The "% " character is not allowed. If you want the variant to be transported automatically with its program, you must create a system variant. The name of a system variant starts "CUS&amp;amp;" for customers, and "SAP&amp;amp;" for SAP system variants. You can only use the "&amp;amp;" character within this prefix in the name of a system variant. It may not occur in any other context. System variants are administered by the Workbench Organizer. Although you can create and access variants from any client, they are always stored in client "000". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this Link : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/0a/af73ec76ac11d1ad670000e8a6353a/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/0a/af73ec76ac11d1ad670000e8a6353a/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 12:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-variants/m-p/2070429#M428801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T12:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-variants/m-p/2070430#M428802</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) Goto the report and give the values. Click on save.&lt;/P&gt;&lt;P&gt;2) Save it as a Variant. Give a name and desc. and save it&lt;/P&gt;&lt;P&gt;3)Goto SM36 and create the job.&lt;/P&gt;&lt;P&gt;4) In the Job details give the prog name and the variant.&lt;/P&gt;&lt;P&gt;5)Give the start condition and save it.&lt;/P&gt;&lt;P&gt;When the job starts it will pick the variant and execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful...&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 12:09:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-variants/m-p/2070430#M428802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T12:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-variants/m-p/2070431#M428803</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;   select the variant with which the program needs to be executed, program-&amp;gt;execute in background...do like this for all the variants, if i haven't misunderstood your question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful, reward&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 12:10:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-variants/m-p/2070431#M428803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T12:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-variants/m-p/2070432#M428804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;  It's Answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 07:57:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-variants/m-p/2070432#M428804</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-05-23T07:57:10Z</dc:date>
    </item>
  </channel>
</rss>

