<?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 BADI implementation for creating a reservation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implementation-for-creating-a-reservation/m-p/8275360#M1633281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For one of our customers we are creating a Web Dynpro application that needs to replace the default sap transaction MB21. Within the normal SAP GUI there has been added a field for the Business Area through customizing. So I'm trying to create a new implementation for MB_RES_BAPI_CREATE1 BADI which will map the field GSBER to the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I test the BADI from within the Class Builder it works as it was suposed to be working. But when I call BAPI_RESERVATION_CREATE1 the BADI isn't called. (I also filled the extensionin parameter so it should be called).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone give me a hint?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2011 10:33:00 GMT</pubDate>
    <dc:creator>geert-janklaps</dc:creator>
    <dc:date>2011-10-06T10:33:00Z</dc:date>
    <item>
      <title>BADI implementation for creating a reservation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implementation-for-creating-a-reservation/m-p/8275360#M1633281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For one of our customers we are creating a Web Dynpro application that needs to replace the default sap transaction MB21. Within the normal SAP GUI there has been added a field for the Business Area through customizing. So I'm trying to create a new implementation for MB_RES_BAPI_CREATE1 BADI which will map the field GSBER to the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I test the BADI from within the Class Builder it works as it was suposed to be working. But when I call BAPI_RESERVATION_CREATE1 the BADI isn't called. (I also filled the extensionin parameter so it should be called).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone give me a hint?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 10:33:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implementation-for-creating-a-reservation/m-p/8275360#M1633281</guid>
      <dc:creator>geert-janklaps</dc:creator>
      <dc:date>2011-10-06T10:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: BADI implementation for creating a reservation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implementation-for-creating-a-reservation/m-p/8275361#M1633282</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;The code from BAPI_RESERVATION_CREATE1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* get object reference for BAdI MB_RES_BAPI_CHANGE
  CALL METHOD cl_exithandler=&amp;gt;get_instance
    EXPORTING
      exit_name              = 'MB_RES_BAPI_CREATE1'
      null_instance_accepted = 'X'
    CHANGING
      instance               = if_mb_res_bapi_create1.

* BAdI
  IF NOT if_mb_res_bapi_create1 IS INITIAL.
    CALL METHOD if_mb_res_bapi_create1-&amp;gt;extensionin_to_resb
      EXPORTING
        extension_in = extensionin
      CHANGING
        resb         = t_resb[]
        return       = return.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the BADI 'MB_RES_BAPI_CREATE1 is called if there's an implementation active: so are you sure it's active?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 10:40:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implementation-for-creating-a-reservation/m-p/8275361#M1633282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-06T10:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: BADI implementation for creating a reservation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implementation-for-creating-a-reservation/m-p/8275362#M1633283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I'm sure that everything is active, I activated the method that needed to be implemented and the BADI. (I also tried to deactivate the BADI en reactivate it but that didn't help).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 11:18:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implementation-for-creating-a-reservation/m-p/8275362#M1633283</guid>
      <dc:creator>geert-janklaps</dc:creator>
      <dc:date>2011-10-06T11:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: BADI implementation for creating a reservation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implementation-for-creating-a-reservation/m-p/8275363#M1633284</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 to run the BAPI by SE37 in debug mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 12:22:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implementation-for-creating-a-reservation/m-p/8275363#M1633284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-06T12:22:39Z</dc:date>
    </item>
  </channel>
</rss>

