SAP Function Modules

APPOINTMENT_GRP_MOVE SAP Function module







APPOINTMENT_GRP_MOVE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name APPOINTMENT_GRP_MOVE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SSCA
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM APPOINTMENT_GRP_MOVE - APPOINTMENT GRP MOVE





CALL FUNCTION 'APPOINTMENT_GRP_MOVE' "
  EXPORTING
    appointment_pattern =       " scsgenappt
    date_from =                 " scsappt-date_from
*   time_from = SPACE           " scsappt-time_from
  IMPORTING
    error_message =             " scserror
  TABLES
    owner_created_appt =        " scsownerdl
    owner_deleted_appt =        " scsownerdl
    owner_modified_appt =       " scsownerdl
    owner_planned_appt =        " scsownerdl
    .  "  APPOINTMENT_GRP_MOVE

ABAP code example for Function Module APPOINTMENT_GRP_MOVE





The ABAP code below is a full code listing to execute function module APPOINTMENT_GRP_MOVE including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_error_message  TYPE SCSERROR ,
it_owner_created_appt  TYPE STANDARD TABLE OF SCSOWNERDL,"TABLES PARAM
wa_owner_created_appt  LIKE LINE OF it_owner_created_appt ,
it_owner_deleted_appt  TYPE STANDARD TABLE OF SCSOWNERDL,"TABLES PARAM
wa_owner_deleted_appt  LIKE LINE OF it_owner_deleted_appt ,
it_owner_modified_appt  TYPE STANDARD TABLE OF SCSOWNERDL,"TABLES PARAM
wa_owner_modified_appt  LIKE LINE OF it_owner_modified_appt ,
it_owner_planned_appt  TYPE STANDARD TABLE OF SCSOWNERDL,"TABLES PARAM
wa_owner_planned_appt  LIKE LINE OF it_owner_planned_appt .

DATA(ld_appointment_pattern) = 'Check type of data required'.

DATA(ld_date_from) = 20210129

DATA(ld_time_from) = Check type of data required

"populate fields of struture and append to itab
append wa_owner_created_appt to it_owner_created_appt.

"populate fields of struture and append to itab
append wa_owner_deleted_appt to it_owner_deleted_appt.

"populate fields of struture and append to itab
append wa_owner_modified_appt to it_owner_modified_appt.

"populate fields of struture and append to itab
append wa_owner_planned_appt to it_owner_planned_appt. . CALL FUNCTION 'APPOINTMENT_GRP_MOVE' EXPORTING appointment_pattern = ld_appointment_pattern date_from = ld_date_from * time_from = ld_time_from IMPORTING error_message = ld_error_message TABLES owner_created_appt = it_owner_created_appt owner_deleted_appt = it_owner_deleted_appt owner_modified_appt = it_owner_modified_appt owner_planned_appt = it_owner_planned_appt . " APPOINTMENT_GRP_MOVE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_error_message  TYPE SCSERROR ,
ld_appointment_pattern  TYPE SCSGENAPPT ,
it_owner_created_appt  TYPE STANDARD TABLE OF SCSOWNERDL ,
wa_owner_created_appt  LIKE LINE OF it_owner_created_appt,
ld_date_from  TYPE SCSAPPT-DATE_FROM ,
it_owner_deleted_appt  TYPE STANDARD TABLE OF SCSOWNERDL ,
wa_owner_deleted_appt  LIKE LINE OF it_owner_deleted_appt,
ld_time_from  TYPE SCSAPPT-TIME_FROM ,
it_owner_modified_appt  TYPE STANDARD TABLE OF SCSOWNERDL ,
wa_owner_modified_appt  LIKE LINE OF it_owner_modified_appt,
it_owner_planned_appt  TYPE STANDARD TABLE OF SCSOWNERDL ,
wa_owner_planned_appt  LIKE LINE OF it_owner_planned_appt.

ld_appointment_pattern = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_owner_created_appt to it_owner_created_appt.

ld_date_from = 20210129

"populate fields of struture and append to itab
append wa_owner_deleted_appt to it_owner_deleted_appt.

ld_time_from = Check type of data required

"populate fields of struture and append to itab
append wa_owner_modified_appt to it_owner_modified_appt.

"populate fields of struture and append to itab
append wa_owner_planned_appt to it_owner_planned_appt.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name APPOINTMENT_GRP_MOVE or its description.