SAP FVW7_COUNT_SCHEDULES Function Module for Count Number of Schedules for Multiple Sets
FVW7_COUNT_SCHEDULES is a standard fvw7 count schedules SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Count Number of Schedules for Multiple Sets 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 fvw7 count schedules FM, simply by entering the name FVW7_COUNT_SCHEDULES into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVW7
Program Name: SAPLFVW7
Main Program: SAPLFVW7
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVW7_COUNT_SCHEDULES 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 'FVW7_COUNT_SCHEDULES'"Count Number of Schedules for Multiple Sets.
EXPORTING
IM_RANGE_SECURITY_ID = "Range table for security IDs
IM_RANGE_SET_NAME = "Range Table for Set Name
IM_RANGE_SET_TYPE = "Range Table for Set Type
IMPORTING
EX_SCHEDULE_COUNT = "Number of schedules for a set
IMPORTING Parameters details for FVW7_COUNT_SCHEDULES
IM_RANGE_SECURITY_ID - Range table for security IDs
Data type: TRPM_IT_RAN_RANLOptional: No
Call by Reference: No ( called with pass by value option)
IM_RANGE_SET_NAME - Range Table for Set Name
Data type: RDPT_IT_RAN_SET_NAMEOptional: No
Call by Reference: No ( called with pass by value option)
IM_RANGE_SET_TYPE - Range Table for Set Type
Data type: RDPT_IT_RAN_SET_TYPESOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FVW7_COUNT_SCHEDULES
EX_SCHEDULE_COUNT - Number of schedules for a set
Data type: RDPT_NUM_OF_SCHEDULESOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FVW7_COUNT_SCHEDULES 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_ex_schedule_count | TYPE RDPT_NUM_OF_SCHEDULES, " | |||
| lv_im_range_security_id | TYPE TRPM_IT_RAN_RANL, " | |||
| lv_im_range_set_name | TYPE RDPT_IT_RAN_SET_NAME, " | |||
| lv_im_range_set_type | TYPE RDPT_IT_RAN_SET_TYPES. " |
|   CALL FUNCTION 'FVW7_COUNT_SCHEDULES' "Count Number of Schedules for Multiple Sets |
| EXPORTING | ||
| IM_RANGE_SECURITY_ID | = lv_im_range_security_id | |
| IM_RANGE_SET_NAME | = lv_im_range_set_name | |
| IM_RANGE_SET_TYPE | = lv_im_range_set_type | |
| IMPORTING | ||
| EX_SCHEDULE_COUNT | = lv_ex_schedule_count | |
| . " FVW7_COUNT_SCHEDULES | ||
ABAP code using 7.40 inline data declarations to call FM FVW7_COUNT_SCHEDULES
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.Search for further information about these or an SAP related objects