Application Development 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: 

BCD_OVERFLOW Runtime Error

Former Member
0 Kudos

Hi Everyone,

My program returns an error when executing the following statement:

WRITE gs_vbrp-kzwi2 TO lv_ckzwi2 NO-GROUPING CURRENCY gs_vbrk-waerk.

WRITE gs_vbrp-kzwi3 TO lv_ckzwi3 NO-GROUPING CURRENCY gs_vbrk-waerk.

lv_kzwi2 = lv_ckzwi2.

lv_kzwi3 = lv_ckzwi3.

Note that these variables were declared as:

lv_ckzwi2(20) TYPE n,

lv_ckzwi3(20) TYPE n,

lv_kzwi2 TYPE i,

lv_kzwi3 TYPE i,

And I also tried to change the data type of lv_kzwi2 and lv_kzwi3 into types p and f.

Thanks for your help!

3 REPLIES 3

Former Member
0 Kudos

Try changing lv_kzwi2 & 3 to TYPE KZWI2 & KZWI3

This bases them off the data elements behind the VBRP-KZWI* fields

0 Kudos

I have already tried that solution... but it still returns a runtime error.

Former Member
0 Kudos

Hi,

Try changing the declarations as :

lv_ckzwi2 type kzwi2,

lv_ckzwi3 type kzwi3,

lv_kzwi2 type kzwi2,

lv_kzwi3 type kzwi3,

Thanks & Regards,

Navneeth K.