Application Development and Automation 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: 
Read only

short dump : help required

Former Member
0 Likes
933

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

6 REPLIES 6
Read only

Former Member
0 Likes
906

Hi!

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

Regards

Tamá

Read only

former_member188827
Active Contributor
0 Likes
906

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

Read only

former_member196280
Active Contributor
0 Likes
906

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

Read only

dhorions
Contributor
0 Likes
906

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

Read only

0 Likes
906

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

Read only

Former Member
0 Likes
906

first check that the data types are same or not

regards

Giridhar