Skip to Content
0
Former Member
Jul 17, 2009 at 08:47 AM

Function module to populate Marketting attributes

30 Views

Hi,

I have a requirement where I need to populate the marketting attributes.

I am using the function module CRM_MKTBP_CREATE_LIST_BPS_OB.This is the code that I am using

x_alloclist-partner_guid = v_raw_bp_guid.

x_alloclist-profile_template_id = p_attset.

x_alloclist-allocvalues = i_allocvalues.

APPEND x_alloclist TO i_alloclist.

CALL FUNCTION ' CRM_MKTBP_CREATE_LIST_BPS_OB'

EXPORTING

ix_alloclist = i_alloclist

TABLES

et_return = i_return

EXCEPTIONS

communication_failure = 1 MESSAGE rfc_err

system_failure = 2 MESSAGE rfc_err.

IF sy-subrc NE 0.

***Exception raised.

  • RFC connection is down.

v_prob_cls = c_imp.

v_subobj = c_rfc.

MESSAGE e015(ysg) WITH rfc_err INTO g_dummy.

PERFORM write_log.

MESSAGE e019(ysg) WITH v_rfcdest.

ENDIF.

I am passing the attribute set in the parameter p_attset. I was expecting only the attributes which belong to this attribute set would get updated. But I found that it is updating the other MAs in i_alloclist which belong to some other attribute set.

Is this a standard behaviour of the function module? Or am I missing some parameters?

Can you please provide some solution to this?

Thanks,

Samrat.