<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: need guide with function module MKT_ELEMENT_CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-guide-with-function-module-mkt-element-create/m-p/4988254#M1162055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;please have a look at OSS note 963177, you need to use the new rfc function module bapi_mkt_element_create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Hannes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jan 2014 10:42:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-01-17T10:42:25Z</dc:date>
    <item>
      <title>need guide with function module MKT_ELEMENT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-guide-with-function-module-mkt-element-create/m-p/4988251#M1162052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently i'm using FM MKT_ELEMENT_CREATE to create campaigns and campaign elements..but im unsure on how to use it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these are my codes so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  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'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am unsure what to value to put for 'im_marketingelement' in the MKT_ELEMENT_CREATE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;everytime i call BAPI_TRANSACTION_COMMIT, i get message Update Was Terminated...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
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                                                                                
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please guide me...thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2008 03:26:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-guide-with-function-module-mkt-element-create/m-p/4988251#M1162052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-30T03:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: need guide with function module MKT_ELEMENT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-guide-with-function-module-mkt-element-create/m-p/4988252#M1162053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should post this question in CRM forum to get quick answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2008 04:27:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-guide-with-function-module-mkt-element-create/m-p/4988252#M1162053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-30T04:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: need guide with function module MKT_ELEMENT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-guide-with-function-module-mkt-element-create/m-p/4988253#M1162054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok..i post another 1 in CRM-Marketing forum...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2008 05:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-guide-with-function-module-mkt-element-create/m-p/4988253#M1162054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-30T05:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: need guide with function module MKT_ELEMENT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-guide-with-function-module-mkt-element-create/m-p/4988254#M1162055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;please have a look at OSS note 963177, you need to use the new rfc function module bapi_mkt_element_create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Hannes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 10:42:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-guide-with-function-module-mkt-element-create/m-p/4988254#M1162055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-17T10:42:25Z</dc:date>
    </item>
  </channel>
</rss>

