cancel
Showing results for 
Search instead for 
Did you mean: 

Extension to Bapi

Former Member
0 Kudos

There is a bapi BAPI_BUPA_CREATE_FROM_DATA for creation of business partners. I need to extend this bapi by adding few custom fields.

What is the method to follow inorder to extend this bapi and please give me the procedure so that it helps me...

Thanks,

Vinod

Accepted Solutions (1)

Accepted Solutions (1)

former_member927251
Active Contributor
0 Kudos

Hi Vinod,

You can use EEWB to add custom fields to the Business Partner. You need not enhance the bapi BAPI_BUPA_CREATE_FROM_DATA.

EEWB : You will need to create a project there and assign an package. And then decide whether customization or workbench.

Just refer the link below to add custom fields to BP through EEWB :

http://help.sap.com/saphelp_crm50/helpdata/en/20/a4ffee7e0fcc4ebb7e5466d3903d38/frameset.htm

After adding the fields through EEWB, just create the Business Partner using the bapi BAPI_BUPA_CREATE_FROM_DATA.

After creating the business partner call the function module BUPA_CENTRAL_CI_CHANGE to populate the custom fields added through the EEWB transaction.

<b>Reward points if it helps.</b>

Former Member
0 Kudos

Iam already having ZZ fields in the table but000. I have to modify bapi inorder to populate ZZ fields and needs to create business partner.

When i use EEWB, it is asking me to add new fields and i don know where these fields will be created.

Can you please update on this...

Message was edited by: Vinod N

former_member927251
Active Contributor
0 Kudos

Hi Vinod,

These fields will be created in BUT000 only.

<b>Reward points if it helps.</b>

Former Member
0 Kudos

The FM BUPA_CENTRAL_CI_CHANGE needs import parameter PARTNR_GUID instead of PARTNER_ID. PARTNR_GUID is generated once Partner is created.

I have PARTNER_ID but how to obtain PARTNR_GUID to use BUPA_CENTRAL_CI_CHANGE.

Thanks,

Vinod

former_member927251
Active Contributor
0 Kudos

Follow the following steps :

1. Call BAPI_BUPA_CREATE_FROM_DATA. It will return you a partner number. Do not commit here.

2. Call BUP_MEMORY_BUT000_GET to get the partner_guid from the buffer memory. Pass the partner number to this function module. It will return you a structure es_but000 which has the partner guid. Do not commit anything.

3. Populate all the custom fields to be passed to the function module BUPA_CENTRAL_CI_CHANGE. Pass the partner guid in the is_bus000_eew-partnr_guid.

4. Call BAPI_TRANSACTION_COMMIT to commit the transaction.

This will solve your problem.

<b>Reward points if it helps.</b>

Former Member
0 Kudos

Thanks Amit. This solved my problem and created BP successfully. Full rewards to you.

Thanks,

Vinod

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello !

I'm reading this forum as I'm finding the same problem. Please, could you suggest me if there is a standard f.m. to process custom tables, added by EEW ?

Function BUPA_CENTRAL_CI_CHANGE is useful only in case BUT000 has been extended and not when you create additional tables.

Thank you very much.

Elena

Former Member
0 Kudos

Dear Amit Mishra :

If I add other fields,then function BUPA_CENTRAL_CI_CHANGE is then not

suitable ag. so my question is where to find the suitable function, as how u find

BUPA_CENTRAL_CI_CHANGE for Void.

Thanks in advance!

Jeo.