SAP FI_PERIOD_DETERMINE Function Module for









FI_PERIOD_DETERMINE is a standard fi period determine 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 fi period determine FM, simply by entering the name FI_PERIOD_DETERMINE into the relevant SAP transaction such as SE37 or SE38.

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



Function FI_PERIOD_DETERMINE 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 'FI_PERIOD_DETERMINE'"
EXPORTING
I_BUDAT = "Posting Date
* I_BUKRS = ' ' "Company Code
* I_RLDNR = ' ' "
* I_PERIV = ' ' "Period version
* I_GJAHR = 0000 "Fiscal Year
* I_MONAT = 00 "Period
* X_XMO16 = ' ' "

IMPORTING
E_GJAHR = "Fiscal Year
E_MONAT = "Period
E_POPER = "

EXCEPTIONS
FISCAL_YEAR = 1 PERIOD = 2 PERIOD_VERSION = 3 POSTING_PERIOD = 4 SPECIAL_PERIOD = 5 VERSION = 6 POSTING_DATE = 7
.



IMPORTING Parameters details for FI_PERIOD_DETERMINE

I_BUDAT - Posting Date

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

I_BUKRS - Company Code

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

I_RLDNR -

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

I_PERIV - Period version

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

I_GJAHR - Fiscal Year

Data type: BKPF-GJAHR
Default: 0000
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MONAT - Period

Data type: BKPF-MONAT
Default: 00
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_XMO16 -

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

EXPORTING Parameters details for FI_PERIOD_DETERMINE

E_GJAHR - Fiscal Year

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

E_MONAT - Period

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

E_POPER -

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

EXCEPTIONS details

FISCAL_YEAR -

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

PERIOD -

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

PERIOD_VERSION -

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

POSTING_PERIOD -

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

SPECIAL_PERIOD -

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

VERSION -

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

POSTING_DATE - Posting date is initial

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

Copy and paste ABAP code example for FI_PERIOD_DETERMINE 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_e_gjahr  TYPE BKPF-GJAHR, "   
lv_i_budat  TYPE BKPF-BUDAT, "   
lv_fiscal_year  TYPE BKPF, "   
lv_period  TYPE BKPF, "   
lv_e_monat  TYPE BKPF-MONAT, "   
lv_i_bukrs  TYPE T001-BUKRS, "   SPACE
lv_e_poper  TYPE T009B-POPER, "   
lv_i_rldnr  TYPE RLDNR, "   SPACE
lv_period_version  TYPE RLDNR, "   
lv_i_periv  TYPE T001-PERIV, "   SPACE
lv_posting_period  TYPE T001, "   
lv_i_gjahr  TYPE BKPF-GJAHR, "   0000
lv_special_period  TYPE BKPF, "   
lv_i_monat  TYPE BKPF-MONAT, "   00
lv_version  TYPE BKPF, "   
lv_x_xmo16  TYPE BOOLE, "   SPACE
lv_posting_date  TYPE BOOLE. "   

  CALL FUNCTION 'FI_PERIOD_DETERMINE'  "
    EXPORTING
         I_BUDAT = lv_i_budat
         I_BUKRS = lv_i_bukrs
         I_RLDNR = lv_i_rldnr
         I_PERIV = lv_i_periv
         I_GJAHR = lv_i_gjahr
         I_MONAT = lv_i_monat
         X_XMO16 = lv_x_xmo16
    IMPORTING
         E_GJAHR = lv_e_gjahr
         E_MONAT = lv_e_monat
         E_POPER = lv_e_poper
    EXCEPTIONS
        FISCAL_YEAR = 1
        PERIOD = 2
        PERIOD_VERSION = 3
        POSTING_PERIOD = 4
        SPECIAL_PERIOD = 5
        VERSION = 6
        POSTING_DATE = 7
. " FI_PERIOD_DETERMINE




ABAP code using 7.40 inline data declarations to call FM FI_PERIOD_DETERMINE

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 GJAHR FROM BKPF INTO @DATA(ld_e_gjahr).
 
"SELECT single BUDAT FROM BKPF INTO @DATA(ld_i_budat).
 
 
 
"SELECT single MONAT FROM BKPF INTO @DATA(ld_e_monat).
 
"SELECT single BUKRS FROM T001 INTO @DATA(ld_i_bukrs).
DATA(ld_i_bukrs) = ' '.
 
"SELECT single POPER FROM T009B INTO @DATA(ld_e_poper).
 
DATA(ld_i_rldnr) = ' '.
 
 
"SELECT single PERIV FROM T001 INTO @DATA(ld_i_periv).
DATA(ld_i_periv) = ' '.
 
 
"SELECT single GJAHR FROM BKPF INTO @DATA(ld_i_gjahr).
DATA(ld_i_gjahr) = 0000.
 
 
"SELECT single MONAT FROM BKPF INTO @DATA(ld_i_monat).
DATA(ld_i_monat) = 00.
 
 
DATA(ld_x_xmo16) = ' '.
 
 


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!