on 09-03-2009 9:02 AM
Dear all,
The value for KOMK-FKWRT is 78.67
Could someone tells me why it cannot meet the condition below?
IF &KOMK-FKWRT(C.0)& LT '1000'
INCLUDE 'ZMM_XXX' OBJECT TEXT ID 'ST' LANGUAGE EN PARAGRAPH K2
ENDIF.
Thanks in advance.
hi,
try:
IF &KOMK-FKWRT(C.0)& LT 1000
INCLUDE 'ZMM_XXX' OBJECT TEXT ID 'ST' LANGUAGE EN PARAGRAPH K2
ENDIF.
gr., Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bernson,
As my value passing from global variable is 8.000,00, which is 8,000.00 As the amount is in EUR.
My solution is as below. Does it make sense? But it is working now.
In ABAP
DATA: gv_netwr TYPE netwr Value 100000. " actual value will become 1.000,00
In Sapscript
IF &KOMK-FKWRT(C)& LT gv_netwr
INCLUDE 'ZMM_XXX' OBJECT TEXT ID 'ST' LANGUAGE EN PARAGRAPH K2
ENDIF.
Edited by: myahsam wong on Sep 3, 2009 12:25 PM
I think it's the old problem of not using "fixed point arithmetic" (check this flag in the attributes of the main program). When it is not used, SAP considers all packed fields having no decimal points. Example: if the field has 2 decimals and its value is 1000.50, SAP will consider it as being 100050. All people have to fight with that concept, me too
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.