Header Ads

How to assign marketing attributes in bp(CRM-ABAP)


As mentioned above in standard implementation class CL_DEF_IM_CRM_MKTLIST_BADI for CRM_MKTLIST_BADI there is method UPDATE_PERSON. You can find how the standard sets an attribute there. It uses function module CRM_MKTLIST_FILL_ATTRIBUTES.

Other way is marketing expert tools. In tx. CRMD_MKT_TOOLS you can find an entry "Assignment of an Attribute Value to all BPs in a Target Group". It's actually CRM_MKTBP_BPS_OF_TG_ASSIGN_ATT report. There is function module CRM_MKTBP_PROCESS_BP_LIST actually called. And in turn in it CRM_MKTBP_ASSIGN_ATTRIBUT.
FM 'CRM_MKTBP_ASSIGN_ATTRIBUT_TAB' is used to initially assign the marketing attribute set and assign the initail values to the attributes, not used to update marketting attributes, so will not work consistently. Use FM 'CRM_MKTBP_UPDATE_ATTR_BP' to update only..
Use FM CRM_MKTBP_CHANGE_BP to update marketting attributes to BP.
 Also check out function moduels in function group CRM_MKTBP_DB. This contains many FM to read/assign marketing attribute set to BP.

Powered by Blogger.