I was working in SAP CRM (Customer Relationship Management) and creating trade promotions but got stuck in that how to complete it by using Inbound Idocs. But after sometime by using some parameters that are given below I got the solution.
Query: Using Inbounds Idocs I have to create Trade Promotions so I have used this class cl_crm_mktpl_appl_base .Now I have to add dates, products and trade spend values for the promotions.
To add the dates i have used the method DATE_ASSIGN_CREATE.
And then Sy-subrc is 0 and the update debugger has also been triggered.
But after this I found that dates are not added within this CRMD_MKTPL_DATE.
I am also not able to see the dates in the Web UI.
Will you please help me out? I have written below 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'.
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
create_failed = 1
OTHERS = 2
IF sy-subrc EQ 0.
Solution: I think you must try this parameter ( im_date_in).
But before that you must have to read on the dates DATE_ASSIGN_READ.
After that you can retrieve data, and then add the dates. After adding the dates you should use DATE_ASSIGN_CHANGE to add the values.
Find more information on Customer Relationship Management Forums