Quantcast
Channel: SCN : Popular Discussions - SAP CRM: Marketing
Viewing all articles
Browse latest Browse all 2001

SAP CRM: Trade Promotion

$
0
0

Hello everyone,

 

I have to create Trade Promotions using Inbound Idocs. I am using the class cl_crm_mktpl_appl_base to create the promotions.

I have to add dates, products and trade spend values to the promotions.

 

I have been using the method DATE_ASSIGN_CREATE to add the dates. The sy-subrc is 0 and the update debugger has also been triggered. But the dates are not added in the date CRMD_MKTPL_DATE. I also cannot see the dates in the webui. Below is a sample of my codes.

 

ls_date-project_guid = lv_guid.

ls_date-date_id = '0'.

ls_date-start_date = '20140401220000'.

ls_date-end_date   = '20141231220000'.

ls_date-object_class = 'TP'.

 

lo_data->date_assign_create(

  EXPORTING

    im_mktelement_guid = lv_guid    " Project Planning: 16-Character GUID for Projects and Activts

*    im_date_in         = ls_date     " Additional date ranges internal format

*    im_date_ex         =     " Additional date ranges external format

    im_date            = ls_date    " Additional date ranges related to a marketing project

  EXCEPTIONS

    create_failed      = 1

    OTHERS             = 2

).

IF sy-subrc EQ 0.

  lo_data->save_and_commit( ).

ENDIF.

 

Can anyone help me on this issue?

 

Thanks


Viewing all articles
Browse latest Browse all 2001

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>