cancel
Showing results for 
Search instead for 
Did you mean: 

how to update the business partner title using the function module

Former Member
0 Kudos

Hi ,

I have to update the business partner title to Mr or Ms based on the gender.

If BP is male title should be updated as Mr else Ms.

Please provide some inputs on which function module to use to do it in mass update.I have to search the BP's whose title is not created and i have to change those titles to Mr or Ms.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

you can use BAPI_BUPA_CENTRAL_CHANGE FM

Former Member
0 Kudos

Hi Sowmya Prakash Mishra,

I debugged this function module .It has three titles like title_aca1, title_aca2, title_supp. I have tested the function module.But it is not working .It is not updating the title of BUT000 table.

Can you suggest any changes in my approach.Is there any thing else.

Thanks in advance

laurent_burtaire
Active Contributor
0 Kudos

Hello,

Try with BBP_USER_CHANGE_FIELDS :

- set CHANGE_FORM_OF_ADDRESS,

- put corresponding key you want (see TSAD3 table) in FORM_OF_ADDRESS_KEY.

Regards.

Laurent.

Former Member
0 Kudos

Hi laurent,

Thanks alot. But i have to give business partner as inputs.Here the function module is asking for user_name which is not possible in my requirement.

I have to input the business partners and change the corresponding title based on gender.

Former Member
0 Kudos

use the structure centraldata to fill the title..

like centraldata-title_key = '0002'. for 'Mr'.

and CENTRALDATA_X-TITLE_KEY = 'X'.

execute the FM then call bapi_transaction_commit to commit the changes

Former Member
0 Kudos

Thnx sowmya prakash....its working

Thnx everyone