Type Incompatibility Error

SUGGESTED

Hello,

I am getting an error when changing a Lot No. on the Readdressing screen.

I did not get this error until after I added a field to the screen.

The Lot will still change, it just gives 2 error windows as follows:

Type Incompatibility

@U71.TRT/W2ZINPRAD$adx(636) : Call CONTADDI(VALEUR,num$([M:ZIR1]STO(nolign-1)),"") From SPVSTO

Can anyone help me with this?

Thanks!

  • 0
    SUGGESTED

    Hello,


    It all depends on what SPVSTO is doing,

    Type Incompatibility means two things, either the variables that are passed are not the same type, for instance a string is passed but on the other side a number was expected, or the number of variables passed are incorrect, for example 3 variables are passed but the subroutine expects 4 or 2

    But since your issue is coming from a generated program( W programs) most likely you would need to perform some validation. If you look at the top of the W2ZINPRAD code you will notice what process generated this code, and you would need to validate /windows/screen/entry transaction etc...

    Regards,

  • 0

    I would suspect either the [M:ZIR1]STO field is not numeric, which would cause the error as num$() expects a numeric input,
    or as Esfahani has suggested the parameters being passed in to the CONTADDI subprog aren't correct.

    If it isn't a string value in [M:ZIR1]STO then check the parameters of the CONTADDI subprog in SPVSTO (You should have the code for a vertical process)
    Check the number of parameters match and that the type expected matches the type being passed.