2010 Jan 20 10:10 AM
Hi All,
We have a program which writes data to the application server and also sends the same data vial Email in the excel format and we have around 2 lakhs-3lakhs of records.
We ran the program is background mode and after running for a long time it has got cancelled with a dump TSV_TNEW_PAGE_ALLOC_FAILED. and it has failed in the below program "\CLASS=CL_DOCUMENT_BCS\METHOD=ADD_ATTACHMENT\DATA=I_ATT_CON TENT_TEXT"
It has got failed in the logic in the standard code.
FM SO_SOLIXTAB_TO_SOLITAB.
loop at ip_solixtab into ls_solix.
clear ls_soli.
assign ls_soli to <ptr_x> casting.
move ls_solix to <ptr_x>.
append ls_soli to ep_solitab.
endloop.
The same was working fine for few number of records,we are able to receive the mail sucessfully. Can you please suggest me what all could be the possibilities in giving the dump.
Thanks,
Bharathi.
Hi All,
We have a program which writes data to the application server and also sends the same data vial Email in the excel format and we have around 2 lakhs-3lakhs of records.
We ran the program is background mode and after running for a long time it has got cancelled with a dump TSV_TNEW_PAGE_ALLOC_FAILED. and it has failed in the below program "\CLASS=CL_DOCUMENT_BCS\METHOD=ADD_ATTACHMENT\DATA=I_ATT_CON TENT_TEXT"
It has got failed in the logic in the standard code.
FM SO_SOLIXTAB_TO_SOLITAB.
loop at ip_solixtab into ls_solix.
clear ls_soli.
assign ls_soli to <ptr_x> casting.
move ls_solix to <ptr_x>.
append ls_soli to ep_solitab.
endloop.
The same was working fine for few number of records,we are able to receive the mail sucessfully. Can you please suggest me what all could be the possibilities in giving the dump.
Thanks,
Bharathi.
2010 Jan 20 10:25 AM
Please search SCN first! Common question, posted over and over again:
[Search SCN TSV_TNEW_PAGE_ALLOC_FAILED|http://www.sdn.sap.com/irj/scn/advancedsearch?query=tsv_tnew_page_alloc_failed]
2010 Jan 20 11:01 AM
Hi,
After searching for the same in SCN i spoke with my basis team and they are saying that it is an ABAP issue and all the threads related to this say that it is the basis issue.
So i thought to confirm if it is a basis issue or ABAP issue.
Thanks,
Bharathi.
2010 Jan 20 2:37 PM
The threads that say it is a basis issue are generally incorrect. They mostly say things like "have basis increase the memory available". In fact it is an ABAP issue. The program is trying to store too much data in the space available..
Rob
2010 Jan 20 5:19 PM
The threads that say it is a basis issue are generally incorrect. They mostly say things like "have basis increase the memory available". In fact it is an ABAP issue. The program is trying to store too much data in the space available..
I can only confirm this.
What you should do with larger volumes is reviewing your program code, especially the internal tables.
When you have to process large volumes of data, don't try to select everything in internal tables in one time.
In stead process your data in blocks, example internal tables of 10.000 entries, repeat this until all data is processed.
If you try to select everything at once in internal tables you will often encounter TSV_TNEW_PAGE_ALLOC_FAILED short dumps, meaning your process used the maximum amount of memory that is specified.
Processing large amounts of data in blocks ALWAYS works, you only need a little bit more programming.
Success.
Wim
2010 Jan 20 11:16 AM
This is a problem of memory. The program handles field symbols incorrectly.
The data of e-mail seems very big and the memory increases in every loop.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |