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: 

short dump : help required

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

Hi!

Use the type of the field, it is compared with, instead of the TYPE ANY declaration.

Regards

Tamá

former_member188827
Active Contributor
0 Kudos

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

former_member196280
Active Contributor
0 Kudos

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

dhorions
Contributor
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

first check that the data types are same or not

regards

Giridhar