cancel
Showing results for 
Search instead for 
Did you mean: 

Business Partner to Service Agent?

Former Member
0 Kudos

Hello,

there is the possibility to check if a Party (business object Party) is related to a Service Agent?

I tried using the cross BO association "BusinessPartnerRelationship" in the "BusinessPartner" association:

Party.BusinessPartner.BusinessPartnerRelationship

but this association always returns an empty collection!

Also I tried querying directly the BusinessPartnerRelationship business Object but unsuccessfully.

There is another way?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

There is a query in BusinessPartner BO which you can use for this.

BusinessPartner.QueryByRole which takes in two parameters as Input: InternalID and RoleCode.

InternalID is the BusinessPartnerInternalID

RoleCode's data type is BusinessPartnerRoleCode. Check in repository for probable values for this datatype and use it in this query. Service Agent is one of the role.

Former Member
0 Kudos

Hi Srivatsava,

thank you for the reply.

I checked in the repository explorer but I can see only the queryByIdentification in the Business Partner BO

Former Member
0 Kudos

From your screenshot, I believe that you are working on a C4C tenant if I am not wrong.

I am afraid that I will have to find some other way in C4C to get the same job done. My solution is only for ByDesign tenants.

I will see if I can get any approach and will let you know the same.

Former Member
0 Kudos

Many thanks!

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Alessandro,

I've just looked into my C4C tenant and queried the BO Identity for a Technical User and a Service Agent generated one.

The difference in the result was:

  • The Technical User has no entry in the element BusinessPartnerUUID
  • The Service Agent generated user has an entry in the element BusinessPartnerUUID

Maybe this works for you too if you can transfer somehow from Party to Identity.

This simple for the current user.

HTH,

   Horst

Former Member
0 Kudos

Hi Horst, thank you.

I already know this because when you create a service agent a business partner is created automatically. The problem is that i have to check if a party (that can be an account, a business partner, and so on) is also related to a service agent entry.

Former Member
0 Kudos

I just don't see a way

Former Member
0 Kudos

Just asked to SAP development team and they said that the role attibute of the party is not released in the PSM so I asked to release it

Former Member
0 Kudos

Very good. Thank you.

Answers (0)