‎2008 Dec 30 3:26 AM
Hi experts,
currently i'm using FM MKT_ELEMENT_CREATE to create campaigns and campaign elements..but im unsure on how to use it...
these are my codes so far:
gw_crm_mktpl_mktelement-external_id = 'C-0000000000000000003000'.
gw_crm_mktpl_mktelement-object_class = 'CP'. "Campaign ...table CRM_MKTPL_OCLAST
gw_crm_mktpl_mktelement-object_type = 'CPG'. "Campaign ...table CRM_MKTPL_OBJTYP
"The linkings of the 2 things above can be found in table CRM_MKTPL_OBJCL
gw_crm_mktpl_mktelement-text1 = 'Indesit 30 days Mailer'.
gw_crm_mktpl_mktelement-langu = 'E'. "English ...table T002
gw_crm_mktpl_mktelement-camp_type = 'ZAQ0'. "30 day ...table CRMC_MKTPL_CTYPT
gw_crm_mktpl_mktelement-objective = 'Z001'. "Customer acquisition ...table CRMC_MKTPL_OBJTT
gw_crm_mktpl_mktelement-tactics = 'Z002'. "Marketing Contacts ...table CRMC_MKTPL_TATT
"The linkings of the 3 things above can be found in table CRMC_MKTPL_COT
gw_crm_mktpl_mktelement-responsible = 'SIEWLEA'.
gw_crm_mktpl_mktelement-mkt_org = 'UK'.
CALL FUNCTION 'MKT_ELEMENT_CREATE'
EXPORTING
im_marketingelement = 'C-0000000000000000003000' "or need to put 'M-000000016'(parent id)?
im_attributes = gw_crm_mktpl_mktelement
* IM_BELOW =
* IM_LEFT_TO =
TABLES
* IT_TEXTS =
* IT_SETTYPE_VALUES =
return = gt_bapireturn1
.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
i am unsure what to value to put for 'im_marketingelement' in the MKT_ELEMENT_CREATE...
everytime i call BAPI_TRANSACTION_COMMIT, i get message Update Was Terminated...
Update was terminated
System ID.... CRD
Client....... 100
User..... SIEWLEA
Transaction.. SEU_INT
Update key... 4954B7D7746106AEE10000000A20801E
Generated.... 30.12.2008, 03:22:56
Completed.... 30.12.2008, 03:22:57
Error Info... 00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
please guide me...thanks...
‎2008 Dec 30 4:27 AM
Hi,
I think you should post this question in CRM forum to get quick answer.
‎2008 Dec 30 5:55 AM
‎2014 Jan 17 10:42 AM
Hello Guys,
please have a look at OSS note 963177, you need to use the new rfc function module bapi_mkt_element_create.
Kind regards
Hannes