cancel
Showing results for 
Search instead for 
Did you mean: 

Bapi to assign sales rep prtnr func to employee??

Former Member
0 Kudos

Hi All,

I have written a program which copies the relationships in sap ECC6 between sales mgrs and accounts into CRM. I have used the bapi BAPI_BUPR_RELATIONSHIP_CREATE with relationship category BUR012 to create the employee responsible relationship on the account.

But I also need to maintain the sales representative (12) partner function against the employee. This is visible when you use transaction BP, enter an account number, hit the relationships button and double click on the has employee responsible line. The pop up window displays such information as sales org, distrib channgel etc.

Can anyone suggest how to do this?

Many thanks,

Liz.

Accepted Solutions (1)

Accepted Solutions (1)

BGarcia
Active Contributor
0 Kudos

Hi Liz,

After you create the relationship with BAPI_BUPR_RELATIONSHIP_CREATE, try to use bapi BAPI_BUPA_PFCT_ADDFUNCTION to add the partner function, with the desired sales area.

Kind regards,

Garcia

Former Member
0 Kudos

Hi Garcia,

Many thanks for the response, it seems to be what I'm looking for. However (and I hope you don't think i'm being cheeky in asking but...), when I ran the Bapi, I am getting an error saying the sales area does not exist but I know for certain that the sales org, distribution channel and division are correct.

Has this happened to you before? can you shed any light?

thanks in advance,

Liz.

BGarcia
Active Contributor
0 Kudos

Hi Liz,

It didn't happen to me, but try to get more clues about that issue by executing function modules CRM_BUPA_SALES_AREA_GET_ALL to get all valid sales area or CRM_BUPA_SALES_AREA_CHECK to check your sales area. Check for example if you are filling the SALES_ORG value correctly.

Write back if you still need more help

Kind regards,

Garcia

Edited by: Bruno Garcia on Aug 27, 2011 9:35 AM

Former Member
0 Kudos

Hi Bruno,

I have been off work for a few weeks so only getting around to replying now. Thanks a mill for the additional advice, the analyst had supplied me with an invalid test data!!

Thanks again,

Liz.

Answers (0)