SAP Function Modules

APPT_INTERACTIVE_CREATE SAP Function module - Process with Dialog: Create Appointment







APPT_INTERACTIVE_CREATE 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 APPT_INTERACTIVE_CREATE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SSCE
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM APPT_INTERACTIVE_CREATE - APPT INTERACTIVE CREATE





CALL FUNCTION 'APPT_INTERACTIVE_CREATE' "Process with Dialog: Create Appointment
  EXPORTING
    date_from =                 " scappt-date_from
    date_to =                   " scappt-date_to
*   zone_from =                 " scsappt-zone_from
    time_from =                 " scappt-time_from
    time_to =                   " scappt-time_to
*   type =                      " scappt-appt_type  Appointment type
*   description =               " scappt-txt_short
*   room =                      " scappt-room   Room
*   visibility = '1'            " scappt-class_id
*   priority = '9'              " scsappt-priority
*   body_access_id = SPACE      " scappt-bd_accs_id
*   is_dominant = SPACE         " flag          All-day event
*   type_specific_data =        " scappt-exit_info
*   customer_number = SPACE     " scappt-cust_no
    authority =                 " scsaut3
*   authorization_check = 'X'   " flag
*   factory_calendar = SPACE    " scal-fcalid
*   holiday_calendar = SPACE    " scal-hcalid
*   start_mode = ' '            " scsdatafld-sc_flag
  IMPORTING
    action =                    " sy-xcode      OK Code
  TABLES
    participant_list =          " scsparinc     Participant list
    appointment =               " scsappt       Appointment Description
    .  "  APPT_INTERACTIVE_CREATE

ABAP code example for Function Module APPT_INTERACTIVE_CREATE





The ABAP code below is a full code listing to execute function module APPT_INTERACTIVE_CREATE 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_action  TYPE SY-XCODE ,
it_participant_list  TYPE STANDARD TABLE OF SCSPARINC,"TABLES PARAM
wa_participant_list  LIKE LINE OF it_participant_list ,
it_appointment  TYPE STANDARD TABLE OF SCSAPPT,"TABLES PARAM
wa_appointment  LIKE LINE OF it_appointment .


SELECT single DATE_FROM
FROM SCAPPT
INTO @DATA(ld_date_from).


SELECT single DATE_TO
FROM SCAPPT
INTO @DATA(ld_date_to).


DATA(ld_zone_from) = some text here

SELECT single TIME_FROM
FROM SCAPPT
INTO @DATA(ld_time_from).


SELECT single TIME_TO
FROM SCAPPT
INTO @DATA(ld_time_to).


SELECT single APPT_TYPE
FROM SCAPPT
INTO @DATA(ld_type).


SELECT single TXT_SHORT
FROM SCAPPT
INTO @DATA(ld_description).


SELECT single ROOM
FROM SCAPPT
INTO @DATA(ld_room).


SELECT single CLASS_ID
FROM SCAPPT
INTO @DATA(ld_visibility).


DATA(ld_priority) = Check type of data required

SELECT single BD_ACCS_ID
FROM SCAPPT
INTO @DATA(ld_body_access_id).

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

SELECT single EXIT_INFO
FROM SCAPPT
INTO @DATA(ld_type_specific_data).


SELECT single CUST_NO
FROM SCAPPT
INTO @DATA(ld_customer_number).

DATA(ld_authority) = 'Check type of data required'.
DATA(ld_authorization_check) = 'Check type of data required'.

DATA(ld_factory_calendar) = some text here

DATA(ld_holiday_calendar) = some text here

DATA(ld_start_mode) = some text here

"populate fields of struture and append to itab
append wa_participant_list to it_participant_list.

"populate fields of struture and append to itab
append wa_appointment to it_appointment. . CALL FUNCTION 'APPT_INTERACTIVE_CREATE' EXPORTING date_from = ld_date_from date_to = ld_date_to * zone_from = ld_zone_from time_from = ld_time_from time_to = ld_time_to * type = ld_type * description = ld_description * room = ld_room * visibility = ld_visibility * priority = ld_priority * body_access_id = ld_body_access_id * is_dominant = ld_is_dominant * type_specific_data = ld_type_specific_data * customer_number = ld_customer_number authority = ld_authority * authorization_check = ld_authorization_check * factory_calendar = ld_factory_calendar * holiday_calendar = ld_holiday_calendar * start_mode = ld_start_mode IMPORTING action = ld_action TABLES participant_list = it_participant_list appointment = it_appointment . " APPT_INTERACTIVE_CREATE
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_action  TYPE SY-XCODE ,
ld_date_from  TYPE SCAPPT-DATE_FROM ,
it_participant_list  TYPE STANDARD TABLE OF SCSPARINC ,
wa_participant_list  LIKE LINE OF it_participant_list,
ld_date_to  TYPE SCAPPT-DATE_TO ,
it_appointment  TYPE STANDARD TABLE OF SCSAPPT ,
wa_appointment  LIKE LINE OF it_appointment,
ld_zone_from  TYPE SCSAPPT-ZONE_FROM ,
ld_time_from  TYPE SCAPPT-TIME_FROM ,
ld_time_to  TYPE SCAPPT-TIME_TO ,
ld_type  TYPE SCAPPT-APPT_TYPE ,
ld_description  TYPE SCAPPT-TXT_SHORT ,
ld_room  TYPE SCAPPT-ROOM ,
ld_visibility  TYPE SCAPPT-CLASS_ID ,
ld_priority  TYPE SCSAPPT-PRIORITY ,
ld_body_access_id  TYPE SCAPPT-BD_ACCS_ID ,
ld_is_dominant  TYPE FLAG ,
ld_type_specific_data  TYPE SCAPPT-EXIT_INFO ,
ld_customer_number  TYPE SCAPPT-CUST_NO ,
ld_authority  TYPE SCSAUT3 ,
ld_authorization_check  TYPE FLAG ,
ld_factory_calendar  TYPE SCAL-FCALID ,
ld_holiday_calendar  TYPE SCAL-HCALID ,
ld_start_mode  TYPE SCSDATAFLD-SC_FLAG .


SELECT single DATE_FROM
FROM SCAPPT
INTO ld_date_from.


"populate fields of struture and append to itab
append wa_participant_list to it_participant_list.

SELECT single DATE_TO
FROM SCAPPT
INTO ld_date_to.


"populate fields of struture and append to itab
append wa_appointment to it_appointment.

ld_zone_from = some text here

SELECT single TIME_FROM
FROM SCAPPT
INTO ld_time_from.


SELECT single TIME_TO
FROM SCAPPT
INTO ld_time_to.


SELECT single APPT_TYPE
FROM SCAPPT
INTO ld_type.


SELECT single TXT_SHORT
FROM SCAPPT
INTO ld_description.


SELECT single ROOM
FROM SCAPPT
INTO ld_room.


SELECT single CLASS_ID
FROM SCAPPT
INTO ld_visibility.


ld_priority = Check type of data required

SELECT single BD_ACCS_ID
FROM SCAPPT
INTO ld_body_access_id.

ld_is_dominant = 'Check type of data required'.

SELECT single EXIT_INFO
FROM SCAPPT
INTO ld_type_specific_data.


SELECT single CUST_NO
FROM SCAPPT
INTO ld_customer_number.

ld_authority = 'Check type of data required'.
ld_authorization_check = 'Check type of data required'.

ld_factory_calendar = some text here

ld_holiday_calendar = some text here

ld_start_mode = some text here

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 APPT_INTERACTIVE_CREATE or its description.