<?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: Which command called my BADI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-command-called-my-badi/m-p/8281104#M1633846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Chandra.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, maybe I wasn't clear enough because you got it wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I mean is if I'm on ME22N, which is a t-code that allows you to CHANGE a PO,&lt;/P&gt;&lt;P&gt;I would like to know if the user hit the Save button because he/she want to keep the changes they made, &lt;/P&gt;&lt;P&gt;or pressed the Cancel/Back button to discard all changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you go to ME22N make any change and hit the "Back" button (Green arrow) you'll be asked if you want&lt;/P&gt;&lt;P&gt;to save your changes or not.&lt;/P&gt;&lt;P&gt;The funny thing is that the BADI that process the PO is called &lt;STRONG&gt;BEFORE&lt;/STRONG&gt; this message, so your code is processing all the changes that the user maybe want to discard...&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;Ayal Telem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Oct 2011 12:45:01 GMT</pubDate>
    <dc:creator>yes_sapteam</dc:creator>
    <dc:date>2011-10-11T12:45:01Z</dc:date>
    <item>
      <title>Which command called my BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-command-called-my-badi/m-p/8281102#M1633844</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;&lt;/P&gt;&lt;P&gt;Is there a (normal) way to tell, in a BADI, which user-action triggered the call?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically, I'm using BADI "ME_PROCESS_PO_CUST" for ME2*N and would like to know if the user hit Save or Cancel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BADIs are called in both cases, no indication in the Global parameters, and no Method returns it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx,&lt;/P&gt;&lt;P&gt;Ayal Telem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 11:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-command-called-my-badi/m-p/8281102#M1633844</guid>
      <dc:creator>yes_sapteam</dc:creator>
      <dc:date>2011-10-11T11:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Which command called my BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-command-called-my-badi/m-p/8281103#M1633845</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;BAdI has method IF_EX_ME_PROCESS_PO_CUST~OPEN. This method has importing parameter IM_TRTYP of type TRTYP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you can use this value to determine if the transaction is called for create/edit/delete etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can store this value in system variable as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-tvar1 = IM_TRTYP &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use it in different method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 12:27:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-command-called-my-badi/m-p/8281103#M1633845</guid>
      <dc:creator>ChandrashekharMahajan</dc:creator>
      <dc:date>2011-10-11T12:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Which command called my BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-command-called-my-badi/m-p/8281104#M1633846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Chandra.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, maybe I wasn't clear enough because you got it wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I mean is if I'm on ME22N, which is a t-code that allows you to CHANGE a PO,&lt;/P&gt;&lt;P&gt;I would like to know if the user hit the Save button because he/she want to keep the changes they made, &lt;/P&gt;&lt;P&gt;or pressed the Cancel/Back button to discard all changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you go to ME22N make any change and hit the "Back" button (Green arrow) you'll be asked if you want&lt;/P&gt;&lt;P&gt;to save your changes or not.&lt;/P&gt;&lt;P&gt;The funny thing is that the BADI that process the PO is called &lt;STRONG&gt;BEFORE&lt;/STRONG&gt; this message, so your code is processing all the changes that the user maybe want to discard...&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;Ayal Telem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 12:45:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-command-called-my-badi/m-p/8281104#M1633846</guid>
      <dc:creator>yes_sapteam</dc:creator>
      <dc:date>2011-10-11T12:45:01Z</dc:date>
    </item>
  </channel>
</rss>

