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

Function ISH_EHIC_CANCEL 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_EHIC_CANCEL'".
EXPORTING
I_EINRI = "IS-H: Institution
I_FALNR = "IS-H: Case Number
I_LFDVV = "IS-H: Sequence Number of Insurance Relationship
* I_AUTHCHECK = 'X' "Check Authorizations?
* I_PURPOSE = '2' "IS-H: Use of service rule type
* I_TESTRUN = 'X' "
IMPORTING
ES_NEHIC = "IS-H: European Health Insurance Card
E_RETMAXTYPE = "IS-H: Most Severe Message Type Generated
TABLES
ET_RETURN = "Table with Error Messages
IMPORTING Parameters details for ISH_EHIC_CANCEL
I_EINRI - IS-H: Institution
Data type: EINRIOptional: No
Call by Reference: No ( called with pass by value option)
I_FALNR - IS-H: Case Number
Data type: FALNROptional: No
Call by Reference: No ( called with pass by value option)
I_LFDVV - IS-H: Sequence Number of Insurance Relationship
Data type: LFDVVOptional: No
Call by Reference: No ( called with pass by value option)
I_AUTHCHECK - Check Authorizations?
Data type: ISH_ON_OFFDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PURPOSE - IS-H: Use of service rule type
Data type: ISH_RGART_ZWECKDefault: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TESTRUN -
Data type: NPDOK-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISH_EHIC_CANCEL
ES_NEHIC - IS-H: European Health Insurance Card
Data type: NEHICOptional: No
Call by Reference: No ( called with pass by value option)
E_RETMAXTYPE - IS-H: Most Severe Message Type Generated
Data type: NPDOK-BAPIRETMAXTYOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISH_EHIC_CANCEL
ET_RETURN - Table with Error Messages
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISH_EHIC_CANCEL 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 EINRI, " | |||
| lv_es_nehic | TYPE NEHIC, " | |||
| lt_et_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_i_falnr | TYPE FALNR, " | |||
| lv_e_retmaxtype | TYPE NPDOK-BAPIRETMAXTY, " | |||
| lv_i_lfdvv | TYPE LFDVV, " | |||
| lv_i_authcheck | TYPE ISH_ON_OFF, " 'X' | |||
| lv_i_purpose | TYPE ISH_RGART_ZWECK, " '2' | |||
| lv_i_testrun | TYPE NPDOK-XFELD. " 'X' |
|   CALL FUNCTION 'ISH_EHIC_CANCEL' " |
| EXPORTING | ||
| I_EINRI | = lv_i_einri | |
| I_FALNR | = lv_i_falnr | |
| I_LFDVV | = lv_i_lfdvv | |
| I_AUTHCHECK | = lv_i_authcheck | |
| I_PURPOSE | = lv_i_purpose | |
| I_TESTRUN | = lv_i_testrun | |
| IMPORTING | ||
| ES_NEHIC | = lv_es_nehic | |
| E_RETMAXTYPE | = lv_e_retmaxtype | |
| TABLES | ||
| ET_RETURN | = lt_et_return | |
| . " ISH_EHIC_CANCEL | ||
ABAP code using 7.40 inline data declarations to call FM ISH_EHIC_CANCEL
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 BAPIRETMAXTY FROM NPDOK INTO @DATA(ld_e_retmaxtype). | ||||
| DATA(ld_i_authcheck) | = 'X'. | |||
| DATA(ld_i_purpose) | = '2'. | |||
| "SELECT single XFELD FROM NPDOK INTO @DATA(ld_i_testrun). | ||||
| DATA(ld_i_testrun) | = 'X'. | |||
Search for further information about these or an SAP related objects