Problem: you have a date range but require timestamp range for selection.
Solution: there is a function module in SAP CRM which converts date range structure into timestamp range.
The function module is called CRM_MKTTG_DATE_TO_TIMESTAMP and it requires you to provide date range structure as a parameter. In return you will receive a table with timestamp ranges.
DATA: ls_date_range TYPE crmt_erp_srg_date, lt_timestamps TYPE crmt_mkttg_timestamp_range_tab. CALL FUNCTION 'CRM_MKTTG_DATE_TO_TIMESTAMP' EXPORTING is_date_range = ls_date_range IMPORTING et_timestamp = lt_timestamps.
DATA: ls_date_range TYPE crmt_erp_srg_date, lt_timestamps TYPE crmt_mkttg_timestamp_range_tab. CALL FUNCTION 'CRM_MKTTG_DATE_TO_TIMESTAMP' EXPORTING is_date_range = ls_date_range IMPORTING et_timestamp = lt_timestamps.
Komentowanie jest zakończone.