This website is not affiliated with, sponsored by, or approved by SAP AG.
Development SAPscript/ Smartforms
Moderators: thx4allthefish, Snowy, Gothmog, YuriT
by Femmy » Thu Jun 09, 2011 6:58 am
After some support packages have been implemented the IF statements in my Sap script do not work anymore.
I have checked if the lenght of the fields differ, but that is not the case. Everything seems to be the same but still the following code is always correct -> therefor always the amount will be printed even if it is zero.
IF &KOMK-FKWRT& NE ' 0,00'
Totale bedrag &EKKO-WAERS& (excl. BTW),,&KOMK-FKWRT(<18.2)&
ENDIF
Does anyone have an idea why it doesn't work anymore?
Or a clever idea how to program it in a different way?
Much obliged!
Femmy
-
Femmy
-
- Posts: 3
- Joined: Mon Mar 20, 2006 10:14 am
by Gothmog » Thu Jun 09, 2011 7:58 am
You've written
- Code: Select all
NE '0.00'
in the title, and
- Code: Select all
NE '0,00'
in your message.
Which is it ? And what in &KOMK-FKWRT& when it is 0 ?
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
-
Gothmog
-
- Posts: 1457
- Joined: Wed Sep 12, 2007 4:46 am
- Location: Probably not home
by Femmy » Fri Jun 10, 2011 5:33 am
Gothmog,
it is '0.00' .
And the value in KOMK-FKWRT is '0.00'.
Femmy
Femmy
-
Femmy
-
- Posts: 3
- Joined: Mon Mar 20, 2006 10:14 am
by Gothmog » Fri Jun 10, 2011 6:14 am
Did you check in debug ?
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
-
Gothmog
-
- Posts: 1457
- Joined: Wed Sep 12, 2007 4:46 am
- Location: Probably not home
by SHS » Wed Jul 06, 2011 7:53 am
If I recall correctly, SAPScript has difficulties with NE.
Perhaps if you change the NE to an EQ followed by an ELSE it will work again.
-
SHS
-
- Posts: 483
- Joined: Mon Mar 06, 2006 3:57 am
Return to SAPscript/Smartforms
Who is online
Users browsing this forum: No registered users and 1 guest