SAP ISH_N2_TRANS_MAND_DOKTYP2 Function Module for









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

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



Function ISH_N2_TRANS_MAND_DOKTYP2 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_TRANS_MAND_DOKTYP2'"
EXPORTING
* SI_TRANS_MODE = 'E' "IS-H*MED: Status for document categories
* SI_CB_TEST = 'X' "
* SI_TRANS_STATUS = 'E' "IS-H*MED: Status for document categories
* SI_TRANS_ABSENTW = ' ' "IS-H: Deletion Flag/Indicator
* SI_TRANS_ART = 'K' "IS-H*MED: Status for document categories
* SI_UPDATE_OBJ = 'ACF' "ISHMED: Document Category ID
* SI_DDTAB_MODE = 'A' "IS-H*MED: Status for document categories
* SI_MANDT_FROM = SY-MANDT "Client
SI_MANDT_TO = "Client
SI_EINRI_TO = "IS-H: Institution

TABLES
ST_TAB_DTKEY = "

EXCEPTIONS
N2DT_NOT_FOUND = 1 N2DT_INSERT_ERROR = 2 N2ET_NOT_FOUND = 3 N2DT_NOT_TRANSPORTABLE = 4 N2DT_NO_INPUT = 5 N2DE_NOT_FOUND = 6
.



IMPORTING Parameters details for ISH_N2_TRANS_MAND_DOKTYP2

SI_TRANS_MODE - IS-H*MED: Status for document categories

Data type: N2DT-STATUS
Default: 'E'
Optional: Yes
Call by Reference: Yes

SI_CB_TEST -

Data type: RN2SD-CB_TDTM1
Default: 'X'
Optional: Yes
Call by Reference: Yes

SI_TRANS_STATUS - IS-H*MED: Status for document categories

Data type: N2DT-STATUS
Default: 'E'
Optional: Yes
Call by Reference: Yes

SI_TRANS_ABSENTW - IS-H: Deletion Flag/Indicator

Data type: N2DT-LOEKZ
Default: SPACE
Optional: Yes
Call by Reference: Yes

SI_TRANS_ART - IS-H*MED: Status for document categories

Data type: N2DT-STATUS
Default: 'K'
Optional: Yes
Call by Reference: Yes

SI_UPDATE_OBJ - ISHMED: Document Category ID

Data type: N2DT-DTID
Default: 'ACF'
Optional: Yes
Call by Reference: Yes

SI_DDTAB_MODE - IS-H*MED: Status for document categories

Data type: N2DT-STATUS
Default: 'A'
Optional: Yes
Call by Reference: Yes

SI_MANDT_FROM - Client

Data type: N2DT-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: Yes

SI_MANDT_TO - Client

Data type: N2DT-MANDT
Optional: No
Call by Reference: Yes

SI_EINRI_TO - IS-H: Institution

Data type: N2DT-EINRI
Optional: No
Call by Reference: Yes

TABLES Parameters details for ISH_N2_TRANS_MAND_DOKTYP2

ST_TAB_DTKEY -

Data type:
Optional: No
Call by Reference: Yes

EXCEPTIONS details

N2DT_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

N2DT_INSERT_ERROR -

Data type:
Optional: No
Call by Reference: Yes

N2ET_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

N2DT_NOT_TRANSPORTABLE -

Data type:
Optional: No
Call by Reference: Yes

N2DT_NO_INPUT -

Data type:
Optional: No
Call by Reference: Yes

N2DE_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISH_N2_TRANS_MAND_DOKTYP2 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:
lt_st_tab_dtkey  TYPE STANDARD TABLE OF STRING, "   
lv_si_trans_mode  TYPE N2DT-STATUS, "   'E'
lv_n2dt_not_found  TYPE N2DT, "   
lv_si_cb_test  TYPE RN2SD-CB_TDTM1, "   'X'
lv_si_trans_status  TYPE N2DT-STATUS, "   'E'
lv_n2dt_insert_error  TYPE N2DT, "   
lv_n2et_not_found  TYPE N2DT, "   
lv_si_trans_absentw  TYPE N2DT-LOEKZ, "   SPACE
lv_si_trans_art  TYPE N2DT-STATUS, "   'K'
lv_n2dt_not_transportable  TYPE N2DT, "   
lv_n2dt_no_input  TYPE N2DT, "   
lv_si_update_obj  TYPE N2DT-DTID, "   'ACF'
lv_si_ddtab_mode  TYPE N2DT-STATUS, "   'A'
lv_n2de_not_found  TYPE N2DT, "   
lv_si_mandt_from  TYPE N2DT-MANDT, "   SY-MANDT
lv_si_mandt_to  TYPE N2DT-MANDT, "   
lv_si_einri_to  TYPE N2DT-EINRI. "   

  CALL FUNCTION 'ISH_N2_TRANS_MAND_DOKTYP2'  "
    EXPORTING
         SI_TRANS_MODE = lv_si_trans_mode
         SI_CB_TEST = lv_si_cb_test
         SI_TRANS_STATUS = lv_si_trans_status
         SI_TRANS_ABSENTW = lv_si_trans_absentw
         SI_TRANS_ART = lv_si_trans_art
         SI_UPDATE_OBJ = lv_si_update_obj
         SI_DDTAB_MODE = lv_si_ddtab_mode
         SI_MANDT_FROM = lv_si_mandt_from
         SI_MANDT_TO = lv_si_mandt_to
         SI_EINRI_TO = lv_si_einri_to
    TABLES
         ST_TAB_DTKEY = lt_st_tab_dtkey
    EXCEPTIONS
        N2DT_NOT_FOUND = 1
        N2DT_INSERT_ERROR = 2
        N2ET_NOT_FOUND = 3
        N2DT_NOT_TRANSPORTABLE = 4
        N2DT_NO_INPUT = 5
        N2DE_NOT_FOUND = 6
. " ISH_N2_TRANS_MAND_DOKTYP2




ABAP code using 7.40 inline data declarations to call FM ISH_N2_TRANS_MAND_DOKTYP2

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 STATUS FROM N2DT INTO @DATA(ld_si_trans_mode).
DATA(ld_si_trans_mode) = 'E'.
 
 
"SELECT single CB_TDTM1 FROM RN2SD INTO @DATA(ld_si_cb_test).
DATA(ld_si_cb_test) = 'X'.
 
"SELECT single STATUS FROM N2DT INTO @DATA(ld_si_trans_status).
DATA(ld_si_trans_status) = 'E'.
 
 
 
"SELECT single LOEKZ FROM N2DT INTO @DATA(ld_si_trans_absentw).
DATA(ld_si_trans_absentw) = ' '.
 
"SELECT single STATUS FROM N2DT INTO @DATA(ld_si_trans_art).
DATA(ld_si_trans_art) = 'K'.
 
 
 
"SELECT single DTID FROM N2DT INTO @DATA(ld_si_update_obj).
DATA(ld_si_update_obj) = 'ACF'.
 
"SELECT single STATUS FROM N2DT INTO @DATA(ld_si_ddtab_mode).
DATA(ld_si_ddtab_mode) = 'A'.
 
 
"SELECT single MANDT FROM N2DT INTO @DATA(ld_si_mandt_from).
DATA(ld_si_mandt_from) = SY-MANDT.
 
"SELECT single MANDT FROM N2DT INTO @DATA(ld_si_mandt_to).
 
"SELECT single EINRI FROM N2DT INTO @DATA(ld_si_einri_to).
 


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!