2007 Mar 14 9:47 PM
Hello,
I have used the EEWB (Easy Enhancement Work Bench) and added an additional field to the Business Partner object. After going through the wizard I see that the field has been added to the table in an extension structure. In addition to this there are a number of tasks that have been created in the EEWB.
I would now like to extend the bapi BAPI_BUPA_CREATE_FROM_DATA to handle this as well.
My understanding is that I have to implement a couple of BADI's which where I would have to pass the data back and forth using structure of type BAPIPAREX using the names ExtensionIn and ExtensionOut.
Do I create a new BADI's to do this. Or, should I reuse some of what was created in the EEWB. Any help regarding this would be appreciated.
Best Wishes.
Sumit.
2007 Mar 14 9:58 PM
Hi,
You cannot create new BADIs or user exits and you will have to use the BADIs that are delivered by SAP. You have to just create an implementation of the BADI which means that you are adding code to the SAP Delivered interfaces.
You will have to use the BADIs that get called once the BAPI is called and then update the new fields in the table.
Hope this helps,
Sudhi
2007 Mar 14 10:49 PM
Sudhi,
That's very helpful. How do I find out which BADI's to implement for Create Business Partner.
Best.
Sumit.
2007 Mar 14 10:59 PM
I guess you could use the BADI "PARTNER_UPDATE". To find by urself go to TCode SE18 and take the F4 help on the BADI Name and in the selection give the package BUPA and it will list all the BADIs available for that package and then choose the suitable one.
Hope this helps,
Sudhi
2007 Mar 15 12:44 AM
Sudhi,
I have since found the "PARTNER_UPDATE" BADI.
I have also created a new implementation.
When I open the implementation there are two method to be implemented. When I view the details of which I get the code
method IF_EX_PARTNER_UPDATE~CHANGE_BEFORE_UPDATE.
endmethod.
method IF_EX_PARTNER_UPDATE~CHANGE_BEFORE_OUTBOUND.
endmethod.
There are no input or output parameters defined for both these methods.
What should I do here to add the parameters ExtensionIn and ExtensionOut. Any help on this would be appreciated.
Best.
Sumit.