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

Function ISH_PROCEDURE_ASSIGNMENT_DIA 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_PROCEDURE_ASSIGNMENT_DIA'".
EXPORTING
SS_EINRI = "Current Institution
SS_FALNR = "Current Case Number
* SS_LFDNR = "
* SS_CHECK = 'X' "Check Only
IMPORTING
ASSIGNMENT_EXIST = "
TABLES
* SS_LNRIC_TAB = "
EXCEPTIONS
CASE_BILLED = 1 ISHMED_OBJECT_EXIST = 2 MISSING_INSTITUTION = 3 MEDICAL_STATUS_CHANGE = 4 ERROR_OCCURED = 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_SAPLN042_001 IS-H: User Exit for Procedure Encoding (Call from SAPLN042)
IMPORTING Parameters details for ISH_PROCEDURE_ASSIGNMENT_DIA
SS_EINRI - Current Institution
Data type: NLEI-EINRIOptional: No
Call by Reference: No ( called with pass by value option)
SS_FALNR - Current Case Number
Data type: NLEI-FALNROptional: No
Call by Reference: No ( called with pass by value option)
SS_LFDNR -
Data type: NDIA-LFDNROptional: Yes
Call by Reference: No ( called with pass by value option)
SS_CHECK - Check Only
Data type: ISH_ON_OFFDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISH_PROCEDURE_ASSIGNMENT_DIA
ASSIGNMENT_EXIST -
Data type: NPDOK-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISH_PROCEDURE_ASSIGNMENT_DIA
SS_LNRIC_TAB -
Data type: RNRANGELNRICOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CASE_BILLED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ISHMED_OBJECT_EXIST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MISSING_INSTITUTION - Institution Missing
Data type:Optional: No
Call by Reference: Yes
MEDICAL_STATUS_CHANGE -
Data type:Optional: No
Call by Reference: Yes
ERROR_OCCURED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISH_PROCEDURE_ASSIGNMENT_DIA 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_ss_einri | TYPE NLEI-EINRI, " | |||
| lv_case_billed | TYPE NLEI, " | |||
| lt_ss_lnric_tab | TYPE STANDARD TABLE OF RNRANGELNRIC, " | |||
| lv_assignment_exist | TYPE NPDOK-XFELD, " | |||
| lv_ss_falnr | TYPE NLEI-FALNR, " | |||
| lv_ishmed_object_exist | TYPE NLEI, " | |||
| lv_ss_lfdnr | TYPE NDIA-LFDNR, " | |||
| lv_missing_institution | TYPE NDIA, " | |||
| lv_ss_check | TYPE ISH_ON_OFF, " 'X' | |||
| lv_medical_status_change | TYPE ISH_ON_OFF, " | |||
| lv_error_occured | TYPE ISH_ON_OFF. " |
|   CALL FUNCTION 'ISH_PROCEDURE_ASSIGNMENT_DIA' " |
| EXPORTING | ||
| SS_EINRI | = lv_ss_einri | |
| SS_FALNR | = lv_ss_falnr | |
| SS_LFDNR | = lv_ss_lfdnr | |
| SS_CHECK | = lv_ss_check | |
| IMPORTING | ||
| ASSIGNMENT_EXIST | = lv_assignment_exist | |
| TABLES | ||
| SS_LNRIC_TAB | = lt_ss_lnric_tab | |
| EXCEPTIONS | ||
| CASE_BILLED = 1 | ||
| ISHMED_OBJECT_EXIST = 2 | ||
| MISSING_INSTITUTION = 3 | ||
| MEDICAL_STATUS_CHANGE = 4 | ||
| ERROR_OCCURED = 5 | ||
| . " ISH_PROCEDURE_ASSIGNMENT_DIA | ||
ABAP code using 7.40 inline data declarations to call FM ISH_PROCEDURE_ASSIGNMENT_DIA
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 NLEI INTO @DATA(ld_ss_einri). | ||||
| "SELECT single XFELD FROM NPDOK INTO @DATA(ld_assignment_exist). | ||||
| "SELECT single FALNR FROM NLEI INTO @DATA(ld_ss_falnr). | ||||
| "SELECT single LFDNR FROM NDIA INTO @DATA(ld_ss_lfdnr). | ||||
| DATA(ld_ss_check) | = 'X'. | |||
Search for further information about these or an SAP related objects