on 03-04-2014 2:28 AM
Hi experts,
I need to find the end/closed date of an activity (A CRM Service Request).
Is there a class/function module I can use to find this information at runtime?
I've managed to find the start date (something else I needed) using:
call function 'CRM_ORDER_READ'
exporting
it_header_guid = lt_guids
importing
et_orderadm_h = lt_orders.
Is there something else I can call to get the end date? I need to display it in my search results.
Kind regards,
Dean
DATA:
lt_requested_objects TYPE crmt_object_name_tab.
ls_requested_objects TYPE CRMT_OBJECT_NAME,
lt_appointment TYPE CRMT_APPOINTMENT_WRKT,
ls_appointment TYPE CRMT_APPOINTMENT_WRK.
ls_requested_objects = 'APPOINTMENT'.
APPEND ls_requested_objects to lt_requested_objects.
CALL FUNCTION 'CRM_ORDER_READ'
EXPORTING
it_header_guid = lt_guids
it_requested_objects = lt_requested_objects
IMPORTING
ET_APPOINTMENT = lt_appointment.
LOOP AT lt_appointment INTO ls_appointment.
* ls_appointment-date_to will give the end date.
ENDLOOP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.