SAP ISH_TEST_EXTERN_CONTRACT Function Module for









ISH_TEST_EXTERN_CONTRACT is a standard ish test extern contract 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 test extern contract FM, simply by entering the name ISH_TEST_EXTERN_CONTRACT 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_TEST_EXTERN_CONTRACT 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_TEST_EXTERN_CONTRACT'"
EXPORTING
SS_EINRI = "
SS_PATNR = "
SS_FALNR = "
SS_NCIR = "
SS_TN16 = "
SS_DAYS = "
SS_MODUS = "

IMPORTING
SS_AMOUNT = "
SS_TAKE_AMOUNT = "

TABLES
SS_SERVICES = "
SS_OPEN = "
SS_NBEW = "
SS_NLEI = "

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_TEST_EXTERN_CONTRACT

SS_EINRI -

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

SS_PATNR -

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

SS_FALNR -

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 -

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

SS_DAYS -

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

SS_MODUS -

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

EXPORTING Parameters details for ISH_TEST_EXTERN_CONTRACT

SS_AMOUNT -

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

SS_TAKE_AMOUNT -

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

TABLES Parameters details for ISH_TEST_EXTERN_CONTRACT

SS_SERVICES -

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

SS_OPEN -

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

SS_NBEW -

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

SS_NLEI -

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

EXCEPTIONS details

NO_VALUES -

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

ERROR -

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

Copy and paste ABAP code example for ISH_TEST_EXTERN_CONTRACT 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_TEST_EXTERN_CONTRACT'  "
    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_TEST_EXTERN_CONTRACT




ABAP code using 7.40 inline data declarations to call FM ISH_TEST_EXTERN_CONTRACT

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!