<?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: using zbadi definition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-zbadi-definition/m-p/5074798#M1178826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ganesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, your approach cannot work because the standard system does not have any clue about what it should do with your Z-BAdI definition. The standard program objects only refer to standard BAdIs. Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the system encounters the statement&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;GET BADI lo_badi.  " lo_badi   is of TYPE REF TO IF_EX_BADI_SD_SALES&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it checks whether there are active implementation of the underlying BAdI (here: BADI_SD_SALES).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the variable lo_badi were of TYPE REF TO zif_ex_badi_sd_sales then I would look up active implementation of ZBADI_SD_SALES. However, this would imply that you enhance / modify the standard report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that the additional IMPORTING parameters are &lt;STRONG&gt;GLOBAL&lt;/STRONG&gt; variables of the main program you can use the following approach:&lt;/P&gt;&lt;P&gt;[SAP User Exits and the People Who Love Them|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8]&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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 31 Jan 2009 21:20:46 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2009-01-31T21:20:46Z</dc:date>
    <item>
      <title>using zbadi definition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-zbadi-definition/m-p/5074797#M1178825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;my requirement is to trigger ZBADI using a standard transaction va01 for which i have done &lt;/P&gt;&lt;P&gt;like below. &lt;/P&gt;&lt;P&gt;i have created a Zbadi defintion like: zbadi_sd_sales and the interface as ZIF_EX_BADI_SD_SALES &lt;/P&gt;&lt;P&gt;in the enhancement spot BADI_SD_SALES.Now in SE19 i have defined the implemetation say as &lt;/P&gt;&lt;P&gt;zbadi_sd_sales_imp,but it is not getting trigered when i execute va01. &lt;/P&gt;&lt;P&gt;when i use the standard BADI definition BADI_SD_SALES it is working. iam using ZBADI definition &lt;/P&gt;&lt;P&gt;because i need to add an import parameter to standard interface. &lt;/P&gt;&lt;P&gt;is my approach correct? iam new to BADI's &lt;/P&gt;&lt;P&gt;please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2009 03:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-zbadi-definition/m-p/5074797#M1178825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-31T03:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: using zbadi definition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-zbadi-definition/m-p/5074798#M1178826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ganesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, your approach cannot work because the standard system does not have any clue about what it should do with your Z-BAdI definition. The standard program objects only refer to standard BAdIs. Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the system encounters the statement&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;GET BADI lo_badi.  " lo_badi   is of TYPE REF TO IF_EX_BADI_SD_SALES&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it checks whether there are active implementation of the underlying BAdI (here: BADI_SD_SALES).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the variable lo_badi were of TYPE REF TO zif_ex_badi_sd_sales then I would look up active implementation of ZBADI_SD_SALES. However, this would imply that you enhance / modify the standard report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that the additional IMPORTING parameters are &lt;STRONG&gt;GLOBAL&lt;/STRONG&gt; variables of the main program you can use the following approach:&lt;/P&gt;&lt;P&gt;[SAP User Exits and the People Who Love Them|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8]&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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2009 21:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-zbadi-definition/m-p/5074798#M1178826</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-01-31T21:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: using zbadi definition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-zbadi-definition/m-p/5074799#M1178827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Uwe Schieferstein ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes my requirement is to enhance the standard program of va01 using BADI's. &lt;/P&gt;&lt;P&gt;my interface  ZIF_EX_BADI_SD_SALES is copy of  standadr interface IF_EX_BADI_SD_SALES &lt;/P&gt;&lt;P&gt;with extra one importing parameter added, which is IT_XTHEAD like TAB_THEADVB.&lt;/P&gt;&lt;P&gt;Now in my zbadi_sd_sales_imp implementation i have to implement my coding &lt;/P&gt;&lt;P&gt;in the method SAVE_DOCUMENT_PREPARE and this is the only place i have to implement logic.&lt;/P&gt;&lt;P&gt;Now if i execute VA01 the ZBADI implemented by me should get triggered. &lt;/P&gt;&lt;P&gt;can explain how to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 07:57:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-zbadi-definition/m-p/5074799#M1178827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T07:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: using zbadi definition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-zbadi-definition/m-p/5074800#M1178828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ganesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since your requirement is to process some extra logic during SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of creating a ZBADI definition and implimentation, you can directly write your requisite piece of code in User Exit Include &lt;STRONG&gt;MV45AFZZ&lt;/STRONG&gt; FORM &lt;STRONG&gt;USEREXIT_SAVE_DOCUMENT_PREPARE&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might solve your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhisek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 09:29:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-zbadi-definition/m-p/5074800#M1178828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-02T09:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: using zbadi definition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-zbadi-definition/m-p/5074801#M1178829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Uwe Schieferstein ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the document, though my requirement differs it has given me an alternate way of doing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 05:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-zbadi-definition/m-p/5074801#M1178829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T05:02:29Z</dc:date>
    </item>
  </channel>
</rss>

