Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BCD_FIELD_OVERFLOW

Former Member
0 Likes
1,781

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

8 REPLIES 8
Read only

suresh_datti
Active Contributor
0 Likes
1,259

obviously it is a length issue.. Did you check the declaration of the field symbol "<FS_VAL>" in your Program ?

~Suresh

Read only

Former Member
0 Likes
1,259

Declare the field-symbols using TYPE ANY.

Regards,

ravi

Read only

0 Likes
1,259

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 ?

Read only

Former Member
0 Likes
1,259

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

Read only

Former Member
0 Likes
1,259

Hi,

Declare the field symbols like below

<b>field-symbols : <fs_val> type any</b>

Regards

Sudheer

Read only

0 Likes
1,259

Hi sudheer,

as i mentioned in my previous post, the error stays even after declaring field symbol as type any.

regards,

Priyank

Read only

Former Member
0 Likes
1,259

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..

Read only

0 Likes
1,259

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