SAP SET PROPERTY ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for SET_PROPERTY

SET PROPERTY - OLE

Short Reference
• SET PROPERTY OF - OLE ABAP Statement

ABAP_BASIC_FORM_14 SET PROPERTY OF ole attr = dobj [NO FLUSH]
[EXPORTING p1 = f1 p2 = f2 ...].

ABAP Addition
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-subrcMeaning 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
• NO FLUSH SET PROPERTY - OLE (obsolete)

ABAP Addition

What does it do? :For the effect of the addition NO FLUSH, the description in the statement CREATE OBJECT.
• EXPORTING SET PROPERTY - OLE

ABAP Addition

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.

Return to menu