SAP DSYS_SHOW Function Module for Hypertext: Dispatcher









DSYS_SHOW is a standard dsys show SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Hypertext: Dispatcher processing and below is the pattern details for this FM, 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 dsys show FM, simply by entering the name DSYS_SHOW into the relevant SAP transaction such as SE37 or SE38.

Function Group: DSYE
Program Name: SAPLDSYE
Main Program: SAPLDSYE
Appliation area: S
Release date: 01-Jan-1970
Mode(Normal, Remote etc): Normal Function Module
Update:



Function DSYS_SHOW 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 'DSYS_SHOW'"Hypertext: Dispatcher
EXPORTING
* APPLICATION = 'SO70' "Table DSYDS application
* CALLED_FROM_SO70 = ' ' "'X' if called from SO70. Otherwise ' ' !
* STRUCTURE_ID = "
* NO_GERMAN = 'X' "
DOKCLASS = "Class of the document to be displayed
* DOKLANGU = SY-LANGU "Language in which the document is to be displayed
DOKNAME = "
* DOKTITLE = ' ' "Title displayed for the document
* HOMETEXT = ' ' "Return to the beginning text
* OUTLINE = ' ' "
* VIEWNAME = 'STANDARD' "Structure OUTLINE view name
* Z_ORIGINAL_OUTLINE = ' ' "Name of the included structure

IMPORTING
APPL = "
PF03 = "
PF15 = "
PF12 = "

EXCEPTIONS
CLASS_UNKNOWN = 1 OBJECT_NOT_FOUND = 2
.



IMPORTING Parameters details for DSYS_SHOW

APPLICATION - Table DSYDS application

Data type: DSYDS-APPL
Default: 'SO70'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CALLED_FROM_SO70 - 'X' if called from SO70. Otherwise ' ' !

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

STRUCTURE_ID -

Data type: HIER_IFACE-TREE_ID
Optional: Yes
Call by Reference: Yes

NO_GERMAN -

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

DOKCLASS - Class of the document to be displayed

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

DOKLANGU - Language in which the document is to be displayed

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

DOKNAME -

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

DOKTITLE - Title displayed for the document

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

HOMETEXT - Return to the beginning text

Data type: DSYAT-CHILD_TITL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

OUTLINE -

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

VIEWNAME - Structure OUTLINE view name

Data type: DSYAD-VIEWNAME
Default: 'STANDARD'
Optional: Yes
Call by Reference: No ( called with pass by value option)

Z_ORIGINAL_OUTLINE - Name of the included structure

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

EXPORTING Parameters details for DSYS_SHOW

APPL -

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

PF03 -

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

PF15 -

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

PF12 -

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

EXCEPTIONS details

CLASS_UNKNOWN - Class unknown

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

OBJECT_NOT_FOUND - Document does not exist

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

Copy and paste ABAP code example for DSYS_SHOW 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_appl  TYPE STRING, "   
lv_application  TYPE DSYDS-APPL, "   'SO70'
lv_class_unknown  TYPE DSYDS, "   
lv_called_from_so70  TYPE DSYDS, "   ' '
lv_structure_id  TYPE HIER_IFACE-TREE_ID, "   
lv_no_german  TYPE XFELD, "   'X'
lv_pf03  TYPE XFELD, "   
lv_dokclass  TYPE DSYSH-DOKCLASS, "   
lv_object_not_found  TYPE DSYSH, "   
lv_pf15  TYPE DSYSH, "   
lv_doklangu  TYPE DSYSH-DOKLANGU, "   SY-LANGU
lv_pf12  TYPE DSYSH, "   
lv_dokname  TYPE DSYSH, "   
lv_doktitle  TYPE DSYAT-CHILD_TITL, "   SPACE
lv_hometext  TYPE DSYAT-CHILD_TITL, "   ' '
lv_outline  TYPE DSYAT, "   SPACE
lv_viewname  TYPE DSYAD-VIEWNAME, "   'STANDARD'
lv_z_original_outline  TYPE DSYAH-OUTLINE. "   SPACE

  CALL FUNCTION 'DSYS_SHOW'  "Hypertext: Dispatcher
    EXPORTING
         APPLICATION = lv_application
         CALLED_FROM_SO70 = lv_called_from_so70
         STRUCTURE_ID = lv_structure_id
         NO_GERMAN = lv_no_german
         DOKCLASS = lv_dokclass
         DOKLANGU = lv_doklangu
         DOKNAME = lv_dokname
         DOKTITLE = lv_doktitle
         HOMETEXT = lv_hometext
         OUTLINE = lv_outline
         VIEWNAME = lv_viewname
         Z_ORIGINAL_OUTLINE = lv_z_original_outline
    IMPORTING
         APPL = lv_appl
         PF03 = lv_pf03
         PF15 = lv_pf15
         PF12 = lv_pf12
    EXCEPTIONS
        CLASS_UNKNOWN = 1
        OBJECT_NOT_FOUND = 2
. " DSYS_SHOW




ABAP code using 7.40 inline data declarations to call FM DSYS_SHOW

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 APPL FROM DSYDS INTO @DATA(ld_application).
DATA(ld_application) = 'SO70'.
 
 
DATA(ld_called_from_so70) = ' '.
 
"SELECT single TREE_ID FROM HIER_IFACE INTO @DATA(ld_structure_id).
 
DATA(ld_no_german) = 'X'.
 
 
"SELECT single DOKCLASS FROM DSYSH INTO @DATA(ld_dokclass).
 
 
 
"SELECT single DOKLANGU FROM DSYSH INTO @DATA(ld_doklangu).
DATA(ld_doklangu) = SY-LANGU.
 
 
 
"SELECT single CHILD_TITL FROM DSYAT INTO @DATA(ld_doktitle).
DATA(ld_doktitle) = ' '.
 
"SELECT single CHILD_TITL FROM DSYAT INTO @DATA(ld_hometext).
DATA(ld_hometext) = ' '.
 
DATA(ld_outline) = ' '.
 
"SELECT single VIEWNAME FROM DSYAD INTO @DATA(ld_viewname).
DATA(ld_viewname) = 'STANDARD'.
 
"SELECT single OUTLINE FROM DSYAH INTO @DATA(ld_z_original_outline).
DATA(ld_z_original_outline) = ' '.
 


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!