SAP ISH_N2_WRITE_DTVERS Function Module for









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

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



Function ISH_N2_WRITE_DTVERS 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_WRITE_DTVERS'"
EXPORTING
* SS_MANDT = SY-MANDT "
* S_DOCTYPE = "
* S_DOCELS = "
SS_EINRI = "
SS_DTID = "
SS_DTVERS = "
* SS_ASK_SELECTION = OFF "
* SS_SHOW_HEADER = ON "
* SS_SHOW_STRUCTURE = ON "
* SS_SHOW_ELEMENTS = ON "
* S_DATA_MODE = ' ' "

EXCEPTIONS
DOKTYP_NOT_FOUND = 1
.



IMPORTING Parameters details for ISH_N2_WRITE_DTVERS

SS_MANDT -

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

S_DOCTYPE -

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

S_DOCELS -

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

SS_EINRI -

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

SS_DTID -

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

SS_DTVERS -

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

SS_ASK_SELECTION -

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

SS_SHOW_HEADER -

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

SS_SHOW_STRUCTURE -

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

SS_SHOW_ELEMENTS -

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

S_DATA_MODE -

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

EXCEPTIONS details

DOKTYP_NOT_FOUND -

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

Copy and paste ABAP code example for ISH_N2_WRITE_DTVERS 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_mandt  TYPE SY-MANDT, "   SY-MANDT
lv_doktyp_not_found  TYPE SY, "   
lv_s_doctype  TYPE RN2DT_EXT, "   
lv_s_docels  TYPE RN2ET_EXT_TAB, "   
lv_ss_einri  TYPE EINRI, "   
lv_ss_dtid  TYPE N2_DTID, "   
lv_ss_dtvers  TYPE N2_VERS, "   
lv_ss_ask_selection  TYPE N2_VERS, "   OFF
lv_ss_show_header  TYPE N2_VERS, "   ON
lv_ss_show_structure  TYPE N2_VERS, "   ON
lv_ss_show_elements  TYPE N2_VERS, "   ON
lv_s_data_mode  TYPE N2_VERS. "   SPACE

  CALL FUNCTION 'ISH_N2_WRITE_DTVERS'  "
    EXPORTING
         SS_MANDT = lv_ss_mandt
         S_DOCTYPE = lv_s_doctype
         S_DOCELS = lv_s_docels
         SS_EINRI = lv_ss_einri
         SS_DTID = lv_ss_dtid
         SS_DTVERS = lv_ss_dtvers
         SS_ASK_SELECTION = lv_ss_ask_selection
         SS_SHOW_HEADER = lv_ss_show_header
         SS_SHOW_STRUCTURE = lv_ss_show_structure
         SS_SHOW_ELEMENTS = lv_ss_show_elements
         S_DATA_MODE = lv_s_data_mode
    EXCEPTIONS
        DOKTYP_NOT_FOUND = 1
. " ISH_N2_WRITE_DTVERS




ABAP code using 7.40 inline data declarations to call FM ISH_N2_WRITE_DTVERS

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 MANDT FROM SY INTO @DATA(ld_ss_mandt).
DATA(ld_ss_mandt) = SY-MANDT.
 
 
 
 
 
 
 
DATA(ld_ss_ask_selection) = OFF.
 
DATA(ld_ss_show_header) = ON.
 
DATA(ld_ss_show_structure) = ON.
 
DATA(ld_ss_show_elements) = ON.
 
DATA(ld_s_data_mode) = ' '.
 


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!