SAP ISHMED_READ_N2DO Function Module for









ISHMED_READ_N2DO is a standard ishmed read n2do 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 ishmed read n2do FM, simply by entering the name ISHMED_READ_N2DO into the relevant SAP transaction such as SE37 or SE38.

Function Group: N1OD
Program Name: SAPLN1OD
Main Program: SAPLN1OD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISHMED_READ_N2DO 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 'ISHMED_READ_N2DO'"
EXPORTING
* I_EINRI = "IS-H: Institution
* I_ORGID = "IS-H: Identification Key of Organizational Unit
* I_DTID = "ISHMED: Document Category ID
* I_DTVERS = "ISHMED: Version Number
* I_DOZUO = "IS-H*MED: Document profile ID
* I_BEGDT = "IS-H: Valid-From Date of Record
* I_TCODE = "ABAP Program, Current Transaction Code

IMPORTING
E_TCODE = "
.



IMPORTING Parameters details for ISHMED_READ_N2DO

I_EINRI - IS-H: Institution

Data type: N2DO-EINRI
Optional: Yes
Call by Reference: Yes

I_ORGID - IS-H: Identification Key of Organizational Unit

Data type: N2DO-ORGID
Optional: Yes
Call by Reference: Yes

I_DTID - ISHMED: Document Category ID

Data type: N2DO-DTID
Optional: Yes
Call by Reference: Yes

I_DTVERS - ISHMED: Version Number

Data type: N2DO-DTVERS
Optional: Yes
Call by Reference: Yes

I_DOZUO - IS-H*MED: Document profile ID

Data type: N2DO-DOZUO
Optional: Yes
Call by Reference: Yes

I_BEGDT - IS-H: Valid-From Date of Record

Data type: N2DO-BEGDT
Optional: Yes
Call by Reference: Yes

I_TCODE - ABAP Program, Current Transaction Code

Data type: SY-TCODE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for ISHMED_READ_N2DO

E_TCODE -

Data type: SY-TCODE
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ISHMED_READ_N2DO 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_e_tcode  TYPE SY-TCODE, "   
lv_i_einri  TYPE N2DO-EINRI, "   
lv_i_orgid  TYPE N2DO-ORGID, "   
lv_i_dtid  TYPE N2DO-DTID, "   
lv_i_dtvers  TYPE N2DO-DTVERS, "   
lv_i_dozuo  TYPE N2DO-DOZUO, "   
lv_i_begdt  TYPE N2DO-BEGDT, "   
lv_i_tcode  TYPE SY-TCODE. "   

  CALL FUNCTION 'ISHMED_READ_N2DO'  "
    EXPORTING
         I_EINRI = lv_i_einri
         I_ORGID = lv_i_orgid
         I_DTID = lv_i_dtid
         I_DTVERS = lv_i_dtvers
         I_DOZUO = lv_i_dozuo
         I_BEGDT = lv_i_begdt
         I_TCODE = lv_i_tcode
    IMPORTING
         E_TCODE = lv_e_tcode
. " ISHMED_READ_N2DO




ABAP code using 7.40 inline data declarations to call FM ISHMED_READ_N2DO

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 TCODE FROM SY INTO @DATA(ld_e_tcode).
 
"SELECT single EINRI FROM N2DO INTO @DATA(ld_i_einri).
 
"SELECT single ORGID FROM N2DO INTO @DATA(ld_i_orgid).
 
"SELECT single DTID FROM N2DO INTO @DATA(ld_i_dtid).
 
"SELECT single DTVERS FROM N2DO INTO @DATA(ld_i_dtvers).
 
"SELECT single DOZUO FROM N2DO INTO @DATA(ld_i_dozuo).
 
"SELECT single BEGDT FROM N2DO INTO @DATA(ld_i_begdt).
 
"SELECT single TCODE FROM SY INTO @DATA(ld_i_tcode).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!