SAP ISH_N2_DOC_F4_DOC Function Module for









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

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



Function ISH_N2_DOC_F4_DOC 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_DOC_F4_DOC'"
EXPORTING
* I_IF_ONLY_1_NO_DYNPRO = 'X' "
* IT_FILTER_MITARB = "
* IT_FILTER_DTID = "
* IT_FILTER_DTVERS = "
* IT_FILTER_DOKAR = "
* IT_FILTER_DOKNR = "
* IT_FILTER_DOKTL = "
* IT_FILTER_DOKVR = "
* IT_FILTER_DOKST = "
* IT_FILTER_BEZEB = "
* IT_FILTER_PCODE = "
* I_AUTHORITY_CHECK = ' ' "
* IT_FILTER_DODAT = "
* IT_FILTER_UPDAT = "
* IT_FILTER_ERDAT = "
* IT_FILTER_UPUSR = "
* IT_FILTER_LFDBEW = "
* IT_FILTER_ORGFA = "
* IT_FILTER_ORGPF = "
* IT_FILTER_LNRLS = "
* IT_FILTER_ORGLE = "
* IT_FILTER_ANFID = "
* I_TITLE = "
* IT_FILTER_ORGLA = "
* IT_FILTER_MEDOK = "
* I_MAX_ROW = 2000 "
* IT_DOC_SELECTION = "
* IT_FILTER_EINRI = "
* IT_FILTER_PATNR = "
* IT_FILTER_FALNR = "
* IT_FILTER_ORGDO = "

IMPORTING
ES_SEL_DOC_KEY = "
ES_SEL_DOC_OUT = "

EXCEPTIONS
SELECTION_CANCELED = 1 NO_DOCUMENT_FOUND = 2
.



IMPORTING Parameters details for ISH_N2_DOC_F4_DOC

I_IF_ONLY_1_NO_DYNPRO -

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

IT_FILTER_MITARB -

Data type: ISHMED_T_RANGE_MITARB
Optional: Yes
Call by Reference: Yes

IT_FILTER_DTID -

Data type: ISHMED_T_RANGE_DTID
Optional: Yes
Call by Reference: Yes

IT_FILTER_DTVERS -

Data type: ISHMED_T_RANGE_DTVERS
Optional: Yes
Call by Reference: Yes

IT_FILTER_DOKAR -

Data type: ISHMED_T_RANGE_DOKAR
Optional: Yes
Call by Reference: Yes

IT_FILTER_DOKNR -

Data type: ISHMED_T_RANGE_DOKNR
Optional: Yes
Call by Reference: Yes

IT_FILTER_DOKTL -

Data type: ISHMED_T_RANGE_DOKTL
Optional: Yes
Call by Reference: Yes

IT_FILTER_DOKVR -

Data type: ISHMED_T_RANGE_DOKVR
Optional: Yes
Call by Reference: Yes

IT_FILTER_DOKST -

Data type: ISHMED_T_RANGE_STATUSINTERN
Optional: Yes
Call by Reference: Yes

IT_FILTER_BEZEB -

Data type: ISHMED_T_RANGE_BEZEB
Optional: Yes
Call by Reference: Yes

IT_FILTER_PCODE -

Data type: ISHMED_T_RANGE_PCODE
Optional: Yes
Call by Reference: Yes

I_AUTHORITY_CHECK -

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

IT_FILTER_DODAT -

Data type: ISHMED_T_RANGE_DATE
Optional: Yes
Call by Reference: Yes

IT_FILTER_UPDAT -

Data type: ISHMED_T_RANGE_DATE
Optional: Yes
Call by Reference: Yes

IT_FILTER_ERDAT -

Data type: ISHMED_T_RANGE_DATE
Optional: Yes
Call by Reference: Yes

IT_FILTER_UPUSR -

Data type: ISHMED_T_RANGE_UNAME
Optional: Yes
Call by Reference: Yes

IT_FILTER_LFDBEW -

Data type: ISHMED_T_RANGE_LFDBEW
Optional: Yes
Call by Reference: Yes

IT_FILTER_ORGFA -

Data type: ISHMED_T_RANGE_OE
Optional: Yes
Call by Reference: Yes

IT_FILTER_ORGPF -

Data type: ISHMED_T_RANGE_OE
Optional: Yes
Call by Reference: Yes

IT_FILTER_LNRLS -

Data type: ISHMED_T_RANGE_LNRLS
Optional: Yes
Call by Reference: Yes

IT_FILTER_ORGLE -

Data type: ISHMED_T_RANGE_OE
Optional: Yes
Call by Reference: Yes

IT_FILTER_ANFID -

Data type: ISHMED_T_RANGE_ANFID
Optional: Yes
Call by Reference: Yes

I_TITLE -

Data type: SYTITLE
Optional: Yes
Call by Reference: Yes

IT_FILTER_ORGLA -

Data type: ISHMED_T_RANGE_OE
Optional: Yes
Call by Reference: Yes

IT_FILTER_MEDOK -

Data type: ISHMED_T_RANGE_MEDOK
Optional: Yes
Call by Reference: Yes

I_MAX_ROW -

Data type: TBMAXSEL
Default: 2000
Optional: Yes
Call by Reference: Yes

IT_DOC_SELECTION -

Data type: ISHMED_T_DOCDATA_OUT
Optional: Yes
Call by Reference: Yes

IT_FILTER_EINRI -

Data type: ISHMED_T_RANGE_EINRI
Optional: Yes
Call by Reference: Yes

IT_FILTER_PATNR -

Data type: ISHMED_T_RANGE_PATNR
Optional: Yes
Call by Reference: Yes

IT_FILTER_FALNR -

Data type: ISHMED_T_RANGE_FALNR
Optional: Yes
Call by Reference: Yes

IT_FILTER_ORGDO -

Data type: ISHMED_T_RANGE_OE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for ISH_N2_DOC_F4_DOC

ES_SEL_DOC_KEY -

Data type: RN2DOC_KEY
Optional: No
Call by Reference: Yes

ES_SEL_DOC_OUT -

Data type: RN2DOCDATA_OUT
Optional: No
Call by Reference: Yes

EXCEPTIONS details

SELECTION_CANCELED -

Data type:
Optional: No
Call by Reference: Yes

NO_DOCUMENT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISH_N2_DOC_F4_DOC 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_es_sel_doc_key  TYPE RN2DOC_KEY, "   
lv_selection_canceled  TYPE RN2DOC_KEY, "   
lv_i_if_only_1_no_dynpro  TYPE ISH_ON_OFF, "   'X'
lv_it_filter_mitarb  TYPE ISHMED_T_RANGE_MITARB, "   
lv_it_filter_dtid  TYPE ISHMED_T_RANGE_DTID, "   
lv_it_filter_dtvers  TYPE ISHMED_T_RANGE_DTVERS, "   
lv_it_filter_dokar  TYPE ISHMED_T_RANGE_DOKAR, "   
lv_it_filter_doknr  TYPE ISHMED_T_RANGE_DOKNR, "   
lv_it_filter_doktl  TYPE ISHMED_T_RANGE_DOKTL, "   
lv_it_filter_dokvr  TYPE ISHMED_T_RANGE_DOKVR, "   
lv_it_filter_dokst  TYPE ISHMED_T_RANGE_STATUSINTERN, "   
lv_it_filter_bezeb  TYPE ISHMED_T_RANGE_BEZEB, "   
lv_it_filter_pcode  TYPE ISHMED_T_RANGE_PCODE, "   
lv_es_sel_doc_out  TYPE RN2DOCDATA_OUT, "   
lv_i_authority_check  TYPE ISH_ON_OFF, "   SPACE
lv_no_document_found  TYPE ISH_ON_OFF, "   
lv_it_filter_dodat  TYPE ISHMED_T_RANGE_DATE, "   
lv_it_filter_updat  TYPE ISHMED_T_RANGE_DATE, "   
lv_it_filter_erdat  TYPE ISHMED_T_RANGE_DATE, "   
lv_it_filter_upusr  TYPE ISHMED_T_RANGE_UNAME, "   
lv_it_filter_lfdbew  TYPE ISHMED_T_RANGE_LFDBEW, "   
lv_it_filter_orgfa  TYPE ISHMED_T_RANGE_OE, "   
lv_it_filter_orgpf  TYPE ISHMED_T_RANGE_OE, "   
lv_it_filter_lnrls  TYPE ISHMED_T_RANGE_LNRLS, "   
lv_it_filter_orgle  TYPE ISHMED_T_RANGE_OE, "   
lv_it_filter_anfid  TYPE ISHMED_T_RANGE_ANFID, "   
lv_i_title  TYPE SYTITLE, "   
lv_it_filter_orgla  TYPE ISHMED_T_RANGE_OE, "   
lv_it_filter_medok  TYPE ISHMED_T_RANGE_MEDOK, "   
lv_i_max_row  TYPE TBMAXSEL, "   2000
lv_it_doc_selection  TYPE ISHMED_T_DOCDATA_OUT, "   
lv_it_filter_einri  TYPE ISHMED_T_RANGE_EINRI, "   
lv_it_filter_patnr  TYPE ISHMED_T_RANGE_PATNR, "   
lv_it_filter_falnr  TYPE ISHMED_T_RANGE_FALNR, "   
lv_it_filter_orgdo  TYPE ISHMED_T_RANGE_OE. "   

  CALL FUNCTION 'ISH_N2_DOC_F4_DOC'  "
    EXPORTING
         I_IF_ONLY_1_NO_DYNPRO = lv_i_if_only_1_no_dynpro
         IT_FILTER_MITARB = lv_it_filter_mitarb
         IT_FILTER_DTID = lv_it_filter_dtid
         IT_FILTER_DTVERS = lv_it_filter_dtvers
         IT_FILTER_DOKAR = lv_it_filter_dokar
         IT_FILTER_DOKNR = lv_it_filter_doknr
         IT_FILTER_DOKTL = lv_it_filter_doktl
         IT_FILTER_DOKVR = lv_it_filter_dokvr
         IT_FILTER_DOKST = lv_it_filter_dokst
         IT_FILTER_BEZEB = lv_it_filter_bezeb
         IT_FILTER_PCODE = lv_it_filter_pcode
         I_AUTHORITY_CHECK = lv_i_authority_check
         IT_FILTER_DODAT = lv_it_filter_dodat
         IT_FILTER_UPDAT = lv_it_filter_updat
         IT_FILTER_ERDAT = lv_it_filter_erdat
         IT_FILTER_UPUSR = lv_it_filter_upusr
         IT_FILTER_LFDBEW = lv_it_filter_lfdbew
         IT_FILTER_ORGFA = lv_it_filter_orgfa
         IT_FILTER_ORGPF = lv_it_filter_orgpf
         IT_FILTER_LNRLS = lv_it_filter_lnrls
         IT_FILTER_ORGLE = lv_it_filter_orgle
         IT_FILTER_ANFID = lv_it_filter_anfid
         I_TITLE = lv_i_title
         IT_FILTER_ORGLA = lv_it_filter_orgla
         IT_FILTER_MEDOK = lv_it_filter_medok
         I_MAX_ROW = lv_i_max_row
         IT_DOC_SELECTION = lv_it_doc_selection
         IT_FILTER_EINRI = lv_it_filter_einri
         IT_FILTER_PATNR = lv_it_filter_patnr
         IT_FILTER_FALNR = lv_it_filter_falnr
         IT_FILTER_ORGDO = lv_it_filter_orgdo
    IMPORTING
         ES_SEL_DOC_KEY = lv_es_sel_doc_key
         ES_SEL_DOC_OUT = lv_es_sel_doc_out
    EXCEPTIONS
        SELECTION_CANCELED = 1
        NO_DOCUMENT_FOUND = 2
. " ISH_N2_DOC_F4_DOC




ABAP code using 7.40 inline data declarations to call FM ISH_N2_DOC_F4_DOC

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.

 
 
DATA(ld_i_if_only_1_no_dynpro) = 'X'.
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_i_authority_check) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_i_max_row) = 2000.
 
 
 
 
 
 


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!