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

how to avoid a short dump

Former Member
0 Likes
2,354

hi everybody

im retrieving data from 2 tables febre and febep

data: begin of itab occurs 0,

kukey like febep-kukey,

esnum like febep-esnum,

epfov like febep-epvoz,

kfmod like febep-kfmod,

kwbtr like febep-kwbtr,

pakto like febep-pakto,

partn like febep-partn,

valut like febep-valut,

vgext like febep-vgext,

vgint like febep-vgint,

vozei like febep-vozei,

vwezw like febre-vwezw,

absnd like febko-absnd,

end of itab.

select

akukey aesnum

aepvoz akfmod akwbtr apakto

apartn avalut avgext avgint

a~vozei

b~vwezw

into corresponding fields of table itab

from febep as a

inner join febre as b

on akukey = bkukey

and aesnum = besnum

where a~epvoz = 'H'.

Its giving me a short dump when its being executed, does anybody know how i can avoid this dump?

when im retrieving fewer fields, im not getting the dump but wen i retrieve all the fields , the dump occurs

can sombody help me on that?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,261

hi Anjali,

In the internal table declaration, you have epfov fields, where as in statement you gave epvoz.

I think that is the problem

regards

Chandra.

Note: please reward if helpful.

13 REPLIES 13
Read only

Former Member
0 Likes
2,261

Which dump?

Max

Read only

Former Member
0 Likes
2,261

hi,

Check T-CODE ST22 and analyze the dump ...

REgards,

Santosh

Read only

Former Member
0 Likes
2,261

Hi,

Your code is working perfactly fine.

NO issue with it.

WHich dump u r getting ?

Read only

Former Member
0 Likes
2,262

hi Anjali,

In the internal table declaration, you have epfov fields, where as in statement you gave epvoz.

I think that is the problem

regards

Chandra.

Note: please reward if helpful.

Read only

Former Member
0 Likes
2,261

absnd field declared in itab but not used, try remove and then check.

Read only

0 Likes
2,261

thanks!

yea, the error was the mistyping of the field epvoz! i really could not identify the error

thanks a lot

Read only

0 Likes
2,261

HI Anjali,

just after the code make add these lines in case if there are any more errors...

IF SY-SUBRC <> 0.

MESSAGE <WHATEVER YOU WNAT TO DO IF ERROR>

ENDIF.

Regards,

Arnab.

Read only

Former Member
0 Likes
2,261

hi sia,

goto st22 and on user check the dump ..

from the overview u 'll get a list of occurances ..

ser no 1- 20

in that check out 3, 4, 7 and 8 ..

regards,

Vjay

Read only

Former Member
0 Likes
2,261

Hi Anjali,

there in no problem in the given code check with other code.

i checked ur code in my system, iam getting the output.

-Anu.

Read only

Former Member
0 Likes
2,261

Hi,

try like this...

select

akukey aesnum

aepvoz akfmod akwbtr apakto

apartn avalut avgext avgint

a~vozei

b~vwezw

c~absnd

into corresponding fields of table itab

from febep as a

inner join febre as b

on akukey = bkukey

and aesnum = besnum

inner join febko as c

on akukey = ckukey

where a~epvoz = 'H'.

Madhavi

Read only

Former Member
0 Likes
2,261

Hi anjali,

Try while changing the field 'epfov' to 'epvoz' in the internal table itab.

or try with 'INTO TABLE ITAB' option.

Regards

Satya.

Read only

Former Member
0 Likes
2,261

data: begin of itab occurs 0,

kukey like febep-kukey,

esnum like febep-esnum,

*epfov like febep-epvoz,

<b>epfoz like febep-epvoz,</b>

kfmod like febep-kfmod,

kwbtr like febep-kwbtr,

pakto like febep-pakto,

partn like febep-partn,

valut like febep-valut,

vgext like febep-vgext,

vgint like febep-vgint,

vozei like febep-vozei,

vwezw like febre-vwezw,

absnd like febko-absnd,

end of itab.

do this and let us know ..

Read only

Former Member
0 Likes
2,261

anjali,

in case of a short dump, to know which statement exactly in the program triggered the dump, just search for ---> in the dump...it will show the line which triggered the dump...