<?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: Sy-TCODE CAPTURE WHILE RFC COMMUNICATION. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-tcode-capture-while-rfc-communication/m-p/10602579#M1862107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is working as SAP always works.&amp;nbsp; An alternative is to use an export import pair.&amp;nbsp; When you would have set the PID, export.&amp;nbsp; When you would have read the PID, import. You may have to export to database instead of memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Sep 2014 14:19:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-09-10T14:19:22Z</dc:date>
    <item>
      <title>Sy-TCODE CAPTURE WHILE RFC COMMUNICATION.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-tcode-capture-while-rfc-communication/m-p/10602573#M1862101</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;&lt;/P&gt;&lt;P&gt;I am not able to get desired result from function module. &lt;/P&gt;&lt;P&gt; RFC_GET_ATTRIBUTES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I am trying to get SY-TCODE from caller programe which is a web service&amp;nbsp; because all the check which are available in my BADI are based on Sy-Tcode which is not having the value at run time(Blank when called from outside). Hence I am TRING TO fetch s-tcode using this FM&amp;nbsp; RFC_GET_ATTRIBUTES but still it is failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly Suggest some solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Himanshu Sharma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 11:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-tcode-capture-while-rfc-communication/m-p/10602573#M1862101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-10T11:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sy-TCODE CAPTURE WHILE RFC COMMUNICATION.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-tcode-capture-while-rfc-communication/m-p/10602574#M1862102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to send it as a parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 12:26:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-tcode-capture-while-rfc-communication/m-p/10602574#M1862102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-10T12:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sy-TCODE CAPTURE WHILE RFC COMMUNICATION.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-tcode-capture-while-rfc-communication/m-p/10602575#M1862103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well transaction code is often undefined in background or other not transaction environment...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Why do you check sy-tcode, does the BAdI not provide other informations (like a AKTYP field) that you could use ?&lt;/LI&gt;&lt;LI&gt;Is your BAdI executed in a BAPI and in transaction, and this is the first call from outside of transactions ?&lt;/LI&gt;&lt;LI&gt;Else when implementing WS, you could pass a transaction code as a new parameter &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 12:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-tcode-capture-while-rfc-communication/m-p/10602575#M1862103</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-09-10T12:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sy-TCODE CAPTURE WHILE RFC COMMUNICATION.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-tcode-capture-while-rfc-communication/m-p/10602576#M1862104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering why this standard function module is not giving desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well it is working as Set parameter ID in starting of BAPI call and Get Parameter ID just before the BADI check. It is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me in this function module method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards:&lt;/P&gt;&lt;P&gt;Himanshu Sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 13:34:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-tcode-capture-while-rfc-communication/m-p/10602576#M1862104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-10T13:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sy-TCODE CAPTURE WHILE RFC COMMUNICATION.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-tcode-capture-while-rfc-communication/m-p/10602577#M1862105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In regard to your second point.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, BADI is being executed in BAPI environment.&lt;/P&gt;&lt;P&gt;What I have done is: I have set parameter ID before calling BAPI(RFC)&amp;nbsp; and putting Get Parameter ID at before the BADI check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Parameter ID 'VT01N' Field 'PID'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Just before Bapi is called&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_SHIPMENT_CREATE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;Get parameter ID 'LTCODE' field 'PID'.&lt;/P&gt;&lt;P&gt;use ltcode instead of sy-tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If SY-TCODE = 'VT01N ' OR LTCODE = ' '.&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;It is working in this way. But is their any Better Solution ??&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;Thanks.&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;Himanshu Sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 13:44:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-tcode-capture-while-rfc-communication/m-p/10602577#M1862105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-10T13:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sy-TCODE CAPTURE WHILE RFC COMMUNICATION.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-tcode-capture-while-rfc-communication/m-p/10602578#M1862106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No you solution works and is clean, it's okay. Another solution would have to analyze the abap call stack in the BAdI to identify the caller (FM SYSTEM_CALLSTACK) but &lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;only if&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you want the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;BADI&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;react&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the same way&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;every call&lt;/SPAN&gt; from &lt;SPAN class="hps"&gt;this&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;BAPI (so you no longuer have to code the SET PARAMETER ID before each call, and clear it after)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Raymond&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 14:02:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-tcode-capture-while-rfc-communication/m-p/10602578#M1862106</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-09-10T14:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sy-TCODE CAPTURE WHILE RFC COMMUNICATION.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-tcode-capture-while-rfc-communication/m-p/10602579#M1862107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is working as SAP always works.&amp;nbsp; An alternative is to use an export import pair.&amp;nbsp; When you would have set the PID, export.&amp;nbsp; When you would have read the PID, import. You may have to export to database instead of memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 14:19:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-tcode-capture-while-rfc-communication/m-p/10602579#M1862107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-10T14:19:22Z</dc:date>
    </item>
  </channel>
</rss>

