Spaces on internal table
Hello,
I have an internal table like this.
DATA BEGIN OF IT_TEST OCCURS O,
FLD(20) TYPE C,
FLD2(20) TYPE C,
END OF IT_TEST.
I need to download the it_test´s data to a file, but i need that the fld2 with white spaces. When I check the file on notepad the fld has info, but the fld2 doesn´t have blank spaces, how can i fill this field in order to have it on the downloaded file?
Im filling the internal table like this:
it_test-fld = 'DATA 1 DATA 1'
WHILE num lt 20.
CONCATENATE it_test-fld2 ' ' into it_test-fld2.
add 1 to num.
ENDWHILE.
APPEND IT_TEST.
Then I download it with GUI_DOWNLOAD using ASC mode.
Thanks for helpingme, points will be rewarded!!
Gabriel P.
Unfortunately, GUI_DOWNLOAD does not support fixed length files. It will automatically eliminates any trailing spaces. You can control it when downloading to the server side using TRANSFER with the LENGTH option.
One way around this problem is to have just another field of one character and always default it to 'X' to indicate record end.
DATA BEGIN OF IT_TEST OCCURS O,
FLD(20) TYPE C,
FLD2(20) TYPE C,
<b>end_of_rec type c,<--</b>
END OF IT_TEST.
Similar Messages
-
Deleting blank spaces in internal table
Hi Gurus,
I want to delete the empty spaces of a particular field in internal table.I used condense and shift statements but didnt work because the work area value is already condensed.I am not sure why the internal table field is having so much of empty spaces to its left.It's a character field with length 60.
Please suggest.Hi,
This is the rellevant code
LOOP AT IT_HIER INTO WFL_HIER.
WFL_FINAL-NODEID = WFL_HIER-NID.
WFL_FINAL-IOBJNM = WFL_HIER-IOBJ.
WFL_FINAL-NODENAME = WFL_HIER-NNAME.
WFL_FINAL-PID = WFL_HIER-PID.
condense wfl_hier-desc.
WFL_FINAL-DESCRIPTION = WFL_HIER-DESC.
SHIFT WFL_FINAL-DESCRIPTION LEFT DELETING LEADING SPACE.
APPEND WFL_FINAL TO E_T_DATA.
CLEAR WFL_FINAL.
CLEAR: WFL_HIER,OUT.
ENDLOOP.
The problem is not with the work area.
Say if I have a value apple in the work area wa, (wa - 'apple').
It doesnt have any leading sapces to the left.
But when I am appending it to the internal table it gets posted at the last say like this (it - ' apple'.
It occupies the last five characters.
Not sure how to resolve this. -
Delete spaces in internal table
Hi this question is to improve my performance...
what is the performance oriented way of delete entires in internal table where any of the field is empty.
1 2 3 4 5 6 7
A B C D E F G "<< ok
A B C E F G "<< delete
A B C E G "<< delete
or
loop at itab.
if itab-f1 eq space or itab-f2 eq space.....
delete itab.
endif.
endloop. " how to eliminate this loop...?Try this way
delete itab where f1 eq space
or f2 eq space
or f7 eq space.
a® -
Statistics setup for 2LIS_11 and no storage space available internal table
Hi, I am running statistical setup for 2LIS_11_VAITM. It ran for 10 hours and failed with an ABAP run time error. The error is "no storage space available for extending an internal table". For 11 application, the selection options is sales org, company code and sales document. We have tried twice, and already drilled down to the level of sales org and company code, but still with error.
The only option is sales documents.
The volume of the data is 16 million records around in VBAP table which needs to be in the setup table.
What is the criteria to categorize the sales document.
Can we use order types? We have 200 values in the order types. And I am not sure the document ranges in each order type is clearly defined and not overlapping each other, so that we could load those in the setup table.
Please advise!! Or if you have other suggestions!
Thanks!Hi
It could be because of main memory problem... so Restrict your selections and do the statistical setup
by the way how many comp codes you have? restrict with comp codes or doc ranges
Thanks, -
What are nested Internal tables
Hi Guru's,
I am new to ABAP ...just trying to learn things.Can you please explain me what are nested internal tables and what is the purpose of nested internal table?where can it be used and why a header line is not written in a Nested Internal table...
Kindly explain it (scenario where nested internal tables are used) with an example it will be helpful.
Cheers,
PriyankaHi,
When storing data in internal tables, you often use one internal table for each database you read.
Each one contains some or all columns of the relevant database table. It is up to you whether
you create an internal table with a flat structure for each database table or if you create, for
example, internal tables with nested structures. If you have several tables, each one with a flat
structure, you have to work with redundant key fields to link the tables. If, on the other hand, you
use nested internal tables, you can store the data from the database tables hierarchically.
Saving and processing very large amounts of data in internal tables has disadvantages. If you
divide up the data into different internal tables, processing it can be very runtime-intensive, since
the tables have to be processed individually. Furthermore, it requires a lot of storage space,
since internal tables are not stored in compressed form. The system may even need to store the
dataset outside of its working memory. This means that processing it takes even longer.
An example of nested internal table:
Assume the following program is linked to the logical database [Page 1163] F1S.
REPORT DEMO.
DATA: SUM TYPE I, CNT TYPE I.
NODES: SPFLI, SFLIGHT, SBOOK.
DATA: BEGIN OF WA_SBOOK,
BOOKID TYPE SBOOK-BOOKID,
SMOKER TYPE SBOOK-SMOKER,
CLASS TYPE SBOOK-CLASS,
LUGGWEIGHT TYPE SBOOK-LUGGWEIGHT,
WUNIT TYPE SBOOK-WUNIT,
END OF WA_SBOOK.
DATA: BEGIN OF WA_SFLIGHT,
FLDATE TYPE SFLIGHT-FLDATE,
SBOOK LIKE TABLE OF WA_SBOOK,
END OF WA_SFLIGHT.
DATA: BEGIN OF WA_SPFLI,
CARRID TYPE SPFLI-CARRID,
CONNID TYPE SPFLI-CONNID,
CITYFROM TYPE SPFLI-CITYFROM,
CITYTO TYPE SPFLI-CITYTO,
SFLIGHT LIKE TABLE OF WA_SFLIGHT,
END OF WA_SPFLI.
DATA TAB_SPFLI LIKE TABLE OF WA_SPFLI.
START-OF-SELECTION.
GET SPFLI.
REFRESH WA_SPFLI-SFLIGHT.
GET SFLIGHT.
REFRESH WA_SFLIGHT-SBOOK.
GET SBOOK.
MOVE-CORRESPONDING SBOOK TO WA_SBOOK.
APPEND WA_SBOOK TO WA_SFLIGHT-SBOOK.
GET SFLIGHT LATE.
MOVE-CORRESPONDING SFLIGHT TO WA_SFLIGHT.
APPEND WA_SFLIGHT TO WA_SPFLI-SFLIGHT.
GET SPFLI LATE.
MOVE-CORRESPONDING SPFLI TO WA_SPFLI.
APPEND WA_SPFLI TO TAB_SPFLI.
END-OF-SELECTION.
SORT TAB_SPFLI BY CITYFROM CITYTO CONNID.
LOOP AT TAB_SPFLI INTO WA_SPFLI.
SKIP.
WRITE: / WA_SPFLI-CARRID,
WA_SPFLI-CONNID,
'from', (15) WA_SPFLI-CITYFROM,
'to', (15) WA_SPFLI-CITYTO.
ULINE.
SORT WA_SPFLI-SFLIGHT BY FLDATE.
LOOP AT WA_SPFLI-SFLIGHT INTO WA_SFLIGHT.
SKIP.
WRITE: / 'Date:', WA_SFLIGHT-FLDATE.
WRITE: 20 'Book-ID', 40 'Smoker', 50 'Class'.
ULINE.
SORT WA_SFLIGHT-SBOOK BY CLASS SMOKER BOOKID.
SUM = 0.
CNT = 0.
LOOP AT WA_SFLIGHT-SBOOK INTO WA_SBOOK.
WRITE: / WA_SBOOK-BOOKID UNDER 'Book-ID',
WA_SBOOK-SMOKER UNDER 'Smoker',
WA_SBOOK-CLASS UNDER 'Class'.
SUM = SUM + WA_SBOOK-LUGGWEIGHT.
CNT = CNT + 1.
ENDLOOP.
ULINE.
WRITE: 'Number of bookings: ', (3) CNT,
/ 'Total luggage weight:',
(3) SUM, WA_SBOOK-WUNIT.
ENDLOOP.
ENDLOOP.
Thanks. -
Short dump - No more storage space available for extending an internal tabl
Hi All,
I have requirement in which my program generates a text file on my presentation server. Here my problem is, this requirement can not be executed in back ground, it should be done in foreground only. When I execute in foreground, if the data records comes to some 38 lacks then I am getting a short dump saying 'No more storage space available for extending an internal table'.
And in dump analysis under WHAT HAPPENED section it is giving as
' What happened? |
| You attempted to extend an internal table, but the required space was |
| not available.
Please suggest me, what I have to do in this case?
Thanks in advance.
Thanks,
Sudha MettuHi SuDash,
Allocation of the memory spaces will be done by BASIS people.
you can contact them..
Regards! -
Short dump -No more storage space available for extending an internal table
Hi All,
While running one program I get the short dump saying
"No more storage space available for extending an internal table "IT_862".
Error Analysis given in the dump log :
The internal table "IT_862" could not be enlarged further.
To extend the internal table, 14656 bytes of storage space was
needed, but none was available. At this point, the table "IT_862" has
8528862 entries.
Source Code Extract :
003360 loop at t_line.
003370 clear t_output.
003380
003390 * Increment Line counter
003400 add 1 to l_line_cnt.
003410
003420 t_output-object = t_stxh-tdobject.
003430 t_output-id = t_stxh-tdid.
003440 t_output-spras = t_stxh-tdspras.
003450 t_output-name = t_stxh-tdname.
003460 t_output-line = l_line_cnt.
003470 t_output-format = t_line-tdformat.
003480 t_output-text = t_line-tdline.
*> append toutput. " ERROR POINT*
Can you please suggest what can be the possible solution for the above error.
Thanks in advance.
SanjeetHi
Check out this thread:
Re: No storage space available for extending the internal table
Make sure you are not having an infinite loop.
Hope this helps
Regards,
Jayanthi.K -
Error Message - No storage space available for extending an internal table
i have written this code where i think there is a performance issue as well.
Error - You have attempted to extend an internal table but the required space was not available.
IF GT_OUTTAB IS NOT INITIAL.
SELECT ZRMVIEW~ARBPL
ZRMVIEW~GSTRS
ZRMVIEW~GSUZS
ZRMVIEW~GLUZS
ZRMVIEW~GLTRS
ZRMVIEW~VERID
ZCRHDV1~KTEXT1
INNER JOIN CRHD_V1 AS ZCRHDV1
ON ZRMVIEWMANDT = ZCRHDV1MANDT
AND ZRMVIEWWERKS1 = ZCRHDV1WERKS
FOR ALL ENTRIES IN GT_OUTTAB
WHERE AUFNR = GT_OUTTAB-BID.
ENDSELECT.
ENDIF.
IF SY-SUBRC EQ 0.
LOOP AT GT_OUTTAB .
READ TABLE GT_PRV_OUTAB WITH KEY WERK = GT_OUTTAB-WERK.
MOVE-CORRESPONDING GT_PRV_OUTAB TO GT_OUTTAB.
APPEND GT_OUTTAB.
ENDLOOP.
ENDIF.
GT_OUTTAB contains the structure for the table COCH.
And to read this select statement it takes lot of time.
please provide me proper inputs for the same.
thanks,Hi Shanky S
LOOP AT GT_OUTTAB .
READ TABLE GT_PRV_OUTAB WITH KEY WERK = GT_OUTTAB-WERK.
MOVE-CORRESPONDING GT_PRV_OUTAB TO GT_OUTTAB.
APPEND GT_OUTTAB.
ENDLOOP.
You are looping at gt_outtab and appending it within the same loop. Since everytime a new entry is appended into the gt_outtab int table and thus it'll lead to an infinite loop.
Try something like by creating an itab of similar structure as gt_outtab:
LOOP AT gt_outtab into wa_outtab (work area).
MOVE-CORRESPONDING wa_outtab into wa_outtab1.
APPEND wa_outtab1 to gt_outtab1.
ENDLOOP.
LOOP AT GT_OUTTAB .
READ TABLE GT_PRV_OUTAB WITH KEY WERK = GT_OUTTAB-WERK.
MOVE-CORRESPONDING GT_PRV_OUTAB TO GT_OUTTAB1.
APPEND GT_OUTTAB1.
ENDLOOP.
Now use gt_outtab1 in your code going furthur.
Hope this helps.
Harsh -
How to delete space in an internal table
Hi All,
In internal table I want to compress the leading space
After searching I found Condense and SHIFT LEFT DELETE leading space commands work it is written...
but when I write code A single space is appreaing in between the two fields...can any body help me where I am going wrong??
Ex:
data: begin of itab occurs 1 ,
PSAtext TYPE CHAR15,
psa type btrtl,
end of itab.
now o/p BEFORE CHANGE IS :
SBI-CT |1023
After condense is SBI-CT |1023
bETWEEN SBI-CT AND | there is a additional space. How can we avoid that?
Sas
Edited by: saslove sap on Sep 29, 2010 7:43 AMWell this is what I am going to solve this
data:begin of STRING OCCURS 1 ,
S1 TYPE STRING,
END OF STRING.
loop at itab.
concatenate itab-f1 itab-f2 into string-s1 seperated by '|'.
append string.
end of itab.
then I can transfer this string to Application server.
Thanks for all the contributions.
Regards
sas -
No storage space available for extending an internal table.
Hi All,
I am using Function Module : VC_I_GET_CONFIGURATION in FI related Sales Order Report to get
configuration data for fields Model/Engine and Line no.
when the program executed in Production environment, It is giving Runtime Error TSV_TNEW_PAGE_ALLOC_FAILED.
ShrtText : No storage space available for extending an internal table.
The termination occurred in the ABAP program "SAPLIBINF" in "SELECT_INSTANCES_01" . its all happening
in the above FM.
Is there any possibility to get configuration data (Model/Engine and Line no) with out using FM.
please advise me on how you would like to proceed related to this issue.
Thanks & Regards
Satish ReddyHi Satish,
Please go through the below links and see if you can use this to address your issue,
http://wiki.sdn.sap.com/wiki/display/ABAP/ReplacementofVC_I_GET_CONFIGURATIONforperfomance+tunning
VC_I_GET_CONFIGURATION and paging memory
Regards,
Chen
Edited by: Chen K V on May 26, 2011 2:34 PM -
Error-No more storage space available for extending an internal table.
Hi Experts,
i am facing problem in a program . its showing runtime error.
Short text
No more storage space available for extending an internal table.
its showing error at
IF sy-subrc NE 0.
REFRESH p_wip_tab.
ELSE.
i_wip_tab-pspnr = i_internal_and_external-pspnr_prps.
LOOP AT p_wip_tab.
MOVE-CORRESPONDING p_wip_tab TO i_wip_tab.
==> APPEND i_wip_tab.
ENDLOOP.
ENDIF.
DATA: l_billable_tab LIKE p_billable_tab OCCURS 0 WITH HEADER LINE,
p_wip_tab LIKE zpswip OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF i_wip_tab OCCURS 0,
pspnr LIKE prps-pspnr.
INCLUDE STRUCTURE zpswip.
DATA: pernr_name LIKE pa0002-vorna,
END OF i_wip_tab.
How i can resolve this problem if anybody knows it then please reply me as soon as possible.
ThanksHello.
Probably you fill the internal table with too much data and it cannot hold that much.
You can either redesign the program so that it processes the data in batches of, say 100000 records, or contact your BASIS team and ask for their help. They could possible assign more memory to the running applications.
Reward if helpful.
Regards,
George -
Error on extend an internal table, but the required space was not available
Hi All,
I am trying to retrieve cost data from COVP tables, as well as the quantity, cost centre, and price unit fields from MSEG / BSEG tables. Thing is, if the AWTYP value in COVP table = 'MKPF', i have to get the data from MSEG, otherwise, I need to get it from BSEG table.
I kept getting this error message:
<i>You attempted to extend an internal table, but the required space was not available.</i>
Anyone have any idea how to make my codes more efficient?
Please help. Thanks!
Regards,
Cecilia
REPORT ZMISCY004.
TABLES : COVP, BSIS, BSEG, MSEG, MAKT, CSKU.
PARAMETERS :
P_FILE(300) DEFAULT '\sapdcdatasaprptoh.txt' LOWER CASE.
DATA MSG_TEXT(50).
DATA :
XKOKRS LIKE COVP-KOKRS,
XBELNR LIKE COVP-BELNR,
XBUZEI LIKE COVP-BUZEI,
XGJAHR LIKE COVP-GJAHR,
XPERIO LIKE COVP-PERIO,
XWKGBTR LIKE COVP-WKGBTR,
XWTGBTR LIKE COVP-WTGBTR,
XREFBN LIKE COVP-REFBN,
XREFBZ LIKE COVP-REFBZ,
XKSTAR LIKE COVP-KSTAR,
XBEKNZ LIKE COVP-BEKNZ,
XMATNR LIKE COVP-MATNR,
XBUKRS LIKE COVP-BUKRS,
XREFGJ LIKE COVP-REFGJ,
XREFBK LIKE COVP-REFBK,
XLTEXT LIKE CSKU-LTEXT,
XMAKTX LIKE MAKT-MAKTX,
XAWTYP LIKE COVP-AWTYP,
XTWAER LIKE COVP-TWAER,
XSGTXT LIKE COVP-SGTXT,
BSEG_KOSTL LIKE BSEG-KOSTL,
BSEG_MEINS LIKE BSEG-MEINS,
BSEG_MENGE LIKE BSEG-MENGE,
MSEG_KOSTL LIKE MSEG-KOSTL,
MSEG_MENGE LIKE MSEG-MENGE,
MSEG_MEINS LIKE MSEG-MEINS.
DATA : BEGIN OF ITAB_COVP OCCURS 10,
KOKRS LIKE COVP-KOKRS,
BELNR LIKE COVP-BELNR,
BUZEI LIKE COVP-BUZEI,
GJAHR LIKE COVP-GJAHR,
PERIO LIKE COVP-PERIO,
WKGBTR(15) TYPE C,
WTGBTR(15) TYPE C,
REFBN LIKE COVP-REFBN,
REFBZ(3) TYPE C,
KSTAR LIKE COVP-KSTAR,
BEKNZ LIKE COVP-BEKNZ,
MATNR LIKE COVP-MATNR,
BUKRS LIKE COVP-BUKRS,
REFGJ LIKE COVP-REFGJ,
REFBK LIKE COVP-REFBK,
LTEXT LIKE CSKU-LTEXT,
MAKTX LIKE MAKT-MAKTX,
AWTYP LIKE COVP-AWTYP,
TWAER LIKE COVP-TWAER,
SGTXT LIKE COVP-SGTXT,
BSIS_WRBTR(13) TYPE C,
BSEG_KOSTL LIKE BSEG-KOSTL,
BSEG_MEINS LIKE BSEG-MEINS,
BSEG_MENGE LIKE BSEG-MENGE,
MSEG_KOSTL LIKE MSEG-KOSTL,
MSEG_MENGE LIKE MSEG-MENGE,
MSEG_MEINS LIKE MSEG-MEINS.
DATA : END OF ITAB_COVP.
SELECT M1~KOKRS
M1~BELNR
M1~BUZEI
M1~GJAHR
M1~PERIO
M1~WKGBTR
M1~WTGBTR
M1~REFBN
M1~REFBZ
M1~KSTAR
M1~BEKNZ
M1~MATNR
M1~BUKRS
M1~REFGJ
M1~REFBK
M1~AWTYP
M1~TWAER
M1~SGTXT
M4~KOSTL
M4~MENGE
M4~MEINS
INTO (XKOKRS,
XBELNR,
XBUZEI,
XGJAHR,
XPERIO,
XWKGBTR,
XWTGBTR,
XREFBN,
XREFBZ,
XKSTAR,
XBEKNZ,
XMATNR,
XBUKRS,
XREFGJ,
XREFBK,
XAWTYP,
XTWAER,
XSGTXT,
MSEG_KOSTL,
MSEG_MENGE,
MSEG_MEINS
FROM COVP AS M1
LEFT OUTER JOIN MSEG AS M4
ON M1~REFBN = M4~MBLNR AND M1~REFBZ = M4~ZEILE AND M1~REFGJ = M4~MJAHR
WHERE M1~SCOPE = 'OCOST' AND M1~AWTYP = 'BKPF'
OR M1~SCOPE = 'OCOST' AND M1~AWTYP = 'MKPF'
OR M1~KSTAR = '972022'.
IF XAWTYP = 'BKPF'.
SELECT KOSTL MENGE MEINS INTO (BSEG_KOSTL, BSEG_MENGE, BSEG_MEINS) FROM
BSEG WHERE BELNR = XREFBN AND BUZEI = XREFBZ AND GJAHR = XREFGJ AND
BUKRS = XREFBK.
ENDSELECT.
MOVE BSEG-KOSTL TO BSEG_KOSTL.
MOVE BSEG-MEINS TO BSEG_MEINS.
MOVE BSEG-MENGE TO BSEG_MENGE.
ELSE.
MOVE ' ' TO BSEG_KOSTL.
MOVE ' ' TO BSEG_MEINS.
MOVE ' ' TO BSEG_MENGE.
ENDIF.
*GET LTEST
SELECT LTEXT INTO XLTEXT
FROM CSKU
WHERE KTOPL = 'COAA' AND SPRAS = 'EN'.
*GET MAKTX
IF XMATNR <> ' '.
SELECT SINGLE * FROM MAKT WHERE MATNR = XMATNR.
MOVE MAKT-MAKTX TO XMAKTX.
ELSE.
MOVE ' ' TO XMAKTX.
ENDIF.
MOVE : XKOKRS TO ITAB_COVP-KOKRS,
XBELNR TO ITAB_COVP-BELNR,
XBUZEI TO ITAB_COVP-BUZEI,
XGJAHR TO ITAB_COVP-GJAHR,
XPERIO TO ITAB_COVP-PERIO,
XWKGBTR TO ITAB_COVP-WKGBTR,
XWTGBTR TO ITAB_COVP-WTGBTR,
XREFBN TO ITAB_COVP-REFBN,
XREFBZ TO ITAB_COVP-REFBZ,
XKSTAR TO ITAB_COVP-KSTAR,
XBEKNZ TO ITAB_COVP-BEKNZ,
XMATNR TO ITAB_COVP-MATNR,
XBUKRS TO ITAB_COVP-BUKRS,
XREFGJ TO ITAB_COVP-REFGJ,
XREFBK TO ITAB_COVP-REFBK,
XLTEXT TO ITAB_COVP-LTEXT,
XMAKTX TO ITAB_COVP-MAKTX,
XAWTYP TO ITAB_COVP-AWTYP,
XTWAER TO ITAB_COVP-TWAER,
XSGTXT TO ITAB_COVP-SGTXT,
BSEG_KOSTL TO ITAB_COVP-BSEG_KOSTL,
BSEG_MEINS TO ITAB_COVP-BSEG_MEINS,
BSEG_MENGE TO ITAB_COVP-BSEG_MENGE,
MSEG_KOSTL TO ITAB_COVP-MSEG_KOSTL,
MSEG_MENGE TO ITAB_COVP-MSEG_MENGE,
MSEG_MEINS TO ITAB_COVP-MSEG_MEINS.
APPEND ITAB_COVP.
CLEAR ITAB_COVP.
ENDSELECT.
ENDSELECT.
OPEN DATASET P_FILE FOR OUTPUT IN TEXT MODE.
IF SY-SUBRC NE 0.
WRITE: 'File cannot be opened. Reason:', MSG_TEXT.
EXIT.
ENDIF.
LOOP AT ITAB_COVP.
TRANSFER ITAB_COVP TO P_FILE.
ENDLOOP.
CLOSE DATASET P_FILE.Cecilia - I think your problemn is a nested select:
*GET LTEST
SELECT ltext INTO xltext
FROM csku
WHERE ktopl = 'COAA' AND spras = 'EN'.
*GET MAKTX
IF xmatnr <> ' '.
SELECT SINGLE * FROM makt WHERE matnr = xmatnr.
MOVE makt-maktx TO xmaktx.
ELSE.
MOVE ' ' TO xmaktx.
ENDIF.
MOVE : xkokrs TO itab_covp-kokrs,
etc.
mseg_meins TO itab_covp-mseg_meins.
APPEND itab_covp.
CLEAR itab_covp.
ENDSELECT.
Do you need to do the inner select for every cost element text?
Rob -
Memory space issue in internal table
Hi ,
My report is dumping because there is no memory space availabe for extending the memory of an internal table, after it gets filled with about 2500000 lakh records.
the dump analysis is as follows :-
Error analysis
The internal table (with the internal identifier "IT_317") could not be
enlarged any further. To enable error handling, the internal table had
to be deleted before this error log was formatted. Consequently, if you
navigate back from this error log to the ABAP Debugger, the table will
be displayed there with 0 lines.
When the program was terminated, the internal table concerned returned
the following information:
Line width: 1700
Number of lines: 106904
Allocated lines: 106904
New no. of requested lines: 8 (in 1 blocks)
How to correct the error
The amount of storage space (in bytes) filled at termination time was:
Roll area...................... 7272944
Extended memory (EM)........... 603339264
Assigned memory (HEAP)......... 396390176
Short area..................... " "
Paging area.................... 40960
Maximum address space.......... 529887568
You may able to find an interim solution to the problem
in the SAP note system. If you have access to the note system yourself,
use the following search criteria:
Please suggest what can be done.
Regards,
Vikas AryaHi,
This solution might not sound good. But give a thought.
While appending data u may take more than one internal table.
Append first 10lakh records to 1st table, Second 10 lakhs to second table etc.
But from where are u getting the source data? It should be present in some internal table correct?
Probably u can use dynamic internal tables concept.
Also check ur code carefully. After the place of appending if u are not going to use any internal tables then use FREE itab
statement to free the memory allocated.
Also reduce the global declarations as much as possible
Thanks,
Vinod. -
Include space between two variables from internal table
Hi Experts,
I have an internal table with 4 fields with values for a b c d , i have to arrange them in the specific order so that i can download all the data in a text file.
the first 3 variables are already arranged , the format is a bc, but the var d should be put in a specific positon after predefined spaces from var c.
Please refer below for the sample of of the output text file. In this example:
a = A20N
b = 7227802
c = 0300207
d = 010109
Space between c & d is determined by a POS variable in internal table
a b c d
A20N 72278020300207 010109
A20A 72278020300207 21
A20N 72278020300207 2511100
A21F 72278020300207 Van Capellen
A21G 72278020300207 Tim
A20E 72278020300207 1
A20T 72278020300207 2
A20T 72278020300207 1
A20E 72278020300207 01
A20E 72278020300207 Vilvoorde
plz help me out as i have to resolve this as soon as possible.Hi,
Check this sample code using offsets, and modify as per ur requirement.
DATA : L1 TYPE I.
DATA : L2 TYPE I.
DATA : L3 TYPE I.
DATA : BEGIN OF ITAB OCCURS 0,
A(30) TYPE C,
B(30) TYPE C,
C(30) TYPE C,
D(30) TYPE C,
POS(2) TYPE C,
END OF ITAB.
DATA : TEXT(120) TYPE C.
START-OF-SELECTION.
BREAK-POINT.
ITAB-A = 'ABC'.
ITAB-B = 'IND'.
ITAB-C = 'CATOR'.
ITAB-D = 'FINAL'.
ITAB-POS = '3'.
APPEND ITAB.
CLEAR ITAB.
LOOP AT ITAB.
L1 = STRLEN( ITAB-A ).
L2 = STRLEN( ITAB-B ).
L3 = STRLEN( ITAB-C ).
TEXT = ITAB-A.
L1 = L1 + 1.
TEXT+L1 = ITAB-B.
L1 = L1 + L2.
TEXT+L1 = ITAB-C.
L1 = L1 + L3 + ITAB-POS.
TEXT+L1 = ITAB-D.
CLEAR L1.
CLEAR L2.
CLEAR L3.
ENDLOOP.
WRITE : TEXT.
Rgds
siva -
Space removed from character data type when move to internal table issue...
Hi Friends,
I converted material code and other details into internal table which have corresponding data types.But in internal table,I can see material code as left justified ,but after that space was removed.For example if material code is 'ABC' then rest of the space(material char(18)) are removed.But I need remaining spaces.I tried to concatenate material code with spaces (caoncatenate matnr ` ` int etc .. )at right side and moved to another internal table.Its working.But the problem is material codes have different values like one material 'ABC' and another like '123893-h' etc.So I need to calculate the space(out of char 18) dynamiclly and need to put space based on material code value.
<< Moderator message - Everyone's problem is important >>
.Thank you all..
Regards,
Kumaran..
Edited by: Rob Burbank on Oct 26, 2010 11:18 AMHi Ramkumaran,
You have not told the purpose of having these spaces.
is it for transfering to a file?
If that is the case, use a table with fixed lenght lines instead of many fields.
i.e. try something like this
DATA : i_tab type standard table of BUSDATA,
wa_tab type BUSDATA.
wa_tab+0(10) = material number.
wa_tab+10(10) = material code.
wa_tab+20(4) = company code...
append wa_tab to i_tab.
Thanks
Vimal
Maybe you are looking for
-
Hi, In an internal table I have 10 records for a field like A A B C D E E D E D Is it possible to get the records D and E which has highest sy-index. good solution will be rewarded. Thanks and Regards, Neerup.
-
Check print report PaymentAmountText field gets spaces while using RPAD Fn
Hi, In the check print report we are using the PaymentAmountText field to print the amount in text. After printing the remaining spaces should be filled with '*' I used the below command <?xdofx:rpad(PaymentAmountText,100,'*')?> But the output is as
-
How can I create a report with current online users of the application? J.
-
Updated iPhoto to v1.1 and now library is damaged?
I just updated my iPhoto to the newest software update - v1.1. However, when I open iPhoto now I keep getting the prompt "Your photo library is damaged or unreadable and cannot be opened. Please restore from a backup". Does anyone know why this is
-
Why wont my itunes download to my devices
my itunes automatically downloaded to my moms zune but i can not get it to download to my mp3 player...what am i doing wrong