<?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 SAP Variant diplaying wrong value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-variant-diplaying-wrong-value/m-p/5682589#M1291613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a report and i need to display the variant selected by the user on the output. Now I am using the system field SY_SLSET to display the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;When I execute the report from selection screen by choosing the variant and run it with run in background mode from selection screen , it does not display the correct value . It displays something like &amp;amp;000000222.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can come to know user has selected which variant. Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Report shows correct value in SY-SLSET when run in foreground or scheduled through SM36.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Problem comes only when it is run from selection screen with run in background mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An early response is highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2009 01:45:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-04T01:45:40Z</dc:date>
    <item>
      <title>SAP Variant diplaying wrong value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-variant-diplaying-wrong-value/m-p/5682589#M1291613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a report and i need to display the variant selected by the user on the output. Now I am using the system field SY_SLSET to display the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;When I execute the report from selection screen by choosing the variant and run it with run in background mode from selection screen , it does not display the correct value . It displays something like &amp;amp;000000222.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can come to know user has selected which variant. Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Report shows correct value in SY-SLSET when run in foreground or scheduled through SM36.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Problem comes only when it is run from selection screen with run in background mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An early response is highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 01:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-variant-diplaying-wrong-value/m-p/5682589#M1291613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T01:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Variant diplaying wrong value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-variant-diplaying-wrong-value/m-p/5682590#M1291614</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;Tr-cd SE38 -&amp;gt; menu -&amp;gt; Program -&amp;gt; Execute in Background&lt;/P&gt;&lt;P&gt;SM37 -&amp;gt; Job log variant -&amp;gt; &amp;amp;000000222.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, Tr-cd SM36 Create job. &amp;amp; Execute.&lt;/P&gt;&lt;P&gt;SM37 -&amp;gt; Job log variant -&amp;gt; Variant ID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 02:25:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-variant-diplaying-wrong-value/m-p/5682590#M1291614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T02:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Variant diplaying wrong value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-variant-diplaying-wrong-value/m-p/5682591#M1291615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got you what you are saying... but my problem is different..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody tell me how one can come to know with what varaint user is running the report . I know the field is SY-SLSET. Apart from SY-SLSET is there any way i can capture the name of the variant selected by user to run the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 03:30:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-variant-diplaying-wrong-value/m-p/5682591#M1291615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-04T03:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Variant diplaying wrong value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-variant-diplaying-wrong-value/m-p/5682592#M1291616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Dear Rohit,
Here is the solution.
Steps
1. Execute your report in SE38.
2. Enter data on Selection-screen and create variant.
3. When you go variant creation screen, you can see check box 'Only for Background Processing'. Select that one.
4. Go to SM36 and schedule the job in background. When click on "Step", you can see the variants created for background jobs.
5. Once your job is run, you can see the variant in the spool.
6. The system variable sy-slset is the right one to use.

I believe that it solves your problem.

&lt;STRONG&gt;Thanks&lt;/STRONG&gt;
&lt;STRONG&gt;Venkat.O&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 06:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-variant-diplaying-wrong-value/m-p/5682592#M1291616</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-06-04T06:00:57Z</dc:date>
    </item>
  </channel>
</rss>

