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

help in dump

Former Member
0 Likes
1,152

hi,

i do this select and when i have in range table (pro_tab) lot of recoreds

above 1000 i have dump .

how can i avoid that?

SELECT dimybproject COUNT(*) AS cnt

FROM /bic/0czempl

INTO CORRESPONDING FIELDS OF TABLE it_em

WHERE dim0calmonth GE res_per

AND dim0calmonth LE st_date

AND dimybproject IN pro_tab

GROUP BY dimybproject.

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,127

Hello,

You need to change ur select statment like this.


loop at pro_tab.
SELECT dimybproject COUNT(*) AS cnt
FROM /bic/0czempl
INTO CORRESPONDING FIELDS OF TABLE APPENDIND it_em " CHECK HERE
WHERE dim0calmonth GE res_per
AND dim0calmonth LE st_date
AND dimybproject EQ pro_tab-low " Check here
GROUP BY dimybproject.
endloop.

Hello,

You need to change ur select statment like this.


loop at pro_tab.
SELECT dimybproject COUNT(*) AS cnt
FROM /bic/0czempl
INTO CORRESPONDING FIELDS OF TABLE APPENDIND it_em " CHECK HERE
WHERE dim0calmonth GE res_per
AND dim0calmonth LE st_date
AND dimybproject EQ pro_tab-low " Check here
GROUP BY dimybproject.
endloop.

9 REPLIES 9
Read only

Sm1tje
Active Contributor
0 Likes
1,127

the only way to avoid this is to limit the number of entries in your select options.

Read only

Former Member
0 Likes
1,127

ranges or select options cannot have a lot of records in low ..

pro_tab-low ..

U can have them in a range ..

say from 1 to 100000 ... but cannot have values only in low..

If possible give the values in a range ..

Read only

Former Member
0 Likes
1,127

Hi,

avoid LE, GE

handel them after selection, no of records u r saying is not too much it should work with it, try to find out other cause of the dump .

Regards

Bikas

Read only

Former Member
0 Likes
1,127

hi,

Add Package size in your select statement.

so your select query will fatch the data into packages.

Read only

Former Member
0 Likes
1,128

Hello,

You need to change ur select statment like this.


loop at pro_tab.
SELECT dimybproject COUNT(*) AS cnt
FROM /bic/0czempl
INTO CORRESPONDING FIELDS OF TABLE APPENDIND it_em " CHECK HERE
WHERE dim0calmonth GE res_per
AND dim0calmonth LE st_date
AND dimybproject EQ pro_tab-low " Check here
GROUP BY dimybproject.
endloop.

Read only

0 Likes
1,127

Thanks Vasanth ,

how i write this commend right?

INTO CORRESPONDING FIELDS OF TABLE APPENDIND

Regards

Read only

0 Likes
1,127

Hello,

Sorry, Change the syntax like this.


loop at pro_tab.
SELECT dimybproject COUNT(*) AS cnt
FROM /bic/0czempl
INTO CORRESPONDING FIELDS OF  APPENDING TABLE it_em " CHECK HERE
WHERE dim0calmonth GE res_per
AND dim0calmonth LE st_date
AND dimybproject EQ pro_tab-low " Check here
GROUP BY dimybproject.
endloop.

Cheers,

Vasanth

Read only

0 Likes
1,127

Hi,

Thanks it work but the problem that it don't to count

for employee .

the table have 2 field cnt is emplyee

project cnt

e0011 2

e0022 5

what i miss?

Regards

Read only

Former Member
0 Likes
1,127

Hi,

Its better to debug the code. Put a breakpoint at the select statement and check.

See if u can give any other conditions for the selection criteria.

According to my knowledge there wont be dumps for jus 1000 records. when we had this kind of situation the records were crossing 750000 or so entries. There were some select queries where in the condition had not been mentioned accordingly..so corrected those mistakes n it was all fine.

Hope this small piece of info helped u....

Regards,

Ramya