cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI to extend the consumer view of BP

Former Member
0 Kudos

We are using this bapi to create the general view of the BP (both person & org)

BAPI_BUPA_CREATE_FROM_DATA

If we want the program to extend this to the consumer CRM006 or other role, which BAPI or function should the program call?

Thanks,

Glenn

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Glenn,

Follow below code, this is for extending BP roles using BAPI

DATA : role LIKE bapibus1006_head-partnerrole.

DATA : i_return TYPE bapiret2 OCCURS 0 WITH HEADER LINE.

DATA : l_bpid TYPE bapibus1006_head-bpartner.

  • i_rcomm TYPE bapiret2.

role = 'CRM000'.

l_bpid = '000256'.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = l_bpid

IMPORTING

output = l_bpid.

CALL FUNCTION 'BAPI_BUPA_ROLE_ADD'

EXPORTING

businesspartner = l_bpid

businesspartnerrole = role

  • DIFFERENTIATIONTYPEVALUE =

TABLES

return = i_return.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

Hope this will help you

Siva

Former Member
0 Kudos

thanks! points awarded.

Answers (0)