Use this tag for questions regarding ABAP internal tables.
Questions tagged [internal-tables]
141 questions
0
votes
1 answer
Sum values in the same field inside a loop
In the program that i gonna do it's show the info of every company code.
for example:
Fiscal Year | 4030 | 4020 | 4040 | 4050 | 4070 | TOTAL
1/2010 | 423.12 | 89.79 ..... | ......| .... | .....
2/2010 |234.00 | 04.38 ..... | ...... |…

user7806296
- 1
- 2
- 3
- 6
0
votes
1 answer
Most performant way to filter an internal table based on a where condition
So far, I always used this to get specific lines from an internal table:
LOOP AT it_itab INTO ls_itab WHERE place = 'NEW YORK'.
APPEND ls_itab TO it_anotherItab
INSERT ls_itab INTO TABLE it_anotherItab
ENDLOOP.
However, with 7.40 there…

Regyn
- 585
- 3
- 17
0
votes
2 answers
How to get the internal table data in excel format if the report runs in background?
Could you please tell me the way to get internal table data in excel file to be saved in local desktop (presentation server). Remember that the report runs in background.

Rajasekharreddy Panditi
- 59
- 1
- 2
- 11
0
votes
1 answer
Why can't the append operation be performed on a sorted internal table?
Why can't the append operation be performed on a sorted internal table, but a modify action can be performed?

Rajasekharreddy Panditi
- 59
- 1
- 2
- 11
0
votes
2 answers
Deleting duplicate entries from internal table and giving user values
I'm able to display data using two standard tables but in that I have duplicate entries.
EX:
A 16.03.2017 168
B 16.03.2017 150
A 16.03.2017 208
Here, I want to display output like below:
A 16.03.2017 200[here I want to…

Pavitra M
- 1
- 1
- 1
0
votes
2 answers
Get value from a table and save it inside of a structure
I am new in ABAP and I have to modify these lines of code:
LOOP AT t_abc ASSIGNING WHERE lgart = xyz.
g_abc-lkj = g_abc-lkj + -abc.
ENDLOOP.
A coworker told me that I have to use a structure and not a field symbol.
How will be…

Gme Moreno
- 19
- 2
- 6
0
votes
1 answer
What is the difference between OCCURS 0 and TYPE STANDARD TABLE
I am new to ABAP, and I am creating ALV using FM 'REUSE_ALV_FIELDCATALOG_MERGE' and 'REUSE_ALV_GRID_DISPLAY'.
It is working when I defined internal table IT_MARD using obsolete occurs 0 definition. But I am getting Exception condition…

gullamahi
- 107
- 3
- 11
0
votes
0 answers
View database table in BSP and export it to CSV after clicking button
I know my question is rather common on these forums, although it has a unique aspect to it.
I have an HTML page with a HTML Input Form & Submit button on it. This Submit button is linked to a MS SQL 2008 Select Statement which is coded in a…
0
votes
2 answers
Why INSERT into internal table fails?
I have a Problem with ABAP. I have the following code from a book:
METHOD make_reservation.
DATA: license_plate TYPE zcars-license_plate,
reservation_wa LIKE LINE OF reservation_tab,
reservation_num TYPE i,
mess …

gurehbgui
- 14,236
- 32
- 106
- 178
0
votes
1 answer
Get data which are same in one field
I want to receive data from an internal table which is a dynamic one.
For example, internal table has two fields: numbers - names
And it is filling with informations like:
How can I get only same datas? I want to get data base on numbers. I want to…

Merve Gül
- 1,377
- 6
- 23
- 40
0
votes
2 answers
Syntax error "field ITAB unknown" in APPEND wa TO itab
I am trying to add a new record to my internal table and this code is giving me an error, but I am doing exactly the same thing as in my SAP book. What am I doing wrong?
TYPES : BEGIN OF personel_bilgileri,
Ad TYPE c LENGTH 20,
Soyad TYPE c…

Merve Gül
- 1,377
- 6
- 23
- 40
-1
votes
2 answers
How to create a txt-file on the application server filled with an internal table?
I'm learning ABAP at the moment and got the task to build a function that creates a .txt file or a .csv file from an internal table and save it on the application server.
I know you can use, for example, GUI_DOWNLOAD for that, but the task is to…

Marrome
- 1
- 1
- 4
-1
votes
1 answer
Get value field dynamically from another table ABAP
help me for report Abap.
I have 2 table.
Itab head
Z1
Z2
Z3
A
B
C
Itab obbligatory field
Fieldname
Z2
i should create a file with only fields of itab2(itab obbligatory field) but the value of itab head.
The file will…
-1
votes
2 answers
Use variable in offset and length in table expression component?
I am trying to see if there is a way to do the following
IF line_exists( company_accounts2[ saknr+0(2) = wa_company_accounts-saknr+0(wa_account_levels-num_of_digits) ] ).
ENDIF.
But the number 2 in saknr+0(2) with a parameter and specifically…

ekekakos
- 563
- 3
- 20
- 39
-1
votes
1 answer
Transparent Table into Dropdown-List ABAP
Putting Fields of internal tables into listboxes is easy but how do you do it with transparent tables?
Please the easiest possible way. (Important: Te Table shouldn't be changed!)

FirstProg1
- 11
- 3