cancel
Showing results for 
Search instead for 
Did you mean: 

Loading Account Team Members to Corporate Account in SAP Hybris marketing

nigamrishabh10
Explorer
0 Kudos
215

Hey everyone,

I want to load account team members to already existing corporate accounts in SAP marketing (On-premise) system.

For this purpose, the standard class that has been provided is CL_CUAN_CE_IC_POST_WO_SAM and the method is COMPANIES_POST. But this method contains a mandatory table parameter that needs to be passed - IT_COMP_IMP_EXT_FAFL which basically creates/overwrites the corporate account with the given ID_ORIGIN and ID. The other table parameter that is passed is IT_IC_IMP_TEAM_MEMBER , which is used to actually load the account team members into the corporate accounts.

Is there another way with which we can pass the second table parameter (IT_IC_IMP_TEAM_MEMBER) without passing the first one (IT_COMP_IMP_EXT_FAFL). Or any other way to achieve the task altogether. Any help would be appreciated.

Regards,

Rishabh

Accepted Solutions (0)

Answers (1)

Answers (1)

hakan_kose
Contributor
0 Kudos

Hi rishabhnigam ,

The class CL_CUAN_CE_IC_POST_FLAT has method COMPANIES_PATCH which allows you update company data, hence account team members. However it requires you to fill IT_COMP_IMP_EXT_FAFL import table, that is again about company data itself. So this might not work for you either.

I also looked for actions that are associated with CUAN_INTERACTION_CONTACT business object (Transaction: BOB). There's a dedicated action to set a team member as owner (SET_OWNER) but I'm afraid there isn't any action to assign team members for corporate accounts from scratch.

As far as I can see, the only option left is either to use BOPF (Business object processing framework) and create a new entry for the node IC_TEAM_MEMBER for the business object CUAN_INTERACTION_CONTACT or to use OData service API_MKT_CORPORATE_ACCOUNT and its function PATCH for Account Team Members entity. A sample payload for the function PATCH can be found in this documentation.

Kind Regards,

Hakan Köse