SAP ISH_TRANSFER_EXTRA_PAYMENT_22 Function Module for
ISH_TRANSFER_EXTRA_PAYMENT_22 is a standard ish transfer extra payment 22 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 transfer extra payment 22 FM, simply by entering the name ISH_TRANSFER_EXTRA_PAYMENT_22 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_TRANSFER_EXTRA_PAYMENT_22 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_TRANSFER_EXTRA_PAYMENT_22'".
EXPORTING
* ABRKZ = ' ' "Billing indicator (NFAL)
GJAHR = "Fiscal year
* PATNR = ' ' "Patient Number
* TMODE = 'E' "Processing mode for CALL TRANSACTION -->F2
* TUPDATE = 'S' "Update mode for CALL TRANSACTION -->F2
EINRICHTUNG = "Institution
* FALNR = ' ' "Case Number
* FALAR = 1 "IS-H: Case Type
* ORGFA = "IS-H: OU with Departmental Responsibility for Case
* ORGPF = "IS-H: Organizational Unit Assigned to Case
* KOSTL = "IS-H: Cost Center Assigned to Organizational Unit
* VERWE = 'D1' "IS-H: Use of Copayment Parameters
* KOSTR = "IS-H: Insurance Provider
TABLES
PROTOKOLL = "Log table
ZUZAHLUNGEN = "Table of copayments to be object of transfer posting
* IT_ADD_POS = "
EXCEPTIONS
NO_EXTRA_PAYMENT_FOUND = 1 NO_TN22R_FOUND = 2 NO_TN22G_FOUND = 3 BADI_ERROR = 4
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_TRANSFER_EXTRA_PAYMENT_22
ABRKZ - Billing indicator (NFAL)
Data type: NFAL-ABRKZDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
GJAHR - Fiscal year
Data type: BSID-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
PATNR - Patient Number
Data type: NPAT-PATNRDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TMODE - Processing mode for CALL TRANSACTION -->F2
Data type: NPDOK-XFELDDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TUPDATE - Update mode for CALL TRANSACTION -->F2
Data type:Default: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EINRICHTUNG - Institution
Data type: TN01-EINRIOptional: No
Call by Reference: No ( called with pass by value option)
FALNR - Case Number
Data type: NFAL-FALNRDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
FALAR - IS-H: Case Type
Data type: NFAL-FALARDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
ORGFA - IS-H: OU with Departmental Responsibility for Case
Data type: NBEW-ORGFAOptional: Yes
Call by Reference: No ( called with pass by value option)
ORGPF - IS-H: Organizational Unit Assigned to Case
Data type: NBEW-ORGPFOptional: Yes
Call by Reference: No ( called with pass by value option)
KOSTL - IS-H: Cost Center Assigned to Organizational Unit
Data type: NO2K-KOSTLOptional: Yes
Call by Reference: No ( called with pass by value option)
VERWE - IS-H: Use of Copayment Parameters
Data type: TN22K-VERWEDefault: 'D1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KOSTR - IS-H: Insurance Provider
Data type: KH_KOSTROptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISH_TRANSFER_EXTRA_PAYMENT_22
PROTOKOLL - Log table
Data type: RNZUZPROptional: No
Call by Reference: No ( called with pass by value option)
ZUZAHLUNGEN - Table of copayments to be object of transfer posting
Data type: BSIDOptional: No
Call by Reference: No ( called with pass by value option)
IT_ADD_POS -
Data type: BSEGOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_EXTRA_PAYMENT_FOUND - No copayment made found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_TN22R_FOUND - Copayment-specific parameters not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_TN22G_FOUND -
Data type:Optional: No
Call by Reference: Yes
BADI_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISH_TRANSFER_EXTRA_PAYMENT_22 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_abrkz | TYPE NFAL-ABRKZ, " ' ' | |||
| lt_protokoll | TYPE STANDARD TABLE OF RNZUZPR, " | |||
| lv_no_extra_payment_found | TYPE RNZUZPR, " | |||
| lv_gjahr | TYPE BSID-GJAHR, " | |||
| lv_patnr | TYPE NPAT-PATNR, " ' ' | |||
| lv_tmode | TYPE NPDOK-XFELD, " 'E' | |||
| lv_tupdate | TYPE NPDOK, " 'S' | |||
| lv_einrichtung | TYPE TN01-EINRI, " | |||
| lt_zuzahlungen | TYPE STANDARD TABLE OF BSID, " | |||
| lv_no_tn22r_found | TYPE BSID, " | |||
| lv_falnr | TYPE NFAL-FALNR, " ' ' | |||
| lt_it_add_pos | TYPE STANDARD TABLE OF BSEG, " | |||
| lv_no_tn22g_found | TYPE BSEG, " | |||
| lv_falar | TYPE NFAL-FALAR, " 1 | |||
| lv_badi_error | TYPE NFAL, " | |||
| lv_orgfa | TYPE NBEW-ORGFA, " | |||
| lv_orgpf | TYPE NBEW-ORGPF, " | |||
| lv_kostl | TYPE NO2K-KOSTL, " | |||
| lv_verwe | TYPE TN22K-VERWE, " 'D1' | |||
| lv_kostr | TYPE KH_KOSTR. " |
|   CALL FUNCTION 'ISH_TRANSFER_EXTRA_PAYMENT_22' " |
| EXPORTING | ||
| ABRKZ | = lv_abrkz | |
| GJAHR | = lv_gjahr | |
| PATNR | = lv_patnr | |
| TMODE | = lv_tmode | |
| TUPDATE | = lv_tupdate | |
| EINRICHTUNG | = lv_einrichtung | |
| FALNR | = lv_falnr | |
| FALAR | = lv_falar | |
| ORGFA | = lv_orgfa | |
| ORGPF | = lv_orgpf | |
| KOSTL | = lv_kostl | |
| VERWE | = lv_verwe | |
| KOSTR | = lv_kostr | |
| TABLES | ||
| PROTOKOLL | = lt_protokoll | |
| ZUZAHLUNGEN | = lt_zuzahlungen | |
| IT_ADD_POS | = lt_it_add_pos | |
| EXCEPTIONS | ||
| NO_EXTRA_PAYMENT_FOUND = 1 | ||
| NO_TN22R_FOUND = 2 | ||
| NO_TN22G_FOUND = 3 | ||
| BADI_ERROR = 4 | ||
| . " ISH_TRANSFER_EXTRA_PAYMENT_22 | ||
ABAP code using 7.40 inline data declarations to call FM ISH_TRANSFER_EXTRA_PAYMENT_22
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 ABRKZ FROM NFAL INTO @DATA(ld_abrkz). | ||||
| DATA(ld_abrkz) | = ' '. | |||
| "SELECT single GJAHR FROM BSID INTO @DATA(ld_gjahr). | ||||
| "SELECT single PATNR FROM NPAT INTO @DATA(ld_patnr). | ||||
| DATA(ld_patnr) | = ' '. | |||
| "SELECT single XFELD FROM NPDOK INTO @DATA(ld_tmode). | ||||
| DATA(ld_tmode) | = 'E'. | |||
| DATA(ld_tupdate) | = 'S'. | |||
| "SELECT single EINRI FROM TN01 INTO @DATA(ld_einrichtung). | ||||
| "SELECT single FALNR FROM NFAL INTO @DATA(ld_falnr). | ||||
| DATA(ld_falnr) | = ' '. | |||
| "SELECT single FALAR FROM NFAL INTO @DATA(ld_falar). | ||||
| DATA(ld_falar) | = 1. | |||
| "SELECT single ORGFA FROM NBEW INTO @DATA(ld_orgfa). | ||||
| "SELECT single ORGPF FROM NBEW INTO @DATA(ld_orgpf). | ||||
| "SELECT single KOSTL FROM NO2K INTO @DATA(ld_kostl). | ||||
| "SELECT single VERWE FROM TN22K INTO @DATA(ld_verwe). | ||||
| DATA(ld_verwe) | = 'D1'. | |||
Search for further information about these or an SAP related objects