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

INSERT smt Limit?

Former Member
0 Likes
912

Hello,

We have this code


      INSERT zrictctgte FROM TABLE gt_ctg.

But cx_sy_open_sql_db exception is being throwed only when gt_ctg has a big quantity on records, i mean more than 1000,

if gt_cgt is smaller ie, 150 records, the stm works perfect, does anybody know why is that? i could loop on gt_ctg and insert a work area instead, but i want to know if there is a reason for this.

10nks in advance

Gabriel P-.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
835

Try Changing the Size category of the database table. Give it a bigger number. It can be done in Technical Settings of the table.

6 REPLIES 6
Read only

ThomasZloch
Active Contributor
0 Likes
835

Is there also a short dump in ST22? What does the section "error analysis" say?

Thomas

Read only

0 Likes
835

Hello Tomas,

The program is handling the exception so I dont have the st22 info....any more ideas??

thanks

gabriel

Read only

0 Likes
835

Any info in the system log SM21?

Try to implement block processing, inserting only n records at a time, as there might be some sort of memory, roll area, redo buffer or whatever problem.

Thomas

Read only

Former Member
0 Likes
836

Try Changing the Size category of the database table. Give it a bigger number. It can be done in Technical Settings of the table.

Read only

0 Likes
835

Hello,

The category size is 6, which is pretty big...thanks anyways!

Gabriel

Read only

Former Member
0 Likes
835

I will code as I said at the begining. with a loop and inserting the work area.