Menu

#16 EXPORT Parameters with structure raises system_error

open
nobody
None
5
2008-06-26
2008-06-26
Anonymous
No

when trying to call saprfc_export to get the value of an export parameter it works until i have a structure as fieldtype

There is no option to change the ABAP-Code to use TABLEs instead of a export structure. (getting tables works)

Using php 5.2.6 , saprfc 1.4.1, librfc32.dll v 7.1 (have tried 7.0, 6.2, 6.4..all with no luck...)

am i doing something wrong in general or does this need a patch for php_saprfc?

Discussion

  • Nobody/Anonymous

    Logged In: NO

    same for INPUT parameters...

     
  • Nobody/Anonymous

    Maybe can help:
    $fce2 = saprfc_function_discover($rfc, $function_name2);
    $table = "ZDATECONS";
    saprfc_call_and_receive($fce2);

    $rows = saprfc_table_rows($fce2, $table);
    for ($i = 1; $i <= $rows; $i++) {
    $result[] = saprfc_table_read($fce2, $table, $i);
    }
    saprfc_function_free($fce2);

    saprfc_table_read reads the Tables exported by SAP RFC Functions.

     
  • Nobody/Anonymous

    This does not work. with "saprfc_table_rows" the function definately needs a TABLE Parameter. But it does not work on an EXPORT-parameter which is not a single variable-type but a whole structure. So we need something like "saprfc_export_table_rows".

     

Log in to post a comment.

MongoDB Logo MongoDB