<?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 Transaction Variant Usage issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-variant-usage-issue/m-p/11612856#M1941141</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;&amp;nbsp;&amp;nbsp; A Transaction variant was created for LP10 Transaction to hide one field and given as ZLP10 for executing it. Authorisation for LP10 is removed for users as per business requirement and they should execute only ZLP10. It is working fine and creating TR and TO sucessfully. but issue is as per standard code it is executing below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LEAVE TO TRANSACTION SY-TCODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here sy-tcode is considered as LP10 only even though executing ZPL10. As the authorisation for LP10 is removed it is giving error as "" you are not authorised"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to over come this issue.&lt;/P&gt;&lt;P&gt;please suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Mar 2016 05:22:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-03-29T05:22:04Z</dc:date>
    <item>
      <title>Transaction Variant Usage issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-variant-usage-issue/m-p/11612856#M1941141</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;&amp;nbsp;&amp;nbsp; A Transaction variant was created for LP10 Transaction to hide one field and given as ZLP10 for executing it. Authorisation for LP10 is removed for users as per business requirement and they should execute only ZLP10. It is working fine and creating TR and TO sucessfully. but issue is as per standard code it is executing below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LEAVE TO TRANSACTION SY-TCODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here sy-tcode is considered as LP10 only even though executing ZPL10. As the authorisation for LP10 is removed it is giving error as "" you are not authorised"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to over come this issue.&lt;/P&gt;&lt;P&gt;please suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 05:22:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-variant-usage-issue/m-p/11612856#M1941141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-29T05:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Variant Usage issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-variant-usage-issue/m-p/11612857#M1941142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi lokesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Instead of creating new tcode create screen variant for the transaction in shd0 and then trasaction variant and activate in standard variant tab as shown in fig. This applies to all users and there will be no need to change the tcode also. You can also&amp;nbsp; restriction based on users&amp;nbsp; by&amp;nbsp; creating usergroup and assign to the users using tcode 'shd0'.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/917632" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 11:51:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-variant-usage-issue/m-p/11612857#M1941142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-29T11:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Variant Usage issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-variant-usage-issue/m-p/11612858#M1941143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For information (I don't give a solution as it's standard code and you shouldn't change it) : SAP usually recommends using LEAVE TO CURRENT TRANSACTION for this kind of situation, it will go to the actually started transaction (ZLP10, not LP10) ; More info in ABAP documentation and in Note 617930 - New statement LEAVE TO CURRENT TRANSACTION (and an old one: Note 1321 - Original transaction code in ABAP programs)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 21:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-variant-usage-issue/m-p/11612858#M1941143</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-03-29T21:21:04Z</dc:date>
    </item>
  </channel>
</rss>

