SAP FM_VALIDATE_PERIOD_INTERVAL Function Module for Checks whether the setup interval is correctly defined









FM_VALIDATE_PERIOD_INTERVAL is a standard fm validate period interval SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Checks whether the setup interval is correctly defined 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 fm validate period interval FM, simply by entering the name FM_VALIDATE_PERIOD_INTERVAL into the relevant SAP transaction such as SE37 or SE38.

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



Function FM_VALIDATE_PERIOD_INTERVAL 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 'FM_VALIDATE_PERIOD_INTERVAL'"Checks whether the setup interval is correctly defined
EXPORTING
I_FM_AREA = "
I_DIMENSION_TYPE = "
I_FROM_PERIOD = "
I_TO_PERIOD = "
* I_FUND = "

IMPORTING
I_TOTAL_PERIODS = "

TABLES
* R_FUND = "Structure of a Range Table for a (10) Character Field

EXCEPTIONS
INVALID_PERIOD_RANGE = 1
.



IMPORTING Parameters details for FM_VALIDATE_PERIOD_INTERVAL

I_FM_AREA -

Data type: FM01-FIKRS
Optional: No
Call by Reference: Yes

I_DIMENSION_TYPE -

Data type: FMIUR-DIMENSION_TYPE
Optional: No
Call by Reference: Yes

I_FROM_PERIOD -

Data type: FMIUR-FROM_PERIOD
Optional: No
Call by Reference: Yes

I_TO_PERIOD -

Data type: FMIUR-TO_PERIOD
Optional: No
Call by Reference: Yes

I_FUND -

Data type: FMFINCODE-FINCODE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FM_VALIDATE_PERIOD_INTERVAL

I_TOTAL_PERIODS -

Data type: T009-ANZBP
Optional: No
Call by Reference: Yes

TABLES Parameters details for FM_VALIDATE_PERIOD_INTERVAL

R_FUND - Structure of a Range Table for a (10) Character Field

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

EXCEPTIONS details

INVALID_PERIOD_RANGE -

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

Copy and paste ABAP code example for FM_VALIDATE_PERIOD_INTERVAL 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:
lt_r_fund  TYPE STANDARD TABLE OF RANGE_C24, "   
lv_i_fm_area  TYPE FM01-FIKRS, "   
lv_i_total_periods  TYPE T009-ANZBP, "   
lv_invalid_period_range  TYPE T009, "   
lv_i_dimension_type  TYPE FMIUR-DIMENSION_TYPE, "   
lv_i_from_period  TYPE FMIUR-FROM_PERIOD, "   
lv_i_to_period  TYPE FMIUR-TO_PERIOD, "   
lv_i_fund  TYPE FMFINCODE-FINCODE. "   

  CALL FUNCTION 'FM_VALIDATE_PERIOD_INTERVAL'  "Checks whether the setup interval is correctly defined
    EXPORTING
         I_FM_AREA = lv_i_fm_area
         I_DIMENSION_TYPE = lv_i_dimension_type
         I_FROM_PERIOD = lv_i_from_period
         I_TO_PERIOD = lv_i_to_period
         I_FUND = lv_i_fund
    IMPORTING
         I_TOTAL_PERIODS = lv_i_total_periods
    TABLES
         R_FUND = lt_r_fund
    EXCEPTIONS
        INVALID_PERIOD_RANGE = 1
. " FM_VALIDATE_PERIOD_INTERVAL




ABAP code using 7.40 inline data declarations to call FM FM_VALIDATE_PERIOD_INTERVAL

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 FIKRS FROM FM01 INTO @DATA(ld_i_fm_area).
 
"SELECT single ANZBP FROM T009 INTO @DATA(ld_i_total_periods).
 
 
"SELECT single DIMENSION_TYPE FROM FMIUR INTO @DATA(ld_i_dimension_type).
 
"SELECT single FROM_PERIOD FROM FMIUR INTO @DATA(ld_i_from_period).
 
"SELECT single TO_PERIOD FROM FMIUR INTO @DATA(ld_i_to_period).
 
"SELECT single FINCODE FROM FMFINCODE INTO @DATA(ld_i_fund).
 


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!