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 SAPSQL_SELECT_TAB_TOO_SMALL when using dynamic table in select

fabiankegel
Employee
Employee
0 Kudos

Hi,

I am working on a 4.6C system, where it is not possible to create dynamic tables with CREATE DATA lrt_table TYPE TABLE OF (strucname).

Instead of this, I am using the ALV function LVC_TABLE_CREATE, which creates table definitions in a subroutine pool.

Unfortunately, I get the short dump SAPSQL_SELECT_TAB_TOO_SMALL, when I create the table using the mentioned function module and selecting the data after that from the database.

SELECT * FROM (iv_table)

CLIENT SPECIFIED

INTO TABLE et_data UP TO iv_rows ROWS

WHERE (lt_where_condition).

The short dump says, that the internal table is only 208 bytes wide instead of 224.

This happens only for the table AUSP. Does anyone have a suggestion, why this happens? Maybe the floating point numbers in the transparent table AUSP?

Best regards,

Fabian

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Please add INTO CORRESPONDING FIELDS OF.

INTO CORRESPONDING FIELDS OF TABLE et_data

Regards,

Rich HEilman

0 Kudos

s we need to declare like

INTO CORRESPONDING FIELDS OF TABLE et_data

Regards,

ramesh.

former_member188685
Active Contributor
0 Kudos
SELECT * FROM (iv_table)
CLIENT SPECIFIED
INTO <b>corresponding fields of</b> TABLE et_data UP TO iv_rows ROWS WHERE (lt_where_condition).

Regards

vijay