SAP FVW6_DISPLAY_ACTIVE_SCHEDULE Function Module for Display Active Schedule for Set
FVW6_DISPLAY_ACTIVE_SCHEDULE is a standard fvw6 display active schedule SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display Active Schedule for Set processing and below is the pattern details for this FM, 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 fvw6 display active schedule FM, simply by entering the name FVW6_DISPLAY_ACTIVE_SCHEDULE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVW6
Program Name: SAPLFVW6
Main Program: SAPLFVW6
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVW6_DISPLAY_ACTIVE_SCHEDULE 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 'FVW6_DISPLAY_ACTIVE_SCHEDULE'"Display Active Schedule for Set.
EXPORTING
* IM_SECURITY_ID = "Contract Number
* IM_SET_NAME = "Name of the Set
* IM_SET_SYSTEM_KEY = "Set system key
* IM_VALID_FROM = SY-DATUM "Effective From date
EXCEPTIONS
EXC_SET_COULD_NOT_BE_CREATED = 1 EXC_SCHEDULE_COULD_NOT_BE_DISP = 2
IMPORTING Parameters details for FVW6_DISPLAY_ACTIVE_SCHEDULE
IM_SECURITY_ID - Contract Number
Data type: VVRANLWOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_SET_NAME - Name of the Set
Data type: RDPT_SET_NAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_SET_SYSTEM_KEY - Set system key
Data type: TBSK_SYSTEM_KEYOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_VALID_FROM - Effective From date
Data type: RDPT_VALID_FROMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
EXC_SET_COULD_NOT_BE_CREATED - The set could not be created
Data type:Optional: No
Call by Reference: Yes
EXC_SCHEDULE_COULD_NOT_BE_DISP - The active schedule could not be displayed
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FVW6_DISPLAY_ACTIVE_SCHEDULE 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_im_security_id | TYPE VVRANLW, " | |||
| lv_exc_set_could_not_be_created | TYPE VVRANLW, " | |||
| lv_im_set_name | TYPE RDPT_SET_NAME, " | |||
| lv_exc_schedule_could_not_be_disp | TYPE RDPT_SET_NAME, " | |||
| lv_im_set_system_key | TYPE TBSK_SYSTEM_KEY, " | |||
| lv_im_valid_from | TYPE RDPT_VALID_FROM. " SY-DATUM |
|   CALL FUNCTION 'FVW6_DISPLAY_ACTIVE_SCHEDULE' "Display Active Schedule for Set |
| EXPORTING | ||
| IM_SECURITY_ID | = lv_im_security_id | |
| IM_SET_NAME | = lv_im_set_name | |
| IM_SET_SYSTEM_KEY | = lv_im_set_system_key | |
| IM_VALID_FROM | = lv_im_valid_from | |
| EXCEPTIONS | ||
| EXC_SET_COULD_NOT_BE_CREATED = 1 | ||
| EXC_SCHEDULE_COULD_NOT_BE_DISP = 2 | ||
| . " FVW6_DISPLAY_ACTIVE_SCHEDULE | ||
ABAP code using 7.40 inline data declarations to call FM FVW6_DISPLAY_ACTIVE_SCHEDULE
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.| DATA(ld_im_valid_from) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects