Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Class 'sapnwrfc' not found #24

Open
MbsmDev opened this issue Jun 15, 2023 · 0 comments
Open

Uncaught Error: Class 'sapnwrfc' not found #24

MbsmDev opened this issue Jun 15, 2023 · 0 comments

Comments

@MbsmDev
Copy link

MbsmDev commented Jun 15, 2023

Hello good day, I am trying to use the "sapnwrfc" extension in a project, but I get an error when doing the following example:

Note: It is worth mentioning that I am using php 7.4 and sdk 7.5, and the library already appears in my php.info and in the php modules I hope you can help me.
003
002
001

'xx', 'sysnr' => '01', 'client' => '300', 'user' => 'xxxx', 'passwd' => 'xxxx', 'trace' => SapConnection::TRACE_LEVEL_OFF, ]; testReadTable(); function testReadTable() { try { $conn = new sapnwrfc($this->config); $h = $conn->function_lookup('RFC_GET_TABLE_ENTRIES'); $parms = array('BYPASS_BUFFER' => 'X', 'MAX_ENTRIES' => 1, 'TABLE_NAME' => 'T005ZR'); $h->invoke($parms); } catch (sapnwrfcCallException $e) { //echo "Exception type: ".$e."\n"; echo "Exception key: " . $e->key . "\n"; echo "Exception code: " . $e->code . "\n"; echo "Exception message: " . $e->getMessage() . "\n"; $this->assertTrue(true); } catch (Exception $e) { echo "Exception type: " . $e . "\n"; echo "Exception key: " . $e->key . "\n"; echo "Exception code: " . $e->code . "\n"; echo "Exception message: " . $e->getMessage() . "\n"; throw new Exception('Connection failed.'); } echo "I am a happy piece of code that carried on....\n"; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant