<?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: How to find sy-tcode while running a program in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-sy-tcode-while-running-a-program-in-background/m-p/5236497#M1210180</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;Would you please let us know what exactly is the requirement ....&lt;/P&gt;&lt;P&gt;because just by writing sy-tcode will also work at the background...&lt;/P&gt;&lt;P&gt;Please be more specific.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Feb 2009 04:23:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-16T04:23:59Z</dc:date>
    <item>
      <title>How to find sy-tcode while running a program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-sy-tcode-while-running-a-program-in-background/m-p/5236496#M1210179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to find sy-tcode while running a program in background&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 04:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-sy-tcode-while-running-a-program-in-background/m-p/5236496#M1210179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T04:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to find sy-tcode while running a program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-sy-tcode-while-running-a-program-in-background/m-p/5236497#M1210180</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;Would you please let us know what exactly is the requirement ....&lt;/P&gt;&lt;P&gt;because just by writing sy-tcode will also work at the background...&lt;/P&gt;&lt;P&gt;Please be more specific.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 04:23:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-sy-tcode-while-running-a-program-in-background/m-p/5236497#M1210180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T04:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to find sy-tcode while running a program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-sy-tcode-while-running-a-program-in-background/m-p/5236498#M1210181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anoop,&lt;/P&gt;&lt;P&gt;  Try using sessions method.It give you a detailed log after you finish your Processing.&lt;/P&gt;&lt;P&gt;Or else put a break-point.&lt;/P&gt;&lt;P&gt;Or try capturing the message using table &lt;STRONG&gt;bdcmsgcoll&lt;/STRONG&gt; .&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;Much Regards,&lt;/P&gt;&lt;P&gt;Amuktha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 04:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-sy-tcode-while-running-a-program-in-background/m-p/5236498#M1210181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T04:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to find sy-tcode while running a program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-sy-tcode-while-running-a-program-in-background/m-p/5236499#M1210182</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;you can dedug the code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto  SE37......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In command window type JDBG and start debugging...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there you can find sy-ucomm or sscerfields-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 04:28:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-sy-tcode-while-running-a-program-in-background/m-p/5236499#M1210182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T04:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to find sy-tcode while running a program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-sy-tcode-while-running-a-program-in-background/m-p/5236500#M1210183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running CFM3 from R3 and which will pass the material details in APO side...&lt;/P&gt;&lt;P&gt;for that in APO i have coded in a BADI and its working in Foreground.The check i had added is by using T Code..&lt;/P&gt;&lt;P&gt;But if we run CFM3 in background , sy-tcode will be blank in this case.so the check fails...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other way to do the check??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 04:43:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-sy-tcode-while-running-a-program-in-background/m-p/5236500#M1210183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T04:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to find sy-tcode while running a program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-sy-tcode-while-running-a-program-in-background/m-p/5236501#M1210184</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;As soon as you get into the transaction assign sy-tcode to a different variable and then call the badi.... in that badi use the variable which you have declared instead of using sy-tcode.....&lt;/P&gt;&lt;P&gt;Problem might be because when the badi call is made, might be the sy-tcode would have been reinitialized by SAP automatically at the background due to which it can create problems... so its always suggested to capture the system fields in the variable and then use those variable...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So as soon as you enter in the tcode assign the value using&lt;/P&gt;&lt;P&gt;tcode = sy-tcode... and later on give the check when you call the BADI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 04:48:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-sy-tcode-while-running-a-program-in-background/m-p/5236501#M1210184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T04:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to find sy-tcode while running a program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-sy-tcode-while-running-a-program-in-background/m-p/5236502#M1210185</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;Use sy-cyprog which stores the calling program id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-CYPROG = 'RIMODAC2'.&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;NOTE: sy-tcode will not contain the correct transaction code value when run in background.&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;&lt;/P&gt;&lt;P&gt;Edited by: Dev Parbutteea on Feb 16, 2009 6:07 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 05:05:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-sy-tcode-while-running-a-program-in-background/m-p/5236502#M1210185</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2009-02-16T05:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to find sy-tcode while running a program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-sy-tcode-while-running-a-program-in-background/m-p/5236503#M1210186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 15:22:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-sy-tcode-while-running-a-program-in-background/m-p/5236503#M1210186</guid>
      <dc:creator>tapomay_sanyal</dc:creator>
      <dc:date>2014-03-29T15:22:23Z</dc:date>
    </item>
  </channel>
</rss>

