Entering content frameSyntax documentation view_document_from_table Locate the document in its SAP Library structure

Displays the presentation data saved in a document. The document must be stored in an internal table.

CALL METHOD document->view_document_from_table
     EXPORTING document_table   = document_table
               document_size    = document_size
               document_title   = document_title
               open_inplace     = open_inplace
               startup_macro    = startup_macro
               no_flush         = no_flush
     IMPORTING error            = error
               retcode          = retcode.

Description of parameters

Parameter

Optional

Description

document_table

 

Internal table containing the document.

document_size

 

File size.

document_title

X

Title to be displayed in the title bar of the desktop application.

open_inplace

X

'X': Document is opened within the R/3 window (only if the parameter inplace = ‘X’ was set when you called the method get_document_proxy).

' ' : Document is opened in a separate window.

startup_macro

X

Macro to be run when you open the document.

Caution

You can only start one document in the R/3 window.

Note

If you want to use the view_document method to display documents, you must set the create_view_data flag when you use the create_document method to create them. To display other documents, use the open_document method with the open_readonly flag. If you want to do this, the desktop application used to create the document must be installed on the presentation server.

Leaving content frame