10-08-2008 2:29 PM
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!
10-08-2008 2:43 PM
Try changing lv_kzwi2 & 3 to TYPE KZWI2 & KZWI3
This bases them off the data elements behind the VBRP-KZWI* fields
10-09-2008 2:10 AM
I have already tried that solution... but it still returns a runtime error.
10-09-2008 10:01 AM
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.