SAP ISH_N2_SHOW_VDIAPAT Function Module for









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

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



Function ISH_N2_SHOW_VDIAPAT 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_SHOW_VDIAPAT'"
EXPORTING
* SS_BEWNR = 0 "
SS_EINRI = "
* SS_FALNR = ' ' "
SS_PATNR = "
* SS_ORGFA = "
* SS_VCODE = 'UPD' "
* SS_NEWDIA = ' ' "
* SS_DIABZ = ' ' "
* IR_RNRANGEFALNR = "

IMPORTING
ET_NDIA = "
E_NODIAG = "

EXCEPTIONS
NOT_FOUND = 1
.



IMPORTING Parameters details for ISH_N2_SHOW_VDIAPAT

SS_BEWNR -

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

SS_EINRI -

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

SS_FALNR -

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

SS_PATNR -

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

SS_ORGFA -

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

SS_VCODE -

Data type: RNPK1-VCODE
Default: 'UPD'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_NEWDIA -

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

SS_DIABZ -

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

IR_RNRANGEFALNR -

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

EXPORTING Parameters details for ISH_N2_SHOW_VDIAPAT

ET_NDIA -

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

E_NODIAG -

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

EXCEPTIONS details

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_SHOW_VDIAPAT 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_et_ndia  TYPE ISHMED_T_HNDIA, "   
lv_ss_bewnr  TYPE NBEW-LFDNR, "   0
lv_not_found  TYPE NBEW, "   
lv_e_nodiag  TYPE NFAL-FALAR, "   
lv_ss_einri  TYPE NDIA-EINRI, "   
lv_ss_falnr  TYPE NBEW-FALNR, "   SPACE
lv_ss_patnr  TYPE NFAL-PATNR, "   
lv_ss_orgfa  TYPE NBEW-ORGFA, "   
lv_ss_vcode  TYPE RNPK1-VCODE, "   'UPD'
lv_ss_newdia  TYPE ISH_ON_OFF, "   SPACE
lv_ss_diabz  TYPE ISH_ON_OFF, "   SPACE
lv_ir_rnrangefalnr  TYPE RNRANGEFALNR_TT. "   

  CALL FUNCTION 'ISH_N2_SHOW_VDIAPAT'  "
    EXPORTING
         SS_BEWNR = lv_ss_bewnr
         SS_EINRI = lv_ss_einri
         SS_FALNR = lv_ss_falnr
         SS_PATNR = lv_ss_patnr
         SS_ORGFA = lv_ss_orgfa
         SS_VCODE = lv_ss_vcode
         SS_NEWDIA = lv_ss_newdia
         SS_DIABZ = lv_ss_diabz
         IR_RNRANGEFALNR = lv_ir_rnrangefalnr
    IMPORTING
         ET_NDIA = lv_et_ndia
         E_NODIAG = lv_e_nodiag
    EXCEPTIONS
        NOT_FOUND = 1
. " ISH_N2_SHOW_VDIAPAT




ABAP code using 7.40 inline data declarations to call FM ISH_N2_SHOW_VDIAPAT

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 LFDNR FROM NBEW INTO @DATA(ld_ss_bewnr).
 
 
"SELECT single FALAR FROM NFAL INTO @DATA(ld_e_nodiag).
 
"SELECT single EINRI FROM NDIA INTO @DATA(ld_ss_einri).
 
"SELECT single FALNR FROM NBEW INTO @DATA(ld_ss_falnr).
DATA(ld_ss_falnr) = ' '.
 
"SELECT single PATNR FROM NFAL INTO @DATA(ld_ss_patnr).
 
"SELECT single ORGFA FROM NBEW INTO @DATA(ld_ss_orgfa).
 
"SELECT single VCODE FROM RNPK1 INTO @DATA(ld_ss_vcode).
DATA(ld_ss_vcode) = 'UPD'.
 
DATA(ld_ss_newdia) = ' '.
 
DATA(ld_ss_diabz) = ' '.
 
 


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!