Comments (12)
Seems they are not active ([...] Active: false [...]
) strange.
from php7-sapnwrfc.
Try calling $func->setParameterActive('FMI_MATNR', true)
and check if it works.
There is a known bug with parameter activatation, I'll have a look...
from php7-sapnwrfc.
That works.
>> RfcOpenConnection
>> RfcOptions
// ...
<< RfcOptions
>> RfcConnection name="none"
Handle = 108726000 ConvID = 43018472
<< RfcConnection
<< RfcOpenConnection returned RFC_OK
>> RfcGetFunctionDesc
RfcGetFunctionDesc(Z_PPP_MAT_GET_METADATA) via handle 108726000
RfcGetFunctionDesc(Z_PPP_MAT_GET_METADATA) via handle 108726000 (SID=T11) returned 00000000067237F0
<< RfcGetFunctionDesc returned RFC_OK
>> RfcInvoke
Invoking Z_PPP_MAT_GET_METADATA on handle 108726000
>> RfcFunction name="Z_PPP_MAT_GET_METADATA"
>> IMPORTING parameters
>> FMI_LAEDA, RFCTYPE_DATE, Length: 16, Active: false, Requested: false
Value: 0000-00-00
<< FMI_LAEDA
>> FMI_MATNR, RFCTYPE_CHAR, Length: 36, Active: true, Requested: false
Value: 887070
<< FMI_MATNR
>> FMI_MTART, RFCTYPE_CHAR, Length: 8, Active: false, Requested: false
Value:
<< FMI_MTART
<< IMPORTING parameters
>> CHANGING parameters
<< CHANGING parameters
from php7-sapnwrfc.
OK, use that as a workaround for now. I hope to find enough time to rework the parameter handling this week. I'll keep you posted.
Thanks for testing 👍
from php7-sapnwrfc.
Maybe just call $func->setParameterActive('FMI_MATNR', true)
when a parameter is provided?
NO problem. Testing is important to get it into production asap ;-)
from php7-sapnwrfc.
Yes, the plan is to have a HashTable
save the activation state and activate each parameter before invoking the RFC.
from php7-sapnwrfc.
Can't really reproduce this one either... all parameters seem to be active by default.
from php7-sapnwrfc.
Hmm...cant provide you more then the trace and the used code currently...
from php7-sapnwrfc.
No problem.
from php7-sapnwrfc.
I can't really reproduce your issue. For me, all parameters are active by default. Calling setParameterActive()
for all FM parameters seems not to be a solution as it causes segfaults when exceptions occur in the FM...
But there have been changes to parameter handling, so maybe your issue is already resolved.
from php7-sapnwrfc.
OK, the new implementation now makes sure that all parameters passed as arguments to invoke()
are activated. This seems to work and does not cause any strange errors.
from php7-sapnwrfc.
fixed in 0.7.0
from php7-sapnwrfc.
Related Issues (20)
- SAPNWRFC Library returns error no conversation found with id 04395046 on certain words HOT 1
- Exception: Failed to get description for parameter TMP HOT 4
- php_sapnwrfc.dll under PHP 8.1.11 HOT 7
- php_sapnwrfc-2.0.0-beta2-8.1.0-vs16-ts-x64.dll Unable to load dynamic library HOT 6
- PHP 7.3.2 + SAP NW RFC 7.50 Unable to add sapnwrfc Extension
- Unable to add extenstion PHP7 SAP NW RFC HOT 1
- Where tofind SYSNR
- Scripts works only executed on CLI HOT 1
- Solution: Docker with build for PHP 8.2
- SAP NWRFC is not a valid win32 version HOT 1
- Error during Make HOT 7
- Can't do two calls HOT 2
- Warning Library HOT 2
- PHP Fatal error: Possible integer overflow in memory allocation (1610760192 32 + 32) HOT 2
- Pre-build for 8.2.4 HOT 1
- Extension got disappeared after somedays HOT 1
- PHP Startup: Unable to load dynamic library php_sapnwrfc.dll HOT 3
- PHP 7.2 + SAP NW RFC 7.20 +php7-sapnwrfc 1.3.0 return parameter is empty HOT 2
- Memory Leak Issue in SAP PHP Connection: Seeking Advice on Workaround HOT 15
- Error building PHP Version: 8.3.3 with sap nw rfc 7.5 patch 12 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php7-sapnwrfc.