cancel
Showing results for 
Search instead for 
Did you mean: 

activity end date

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (0)