<?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: Run time parameter to check BAPI call in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-parameter-to-check-bapi-call/m-p/8140615#M1620228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try checking global variable 'call_bapi'. If it is 'X', then it is a BAPI call. CALL_BAPI will be blank otherwise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Aug 2013 20:51:06 GMT</pubDate>
    <dc:creator>jasonmelo72</dc:creator>
    <dc:date>2013-08-23T20:51:06Z</dc:date>
    <item>
      <title>Run time parameter to check BAPI call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-parameter-to-check-bapi-call/m-p/8140608#M1620221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have one exit which is called during PO change. I want to distinguish whether this exit is called through BAPI or ME22N. Is there any runtime parameter which can show us that we are inside BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:I can not put check ( If sy-tcode NE ME22n) to check  BAPI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 07:56:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-parameter-to-check-bapi-call/m-p/8140608#M1620221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-29T07:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Run time parameter to check BAPI call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-parameter-to-check-bapi-call/m-p/8140609#M1620222</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 it with the value of SY-TCODE.&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;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 09:04:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-parameter-to-check-bapi-call/m-p/8140609#M1620222</guid>
      <dc:creator>eduardo_hinojosa</dc:creator>
      <dc:date>2011-08-29T09:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Run time parameter to check BAPI call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-parameter-to-check-bapi-call/m-p/8140610#M1620223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe there is NO system parameter for identifying the BAPI called behaviour, if you don't want to use sy-tcode option then use EXPORT/IMPORT option.&lt;/P&gt;&lt;P&gt;EXPORT a flag from either a custom wrapper BAPI over standard BAPI or use implicit enhancement of standard BAPI for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 09:07:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-parameter-to-check-bapi-call/m-p/8140610#M1620223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-29T09:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Run time parameter to check BAPI call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-parameter-to-check-bapi-call/m-p/8140611#M1620224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use the FM 'SYSTEM_CALLSTACK' in your exit, this would give you the origin of the call to the exit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 09:09:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-parameter-to-check-bapi-call/m-p/8140611#M1620224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-29T09:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Run time parameter to check BAPI call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-parameter-to-check-bapi-call/m-p/8140612#M1620225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on which exit you are using.  For example, in the BADI  "ME_PROCESS_PO_CUST" you can identify whether the method Implementation is executed from a BAPI call by tracking the value of instance attribute "FOR_BAPI"( value 'X' if called from BAPI and ' ' otherwise) of class CL_PO_HEADER_HANDLE_MM (Refer to parameter IM_HEADER type IF_PURCHASE_ORDER_MM of badi method PROCESS_HEADER).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 09:22:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-parameter-to-check-bapi-call/m-p/8140612#M1620225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-29T09:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Run time parameter to check BAPI call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-parameter-to-check-bapi-call/m-p/8140613#M1620226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;SY-TCODE won't work as it will return the original program name where from BAPI is call and there can be many such program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT/EXPORT is also not a option , as said that there can be many program in system calling BAPI and many new programs could be written, so not a generalize solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are updating one custom table in standard peace of code( modification to standard ) , so no parameter exist as suggested like in some BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Will check for call stack. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't any parameter where business object behind the current BAPI call is available? Any hint will be very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for your inputs and help so far.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 10:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-parameter-to-check-bapi-call/m-p/8140613#M1620226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-29T10:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Run time parameter to check BAPI call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-parameter-to-check-bapi-call/m-p/8140614#M1620227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Anurag  ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHen  you are executing me22n or me21n   or me59n  ...  there will be value in sy-tcode   . user exit are nothing but function module  only  . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  bapi is executed   using zreport  then its transaction code  will be there  i.e SE38 / transaction code if any  given  for report  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; so you can check for me22n  . if it is me22n then only execute other  code else not  .&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;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 11:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-parameter-to-check-bapi-call/m-p/8140614#M1620227</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-08-29T11:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Run time parameter to check BAPI call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-parameter-to-check-bapi-call/m-p/8140615#M1620228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try checking global variable 'call_bapi'. If it is 'X', then it is a BAPI call. CALL_BAPI will be blank otherwise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 20:51:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-parameter-to-check-bapi-call/m-p/8140615#M1620228</guid>
      <dc:creator>jasonmelo72</dc:creator>
      <dc:date>2013-08-23T20:51:06Z</dc:date>
    </item>
  </channel>
</rss>

