<?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: Check tcode inside BTE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-tcode-inside-bte/m-p/5723941#M1298650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nuno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try setting the parameter ID SPE (use syntax &lt;EM&gt;SET PARAMETER ID spe FIELD g_dzlspr&lt;/EM&gt;) in your code based on the T-Code. In the BTE use the syntax for &lt;EM&gt;GET PARAMETER ID spe FIELD g_dzlspr&lt;/EM&gt;. based on this you can get the value in the c_zlspr  changing parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the report behind the transaction F110S does not have the field dzlspr which could have been used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2009 10:19:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-27T10:19:38Z</dc:date>
    <item>
      <title>Check tcode inside BTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-tcode-inside-bte/m-p/5723940#M1298649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using BTE 00001820 to filter documents from a payment proposal being generated. Inside this function, i'm checking if the document being processed exists in a Z table previously filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't, variable c_zlspr = 'T', which allows the document to be blocked only for this proposal.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;My problem is that this BTE is called in the transaction i'm using inside my program code via call transaction (F110S), but also in tcode F110, that the user wants to continue to use besides all coding we're doing, behaving as standard allways did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, inside BTE i should check which tcode is calling the bte (F110S or F110). I allready tried using&lt;/P&gt;&lt;P&gt;IF sy-tcode = 'F110S'.&lt;/P&gt;&lt;P&gt;   &amp;lt;my validation&amp;gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesn't work. When calling transaction F110S inside my code with BDC_DATA inserted and when it arrives to the BTE, sy-tcode is not F110S (must be something else or empty, i don't have permissions to use SM50 to try and debug with infinite loop).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone suggest me a way to overcome this problem ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                          Thank you in advance to everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                     Nuno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 09:25:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-tcode-inside-bte/m-p/5723940#M1298649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T09:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Check tcode inside BTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-tcode-inside-bte/m-p/5723941#M1298650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nuno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try setting the parameter ID SPE (use syntax &lt;EM&gt;SET PARAMETER ID spe FIELD g_dzlspr&lt;/EM&gt;) in your code based on the T-Code. In the BTE use the syntax for &lt;EM&gt;GET PARAMETER ID spe FIELD g_dzlspr&lt;/EM&gt;. based on this you can get the value in the c_zlspr  changing parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the report behind the transaction F110S does not have the field dzlspr which could have been used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 10:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-tcode-inside-bte/m-p/5723941#M1298650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T10:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Check tcode inside BTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-tcode-inside-bte/m-p/5723942#M1298651</link>
      <description>&lt;P&gt;Hi Nuno,  &lt;/P&gt;&lt;P&gt;Were you able to successfully implement this BTE to create payment proposal for choice of invoices by using custom table and process via F110 and F110S?  I have a similar requirement  and my client does not want to pay all invoices that are due for payment.&lt;/P&gt;&lt;P&gt;I appreciate your response,&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Devi&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 04:53:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-tcode-inside-bte/m-p/5723942#M1298651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-04-14T04:53:15Z</dc:date>
    </item>
  </channel>
</rss>

