on 07-19-2011 12:58 PM
Hy all!
I get this error message:
Warning: RFC Error Info : Key : RFC_ERROR_SYSTEM_FAILURE Status : Message : Value for ID 'CODEPAGE' not found Internal: in D:\USERDATA\lakatba\programs\xampp\htdocs\saprfc\test2.php on line 30
Exception raised: NO_DATA_FOUND
Can you help me?
my script:
+$login = array (
"ASHOST"=>"********",
"SYSNR"=>"**",
"CLIENT"=>"***",
"USER"=>"*******",
"PASSWD"=>"******",
"CODEPAGE"=>"1100");
$rfc = saprfc_open ($login );
if (! $rfc ) { echo "RFC connection failed"; exit; }
//Discover interface for function module SWNC_COLLECTOR_GET_AGGREGATES
$fce = saprfc_function_discover($rfc,"SWNC_COLLECTOR_GET_AGGREGATES");
if (! $fce ) { echo "Discovering interface of function module failed"; exit; }
//Set import parameters. You can use function saprfc_optional() to mark parameter as optional.
//u2014u2014u2014- Import parameters
saprfc_import ($fce,"COMPONENT","TOTAL");
saprfc_import ($fce,"ASSIGNDSYS","TST");
saprfc_import ($fce,"PERIODSTRT","04.07.2011");
saprfc_import ($fce,"PERIODTYPE","W");
saprfc_optional ($fce,"SUMMARY_ONLY","");
saprfc_optional ($fce,"FACTOR","");
//Fill internal tables
saprfc_table_init ($fce,"TASKTYPE");
//Do RFC call of function SWNC_COLLECTOR_GET_AGGREGATES, for handling exceptions use saprfc_exception()
$rfc_rc = saprfc_call_and_receive ($fce);
if ($rfc_rc != SAPRFC_OK) { if ($rfc == SAPRFC_EXCEPTION ) echo ("Exception raised: ".saprfc_exception($fce)); else echo (saprfc_error($fce)); exit; }
//Retrieve export parameters
$rows = saprfc_table_rows ($fce,"TASKTYPE");
for ($i=1;$i<=$rows;$i++)
$TASKTYPE[] = saprfc_table_read ($fce,"TASKTYPE",$i);
//Debug info
saprfc_function_debug_info($fce);
saprfc_function_free($fce);
saprfc_close($rfc);+
Hello,
Do you find a solution for your pb ?
I try to do the same for an automatic report generated by a VBA excel.
Thanks for your feedback
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I think that according to [ this|http://help.sap.com/saphelp_sm32/helpdata/en/0a/5d453cf1fcc85ee10000000a11402f/content.htm] you should use a code page 1160.
Let us know if it works
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.