07-11-2006 6:28 PM
Hi all,
my table loaded like this 12,345.00 (curreny field).i need to print this data like 1234.00 .can any one help me
to resolve this issue?
07-11-2006 6:32 PM
Move this field to character or WRITE into char variable with EDIT MASK.
Regds
Manohar
07-11-2006 6:32 PM
HI,
Goto t.code SU3, Select the tab <b>Default</b>, there maintain Decimal notation, whatever you select here that data will be appear to you
if you want to this one only for this program then use translate with condense.
translate str using ','.
condense str no-gaps.
Thanks
Sudheer
07-11-2006 6:36 PM
07-11-2006 6:32 PM
data: v_str(15) type c.
write v_amt to v_str.
replace all occurances of ',' with '' in v_str.
write:/ v_str.
Regards,
Ravi
07-11-2006 6:37 PM
Hi
Assign the value to a variable (type P with decimal 2) then write the variable.
DATA: VAR type P decimals 2.
VAR = your amount value.
WRITE VAR.
You can do this same way in SAP script or Smart form also.
Bala
Note: Award points if helpful
07-11-2006 6:39 PM
REPORT YMANO_TEST1 .
tables bseg. .
data : wa_test like bseg-dmbtr value '124443'.
data wa_test1(30).
wa_test1 = wa_test.
write 😕 wa_test.
write 😕 wa_test1.
07-11-2006 7:02 PM
Hi priya,
move the currency field into another char field n try displaying that.
hope this helps.
regards,
keerthi.