SAP APPT_CREATE_INTERNAL Function Module for
APPT_CREATE_INTERNAL is a standard appt create internal SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for appt create internal FM, simply by entering the name APPT_CREATE_INTERNAL into the relevant SAP transaction such as SE37 or SE38.
Function Group: SSCE
Program Name: SAPLSSCE
Main Program: SAPLSSCE
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function APPT_CREATE_INTERNAL pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'APPT_CREATE_INTERNAL'".
EXPORTING
DATE_FROM = "
* ROOM = "Room
* VISIBILITY = "
* BODY_ACCESS_ID = "
* STATUS_TYPE = "Appointment Management: Status of an Appointment
* PRIORITY = "
* BUSY = "Appointment Management: Reservation Status of an Appointment
* APPLICATION_GUID = "
* APPOINTMENT_IS_PLANNED = "
* ACTIVATE_SUBSTITUTE = "
* SUPPRESS_MAIL = "Do Not Send Mail
DATE_TO = "
* NO_CALENDAR_AUTHORITY_CHECK = ' ' "No authorization check
* TYPE_SPECIFIC_DATA = "Additional Information
* CUSTOMER_NUMBER = ' ' "
* GROUP_APPOINTMENT = "
* DOMINANT = ' ' "All-day appointments
* APPOINTMENT_RULE = ' ' "Periodic appointments: Rule
* RULE_ID = ' ' "Rule ID
* APPL_NEIGHBOR = "
* NO_CALENDAR_DATE = ' ' "Boolean Variable
* ORGANIZER = "
TIME_FROM = "
TIME_TO = "
* TIMEZONE_FROM = ' ' "
* TIMEZONE_TO = ' ' "
* SHOW_LOCAL = ' ' "
* TYPE = "Appointment type
* DESCRIPTION = "
IMPORTING
ERROR_MESSAGE = "
TABLES
* PARTICIPANT_LIST = "Participant list
* APPOINTMENT = "
* APPOINTMENT_PATTERN = "
* APPOINTMENT_BODY = "Description
* APPOINTMENT_DATES = "
* APPOINTMENT_CONFLICT_DATES = "
IMPORTING Parameters details for APPT_CREATE_INTERNAL
DATE_FROM -
Data type: SCSAPPT-DATE_FROMOptional: No
Call by Reference: No ( called with pass by value option)
ROOM - Room
Data type: SCSAPPT-ROOMOptional: Yes
Call by Reference: No ( called with pass by value option)
VISIBILITY -
Data type: SCSAPPT-CLASS_IDOptional: Yes
Call by Reference: No ( called with pass by value option)
BODY_ACCESS_ID -
Data type: SCSAPPT-BD_ACCS_IDOptional: Yes
Call by Reference: No ( called with pass by value option)
STATUS_TYPE - Appointment Management: Status of an Appointment
Data type: SCSAPPT-STATUSOptional: Yes
Call by Reference: No ( called with pass by value option)
PRIORITY -
Data type: SCSAPPT-PRIORITYOptional: Yes
Call by Reference: No ( called with pass by value option)
BUSY - Appointment Management: Reservation Status of an Appointment
Data type: SCSAPPT-BUSYOptional: Yes
Call by Reference: No ( called with pass by value option)
APPLICATION_GUID -
Data type: SCAPPT-APPL_GUIDOptional: Yes
Call by Reference: No ( called with pass by value option)
APPOINTMENT_IS_PLANNED -
Data type: SCSDATAFLD-SC_FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
ACTIVATE_SUBSTITUTE -
Data type: SCSDATAFLD-SC_FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
SUPPRESS_MAIL - Do Not Send Mail
Data type: SCSDATAFLD-SC_FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
DATE_TO -
Data type: SCSAPPT-DATE_TOOptional: No
Call by Reference: No ( called with pass by value option)
NO_CALENDAR_AUTHORITY_CHECK - No authorization check
Data type: SCSDATAFLD-SC_FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TYPE_SPECIFIC_DATA - Additional Information
Data type: SCAPPT-EXIT_INFOOptional: Yes
Call by Reference: No ( called with pass by value option)
CUSTOMER_NUMBER -
Data type: SCAPPT-CUST_NODefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
GROUP_APPOINTMENT -
Data type: SCAPPT-GENAPPT_IDOptional: Yes
Call by Reference: No ( called with pass by value option)
DOMINANT - All-day appointments
Data type: SCAPPT-DOMINANTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
APPOINTMENT_RULE - Periodic appointments: Rule
Data type: RULESDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RULE_ID - Rule ID
Data type: SCSRULES-RULE_IDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
APPL_NEIGHBOR -
Data type: NEIGHBOROptional: Yes
Call by Reference: No ( called with pass by value option)
NO_CALENDAR_DATE - Boolean Variable
Data type: BOOLEANDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ORGANIZER -
Data type: SY-UNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
TIME_FROM -
Data type: SCSAPPT-TIME_FROMOptional: No
Call by Reference: No ( called with pass by value option)
TIME_TO -
Data type: SCSAPPT-TIME_TOOptional: No
Call by Reference: No ( called with pass by value option)
TIMEZONE_FROM -
Data type: SCSAPPT-ZONE_FROMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TIMEZONE_TO -
Data type: SCSAPPT-ZONE_TODefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHOW_LOCAL -
Data type: SCSAPPT-SHOW_LOCALDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TYPE - Appointment type
Data type: SCSAPPT-APPT_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
DESCRIPTION -
Data type: SCSAPPT-TXT_SHORTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for APPT_CREATE_INTERNAL
ERROR_MESSAGE -
Data type: SCSERROROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for APPT_CREATE_INTERNAL
PARTICIPANT_LIST - Participant list
Data type: SCSPARINCOptional: Yes
Call by Reference: No ( called with pass by value option)
APPOINTMENT -
Data type: SCSAPPTOptional: Yes
Call by Reference: No ( called with pass by value option)
APPOINTMENT_PATTERN -
Data type: SCSGENAPPTOptional: Yes
Call by Reference: No ( called with pass by value option)
APPOINTMENT_BODY - Description
Data type: SOLIOptional: Yes
Call by Reference: No ( called with pass by value option)
APPOINTMENT_DATES -
Data type: SCSDATESOptional: Yes
Call by Reference: No ( called with pass by value option)
APPOINTMENT_CONFLICT_DATES -
Data type: SCSDATESOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for APPT_CREATE_INTERNAL Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_date_from | TYPE SCSAPPT-DATE_FROM, " | |||
| lv_error_message | TYPE SCSERROR, " | |||
| lt_participant_list | TYPE STANDARD TABLE OF SCSPARINC, " | |||
| lv_room | TYPE SCSAPPT-ROOM, " | |||
| lv_visibility | TYPE SCSAPPT-CLASS_ID, " | |||
| lv_body_access_id | TYPE SCSAPPT-BD_ACCS_ID, " | |||
| lv_status_type | TYPE SCSAPPT-STATUS, " | |||
| lv_priority | TYPE SCSAPPT-PRIORITY, " | |||
| lv_busy | TYPE SCSAPPT-BUSY, " | |||
| lv_application_guid | TYPE SCAPPT-APPL_GUID, " | |||
| lv_appointment_is_planned | TYPE SCSDATAFLD-SC_FLAG, " | |||
| lv_activate_substitute | TYPE SCSDATAFLD-SC_FLAG, " | |||
| lv_suppress_mail | TYPE SCSDATAFLD-SC_FLAG, " | |||
| lv_date_to | TYPE SCSAPPT-DATE_TO, " | |||
| lt_appointment | TYPE STANDARD TABLE OF SCSAPPT, " | |||
| lv_no_calendar_authority_check | TYPE SCSDATAFLD-SC_FLAG, " SPACE | |||
| lv_type_specific_data | TYPE SCAPPT-EXIT_INFO, " | |||
| lv_customer_number | TYPE SCAPPT-CUST_NO, " SPACE | |||
| lv_group_appointment | TYPE SCAPPT-GENAPPT_ID, " | |||
| lv_dominant | TYPE SCAPPT-DOMINANT, " SPACE | |||
| lv_appointment_rule | TYPE RULES, " SPACE | |||
| lv_rule_id | TYPE SCSRULES-RULE_ID, " SPACE | |||
| lv_appl_neighbor | TYPE NEIGHBOR, " | |||
| lv_no_calendar_date | TYPE BOOLEAN, " SPACE | |||
| lv_organizer | TYPE SY-UNAME, " | |||
| lv_time_from | TYPE SCSAPPT-TIME_FROM, " | |||
| lt_appointment_pattern | TYPE STANDARD TABLE OF SCSGENAPPT, " | |||
| lv_time_to | TYPE SCSAPPT-TIME_TO, " | |||
| lt_appointment_body | TYPE STANDARD TABLE OF SOLI, " | |||
| lv_timezone_from | TYPE SCSAPPT-ZONE_FROM, " SPACE | |||
| lt_appointment_dates | TYPE STANDARD TABLE OF SCSDATES, " | |||
| lv_timezone_to | TYPE SCSAPPT-ZONE_TO, " SPACE | |||
| lt_appointment_conflict_dates | TYPE STANDARD TABLE OF SCSDATES, " | |||
| lv_show_local | TYPE SCSAPPT-SHOW_LOCAL, " SPACE | |||
| lv_type | TYPE SCSAPPT-APPT_TYPE, " | |||
| lv_description | TYPE SCSAPPT-TXT_SHORT. " |
|   CALL FUNCTION 'APPT_CREATE_INTERNAL' " |
| EXPORTING | ||
| DATE_FROM | = lv_date_from | |
| ROOM | = lv_room | |
| VISIBILITY | = lv_visibility | |
| BODY_ACCESS_ID | = lv_body_access_id | |
| STATUS_TYPE | = lv_status_type | |
| PRIORITY | = lv_priority | |
| BUSY | = lv_busy | |
| APPLICATION_GUID | = lv_application_guid | |
| APPOINTMENT_IS_PLANNED | = lv_appointment_is_planned | |
| ACTIVATE_SUBSTITUTE | = lv_activate_substitute | |
| SUPPRESS_MAIL | = lv_suppress_mail | |
| DATE_TO | = lv_date_to | |
| NO_CALENDAR_AUTHORITY_CHECK | = lv_no_calendar_authority_check | |
| TYPE_SPECIFIC_DATA | = lv_type_specific_data | |
| CUSTOMER_NUMBER | = lv_customer_number | |
| GROUP_APPOINTMENT | = lv_group_appointment | |
| DOMINANT | = lv_dominant | |
| APPOINTMENT_RULE | = lv_appointment_rule | |
| RULE_ID | = lv_rule_id | |
| APPL_NEIGHBOR | = lv_appl_neighbor | |
| NO_CALENDAR_DATE | = lv_no_calendar_date | |
| ORGANIZER | = lv_organizer | |
| TIME_FROM | = lv_time_from | |
| TIME_TO | = lv_time_to | |
| TIMEZONE_FROM | = lv_timezone_from | |
| TIMEZONE_TO | = lv_timezone_to | |
| SHOW_LOCAL | = lv_show_local | |
| TYPE | = lv_type | |
| DESCRIPTION | = lv_description | |
| IMPORTING | ||
| ERROR_MESSAGE | = lv_error_message | |
| TABLES | ||
| PARTICIPANT_LIST | = lt_participant_list | |
| APPOINTMENT | = lt_appointment | |
| APPOINTMENT_PATTERN | = lt_appointment_pattern | |
| APPOINTMENT_BODY | = lt_appointment_body | |
| APPOINTMENT_DATES | = lt_appointment_dates | |
| APPOINTMENT_CONFLICT_DATES | = lt_appointment_conflict_dates | |
| . " APPT_CREATE_INTERNAL | ||
ABAP code using 7.40 inline data declarations to call FM APPT_CREATE_INTERNAL
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single DATE_FROM FROM SCSAPPT INTO @DATA(ld_date_from). | ||||
| "SELECT single ROOM FROM SCSAPPT INTO @DATA(ld_room). | ||||
| "SELECT single CLASS_ID FROM SCSAPPT INTO @DATA(ld_visibility). | ||||
| "SELECT single BD_ACCS_ID FROM SCSAPPT INTO @DATA(ld_body_access_id). | ||||
| "SELECT single STATUS FROM SCSAPPT INTO @DATA(ld_status_type). | ||||
| "SELECT single PRIORITY FROM SCSAPPT INTO @DATA(ld_priority). | ||||
| "SELECT single BUSY FROM SCSAPPT INTO @DATA(ld_busy). | ||||
| "SELECT single APPL_GUID FROM SCAPPT INTO @DATA(ld_application_guid). | ||||
| "SELECT single SC_FLAG FROM SCSDATAFLD INTO @DATA(ld_appointment_is_planned). | ||||
| "SELECT single SC_FLAG FROM SCSDATAFLD INTO @DATA(ld_activate_substitute). | ||||
| "SELECT single SC_FLAG FROM SCSDATAFLD INTO @DATA(ld_suppress_mail). | ||||
| "SELECT single DATE_TO FROM SCSAPPT INTO @DATA(ld_date_to). | ||||
| "SELECT single SC_FLAG FROM SCSDATAFLD INTO @DATA(ld_no_calendar_authority_check). | ||||
| DATA(ld_no_calendar_authority_check) | = ' '. | |||
| "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_customer_number) | = ' '. | |||
| "SELECT single GENAPPT_ID FROM SCAPPT INTO @DATA(ld_group_appointment). | ||||
| "SELECT single DOMINANT FROM SCAPPT INTO @DATA(ld_dominant). | ||||
| DATA(ld_dominant) | = ' '. | |||
| DATA(ld_appointment_rule) | = ' '. | |||
| "SELECT single RULE_ID FROM SCSRULES INTO @DATA(ld_rule_id). | ||||
| DATA(ld_rule_id) | = ' '. | |||
| DATA(ld_no_calendar_date) | = ' '. | |||
| "SELECT single UNAME FROM SY INTO @DATA(ld_organizer). | ||||
| "SELECT single TIME_FROM FROM SCSAPPT INTO @DATA(ld_time_from). | ||||
| "SELECT single TIME_TO FROM SCSAPPT INTO @DATA(ld_time_to). | ||||
| "SELECT single ZONE_FROM FROM SCSAPPT INTO @DATA(ld_timezone_from). | ||||
| DATA(ld_timezone_from) | = ' '. | |||
| "SELECT single ZONE_TO FROM SCSAPPT INTO @DATA(ld_timezone_to). | ||||
| DATA(ld_timezone_to) | = ' '. | |||
| "SELECT single SHOW_LOCAL FROM SCSAPPT INTO @DATA(ld_show_local). | ||||
| DATA(ld_show_local) | = ' '. | |||
| "SELECT single APPT_TYPE FROM SCSAPPT INTO @DATA(ld_type). | ||||
| "SELECT single TXT_SHORT FROM SCSAPPT INTO @DATA(ld_description). | ||||
Search for further information about these or an SAP related objects