SAP ISH_N2_DOCUMENT_CHECK Function Module for









ISH_N2_DOCUMENT_CHECK is a standard ish n2 document check 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 document check FM, simply by entering the name ISH_N2_DOCUMENT_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function ISH_N2_DOCUMENT_CHECK 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_DOCUMENT_CHECK'"
EXPORTING
* SS_MODE = ' ' "
* SS_TCODE = ' ' "Transaction Code
* SS_VCODE = ' ' "
* SS_TESTMODE = ' ' "
* SS_SEND_MESSAGE = 'X' "

CHANGING
* SS_DRAW = "
* SS_TDWS = "
* SS_TDWST = "
* SS_NEXT_STATUS_FRKNZ = "
* SS_NEXT_STATUS_FOLGE = "
* SS_NEXT_STATUS = "

TABLES
SS_NDOC = "

EXCEPTIONS
NO_AUTH = 1 NO_DOCUMENT = 2 DEL_DOCUMENT = 3
.




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_SAPLN231_002 IS-H*MED: User exit before editing a document
EXIT_SAPLN231_003 IS-H*MED: User Exit After Editing a Document
EXIT_SAPLN231_004 IS-H*MED: User Exit before the Authorization Check of a Document

IMPORTING Parameters details for ISH_N2_DOCUMENT_CHECK

SS_MODE -

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

SS_TCODE - Transaction Code

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

SS_VCODE -

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

SS_TESTMODE -

Data type: ISH_ON_OFF
Default: SPACE
Optional: Yes
Call by Reference: Yes

SS_SEND_MESSAGE -

Data type: ISH_ON_OFF
Default: 'X'
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for ISH_N2_DOCUMENT_CHECK

SS_DRAW -

Data type: DRAW
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_TDWS -

Data type: TDWS
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_TDWST -

Data type: TDWST
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_NEXT_STATUS_FRKNZ -

Data type: TDWS-FRKNZ
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_NEXT_STATUS_FOLGE -

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

SS_NEXT_STATUS -

Data type: ISH_ON_OFF
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ISH_N2_DOCUMENT_CHECK

SS_NDOC -

Data type: NDOC
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_AUTH - No authorization

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

NO_DOCUMENT - Document Not Found

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

DEL_DOCUMENT -

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

Copy and paste ABAP code example for ISH_N2_DOCUMENT_CHECK 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_no_auth  TYPE STRING, "   
lv_ss_draw  TYPE DRAW, "   
lv_ss_mode  TYPE SY-TCODE, "   SPACE
lt_ss_ndoc  TYPE STANDARD TABLE OF NDOC, "   
lv_ss_tdws  TYPE TDWS, "   
lv_ss_tcode  TYPE SY-TCODE, "   SPACE
lv_no_document  TYPE SY, "   
lv_ss_tdwst  TYPE TDWST, "   
lv_ss_vcode  TYPE SY-TCODE, "   SPACE
lv_del_document  TYPE SY, "   
lv_ss_testmode  TYPE ISH_ON_OFF, "   SPACE
lv_ss_next_status_frknz  TYPE TDWS-FRKNZ, "   
lv_ss_send_message  TYPE ISH_ON_OFF, "   'X'
lv_ss_next_status_folge  TYPE SY-TVAR1, "   
lv_ss_next_status  TYPE ISH_ON_OFF. "   

  CALL FUNCTION 'ISH_N2_DOCUMENT_CHECK'  "
    EXPORTING
         SS_MODE = lv_ss_mode
         SS_TCODE = lv_ss_tcode
         SS_VCODE = lv_ss_vcode
         SS_TESTMODE = lv_ss_testmode
         SS_SEND_MESSAGE = lv_ss_send_message
    CHANGING
         SS_DRAW = lv_ss_draw
         SS_TDWS = lv_ss_tdws
         SS_TDWST = lv_ss_tdwst
         SS_NEXT_STATUS_FRKNZ = lv_ss_next_status_frknz
         SS_NEXT_STATUS_FOLGE = lv_ss_next_status_folge
         SS_NEXT_STATUS = lv_ss_next_status
    TABLES
         SS_NDOC = lt_ss_ndoc
    EXCEPTIONS
        NO_AUTH = 1
        NO_DOCUMENT = 2
        DEL_DOCUMENT = 3
. " ISH_N2_DOCUMENT_CHECK




ABAP code using 7.40 inline data declarations to call FM ISH_N2_DOCUMENT_CHECK

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_ss_mode).
DATA(ld_ss_mode) = ' '.
 
 
 
"SELECT single TCODE FROM SY INTO @DATA(ld_ss_tcode).
DATA(ld_ss_tcode) = ' '.
 
 
 
"SELECT single TCODE FROM SY INTO @DATA(ld_ss_vcode).
DATA(ld_ss_vcode) = ' '.
 
 
DATA(ld_ss_testmode) = ' '.
 
"SELECT single FRKNZ FROM TDWS INTO @DATA(ld_ss_next_status_frknz).
 
DATA(ld_ss_send_message) = 'X'.
 
"SELECT single TVAR1 FROM SY INTO @DATA(ld_ss_next_status_folge).
 
 


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!