Hello friends,
The issue shown above is appearing in a z program when comparing a variable to zero.
I have the following definitions (i'm posting just the field which is causing the dump)
TYPES: BEGIN OF ty_ret,
......
impret(14) TYPE c,
......
END OF ty_ret.
DATA: t_ret TYPE standard TABLE OF ty_ret, w_ret LIKE LINE OF t_ret.
DATA: z(7) TYPE p DECIMALS 2.
DATA: BEGIN OF t_alv OCCURS 0,
....
impret LIKE z,
....
END OF t_alv.
At a point in the program t_alv have the number of the field t_alv-impret in the format "0.00" then it moves the records to w_ret. After that comes the following code:
MOVE-CORRESPONDING t_alv TO w_ret.
SHIFT: w_ret-impcom RIGHT,
w_ret-bascal RIGHT,
w_ret-impret RIGHT.
REPLACE '.' WITH ',' INTO: w_ret-impcom,
w_ret-bascal,
w_ret-impret.
if w_ret-impret eq 0.
else.
APPEND w_ret TO t_ret.
endif.
CLEAR w_ret.
At the block marked as red the dump shows up.
As you can see at the green block of code for some reason the program changes the dot per comma. The w_ret-impret has the value "0,00" before get compared to zero.
How can i solve the issue at if line?.
Regards,
Fernando