SAP ISH_KHSTATV2002_SA5_MVMT_CALC Function Module for









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

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



Function ISH_KHSTATV2002_SA5_MVMT_CALC 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_KHSTATV2002_SA5_MVMT_CALC'"
EXPORTING
I_EINRI = "
I_AUSBEGDT = "
I_AUSENDDT = "
I_FACHR_INSGES = "
IT_QUARTAL = "

TABLES
IT_SA5 = "
IT_BEWEGUNGEN = "
IT_FALLDATEN = "
IT_FACHR_HIERARCHIE = "
IT_VSTAT = "
IT_NSTAT = "
.



IMPORTING Parameters details for ISH_KHSTATV2002_SA5_MVMT_CALC

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_FACHR_INSGES -

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

IT_QUARTAL -

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

TABLES Parameters details for ISH_KHSTATV2002_SA5_MVMT_CALC

IT_SA5 -

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

IT_BEWEGUNGEN -

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

IT_FALLDATEN -

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

IT_FACHR_HIERARCHIE -

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

IT_VSTAT -

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

IT_NSTAT -

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

Copy and paste ABAP code example for ISH_KHSTATV2002_SA5_MVMT_CALC 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_it_sa5  TYPE STANDARD TABLE OF RNKHSTATV2002_SA5, "   
lv_i_einri  TYPE TN01-EINRI, "   
lv_i_ausbegdt  TYPE SY-DATUM, "   
lt_it_bewegungen  TYPE STANDARD TABLE OF RNSBEW, "   
lv_i_ausenddt  TYPE SY-DATUM, "   
lt_it_falldaten  TYPE STANDARD TABLE OF RNSPAT, "   
lv_i_fachr_insges  TYPE ISH_FACHR, "   
lt_it_fachr_hierarchie  TYPE STANDARD TABLE OF RNKHSTATV2002_FACHR, "   
lt_it_vstat  TYPE STANDARD TABLE OF RNRANGEBWART, "   
lv_it_quartal  TYPE QUARTAL, "   
lt_it_nstat  TYPE STANDARD TABLE OF RNRANGEBWART. "   

  CALL FUNCTION 'ISH_KHSTATV2002_SA5_MVMT_CALC'  "
    EXPORTING
         I_EINRI = lv_i_einri
         I_AUSBEGDT = lv_i_ausbegdt
         I_AUSENDDT = lv_i_ausenddt
         I_FACHR_INSGES = lv_i_fachr_insges
         IT_QUARTAL = lv_it_quartal
    TABLES
         IT_SA5 = lt_it_sa5
         IT_BEWEGUNGEN = lt_it_bewegungen
         IT_FALLDATEN = lt_it_falldaten
         IT_FACHR_HIERARCHIE = lt_it_fachr_hierarchie
         IT_VSTAT = lt_it_vstat
         IT_NSTAT = lt_it_nstat
. " ISH_KHSTATV2002_SA5_MVMT_CALC




ABAP code using 7.40 inline data declarations to call FM ISH_KHSTATV2002_SA5_MVMT_CALC

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).
 
 
 
 
 
 
 


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!