on 01-05-2011 7:37 AM
hi all
i have problem with sapscript form. I want to ask, when the value from a variable 0 is null,
it shoud show the other output. See the code
/: IF &EAN128-YYEVP& EQ 0.
ST <D0>Artikel-Nr.,,,,Artikel-Nr.,,</>
SV <D3>&EAN128-MATNR&</>,,,,,,<D3>
= &EAN128-MATNR&</>,,,,
/: ELSE.
ST <D0>Artikel-Nr.,,VP,,Artikel-Nr.,,VP</>
SV <D3>&EAN128-MATNR&</>,,<D0>CHF</>,,<D3>&EAN128-YYEVP(7.2)&</>,,<D3>
= &EAN128-MATNR&</>,,<D0>CHF</>,,<D3>&EAN128-YYEVP(7.2)&</>
/: ENDIF.
the if condition is wrong, i can't ask with 0. EAN128-YYEVP is datatyp from CURR.
thx abap_begin
If I am right, you need to remove the dots at the end of the IF, ELSE and ENDIF statements.
It is slightly different from normal ABAP programming..
Let me know if it works.
regards,
Marcel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok, i try it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
/: IF &EAN128-YYEVP& EQ 0. " Try using 0 in quotes or using IF &EAN128-YYEVP& IS INITIAL.
ST <D0>Artikel-Nr.,,,,Artikel-Nr.,,
SV <D3>&EAN128-MATNR&,,,,,,<D3>
= &EAN128-MATNR&,,,,
/: ELSE.
ST <D0>Artikel-Nr.,,VP,,Artikel-Nr.,,VP
SV <D3>&EAN128-MATNR&,,<D0>CHF,,<D3>&EAN128-YYEVP(7.2)&,,<D3>
= &EAN128-MATNR&,,<D0>CHF,,<D3>&EAN128-YYEVP(7.2)&
/: ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.