<?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: handle TCode in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-tcode-in-background/m-p/7332246#M1538409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the exact requirement ? system variable SY-CPROG may be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Oct 2010 07:50:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-26T07:50:02Z</dc:date>
    <item>
      <title>handle TCode in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-tcode-in-background/m-p/7332245#M1538408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my program , there is some logic based on the tcode running..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i write the logic based on tcode... &lt;/P&gt;&lt;P&gt;  if sy-tcode = 'XXX'.&lt;/P&gt;&lt;P&gt;    write : / 'XXX'.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    write : / ABC.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is working fine in foreground.. but not able to handle the sy-tcode in background..&lt;/P&gt;&lt;P&gt;please guide me on this..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 07:45:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-tcode-in-background/m-p/7332245#M1538408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-26T07:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: handle TCode in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-tcode-in-background/m-p/7332246#M1538409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the exact requirement ? system variable SY-CPROG may be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 07:50:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-tcode-in-background/m-p/7332246#M1538409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-26T07:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: handle TCode in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-tcode-in-background/m-p/7332247#M1538410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exact Requirement :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; For one Executable program we are creating 4 trnasaction codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user run the trnasaction code and enter the selection screen parameters and run the program in background ( F9 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the transaction code some text needs to be displayed in the log...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i write the code..&lt;/P&gt;&lt;P&gt; example... &lt;/P&gt;&lt;P&gt;  if sy-tcode = 'TCODE_1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   write : 'First Tcode'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif sy-tcode = 'TCODE_2'.&lt;/P&gt;&lt;P&gt;   write : 'Second Tcode'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if is working fine in foreground.. but not in background..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please guide me on this....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 09:19:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-tcode-in-background/m-p/7332247#M1538410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-26T09:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: handle TCode in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-tcode-in-background/m-p/7332248#M1538411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;help required..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 10:01:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-tcode-in-background/m-p/7332248#M1538411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-26T10:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: handle TCode in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-tcode-in-background/m-p/7332249#M1538412</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 the following:&lt;/P&gt;&lt;P&gt;Create 4 variables,say W_VAR1,W_VAR2,W_VAR3,W_VAR4.&lt;/P&gt;&lt;P&gt;Under SELECTION-SCREEN OUTPUT event set the flags based on your T.Code. Change your conditions from SY-TCODE to W_VAR1,W_VAR2,W_VAR3,W_VAR4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Faheem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 10:08:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-tcode-in-background/m-p/7332249#M1538412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-26T10:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: handle TCode in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-tcode-in-background/m-p/7332250#M1538413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll not be able to know the tcode when executing in background. This is a SAP standard behaviour. Check the below threads for more information&lt;/P&gt;&lt;P&gt;[url] &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="971896"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[url] &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6695664"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ranganath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 10:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-tcode-in-background/m-p/7332250#M1538413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-26T10:31:50Z</dc:date>
    </item>
  </channel>
</rss>

