‎2007 May 01 6:59 AM
I am getting a BCD_FIELD_OVERFLOW error while assigning a value to a field symbol. the error message is
A value generated during processing is too large for the
field "<FS_VAL>" of the program "ZDUPLICATA_REPORT".
could anyone suggest how to handle large enough values using field symbols?
regards,
Priyank
‎2007 May 01 2:16 PM
obviously it is a length issue.. Did you check the declaration of the field symbol "<FS_VAL>" in your Program ?
~Suresh
‎2007 May 01 2:18 PM
‎2007 May 02 7:22 AM
the declaration is as follows :
field-symbols : <fs_val>.
i tried with type any. the error still stays.
the code is as follows...i am using assign component with the field symbol..
loop at itab into wa_dyntab.
<<...some code here ...>>
...
assign component lv_col_index_val of structure wa_dyntab to <fs_val>.
<fs_val> = wa_zduplicata_temp-zzvalor.
...
<<...some code here ...>>
endloop
lv_col_index_val is of type i.
the internal table field zzvalor is of type CURR (length 26 decimals 2).
is there a length limit with field symbols???
regards,
Priyank
any further hints ?
‎2007 May 01 2:25 PM
Hi,
declare field symbol with datatype of the field you are using to store
value.
data var like konv-kbetr value '100.00'.
field-symbols:<fs> like konv-kbetr.
assign var to <fs>.
Regards,
amole
‎2007 May 02 7:27 AM
Hi,
Declare the field symbols like below
<b>field-symbols : <fs_val> type any</b>
Regards
Sudheer
‎2007 May 02 7:40 AM
Hi sudheer,
as i mentioned in my previous post, the error stays even after declaring field symbol as type any.
regards,
Priyank
‎2007 May 02 8:05 AM
Hi,
you have to check the value in runtime & for currency & quantity fields we have to declare unit of measurements.
check its a problem of UOM field..
‎2007 May 02 12:18 PM
hi Rajesh,
I don't understand what you are saying.
please have a look at the code sample i wrote earlier and let me know if something is wrong there.
regards,
Priyank