Get Example source ABAP code based on a different SAP table
• SET PROPERTY OF - OLE ABAP Statement
SET PROPERTY>, OLE Short Reference >
ABAP_SYNTAX SET PROPERTY OF ole prop = dobj $[NO FLUSH$]> $[EXPORTING p1 = f1 p2 = f2 ...$]. >
ABAP Addition 1 ... NO FLUSH> 2 ... EXPORTING p1 = f1 p2 = f2 ...>
What does it do? The property prop> of an automation object ole> is set in accordance with the content of the data object dobj>. The automation object must have been created using the special statement CREATE OBJECT>> for automation objects. The description of the statement CREATE OBJECT> applies to the typing> of ole>. The typing of the data object dobj> depends on the properties of the automation property prop>. System Fields> sy-subrc>Meaning> 0Object properties passed successfully. 1Error in communication with SAP GUI. 2Error in function call in SAP GUI. 3Error when setting a property. 4Error when reading a property. • NO FLUSH SET PROPERTY - OLE
ABAP Addition
What does it do? The meaning of the addition NO FLUSH> is included in the description of the statement CREATE OBJECT>>. • EXPORTING SET PROPERTY - OLE
ABAP Addition
What does it do? The addition EXPORTING> can be used to assign the actual parameters f1 f2 ...> to the parameters p1 p2 ...> of the property, where the data type of the data objects f1 f2 ...> depends on the requirements of the property.
Example ABAP Coding
Calls the Office application Excel and displays an empty Excel table by assigning the value 1 to the property Visible>. ABEXA 00659 ABAP_EXAMPLE_END