SHOW_DOCUMENT SAP Method Displays a document on the front end









Below is documentation, parameters and attributes of ABAP Method SHOW_DOCUMENT within SAP class CL_GUI_FRONTEND_SERVICES. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name CL_GUI_FRONTEND_SERVICES into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Static

This is a Static Method so you can call it directly

The following technical details of method SHOW_DOCUMENT can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method SHOW_DOCUMENT

.

NameTypeData TypeDescriptionDefault Value
DATA_LENGTHImportingTYPE
I
File Length
DOCUMENT_NAMEImportingTYPE
STRING
Default document file name
KEEP_FILEImportingTYPE
XFLAG
Keep Temporary File
MIME_TYPEImportingTYPE
STRING
MIME Type
TEMP_FILE_PATHExportingTYPE
STRING
If KEEP_FILE='X', full path to temporary file
DOCUMENT_DATAChangingTYPE
STANDARD TABLE
Pass-By Table



Exceptions of Method SHOW_DOCUMENT

TEMP_FILE_PATHExportingTYPE
STRINGIf KEEP_FILE='X', full path to temporary fileUNKNOWN_MIME_TYPE - Front end does not recognize specified MIME typ

Example ABAP coding


DATA: lv_DATA_LENGTH TYPE I,
lv_DOCUMENT_DATA TYPE STANDARD TABLE,
lv_DOCUMENT_NAME TYPE STRING,
lv_KEEP_FILE TYPE XFLAG,
lv_MIME_TYPE TYPE STRING,
lv_TEMP_FILE_PATH TYPE STRING,
lv_other TYPE c.

CALL METHOD CL_GUI_FRONTEND_SERVICES=>SHOW_DOCUMENT(
EXPORTING
DATA_LENGTH = lv_DATA_LENGTH
DOCUMENT_NAME = lv_DOCUMENT_NAME
KEEP_FILE = lv_KEEP_FILE
MIME_TYPE = lv_MIME_TYPE
IMPORTING
TEMP_FILE_PATH = lv_TEMP_FILE_PATH
CHANGING
DOCUMENT_DATA = lv_DOCUMENT_DATA ).

Links to Related Class(s)

CL_GUI_F...
Full list of available SAP object classes

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!