SET PROPERTY - OLE
Short Reference
ABAP Syntax_14 SET PROPERTY OF ole attr = dobj [NO FLUSH]
[EXPORTING p1 = f1 p2 = f2 ...].
ABAP_ADDITIONS:
1 ... NO FLUSH
2 ... EXPORTING p1 = f1 p2 = f2 ...
What does it do? The attribute attr of an automation object
ole is set according to the content of the data object dobj .
The automation object must have been generated with the specific
statement CREATE OBJECT for
automation objects. For the typing of ole
, the description in 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
0Successful transfer of object properties
1Error in communication to the SAP GUI
2Error in function call in the SAP GUI
3Error setting a property
4Error reading a property
ABAP_ADDITION_1 ... NO FLUSH
What does it do? :For the effect of the addition NO FLUSH , the
description in the statement CREATE
OBJECT .
ABAP_ADDITION_2 ... EXPORTING p1 = f1 p2 = f2 ...
What does it do? The EXPORTING addition can be assigned to the
parameters p1 p2 ... of the attribute's actual parameters f1
f2 ... , and the data type of the data object f1 f2 ...
complies to the requirement of the attribute.
Example ABAP Coding Calling the Office application Excel and
displaying an empty Excel table by assigning the value 1 to the
attribute "Visible" .
DATA app TYPE ole2_object.
CREATE OBJECT app 'Excel.Application'.
SET PROPERTY OF app 'Visible' = 1.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved