SAP ISH_KHSTATV2004_INIT_SA5 Function Module for









ISH_KHSTATV2004_INIT_SA5 is a standard ish khstatv2004 init sa5 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 ish khstatv2004 init sa5 FM, simply by entering the name ISH_KHSTATV2004_INIT_SA5 into the relevant SAP transaction such as SE37 or SE38.

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



Function ISH_KHSTATV2004_INIT_SA5 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 'ISH_KHSTATV2004_INIT_SA5'"
EXPORTING
I_EINRI = "
I_AUSBEGDT = "
I_AUSENDDT = "
I_FATYP_BESEINRI = "

IMPORTING
E_QUARTAL = "

TABLES
IT_NORG_BES_EINRI = "
IT_FACHR_HIER_BES_EINRI = "
IT_VSTAT = "
IT_NSTAT = "
.



IMPORTING Parameters details for ISH_KHSTATV2004_INIT_SA5

I_EINRI -

Data type: TN01-EINRI
Optional: No
Call by Reference: Yes

I_AUSBEGDT -

Data type: SY-DATUM
Optional: No
Call by Reference: Yes

I_AUSENDDT -

Data type: SY-DATUM
Optional: No
Call by Reference: Yes

I_FATYP_BESEINRI -

Data type: TNKFA-FATYP
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for ISH_KHSTATV2004_INIT_SA5

E_QUARTAL -

Data type: QUARTAL
Optional: No
Call by Reference: Yes

TABLES Parameters details for ISH_KHSTATV2004_INIT_SA5

IT_NORG_BES_EINRI -

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

IT_FACHR_HIER_BES_EINRI -

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

IT_VSTAT -

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

IT_NSTAT -

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

Copy and paste ABAP code example for ISH_KHSTATV2004_INIT_SA5 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_i_einri  TYPE TN01-EINRI, "   
lv_e_quartal  TYPE QUARTAL, "   
lt_it_norg_bes_einri  TYPE STANDARD TABLE OF RNNORG, "   
lv_i_ausbegdt  TYPE SY-DATUM, "   
lt_it_fachr_hier_bes_einri  TYPE STANDARD TABLE OF RNKHSTATV2002_FACHR, "   
lt_it_vstat  TYPE STANDARD TABLE OF RNRANGEBWART, "   
lv_i_ausenddt  TYPE SY-DATUM, "   
lt_it_nstat  TYPE STANDARD TABLE OF RNRANGEBWART, "   
lv_i_fatyp_beseinri  TYPE TNKFA-FATYP. "   

  CALL FUNCTION 'ISH_KHSTATV2004_INIT_SA5'  "
    EXPORTING
         I_EINRI = lv_i_einri
         I_AUSBEGDT = lv_i_ausbegdt
         I_AUSENDDT = lv_i_ausenddt
         I_FATYP_BESEINRI = lv_i_fatyp_beseinri
    IMPORTING
         E_QUARTAL = lv_e_quartal
    TABLES
         IT_NORG_BES_EINRI = lt_it_norg_bes_einri
         IT_FACHR_HIER_BES_EINRI = lt_it_fachr_hier_bes_einri
         IT_VSTAT = lt_it_vstat
         IT_NSTAT = lt_it_nstat
. " ISH_KHSTATV2004_INIT_SA5




ABAP code using 7.40 inline data declarations to call FM ISH_KHSTATV2004_INIT_SA5

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 EINRI FROM TN01 INTO @DATA(ld_i_einri).
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_ausbegdt).
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_ausenddt).
 
 
"SELECT single FATYP FROM TNKFA INTO @DATA(ld_i_fatyp_beseinri).
 


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!