cancel
Showing results for 
Search instead for 
Did you mean: 

variable not correctly resolved in sapscript form

Former Member
0 Kudos

Hi expert´s,

I've got two new fields to a form, i recovery the content from control program.

I have this code in form:

CASE &ZM003-LIN_NOTAS(6)&

WHEN '$$T2$$'

-Condiciones de envío

WHEN '$$3$$'

-Condiciones de embalaje

WHEN '$$T4$$'

-Condiciones de facturación

WHEN '$$T5$$'

-Condiciones de calidad

WHEN '$$T6$$'

-Condiciones de fecha de entrega

WHEN '$$T7$$'

-Observaciones de pedido

WHEN '$$T10$$'

-Canarias:

WHEN '$$T8$$'

-Condiciones de facturación (para la pos &ZM003-LIN_NOTAS+6&)

WHEN '$$T9$$'

-Descripción compra (para la pos &ZM003-LIN_NOTAS+6&)

WHEN '$$T11$$'

-Condiciones particulares de la adjudicación

WHEN OTHERS

&ZM003-LIN_NOTAS&

ENDCASE

The new variable '$$T10$$' not paint -Canarias, the form paint '$$T10$$'.

In other case, for example '$$T5$$' the form paint -Condiciones de calidad.

i don´t know becuse in '$$T10$$' case the form paint '$$T10$$'.

Can you help me?

Edited by: Thomas Zloch on Mar 16, 2011 10:51 AM - subject adjusted by moderator

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I am resolved problem. the problem was the length of the variable.

very thank´

Former Member
0 Kudos

CASE &ZM003-LIN_NOTAS (6)&

$$T10$$ is 7 characters as is $$T11$$, so $$t10$ (6) is not equal to $$T10$$ (7)!

In these cases the logic falling through to the WHEN OTHERS....

I'd remove the (6) from the case statement if possible (depending upon possible values of the variable), or make the (obvious) change to '$$T10$' and '$$T11$'.

Edited by: BreakPoint on Mar 16, 2011 4:12 PM