on 10-17-2008 8:55 AM
Hi Experts,
Iu2019m looking for the tables where I can find the relationship between campaign and the targetgroups which used in the campaign.
I tried the following way:
CGPL_PROJECT(guid) -> CRMD_MKTPL_TGGRP(project_guid) -> CRMD_MKTPL_TGGRP(targetgrp_guid) -> CRMD_MKTTG_SET_H(prof_guid)
But this way only work for a few campaigns. Not for all. So I think it is the wrong way.
Can anybody help me?
Thanks a lot
Best regards
Hi,
you can use the bol entities to get all targetgroups of a campaign.
Get the right entity of type "Campaign" (ie. with search object "CampaignSearch") and get the relation "CPGSegmentRel".
Now you have a collection of entities of type "CPGSegment" where you can get the GUID of the assigned targetgroup.
Regards,
Claudia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think the tables you mentioned should be right.
For campaigns there are all assignments to targetgroups in these tables.
But if you only want to get the targetgroups why do you read table CRMD_MKTTG_SET_H? It's containing only general data for profile sets.
Here you only get a result if the connected segment of the campaign is a complete profile set, not a target group.
If you want to get the header data of a target group use table CRMD_MKTTG_TG_H (CRMD_MKTTG_PF_H for profile details).
Campaigns can contain any of these three kinds of segments (target groups, profiles, profile sets).
Hope, this helps.
Regards,
Claudia
Hello Elpis,
I think there are some methods which give the basic operations between Campaign and Target Groups ..
Here are they :
Class : CL_CRM_MKTPL_APPL_BASE
Method :
TGGR_ASSIGN_CHANGE
TGGR_ASSIGN_CREATE
TGGR_ASSIGN_DELETE
TGGR_ASSIGN_READ
Since you can use the BOL objects in your case.. you can go ahead and use these methods by instantiating the class.
Hope this helps.
Regards,
VInay
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.