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

select into internal table

Former Member
0 Likes
1,917

Hello abap-gurus,

I have a small problem when doing a select into an internal table. As i select and append into an internal table, the program dumps as there is not enough memory for the internal table. The SAP-table i'm selecting from is simply too big. So I'm wondering if there is a way to stop or set the max lines in the internal table to say 10000 rows? I would appreciate any example.. the statement looks like this:

SELECT * INTO l_bdcpv

FROM bdcpv

WHERE not process = 'X'

AND mestype = 'ISM_MATMAS'.

APPEND l_bdcpv TO i_bdcpv.

ENDSELECT.

Best regards Ballo

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
584

HI,

DATA: I_BDPCV LIKE BDPCV OCCURS 0 WITH HEADER LINE.

SELECT * FROM BDPCV INTO I_BDPCV UP TO 100 ROWS WHERE PROCESS NE 'X' AND MESTYPE = 'ISM_MATMAS'.

APPEND I_BDPCV.

ENDSELECT.

Regards

CNU

4 REPLIES 4
Read only

Former Member
0 Likes
585

HI,

DATA: I_BDPCV LIKE BDPCV OCCURS 0 WITH HEADER LINE.

SELECT * FROM BDPCV INTO I_BDPCV UP TO 100 ROWS WHERE PROCESS NE 'X' AND MESTYPE = 'ISM_MATMAS'.

APPEND I_BDPCV.

ENDSELECT.

Regards

CNU

Read only

Former Member
0 Likes
584

HI,

Change the statement like this:

SELECT * INTO <b>corresponding fields of table l_bdcpv</b>

FROM bdcpv

WHERE process <b><></b> 'X'

AND mestype = 'ISM_MATMAS'.

Regards

Subramanian

Read only

Former Member
0 Likes
584

You can also try the PACKAGE SIZE option of the SELECT statement.

Rob

Read only

Former Member
0 Likes
584

BDCPV is such a huge table view...

resrict the select for message type