hi all,
in one of the report they are using FIELD-SYMBOLS .
the problem is with amount field ,
declared FIELD-SYMBOLS as below
FIELD-SYMBOLS <output_field>.
where as the lt_datatable-text = 3325.
MOVE lt_datatable-text TO <output_field>.
but after moving
lt_datatable-text TO <output_field>.
the amount is becoming with extra zeros as 3325.0000.
while debugging before moving it is displacing zeros as below.
lt_datatable-text = 3325
<output_field> = 0000
finally the value is coming as 3325.0000.
please see the code below
FIELD-SYMBOLS <output_field> .
DATA: var1 LIKE dd03p-fieldname.
DATA: BEGIN OF lt_datatable OCCURS 0,
text(2000) TYPE c,
END OF lt_datatable.
LOOP AT lt_datatable.
CONCATENATE lv_outputtable '-' lt_tablefields-fieldname INTO var1.
ASSIGN (var1) TO <output_field>.
REPLACE ALL OCCURRENCES OF '"' IN lt_datatable-text WITH space.
CONDENSE lt_datatable-text.
MOVE lt_datatable-text TO <output_field>.
ENDLOOP.
please help me how to get the exact value as 3325.