Learn R Programming

RSAP (version 0.9)

RSAPReadTable: SAP RFC function calls

Description

Open connections to an SAP System for RFC calls

Usage

RSAPReadTable(con, saptable, options=list(), fields=list())

Arguments

con
an Open SAP RFC Conneciton handle
saptable
The Data Dictionary name of a table to read
options
list of string values of SQL WHERE clause statements to apply to the table select
fields
A list of column names that you want returned from the table

Value

Returns a data.frame of the table contents selected

Details

  con <- RSAPConnect(ashost="nplhost", sysnr="42",
                      client="001", user="developer", 
                      passwd="developer", lang="EN", 
                      trace="1", lcheck="1")

res <- RSAPReadTable(con, "SFLIGHT2") # or use alias # res <- readTable(con, "SFLIGHT2")

print(res)

RSAPClose(con)

See Also

RSAPConnect, RSAPGetInfo, RSAPInvoke, RSAPClose