2007 Aug 29 10:59 AM
I get a short dump when cpmparing two currency fields as follows :
DATA: loc_totpy(25) TYPE c.
FIELD-SYMBOLS : <totpayment> TYPE ANY.
READ TABLE input WITH KEY 'REGUH-RBETR'.
IF sy-subrc = 0.
ASSIGN input-value TO <totpayment> .
loc_totpy = <totpayment>.
ENDIF.
-
> IF loc_totpy gt int_zchqlimit-zsiglimit.
sig = int_zchqlimit-zsighigh.
SHORT DUMP OCCOURS HERE.....
zsiglimit = curreny field (length = 13, decimal=2)
zsighigh = CHAR (length 70)
Any indication of the problem
I get a short dump when cpmparing two currency fields as follows :
DATA: loc_totpy(25) TYPE c.
FIELD-SYMBOLS : <totpayment> TYPE ANY.
READ TABLE input WITH KEY 'REGUH-RBETR'.
IF sy-subrc = 0.
ASSIGN input-value TO <totpayment> .
loc_totpy = <totpayment>.
ENDIF.
-
> IF loc_totpy gt int_zchqlimit-zsiglimit.
sig = int_zchqlimit-zsighigh.
SHORT DUMP OCCOURS HERE.....
zsiglimit = curreny field (length = 13, decimal=2)
zsighigh = CHAR (length 70)
Any indication of the problem
2007 Aug 29 11:02 AM
Hi!
Use the type of the field, it is compared with, instead of the TYPE ANY declaration.
Regards
Tamá
2007 Aug 29 11:03 AM
da data types of both da fields u r comparing shud be same...is it in ur case?if not make dem same...
reward points if it helps
2007 Aug 29 11:04 AM
Try to remove ",' from your character field..
Do.
Replace ',' with ' ' into loc_totpy.
If sy-subrc NE 0.
Condense loc_totpy NO-gap.
Exit.
Endif.
Enddo.
<b> IF loc_totpy gt int_zchqlimit-zsiglimit.</b>
...........
..........
.........
Close the thread if your question is answered and reward points if useful.
Regards,
SaiRama
2007 Aug 29 11:05 AM
> I get a short dump when cpmparing two currency fields
loc_totpy(25) (TYPE C) is a character field.
Maybe that is the problem. But you will get a better answer if you take a look in transaction ST22 and tell us what exactly the type of dump is?
is it something like ' CX_SY_DYN_CALL_ILLEGAL_TYPE' (you can see that on the second line of the dump, or in the exception column in ST22.
2007 Aug 29 11:08 AM
wat is da type of other field?
move the value in loc_totpy into a variable with same data type as of da other variable with which u r comparing
2007 Aug 29 11:07 AM
first check that the data types are same or not
regards
Giridhar
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |