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.

Working with Tables: Results (1)<br />

Working with the table resulting from a function call<br />

Access table object with Tables Collection<br />

Set TablesColl = RFCFunction.Tables<br />

Set TableObj = TablesColl.Item(“R3TableName )<br />

Access table data with Rows Collection<br />

For Each TableRow In TableObj.Rows<br />

Cells(RowIndex, 1) = TableRow(“R3ColName1 )<br />

Cells(RowIndex, 2) = TableRow(“R3ColName2 )<br />

....<br />

RowIndex=RowIndex+1<br />

Next<br />

© SAP AG<br />

Function<br />

Tables coll.<br />

Table<br />

Rows coll.<br />

Row<br />

When using a function call with specified arguments (where the function object is a dynamic method of<br />

the server object), it is not necessary to retrieve the table object with the table collection because the<br />

variable TableObj is automatically assigned to the table object.<br />

The syntax used for navigation in the rows collection is specific to VBA (Visual Basic for Applications).<br />

The construction "For Each" is not supported by Visual Basic 3.0. Programmers using Visual Basic<br />

must access the table entries with the code specified in the next graphic.

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

Saved successfully!

Ooh no, something went wrong!