SAP ISH_MEDISHIELD Function Module for









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

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



Function ISH_MEDISHIELD 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_MEDISHIELD'"
EXPORTING
SS_EINRI = "Institution
SS_PATNR = "Patient number
SS_FALNR = "Case number
SS_NCIR = "
SS_TN16 = "Congtract scheme, header information
SS_DAYS = "IR validity period
SS_MODUS = "Billing modes

IMPORTING
SS_AMOUNT = "Amount for insurance relationship
SS_TAKE_AMOUNT = "Indicator: amount to be evaluated

TABLES
SS_SERVICES = "All services with gross prices
SS_OPEN = "Services not fully covered
SS_NBEW = "Movements
SS_NLEI = "Services

EXCEPTIONS
NO_VALUES = 1 ERROR = 2
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLN041_001 IS-H SG: Estimation of Medisave Claim for Surgeries

IMPORTING Parameters details for ISH_MEDISHIELD

SS_EINRI - Institution

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

SS_PATNR - Patient number

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

SS_FALNR - Case number

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

SS_NCIR -

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

SS_TN16 - Congtract scheme, header information

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

SS_DAYS - IR validity period

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

SS_MODUS - Billing modes

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

EXPORTING Parameters details for ISH_MEDISHIELD

SS_AMOUNT - Amount for insurance relationship

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

SS_TAKE_AMOUNT - Indicator: amount to be evaluated

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

TABLES Parameters details for ISH_MEDISHIELD

SS_SERVICES - All services with gross prices

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

SS_OPEN - Services not fully covered

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

SS_NBEW - Movements

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

SS_NLEI - Services

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

EXCEPTIONS details

NO_VALUES - Value determination not possible

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

ERROR - Error -> payment distribution termination

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

Copy and paste ABAP code example for ISH_MEDISHIELD 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_ss_einri  TYPE TN01-EINRI, "   
lv_no_values  TYPE TN01, "   
lv_ss_amount  TYPE NVVF-PAYAM, "   
lt_ss_services  TYPE STANDARD TABLE OF RNPP4, "   
lv_error  TYPE RNPP4, "   
lt_ss_open  TYPE STANDARD TABLE OF RNPP5, "   
lv_ss_patnr  TYPE NPAT-PATNR, "   
lv_ss_take_amount  TYPE NPDOK-XFELD, "   
lt_ss_nbew  TYPE STANDARD TABLE OF NBEW, "   
lv_ss_falnr  TYPE NFAL-FALNR, "   
lv_ss_ncir  TYPE NCIR, "   
lt_ss_nlei  TYPE STANDARD TABLE OF NLEI, "   
lv_ss_tn16  TYPE TN16, "   
lv_ss_days  TYPE RNEBILL-LOS, "   
lv_ss_modus  TYPE RNPP7. "   

  CALL FUNCTION 'ISH_MEDISHIELD'  "
    EXPORTING
         SS_EINRI = lv_ss_einri
         SS_PATNR = lv_ss_patnr
         SS_FALNR = lv_ss_falnr
         SS_NCIR = lv_ss_ncir
         SS_TN16 = lv_ss_tn16
         SS_DAYS = lv_ss_days
         SS_MODUS = lv_ss_modus
    IMPORTING
         SS_AMOUNT = lv_ss_amount
         SS_TAKE_AMOUNT = lv_ss_take_amount
    TABLES
         SS_SERVICES = lt_ss_services
         SS_OPEN = lt_ss_open
         SS_NBEW = lt_ss_nbew
         SS_NLEI = lt_ss_nlei
    EXCEPTIONS
        NO_VALUES = 1
        ERROR = 2
. " ISH_MEDISHIELD




ABAP code using 7.40 inline data declarations to call FM ISH_MEDISHIELD

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_ss_einri).
 
 
"SELECT single PAYAM FROM NVVF INTO @DATA(ld_ss_amount).
 
 
 
 
"SELECT single PATNR FROM NPAT INTO @DATA(ld_ss_patnr).
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_take_amount).
 
 
"SELECT single FALNR FROM NFAL INTO @DATA(ld_ss_falnr).
 
 
 
 
"SELECT single LOS FROM RNEBILL INTO @DATA(ld_ss_days).
 
 


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!