<?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: Syst variable for transaction variant? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395550#M191676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Shekar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had just the same problem/question. Maybe in the meantime you figured out a solution yourself. This is what I did. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Didn't check on the transaction code but on the variant linked to it. I used it in the validation rules. Via the assign you get the variant and you can do any checks you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetz,&lt;/P&gt;&lt;P&gt;Pieter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Screen variant provided by transaction variant           &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;f_scvariant&amp;gt; TYPE scvariant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASSIGN ('(SAPMF05A)g_scvariant')&lt;/P&gt;&lt;P&gt;      TO &amp;lt;f_scvariant&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Oct 2006 08:55:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-17T08:55:01Z</dc:date>
    <item>
      <title>Syst variable for transaction variant?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395541#M191667</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;  How to identify current transaction code with variant. We can't use sy-tcode as it shows orginal transaction code. Sy-slset is also empty allways?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shekar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 07:16:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395541#M191667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T07:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Syst variable for transaction variant?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395542#M191668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reddy ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;y we cannt use sy-tcode ? i am getting the values for sy-tcode , and i have t.variant for that Tcode ? Just Debug that one , u will get the values.&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;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 07:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395542#M191668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T07:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Syst variable for transaction variant?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395543#M191669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   My question is we created 'ZFB50' (transaction code with variant) for original transaction 'FB50' with Transaction &lt;/P&gt;&lt;P&gt;variant 'Z_FI_FB50'. But Sy-tcode shows only 'FB50', not 'ZFB50'. SY-slset supposed to show screen variant name, but it is not showing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  How to identify this 'ZFB50' transaction with variant?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shekar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 07:35:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395543#M191669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T07:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Syst variable for transaction variant?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395544#M191670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I doubt if there is any system variable which gives you that sort of information but you can read TSTC table with the ABAP name (SY-CPROG) and get the transaction code as an alternative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 08:10:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395544#M191670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T08:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Syst variable for transaction variant?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395545#M191671</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 believe that information is missed after calling the main transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 08:13:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395545#M191671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T08:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Syst variable for transaction variant?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395546#M191672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Guys. SY-CPROG will not help, as it is same for original transaction and transaction variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module which reads current transaction variant?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shekar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 04:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395546#M191672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T04:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Syst variable for transaction variant?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395547#M191673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check table entries &amp;lt;b&amp;gt;SHDTVCIU&amp;lt;/b&amp;gt;with Tcode.&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;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 04:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395547#M191673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T04:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Syst variable for transaction variant?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395548#M191674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks for info. First of all we need to know the transaction, then we can do any thing. Table SHDTVCIU just gives information about original transaction and transaction variant. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Our transaction can be called directly or using transaction variant. We need to know "when it is called from transaction variant".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shekar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 05:14:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395548#M191674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T05:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Syst variable for transaction variant?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395549#M191675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Reddy , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the Documentation of SHD0.Its nothing but modifications of Screen fields.&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;Prabhu &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Transaction Variants and Screen Variants
Transaction variants can simplify transaction runs as they allow you to:

Preassign values to fields
Hide and change the 'ready for input' status of fields
Hide and change table control column attributes
Hide menu functions
Hide entire screens
In particular, hiding fields in connection with screen compression, and hiding screens, can result in greater clarity and simplicity.

Transaction variants are made up of a sequence of screen variants. The field values and field attributes for the individual screens found in transaction variants are stored in screen variants. Each of these variants is assigned to a specific transaction, can, however, also contain values for screens in other transactions if this is required by transaction flow. The transaction that the variant is assigned to serves as initial transaction when the variant is called.

There are both client-specific and cross-client transaction variants. All screen variants are cross-client, but may be assigned to a client-specific transaction variant.

A namespace exists for cross-client transaction variants and screen variants and both are automatically attached to the Transport Organizer. Client-specific transaction variants must be transported manually.

In principle, transaction and screen variants can be created for all dialog and reporting transactions. There are, however, certain Restrictions that apply to certain transactions, depending on their internal structure.

No transaction variants are possible with transactions already containing preset parameters (parameter transactions and variant transactions).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu &lt;/P&gt;&lt;P&gt;PS : Customer is First Points next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 05:19:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395549#M191675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T05:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Syst variable for transaction variant?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395550#M191676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Shekar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had just the same problem/question. Maybe in the meantime you figured out a solution yourself. This is what I did. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Didn't check on the transaction code but on the variant linked to it. I used it in the validation rules. Via the assign you get the variant and you can do any checks you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetz,&lt;/P&gt;&lt;P&gt;Pieter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Screen variant provided by transaction variant           &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;f_scvariant&amp;gt; TYPE scvariant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASSIGN ('(SAPMF05A)g_scvariant')&lt;/P&gt;&lt;P&gt;      TO &amp;lt;f_scvariant&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 08:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395550#M191676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T08:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Syst variable for transaction variant?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395551#M191677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pieter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thank you for that. That was very helpful answer. I used the code to get screen variant adopted from function&lt;/P&gt;&lt;P&gt;'RS_HDSYS_GET_SC_VARIANT' as we are not getting value from " ASSIGN ('(SAPMF05A)g_scvariant') TO &amp;lt;f_scvariant&amp;gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  import i_shdfv         to l_i_shdfv&lt;/P&gt;&lt;P&gt;         i_shdfvgui      to l_i_shdfvgui&lt;/P&gt;&lt;P&gt;         screen_variants to l_screen_variants&lt;/P&gt;&lt;P&gt;         i_shdguixt      to l_i_shdguixt&lt;/P&gt;&lt;P&gt;         from memory id '%_HD_TCVARIANT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Shekar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 00:25:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395551#M191677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T00:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Syst variable for transaction variant?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395552#M191678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pieter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  To get  variant transaction only, we can use the code as follws.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: tcode type  SHDTV-TCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; call 'DY_GET_CURRENT_TRANSACTION'      &lt;/P&gt;&lt;P&gt;                id    'TRANSACTION_NAME'&lt;/P&gt;&lt;P&gt;                field  tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Shekar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 00:52:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395552#M191678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T00:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Syst variable for transaction variant?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395553#M191679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked for me..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 10:59:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syst-variable-for-transaction-variant/m-p/1395553#M191679</guid>
      <dc:creator>sriram_ramesh</dc:creator>
      <dc:date>2016-02-29T10:59:55Z</dc:date>
    </item>
  </channel>
</rss>

