sap_cursor()

Read(3180) Label: cursor, get, result set list,

Description:

Return the list of table-valued result set as a cursor.

Syntax:

sap_ cursor (client,functionName,tableName)

Note:

This external library function (See External Library Guide) returns the list of table-valued result set as a cursor.

Parameter:

client

SAP server connection handle

functionName

The to-be-called function

tableName

Table name

Return value:

A list table cursor

Example:

 

A

 

1

=sap_client@f ("C:/sap/ABAP_AS_WITH_POOL.jcoDestination")

SAP server connection.

2

=sap_cursor(A1, "Z_TEST1","IT_ROOM")

Return the table-valued list as a cursor.

3

=A2.fetch(n)

Fetch n rows of data from the table-valued list.