cancel
Showing results for 
Search instead for 
Did you mean: 

BAP for Creation of new BP Relationship

Former Member
0 Kudos

I am attempting to create a new relationship as a part of a data conversion task. I have used function modules:

BAPI_BUPR_RELATIONSHIP_CREATE

and

BUPR_RELATIONSHIP_CREATE

In both instances I specify the following:

Partner 1 = existing Sold-to BP

Partner 2 = existing employee (BP role employee)

Relationship = BUR011 (Responsible Employee)

Dates default and when using BUPR_RELATIONSHIP_CREATE

GUI is left blank

When I run the function modules there are no errors and the messages:

Warning: Not time constraints: Date specifications will be ignored

Success: Relationship was transferred.

However, when I view the Sold to BP or the Employee BP record in transaction BP (Relationships button), there are no new relationships and BUT050 has no additional entries.

I am not sure if something else needs to be done or if I have the wrong function module all together!

Can anyone assist?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Katrina,

You can use BAPI_BUPR_RELATIONSHIP_CREATE and just pass 3 values:

  • partner1

  • partner2

  • relationship category

However if successful you then need to call

BAPI_TRANSACTION_COMMIT

or it won't be saved to the database.

That is why your tests are not working.

Cheers

Andrew

Answers (1)

Answers (1)

Dhanesh_Mohan
Explorer
0 Kudos

Can you please let me know how this was resolved ? I am also facing the same issue.

Thanks,

Dhan