2008 Sep 12 11:50 AM
Hi,
I have two fields like following
Data: lv_menge TYPE menge,
lv_quan TYPE menge.
When I am doing the following operation I am getting problem.
lv_quan = lv_menge + lv_quan.
Thanks,
srinivas.
2008 Sep 12 11:59 AM
Hi,
Exactly what problem you are getting?
MENGE is a structure and also a DOMAIN.
I think it will give some error message if you declare like that.
HI Srinivas,
Please specify ur problem clearly Otherwise ur thread will be locked as it make no sence to the readers.
As per my understanding u might be getting overflow problem. This might be because u are declaring both of same type.
eg: If both lv_menge and lv_quan has big values, when u add these two it might exceed system limit.
So take lv_quan as TYPE P length 25 DECIMALS 2. Practically quantities won't cross this limit.
eg:
DATA: lv_quan(25) TYPE p DECIMALS 2.
Thanks,
Vinod.
2008 Sep 12 11:57 AM
HI Srinivas,
Please specify ur problem clearly Otherwise ur thread will be locked as it make no sence to the readers.
As per my understanding u might be getting overflow problem. This might be because u are declaring both of same type.
eg: If both lv_menge and lv_quan has big values, when u add these two it might exceed system limit.
So take lv_quan as TYPE P length 25 DECIMALS 2. Practically quantities won't cross this limit.
eg:
DATA: lv_quan(25) TYPE p DECIMALS 2.
Thanks,
Vinod.
2008 Sep 12 11:58 AM
hi sreenivasulu,
Exactly what error u r getting?
and check the values by keeping break-point. check is it more then the size it can hold.
Regards,
Azim.
2008 Sep 12 11:59 AM
Hi,
Exactly what problem you are getting?
MENGE is a structure and also a DOMAIN.
I think it will give some error message if you declare like that.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |