17.08.2013 Views

Data Interfaces

Data Interfaces

Data Interfaces

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ABAP/4 Statements for OLE 2.0<br />

Five new ABAP/4 statements:<br />

© SAP AG<br />

DATA: object TYPE OLE2_OBJECT.<br />

w CREATE OBJECT object class<br />

w GET PROPERTY OF object property = field<br />

w SET PROPERTY OF object property = field<br />

w CALL METHOD OF object method<br />

§ EXPORTING prop1 = field1 ... propN = fieldN<br />

w FREE OBJECT object<br />

You must first define the object with the above DATA statement.<br />

CREATE OBJECT checks the existence of the object and generates an OBJECT_HANDLE. To be able<br />

to address an OLE Automation server from ABAP/4, the server must be registered as a class in the R/3<br />

System.<br />

GET PROPERTY allows you to copy the property property to the field field.<br />

SET PROPERTY sets the property property with the contents of the field field.<br />

You use CALL METHOD to call the method method (either a literal or a variable) of the object object.<br />

With EXPORTING, you pass the field values to the parameters of the method.<br />

FREE OBJECT releases the resources at the frontend.<br />

For more detailed documentation about the above key words, refer to the ABAP/4 online help.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!