cancel
Showing results for 
Search instead for 
Did you mean: 

Create attributes for BP in CRM

Former Member
0 Kudos

Hi, I am creating a new BP in CRM and I need to add the marketing attributes to the BP. I am using the below BAPI's but the marketing attributes is not working depsite it returning the assignemtn created message, and despite otehr future GET bapis' correcntly pulling back the data. There seems to be some memory issue. Has anyone been able to create a BP and add marketing atributes successfully?

BAPI_BUPA_FS_CREATE_FROM_DATA2

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'

IMPORTING

return = s_return.

  • add the marketing attributes

CALL FUNCTION 'BAPI_OBJCL_CREATE'

EXPORTING

objectkeynew = i_objectkey

objecttablenew = i_object_table

classnumnew = i_class

classtypenew = i_class_type

status = '1'

IMPORTING

classif_status = s_status

TABLES

allocvaluesnum = eit_values_num

allocvalueschar = eit_values_char

allocvaluescurr = eit_values_curr

return = it_return.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'

IMPORTING

return = s_return.

Accepted Solutions (0)

Answers (1)

Answers (1)

arseni_gallardo
Active Participant
0 Kudos

Hi,

You can not use the BAPI_OBJCL* function modules directly. Try to use function module CRM_MKTBP_SAVE_BP_LIST. If it does not work try CRM_MKTBP_PUT_OB + CRM_MKTBP_SAVE_OB.

There are some posts that talk about CRM_MKTBP_SAVE_BP_LIST. Try this one

[;