Skip to Content
0
Former Member
Dec 28, 2011 at 01:31 PM

Create attributes for BP in CRM

25 Views

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.