Skip to Content
0
Former Member
Apr 04, 2011 at 03:32 AM

Updating custom fields while creating business partner

1002 Views

Hello Experts,

My requirement is to update custom fields while creating business partner. We have already added Z fileds to BP creation screen through module pool now we have to create a custom BAPI which will be invoked by integration tocreate and update BP. I tried following approach first:

1. Call BAPI_BUPA_CREATE_FROM_DATA. It will return a partner number. I did 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 a structure es_but000 which has the partner guid. I did 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 didn't work. In my case we already have Z fields added in BUT000 and DIMAIOBPAR through append structure.If somebody could give me the sample code for similar requirement, this will be a great help.

Thanks,

Azra