Menu

#4 Table import values

open
nobody
None
5
2004-12-17
2004-12-17
Anonymous
No

Hi,

I had problems using saprfc when I was try to call
functions with table import parameters.
The table import parameters were ignored.

I changed the saprfc class code, in the callFunction
function:

Original code:

// Set Table-Parameters (importing-values)
.....
@saprfc_table_append($this->func_id,$name,$data);

New code:
.....
@saprfc_table_append($this->func_id,$name,array
($key=>$data));

example:

$result=$sap->callFunction("RFC_READ_TABLE",array
(array("IMPORT","QUERY_TABLE","E070"),
array
("IMPORT","ROWCOUNT","30"),
array
("TABLE","OPTIONS",array("TEXT"=>"TRKORR
LIKE 'D1RK94%'")),

array("TABLE","DATA",array()),

array("TABLE","FIELDS",array())
));

With this correction, the system takes right the table
import parameters.

Good Luck

Cristian Dotro

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.