SAP SCHEDULE_PRESENTATION_PREPARE Function Module for









SCHEDULE_PRESENTATION_PREPARE is a standard schedule presentation prepare 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 schedule presentation prepare FM, simply by entering the name SCHEDULE_PRESENTATION_PREPARE into the relevant SAP transaction such as SE37 or SE38.

Function Group: SSC3
Program Name: SAPLSSC3
Main Program: SAPLSSC3
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SCHEDULE_PRESENTATION_PREPARE 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 'SCHEDULE_PRESENTATION_PREPARE'"
EXPORTING
* OWNER = SY-UNAME "
* FIRST_SCHEDULE = 'X' "
* DISPLAY_ONLY = ' ' "
* DATE = SY-DATUM "
* VIEW = ' ' "
* USER_SELECTION = ' ' "

IMPORTING
ACTUAL_DATE = "
HOLIDAY_CALENDAR = "
FACTORY_CALENDAR = "
IS_CANCELLED = "
LAYOUT_MODE = "

TABLES
ATTRIBUTE_LIST = "
.



IMPORTING Parameters details for SCHEDULE_PRESENTATION_PREPARE

OWNER -

Data type: SCAPPT-OWNER
Default: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

FIRST_SCHEDULE -

Data type: SCSDATAFLD-SC_FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

DISPLAY_ONLY -

Data type: SCSDATAFLD-SC_FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DATE -

Data type: SY-DATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

VIEW -

Data type: SCSDATAFLD-SC_VIEW
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

USER_SELECTION -

Data type: SCSDATAFLD-SC_FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SCHEDULE_PRESENTATION_PREPARE

ACTUAL_DATE -

Data type: SCA2-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

HOLIDAY_CALENDAR -

Data type: SCA2-HOCID
Optional: No
Call by Reference: No ( called with pass by value option)

FACTORY_CALENDAR -

Data type: SCA2-FACID
Optional: No
Call by Reference: No ( called with pass by value option)

IS_CANCELLED -

Data type: SCSDATAFLD-SC_FLAG
Optional: No
Call by Reference: No ( called with pass by value option)

LAYOUT_MODE -

Data type: SCA2-LAYOUT
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for SCHEDULE_PRESENTATION_PREPARE

ATTRIBUTE_LIST -

Data type: IATTRLIST
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SCHEDULE_PRESENTATION_PREPARE 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_owner  TYPE SCAPPT-OWNER, "   SY-UNAME
lv_actual_date  TYPE SCA2-DATUM, "   
lt_attribute_list  TYPE STANDARD TABLE OF IATTRLIST, "   
lv_first_schedule  TYPE SCSDATAFLD-SC_FLAG, "   'X'
lv_holiday_calendar  TYPE SCA2-HOCID, "   
lv_display_only  TYPE SCSDATAFLD-SC_FLAG, "   SPACE
lv_factory_calendar  TYPE SCA2-FACID, "   
lv_date  TYPE SY-DATUM, "   SY-DATUM
lv_is_cancelled  TYPE SCSDATAFLD-SC_FLAG, "   
lv_view  TYPE SCSDATAFLD-SC_VIEW, "   SPACE
lv_layout_mode  TYPE SCA2-LAYOUT, "   
lv_user_selection  TYPE SCSDATAFLD-SC_FLAG. "   SPACE

  CALL FUNCTION 'SCHEDULE_PRESENTATION_PREPARE'  "
    EXPORTING
         OWNER = lv_owner
         FIRST_SCHEDULE = lv_first_schedule
         DISPLAY_ONLY = lv_display_only
         DATE = lv_date
         VIEW = lv_view
         USER_SELECTION = lv_user_selection
    IMPORTING
         ACTUAL_DATE = lv_actual_date
         HOLIDAY_CALENDAR = lv_holiday_calendar
         FACTORY_CALENDAR = lv_factory_calendar
         IS_CANCELLED = lv_is_cancelled
         LAYOUT_MODE = lv_layout_mode
    TABLES
         ATTRIBUTE_LIST = lt_attribute_list
. " SCHEDULE_PRESENTATION_PREPARE




ABAP code using 7.40 inline data declarations to call FM SCHEDULE_PRESENTATION_PREPARE

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 OWNER FROM SCAPPT INTO @DATA(ld_owner).
DATA(ld_owner) = SY-UNAME.
 
"SELECT single DATUM FROM SCA2 INTO @DATA(ld_actual_date).
 
 
"SELECT single SC_FLAG FROM SCSDATAFLD INTO @DATA(ld_first_schedule).
DATA(ld_first_schedule) = 'X'.
 
"SELECT single HOCID FROM SCA2 INTO @DATA(ld_holiday_calendar).
 
"SELECT single SC_FLAG FROM SCSDATAFLD INTO @DATA(ld_display_only).
DATA(ld_display_only) = ' '.
 
"SELECT single FACID FROM SCA2 INTO @DATA(ld_factory_calendar).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_date).
DATA(ld_date) = SY-DATUM.
 
"SELECT single SC_FLAG FROM SCSDATAFLD INTO @DATA(ld_is_cancelled).
 
"SELECT single SC_VIEW FROM SCSDATAFLD INTO @DATA(ld_view).
DATA(ld_view) = ' '.
 
"SELECT single LAYOUT FROM SCA2 INTO @DATA(ld_layout_mode).
 
"SELECT single SC_FLAG FROM SCSDATAFLD INTO @DATA(ld_user_selection).
DATA(ld_user_selection) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!