SAP ISH_302_COPAYMENT_INDICATOR Function Module for
ISH_302_COPAYMENT_INDICATOR is a standard ish 302 copayment indicator 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 302 copayment indicator FM, simply by entering the name ISH_302_COPAYMENT_INDICATOR into the relevant SAP transaction such as SE37 or SE38.
Function Group: NC16G
Program Name: SAPLNC16G
Main Program: SAPLNC16G
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISH_302_COPAYMENT_INDICATOR 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_302_COPAYMENT_INDICATOR'".
EXPORTING
I_EINRI = "IS-H: Institution
I_FALNR = "IS-H: Case Number
I_LFDNR = "IS-H: Sequence Number of Insurance Relationship
* I_COPAYIND = "
IMPORTING
E_COPAYSIGN = "
EXCEPTIONS
NO_NCIR = 1
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_SAPLNC16G_001 IS-H §302 User Exit: Determine II Number of Insurance Provider Head Office
EXIT_SAPLNC16G_004 IS-H §302 User Exit Write Order File (Outbound)
IMPORTING Parameters details for ISH_302_COPAYMENT_INDICATOR
I_EINRI - IS-H: Institution
Data type: NCIR-EINRIOptional: No
Call by Reference: No ( called with pass by value option)
I_FALNR - IS-H: Case Number
Data type: NCIR-FALNROptional: No
Call by Reference: No ( called with pass by value option)
I_LFDNR - IS-H: Sequence Number of Insurance Relationship
Data type: NCIR-LFDNROptional: No
Call by Reference: No ( called with pass by value option)
I_COPAYIND -
Data type: NKSD-COPAYINDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISH_302_COPAYMENT_INDICATOR
E_COPAYSIGN -
Data type: NPDOK-C1Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_NCIR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISH_302_COPAYMENT_INDICATOR 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 NCIR-EINRI, " | |||
| lv_no_ncir | TYPE NCIR, " | |||
| lv_e_copaysign | TYPE NPDOK-C1, " | |||
| lv_i_falnr | TYPE NCIR-FALNR, " | |||
| lv_i_lfdnr | TYPE NCIR-LFDNR, " | |||
| lv_i_copayind | TYPE NKSD-COPAYIND. " |
|   CALL FUNCTION 'ISH_302_COPAYMENT_INDICATOR' " |
| EXPORTING | ||
| I_EINRI | = lv_i_einri | |
| I_FALNR | = lv_i_falnr | |
| I_LFDNR | = lv_i_lfdnr | |
| I_COPAYIND | = lv_i_copayind | |
| IMPORTING | ||
| E_COPAYSIGN | = lv_e_copaysign | |
| EXCEPTIONS | ||
| NO_NCIR = 1 | ||
| . " ISH_302_COPAYMENT_INDICATOR | ||
ABAP code using 7.40 inline data declarations to call FM ISH_302_COPAYMENT_INDICATOR
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 NCIR INTO @DATA(ld_i_einri). | ||||
| "SELECT single C1 FROM NPDOK INTO @DATA(ld_e_copaysign). | ||||
| "SELECT single FALNR FROM NCIR INTO @DATA(ld_i_falnr). | ||||
| "SELECT single LFDNR FROM NCIR INTO @DATA(ld_i_lfdnr). | ||||
| "SELECT single COPAYIND FROM NKSD INTO @DATA(ld_i_copayind). | ||||
Search for further information about these or an SAP related objects