SAP EHS00_CHECK_ASSIGNMENT Function Module for
EHS00_CHECK_ASSIGNMENT is a standard ehs00 check assignment 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 ehs00 check assignment FM, simply by entering the name EHS00_CHECK_ASSIGNMENT into the relevant SAP transaction such as SE37 or SE38.
Function Group: EHS00AMBTAET_NEU
Program Name: SAPLEHS00AMBTAET_NEU
Main Program: SAPLEHS00AMBTAET_NEU
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EHS00_CHECK_ASSIGNMENT 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 'EHS00_CHECK_ASSIGNMENT'".
EXPORTING
I_ACTYPE = "Activity Type in the Transaction
* I_ADDINF = "Additional Information for Calling Function Modules
* I_DO_AUTHORITY = ESP1_FALSE "Indicator for Authorization Check
* I_HEALTHCENTRE = "Health Center
TABLES
I_LOG_ENTRY_TAB = "
* E_LOG_ENTRY_TAB = "
* E_SERVICE_TAB = "
EXCEPTIONS
NO_ASSIGNMENT = 1 NO_AUTHORITY = 2 PARAMETER_ERROR = 3 INTERNAL_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_SAPLEHS00AMBTAET_NEU_001 Transfer Header Data for Examination to Screen Exit
EXIT_SAPLEHS00AMBTAET_NEU_002 Transfer of OK Code from Medical Service
EXIT_SAPLEHS00AMBTAET_NEU_003 Return of a Change Flag to the Medical Service
EXIT_SAPLEHS00AMBTAET_NEU_004 Call of Main Screen from Medical Service
EXIT_SAPLEHS00AMBTAET_NEU_005 Reset Internal Tables After Change to Display Mode Without Saving
EXIT_SAPLEHS00AMBTAET_NEU_006 Tests: Create, Delete, Initialize, or Data Import
EXIT_SAPLEHS00AMBTAET_NEU_007 Create the Medical Tests While Creating a Service
EXIT_SAPLEHS00AMBTAET_NEU_008 Control of Reports for Person-Specific Overviews
IMPORTING Parameters details for EHS00_CHECK_ASSIGNMENT
I_ACTYPE - Activity Type in the Transaction
Data type: RCGDIALCTR-ACTYPEOptional: No
Call by Reference: No ( called with pass by value option)
I_ADDINF - Additional Information for Calling Function Modules
Data type: RCGADDINFOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DO_AUTHORITY - Indicator for Authorization Check
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_HEALTHCENTRE - Health Center
Data type: EHS00_HEALTHCENTREOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EHS00_CHECK_ASSIGNMENT
I_LOG_ENTRY_TAB -
Data type: CCIHS_LOG_ENTRYOptional: No
Call by Reference: No ( called with pass by value option)
E_LOG_ENTRY_TAB -
Data type: CCIHS_LOG_ENTRYOptional: Yes
Call by Reference: No ( called with pass by value option)
E_SERVICE_TAB -
Data type: T7EHS00_SERVICEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_ASSIGNMENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY - No Authorization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARAMETER_ERROR - Parameter Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR - Internal error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EHS00_CHECK_ASSIGNMENT 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_actype | TYPE RCGDIALCTR-ACTYPE, " | |||
| lv_no_assignment | TYPE RCGDIALCTR, " | |||
| lt_i_log_entry_tab | TYPE STANDARD TABLE OF CCIHS_LOG_ENTRY, " | |||
| lv_i_addinf | TYPE RCGADDINF, " | |||
| lv_no_authority | TYPE RCGADDINF, " | |||
| lt_e_log_entry_tab | TYPE STANDARD TABLE OF CCIHS_LOG_ENTRY, " | |||
| lt_e_service_tab | TYPE STANDARD TABLE OF T7EHS00_SERVICE, " | |||
| lv_i_do_authority | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lv_parameter_error | TYPE ESP1_BOOLEAN, " | |||
| lv_internal_error | TYPE ESP1_BOOLEAN, " | |||
| lv_i_healthcentre | TYPE EHS00_HEALTHCENTRE. " |
|   CALL FUNCTION 'EHS00_CHECK_ASSIGNMENT' " |
| EXPORTING | ||
| I_ACTYPE | = lv_i_actype | |
| I_ADDINF | = lv_i_addinf | |
| I_DO_AUTHORITY | = lv_i_do_authority | |
| I_HEALTHCENTRE | = lv_i_healthcentre | |
| TABLES | ||
| I_LOG_ENTRY_TAB | = lt_i_log_entry_tab | |
| E_LOG_ENTRY_TAB | = lt_e_log_entry_tab | |
| E_SERVICE_TAB | = lt_e_service_tab | |
| EXCEPTIONS | ||
| NO_ASSIGNMENT = 1 | ||
| NO_AUTHORITY = 2 | ||
| PARAMETER_ERROR = 3 | ||
| INTERNAL_ERROR = 4 | ||
| . " EHS00_CHECK_ASSIGNMENT | ||
ABAP code using 7.40 inline data declarations to call FM EHS00_CHECK_ASSIGNMENT
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 ACTYPE FROM RCGDIALCTR INTO @DATA(ld_i_actype). | ||||
| DATA(ld_i_do_authority) | = ESP1_FALSE. | |||
Search for further information about these or an SAP related objects