Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Extension of BAPI Create Business Partner - BAPI_BUPA_CREATE_FROM_DATA

former_member192818
Active Participant
0 Kudos
1,085

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.

4 REPLIES 4

0 Kudos
398

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

0 Kudos
398

Sudhi,

That's very helpful. How do I find out which BADI's to implement for Create Business Partner.

Best.

Sumit.

0 Kudos
398

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

0 Kudos
398

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.