01-25-2007 6:02 AM
hi all,
1)may i know why i made reference field to unit field for my quan field in screen painter, yet still no value showing?
2) may i know how to supress the decimal point. i do not want to show decimal points in my screen.
thanks
01-25-2007 6:20 AM
Hi,
Do not use the standard ref.field, use the same dictionary fieldname that you specified in your custom table.
If ztable is ur table and zquan is ur field with a reference field in zmeins in ur table.
In screen painter, declare the quan field as ZTABLE-ZQUAN and reference as ZTABLE-ZMEINS.
Assign the value to a char field and use replace stmt to remove the decimal point.
Regards
Subramanian
01-25-2007 6:38 AM
Better u can make the screen field as character .
or else u can eliminate the decimal point by referring it to TYPE P Decimals 0.
referring to this u will not encounter any decimals in the screen and need not use replace.
Execute the code to get the clear idea.
DATA : V1 TYPE P DECIMALS 0,
V2(13) TYPE C.
V1 = 212.
WRITE:/ V1.
V2 = V1. "character
WRITE:/ V2.
regards,
vijay