Below is my code : I am able to connect to SAP system and when I am trying to read data from table I am getting below exception. Please any one can help me to figure out the issue. Error message : {success:false, msg: 'Exception raised: TABLE_NOT_AVAILABLE'}
$fce = saprfc_function_discover($rfc, "SAPMOdule");
if (! $fce ){
echo "{success: false, msg: 'Discovering interface of function module failed'}";
exit;
}
saprfc_table_init ($fce,"TableName");
saprfc_import ($fce,"Column1",'0602');
saprfc_import ($fce,"Column2",'ZA00');
set_time_limit ( 0 );
$rfc_rc = saprfc_call_and_receive ($fce);
if ($rfc_rc != SAPRFC_OK){
if ($rfc_rc == SAPRFC_EXCEPTION ){
ExitRFC($rfc, $fce, "false", "Exception raised: " . saprfc_exception($fce));
}else{
ExitRFC($rfc, $fce, "false", "Call error: " . saprfc_error($fce));
}
exit;
}