ABAPGET_PROPERTY - GET PROPERTY

General Material Data   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

GET PROPERTY - OLE

Short Reference



Syntax

GET PROPERTY OF ole attr = dobj [NO FLUSH] [QUEUE-ONLY]
                               [EXPORTING p1 = f1 p2 = f2 ...].

Additions

1. ... NO FLUSH

2. ... QUEUE-ONLY

3. ... EXPORTING p1 = f1 p2 = f2 ...

Effect

The content of attribute attr of an Automation object ole is assigned to data object dobj.The Automation object must have been created using the special CREATE OBJECT statement for Automation objects. For thetypingof ole, the description of the CREATE OBJECT statement applies. The typing of the dobj data object depends on the properties of the Automation attribute attr.

System Fields

sy-subrcMeaning
0Object attributes successfully passed.
1Error in communication with SAP GUI.
2Error in function call in SAP GUI.
3Error when setting an attribute.
4Error when reading an attribute.

Addition 1

... NO FLUSH

Addition 2

... QUEUE-ONLY

Effect

For the description of the NO FLUSH and QUEUE-ONLY additions, refer to the description of the CREATE OBJECT statement.

Addition 3

... EXPORTING p1 = f1 p2 = f2 ...

Effect

The EXPORTING addition assigns the parameters p1 p2 ... of the attributes actual parametersf1 f2 .... The data type of the data objects f1 f2 ... adjusts according to the requirement of the attribute.

Example

In this example, the attribute "Visible" of an Excel table, which was created at runtime, is read. Thisattribute specifies whether the table processing is visible or runs in the background. The variable vis is typed as an integer, because Excel passes an integer value.

DATA: vis TYPE i,
      app TYPE ole2_object.

CREATE OBJECT   app 'Excel.Application'.
GET PROPERTY OF app 'Visible' = vis.
WRITE vis.


rdisp/max_wprun_time - Maximum work process run time   PERFORM Short Reference  
This documentation is copyright by SAP AG.


Length: 3905 Date: 20120522 Time: 063412     triton ( 155 ms )