sapdev logo background
sapdev logo sapdev logo
Comments

ABAP GET PROPERTY Statement syntax, information and example SAP source code



Return to Statement index



GET PROPERTY - OLE

Short Reference

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

ABAP_ADDITIONS:
1 ... NO FLUSH
2 ... QUEUE-ONLY
3 ... EXPORTING p1 = f1 p2 = f2 ...

What does it do? Assigns the content of the attribute attr of an automation object ole to the data object dobj . The automation object must have been created using the special statement CREATE OBJECT for automation objects. For the typing of ole , the description of the statement CREATE OBJECT applies. The typing of the data object dobj depends on the properties of the automation attribute attr .

System Fields

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

ABAP_ADDITION_1 ... NO FLUSH

ABAP_ADDITION_2 ... QUEUE-ONLY

What does it do? For the description of the NO FLUSH and
QUEUE-ONLY additions, refer to the description of the statement CREATE OBJECT .

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

What does it do? The addition EXPORTING can be assigned to the parameters p1 p2 ... of the attribute's actual parameters f1 f2 ... , where the data type of the data objects f1 f2 ... depends on the requirements of the attribute.

Example ABAP Coding This example reads the attribute "Visible" of an Excel table created at runtime. This attribute 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.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




GET_PF
GET_REFERENCE




comments powered by Disqus