SAP ISH_MD_KEY_FIGURES Function Module for









ISH_MD_KEY_FIGURES is a standard ish md key figures 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 md key figures FM, simply by entering the name ISH_MD_KEY_FIGURES into the relevant SAP transaction such as SE37 or SE38.

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



Function ISH_MD_KEY_FIGURES 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_MD_KEY_FIGURES'"
EXPORTING
I_EINRI = "
* I_DISPVAR = "
I_ORG_REF = "
* I_CASES = "
* I_AUSBEGDT = "
* I_AUSENDDT = "
* I_ORGFA = "
* I_ORGPF = "
* I_EXPECTED_DIAGS = "
* I_HEALTHY_NEWBORN = ' ' "

IMPORTING
E_KENNZAHL_FALL = "
E_KENNZAHL_PF = "
E_KENNZAHL_FA = "

EXCEPTIONS
NO_EINRI = 1 INVALID_ORG_REF = 2 NEITHER_CASES_NOR_TIME_PERIOD = 3
.



IMPORTING Parameters details for ISH_MD_KEY_FIGURES

I_EINRI -

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

I_DISPVAR -

Data type: LVC_T_FCAT
Optional: Yes
Call by Reference: Yes

I_ORG_REF -

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

I_CASES -

Data type: ISH_FALNR_TAB_TYPE
Optional: Yes
Call by Reference: Yes

I_AUSBEGDT -

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

I_AUSENDDT -

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

I_ORGFA -

Data type: RNRANGEORGFA_TT
Optional: Yes
Call by Reference: Yes

I_ORGPF -

Data type: RNRANGEORGPF_TT
Optional: Yes
Call by Reference: Yes

I_EXPECTED_DIAGS -

Data type: ISH_SORTF
Optional: Yes
Call by Reference: Yes

I_HEALTHY_NEWBORN -

Data type: ISH_ON_OFF
Default: ' '
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for ISH_MD_KEY_FIGURES

E_KENNZAHL_FALL -

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

E_KENNZAHL_PF -

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

E_KENNZAHL_FA -

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

EXCEPTIONS details

NO_EINRI -

Data type:
Optional: No
Call by Reference: Yes

INVALID_ORG_REF -

Data type:
Optional: No
Call by Reference: Yes

NEITHER_CASES_NOR_TIME_PERIOD -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISH_MD_KEY_FIGURES 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 NBEW-EINRI, "   
lv_no_einri  TYPE NBEW, "   
lv_e_kennzahl_fall  TYPE ISH_T_KENNZAHL_FALL, "   
lv_i_dispvar  TYPE LVC_T_FCAT, "   
lv_i_org_ref  TYPE CHAR1, "   
lv_e_kennzahl_pf  TYPE ISH_T_KENNZAHL_OE, "   
lv_invalid_org_ref  TYPE ISH_T_KENNZAHL_OE, "   
lv_i_cases  TYPE ISH_FALNR_TAB_TYPE, "   
lv_e_kennzahl_fa  TYPE ISH_T_KENNZAHL_OE, "   
lv_neither_cases_nor_time_period  TYPE ISH_T_KENNZAHL_OE, "   
lv_i_ausbegdt  TYPE SY-DATUM, "   
lv_i_ausenddt  TYPE SY-DATUM, "   
lv_i_orgfa  TYPE RNRANGEORGFA_TT, "   
lv_i_orgpf  TYPE RNRANGEORGPF_TT, "   
lv_i_expected_diags  TYPE ISH_SORTF, "   
lv_i_healthy_newborn  TYPE ISH_ON_OFF. "   ' '

  CALL FUNCTION 'ISH_MD_KEY_FIGURES'  "
    EXPORTING
         I_EINRI = lv_i_einri
         I_DISPVAR = lv_i_dispvar
         I_ORG_REF = lv_i_org_ref
         I_CASES = lv_i_cases
         I_AUSBEGDT = lv_i_ausbegdt
         I_AUSENDDT = lv_i_ausenddt
         I_ORGFA = lv_i_orgfa
         I_ORGPF = lv_i_orgpf
         I_EXPECTED_DIAGS = lv_i_expected_diags
         I_HEALTHY_NEWBORN = lv_i_healthy_newborn
    IMPORTING
         E_KENNZAHL_FALL = lv_e_kennzahl_fall
         E_KENNZAHL_PF = lv_e_kennzahl_pf
         E_KENNZAHL_FA = lv_e_kennzahl_fa
    EXCEPTIONS
        NO_EINRI = 1
        INVALID_ORG_REF = 2
        NEITHER_CASES_NOR_TIME_PERIOD = 3
. " ISH_MD_KEY_FIGURES




ABAP code using 7.40 inline data declarations to call FM ISH_MD_KEY_FIGURES

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 NBEW 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).
 
 
 
 
DATA(ld_i_healthy_newborn) = ' '.
 


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!