2006 Oct 05 9:35 AM
Hi all,
to avoid short dumps due to too large itabs, I wanted to catch an exception. (Consider: The itab size depends on user input). Unfortunately, the following coding doesnt work:
TRY.
SELECT *
FROM dbase
INTO itab
WHERE
.
CATCH cx
INTO ref_exc
ENDTRY.
In case of too large itab, the system doesnt execute the catch command. Has anybody an idea how to avoid a short dump due to few buffers available?
Regards,
Thomas
Hi all,
to avoid short dumps due to too large itabs, I wanted to catch an exception. (Consider: The itab size depends on user input). Unfortunately, the following coding doesnt work:
TRY.
SELECT *
FROM dbase
INTO itab
WHERE
.
CATCH cx
INTO ref_exc
ENDTRY.
In case of too large itab, the system doesnt execute the catch command. Has anybody an idea how to avoid a short dump due to few buffers available?
Regards,
Thomas
2006 Oct 05 9:39 AM
Hi
Why don't you create the wright variable?
DATA: MY_WA TYPE REF TO DATA.
FIELD-SYMBOLS: <WA> TYPE ANY.
CREATE OBJECT MY_WA TYPE (DBASE).
ASSIGN MY_WA->* TO <WA>.
SELECT *
FROM dbase
INTO <WA>
WHERE .
Max
2006 Oct 05 9:42 AM
As you said that itab size depends on user input why dont u use the variation of select statement as to fetch records up to x rows only.
2006 Oct 05 2:19 PM
Hi,
I just want to catch the system exception (dump: tsv_tnew_page_alloc_failled) nothing else. However, I didnt find a predefined exception class like for instance cx_sy_zerodivide. Any ideas ?
Regards
Thomas
2006 Oct 05 3:42 PM
Try if you can catch the particular exception class.
CX_SY_SQL_ERROR
Regards
Anurag
2006 Oct 06 8:22 AM
Hi,
cx_sy_sql_error doesn't work.
I think I'll be working with the package size statement.
Thanks
Thomas
2006 Oct 05 2:56 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |