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

You use this method to query the handle of the instance document. This allows you to access the document directly in the relevant application using SAP Automation.

CALL METHOD document->get_document_handle
     EXPORTING no_flush = no_flush
     IMPORTING handle   = handle
               error    = error
               retcode  = retcode.

Description of parameters

Parameter

Optional

Description

handle

 

The handle of instance document

Note

The handle returned by the method points to the document object. The function modules CONTROL_CALL_METHOD, CONTROL_GET_PROPERTY, and CONTROL_SET_PROPERTY allow you to call methods of the document object and find out or set its properties. However, when you use these function modules, you are programming directly against the object model of the relevant desktop application. Consequently, you will have to adapt your program to each desktop application that you use.

Leaving content frame