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: 

ADDING ROLE TO BUSINESS PARTNER

Former Member
0 Kudos

Hello All,

I created Business Partner using BAPI BAPI_BUPA_CREATE_FROM_DATA.

and then used the BAPI_TRANSACTION_COMMIT.

BP got successfully created.

But when i tried to add the Role to the BP using BAPI

BAPI_BUPA_ROLE_ADD_2 i am not able to create the role.

Do we need to do any setting prior adding the role to BP.

I have used the following parameters to the above mentioned bapi when i execute this it gives 0 return messages.

BUSINESSPARTNER 0000000128

BUSINESSPARTNERROLECATEGORY

ALL_BUSINESSPARTNERROLES

BUSINESSPARTNERROLE FLCU00

DIFFERENTIATIONTYPEVALUE

VALIDFROMDATE 05.10.2008

VALIDUNTILDATE 31.12.9999

Can any one please help me on this.

Edited by: Ravikumar P on Oct 6, 2008 1:37 PM

4 REPLIES 4

Former Member
0 Kudos

1. check the error messages from the add role function

2. check you didn't forget the COMMIT after the add role function.

0 Kudos

Thank you for the quick reply.

when i run the BAPI it returns 0 messages in the return structure

0 Kudos

How about debugging the function and see what it does?

Former Member
0 Kudos

Hi,

You need to use 'BAPI_TRANSACTION_COMMIT' after the BAPI Call.

Can you please share the Function Module Call?