SAP ISH_EXTRA_REPAYMENT Function Module for









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

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



Function ISH_EXTRA_REPAYMENT 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_EXTRA_REPAYMENT'"
EXPORTING
AUFNAHME = "Admission Date
* TMODE = 'E' "
* TUPDATE = 'S' "
REPAYMENT_AMOUNT = "Repayment amount
CURRENCY = "
* GESCHAEFTSBEREICH = ' ' "Business Area
EXTRA_PAY_PROCEDURE = "
* S_TN01 = "Company Code Data
* BELEGART = "
BELEGDATUM = "
BUCHUNGSKREIS = "Company Code
PAT_DEBITOR = "Customer
EINRICHTUNG = "Institution
ENTLASSUNG = "Discharge Date
FALLNUMMER = "Case Number
KOSTENTRAEGER = "
PATIENTENNUMMER = "Patient Number

IMPORTING
BELEG = "

TABLES
* T_RETURN = "

EXCEPTIONS
MISSING_DATA = 1 NO_CONFIGURATION_FOUND = 2 NO_RFDEB_FOUND = 3 NO_TN22R_FOUND = 4 INTERNAL_ERROR = 5
.




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_SAPLN019_001 IS-H: Determine Note to Payee for Copayment
EXIT_SAPLN019_003 IS-H: Check Whether Insurance Relationship can be Canceled

IMPORTING Parameters details for ISH_EXTRA_REPAYMENT

AUFNAHME - Admission Date

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

TMODE -

Data type:
Default: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TUPDATE -

Data type:
Default: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)

REPAYMENT_AMOUNT - Repayment amount

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

CURRENCY -

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

GESCHAEFTSBEREICH - Business Area

Data type: TN01-GSBER
Default: ' '
Optional: Yes
Call by Reference: Yes

EXTRA_PAY_PROCEDURE -

Data type: NKTR-VERZZ
Optional: No
Call by Reference: Yes

S_TN01 - Company Code Data

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

BELEGART -

Data type: BKPF-BLART
Optional: Yes
Call by Reference: Yes

BELEGDATUM -

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

BUCHUNGSKREIS - Company Code

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

PAT_DEBITOR - Customer

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

EINRICHTUNG - Institution

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

ENTLASSUNG - Discharge Date

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

FALLNUMMER - Case Number

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

KOSTENTRAEGER -

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

PATIENTENNUMMER - Patient Number

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

EXPORTING Parameters details for ISH_EXTRA_REPAYMENT

BELEG -

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

TABLES Parameters details for ISH_EXTRA_REPAYMENT

T_RETURN -

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

EXCEPTIONS details

MISSING_DATA -

Data type:
Optional: No
Call by Reference: Yes

NO_CONFIGURATION_FOUND -

Data type:
Optional: No
Call by Reference: Yes

NO_RFDEB_FOUND -

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

NO_TN22R_FOUND -

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

INTERNAL_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISH_EXTRA_REPAYMENT 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_beleg  TYPE BKPF-BELNR, "   
lv_aufnahme  TYPE NBEW-BWIDT, "   
lt_t_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_missing_data  TYPE BAPIRET2, "   
lv_tmode  TYPE BAPIRET2, "   'E'
lv_tupdate  TYPE BAPIRET2, "   'S'
lv_repayment_amount  TYPE BSEG-WRBTR, "   
lv_currency  TYPE BKPF-WAERS, "   
lv_geschaeftsbereich  TYPE TN01-GSBER, "   ' '
lv_extra_pay_procedure  TYPE NKTR-VERZZ, "   
lv_s_tn01  TYPE TN01, "   
lv_belegart  TYPE BKPF-BLART, "   
lv_belegdatum  TYPE BKPF-BLDAT, "   
lv_no_configuration_found  TYPE BKPF, "   
lv_buchungskreis  TYPE BKPF-BUKRS, "   
lv_no_rfdeb_found  TYPE BKPF, "   
lv_pat_debitor  TYPE BSID-KUNNR, "   
lv_no_tn22r_found  TYPE BSID, "   
lv_einrichtung  TYPE TN22P-EINRI, "   
lv_internal_error  TYPE TN22P, "   
lv_entlassung  TYPE NBEW-BWIDT, "   
lv_fallnummer  TYPE NFAL-FALNR, "   
lv_kostentraeger  TYPE BKPF-XBLNR, "   
lv_patientennummer  TYPE NPAT-PATNR. "   

  CALL FUNCTION 'ISH_EXTRA_REPAYMENT'  "
    EXPORTING
         AUFNAHME = lv_aufnahme
         TMODE = lv_tmode
         TUPDATE = lv_tupdate
         REPAYMENT_AMOUNT = lv_repayment_amount
         CURRENCY = lv_currency
         GESCHAEFTSBEREICH = lv_geschaeftsbereich
         EXTRA_PAY_PROCEDURE = lv_extra_pay_procedure
         S_TN01 = lv_s_tn01
         BELEGART = lv_belegart
         BELEGDATUM = lv_belegdatum
         BUCHUNGSKREIS = lv_buchungskreis
         PAT_DEBITOR = lv_pat_debitor
         EINRICHTUNG = lv_einrichtung
         ENTLASSUNG = lv_entlassung
         FALLNUMMER = lv_fallnummer
         KOSTENTRAEGER = lv_kostentraeger
         PATIENTENNUMMER = lv_patientennummer
    IMPORTING
         BELEG = lv_beleg
    TABLES
         T_RETURN = lt_t_return
    EXCEPTIONS
        MISSING_DATA = 1
        NO_CONFIGURATION_FOUND = 2
        NO_RFDEB_FOUND = 3
        NO_TN22R_FOUND = 4
        INTERNAL_ERROR = 5
. " ISH_EXTRA_REPAYMENT




ABAP code using 7.40 inline data declarations to call FM ISH_EXTRA_REPAYMENT

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 BELNR FROM BKPF INTO @DATA(ld_beleg).
 
"SELECT single BWIDT FROM NBEW INTO @DATA(ld_aufnahme).
 
 
 
DATA(ld_tmode) = 'E'.
 
DATA(ld_tupdate) = 'S'.
 
"SELECT single WRBTR FROM BSEG INTO @DATA(ld_repayment_amount).
 
"SELECT single WAERS FROM BKPF INTO @DATA(ld_currency).
 
"SELECT single GSBER FROM TN01 INTO @DATA(ld_geschaeftsbereich).
DATA(ld_geschaeftsbereich) = ' '.
 
"SELECT single VERZZ FROM NKTR INTO @DATA(ld_extra_pay_procedure).
 
 
"SELECT single BLART FROM BKPF INTO @DATA(ld_belegart).
 
"SELECT single BLDAT FROM BKPF INTO @DATA(ld_belegdatum).
 
 
"SELECT single BUKRS FROM BKPF INTO @DATA(ld_buchungskreis).
 
 
"SELECT single KUNNR FROM BSID INTO @DATA(ld_pat_debitor).
 
 
"SELECT single EINRI FROM TN22P INTO @DATA(ld_einrichtung).
 
 
"SELECT single BWIDT FROM NBEW INTO @DATA(ld_entlassung).
 
"SELECT single FALNR FROM NFAL INTO @DATA(ld_fallnummer).
 
"SELECT single XBLNR FROM BKPF INTO @DATA(ld_kostentraeger).
 
"SELECT single PATNR FROM NPAT INTO @DATA(ld_patientennummer).
 


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!