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

Function ISH_N2_SEARCH_DRAW_DATA 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_N2_SEARCH_DRAW_DATA'".
EXPORTING
SS_SENDSYSTEM = "
SS_ANFNR = "
SS_PATNR = "
* SS_SECINDEX = "
IMPORTING
SS_DOKAR = "
SS_DOKNR = "
SS_DOKVR = "
SS_DOKTL = "
SS_DOKST = "
SS_BEFSTATUS = "
SS_TDWS_DOSAR = "
SS_TDWS = "
EXCEPTIONS
NO_DOCUMENT = 1
IMPORTING Parameters details for ISH_N2_SEARCH_DRAW_DATA
SS_SENDSYSTEM -
Data type: RN2HCM601-SENDSYSTEMOptional: No
Call by Reference: No ( called with pass by value option)
SS_ANFNR -
Data type: DRAW-RES2Optional: No
Call by Reference: No ( called with pass by value option)
SS_PATNR -
Data type: NDOC-PATNROptional: No
Call by Reference: No ( called with pass by value option)
SS_SECINDEX -
Data type: N2LAB_SECINDEX1Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ISH_N2_SEARCH_DRAW_DATA
SS_DOKAR -
Data type: NDOC-DOKAROptional: No
Call by Reference: No ( called with pass by value option)
SS_DOKNR -
Data type: NDOC-DOKNROptional: No
Call by Reference: No ( called with pass by value option)
SS_DOKVR -
Data type: NDOC-DOKVROptional: No
Call by Reference: No ( called with pass by value option)
SS_DOKTL -
Data type: NDOC-DOKTLOptional: No
Call by Reference: No ( called with pass by value option)
SS_DOKST -
Data type: DRAW-DOKSTOptional: No
Call by Reference: No ( called with pass by value option)
SS_BEFSTATUS -
Data type: DRAW-RES3Optional: No
Call by Reference: No ( called with pass by value option)
SS_TDWS_DOSAR -
Data type: TDWS-DOSAROptional: No
Call by Reference: No ( called with pass by value option)
SS_TDWS -
Data type: TDWSOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_DOCUMENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISH_N2_SEARCH_DRAW_DATA 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_dokar | TYPE NDOC-DOKAR, " | |||
| lv_no_document | TYPE NDOC, " | |||
| lv_ss_sendsystem | TYPE RN2HCM601-SENDSYSTEM, " | |||
| lv_ss_anfnr | TYPE DRAW-RES2, " | |||
| lv_ss_doknr | TYPE NDOC-DOKNR, " | |||
| lv_ss_dokvr | TYPE NDOC-DOKVR, " | |||
| lv_ss_patnr | TYPE NDOC-PATNR, " | |||
| lv_ss_doktl | TYPE NDOC-DOKTL, " | |||
| lv_ss_secindex | TYPE N2LAB_SECINDEX1, " | |||
| lv_ss_dokst | TYPE DRAW-DOKST, " | |||
| lv_ss_befstatus | TYPE DRAW-RES3, " | |||
| lv_ss_tdws_dosar | TYPE TDWS-DOSAR, " | |||
| lv_ss_tdws | TYPE TDWS. " |
|   CALL FUNCTION 'ISH_N2_SEARCH_DRAW_DATA' " |
| EXPORTING | ||
| SS_SENDSYSTEM | = lv_ss_sendsystem | |
| SS_ANFNR | = lv_ss_anfnr | |
| SS_PATNR | = lv_ss_patnr | |
| SS_SECINDEX | = lv_ss_secindex | |
| IMPORTING | ||
| SS_DOKAR | = lv_ss_dokar | |
| SS_DOKNR | = lv_ss_doknr | |
| SS_DOKVR | = lv_ss_dokvr | |
| SS_DOKTL | = lv_ss_doktl | |
| SS_DOKST | = lv_ss_dokst | |
| SS_BEFSTATUS | = lv_ss_befstatus | |
| SS_TDWS_DOSAR | = lv_ss_tdws_dosar | |
| SS_TDWS | = lv_ss_tdws | |
| EXCEPTIONS | ||
| NO_DOCUMENT = 1 | ||
| . " ISH_N2_SEARCH_DRAW_DATA | ||
ABAP code using 7.40 inline data declarations to call FM ISH_N2_SEARCH_DRAW_DATA
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 DOKAR FROM NDOC INTO @DATA(ld_ss_dokar). | ||||
| "SELECT single SENDSYSTEM FROM RN2HCM601 INTO @DATA(ld_ss_sendsystem). | ||||
| "SELECT single RES2 FROM DRAW INTO @DATA(ld_ss_anfnr). | ||||
| "SELECT single DOKNR FROM NDOC INTO @DATA(ld_ss_doknr). | ||||
| "SELECT single DOKVR FROM NDOC INTO @DATA(ld_ss_dokvr). | ||||
| "SELECT single PATNR FROM NDOC INTO @DATA(ld_ss_patnr). | ||||
| "SELECT single DOKTL FROM NDOC INTO @DATA(ld_ss_doktl). | ||||
| "SELECT single DOKST FROM DRAW INTO @DATA(ld_ss_dokst). | ||||
| "SELECT single RES3 FROM DRAW INTO @DATA(ld_ss_befstatus). | ||||
| "SELECT single DOSAR FROM TDWS INTO @DATA(ld_ss_tdws_dosar). | ||||
Search for further information about these or an SAP related objects