SAP ISH_KHSTATV2002_SA1_MVMT_CALC Function Module for









ISH_KHSTATV2002_SA1_MVMT_CALC is a standard ish khstatv2002 sa1 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 sa1 mvmt calc FM, simply by entering the name ISH_KHSTATV2002_SA1_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_SA1_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_SA1_MVMT_CALC'"
EXPORTING
I_EINRI = "
I_AUSBEGDT = "
I_AUSENDDT = "
I_FACHR_INSGES = "

CHANGING
C_SA1 = "

TABLES
IT_BEWEGUNGEN = "
IT_FALLDATEN = "
IT_FACHR_HIERARCHIE = "
IT_AMBOP = "
.



IMPORTING Parameters details for ISH_KHSTATV2002_SA1_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

CHANGING Parameters details for ISH_KHSTATV2002_SA1_MVMT_CALC

C_SA1 -

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

TABLES Parameters details for ISH_KHSTATV2002_SA1_MVMT_CALC

IT_BEWEGUNGEN -

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

IT_FALLDATEN -

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

IT_FACHR_HIERARCHIE -

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

IT_AMBOP -

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

Copy and paste ABAP code example for ISH_KHSTATV2002_SA1_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:
lv_c_sa1  TYPE RNKHSTATV2002_SA1, "   
lv_i_einri  TYPE TN01-EINRI, "   
lt_it_bewegungen  TYPE STANDARD TABLE OF RNSBEW, "   
lv_i_ausbegdt  TYPE SY-DATUM, "   
lt_it_falldaten  TYPE STANDARD TABLE OF RNSPAT, "   
lv_i_ausenddt  TYPE SY-DATUM, "   
lt_it_fachr_hierarchie  TYPE STANDARD TABLE OF RNKHSTATV2002_FACHR, "   
lt_it_ambop  TYPE STANDARD TABLE OF RNRANGEBWART, "   
lv_i_fachr_insges  TYPE ISH_FACHR. "   

  CALL FUNCTION 'ISH_KHSTATV2002_SA1_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
    CHANGING
         C_SA1 = lv_c_sa1
    TABLES
         IT_BEWEGUNGEN = lt_it_bewegungen
         IT_FALLDATEN = lt_it_falldaten
         IT_FACHR_HIERARCHIE = lt_it_fachr_hierarchie
         IT_AMBOP = lt_it_ambop
. " ISH_KHSTATV2002_SA1_MVMT_CALC




ABAP code using 7.40 inline data declarations to call FM ISH_KHSTATV2002_SA1_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!