Giter Club home page Giter Club logo

Comments (12)

gkralik avatar gkralik commented on July 23, 2024

Seems they are not active ([...] Active: false [...]) strange.

from php7-sapnwrfc.

gkralik avatar gkralik commented on July 23, 2024

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.

ThaDafinser avatar ThaDafinser commented on July 23, 2024

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.

gkralik avatar gkralik commented on July 23, 2024

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.

ThaDafinser avatar ThaDafinser commented on July 23, 2024

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.

gkralik avatar gkralik commented on July 23, 2024

Yes, the plan is to have a HashTable save the activation state and activate each parameter before invoking the RFC.

from php7-sapnwrfc.

gkralik avatar gkralik commented on July 23, 2024

Can't really reproduce this one either... all parameters seem to be active by default.

from php7-sapnwrfc.

ThaDafinser avatar ThaDafinser commented on July 23, 2024

Hmm...cant provide you more then the trace and the used code currently...

from php7-sapnwrfc.

gkralik avatar gkralik commented on July 23, 2024

No problem.

from php7-sapnwrfc.

gkralik avatar gkralik commented on July 23, 2024

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.

gkralik avatar gkralik commented on July 23, 2024

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.

gkralik avatar gkralik commented on July 23, 2024

fixed in 0.7.0

from php7-sapnwrfc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.