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

Binding ALV GRID with Deep Internal Table

Former Member
0 Likes
1,110

Hello all,

I am looking for a way to display ALV Grid with the Deep ITAB.

My ITAB is not too complex.

It has One Structure which gets whole DB table + One extra field.

Therefore my Itab looks as follows.

TYPES: BEGIN OF TY_TRIP,
        ZPM_UPLOAD LIKE ZDBTABLE, "ZDBTABLE is custom database table.
        TDTIME TYPE STRING,
       END OF TY_TRIP.
DATA: ITAB TYPE TABLE OF TY_TRIP,
      WA_ITAB LIKE LINE OF ITAB.

Now i am able to populate data into Deep ITAB.

If i call ALV Grid with ITAB then i get error. So how to call 'REUSE_ALV_GRID_DISPLAY' with this ITAB?

Thanks in advance.

Hello all,

I am looking for a way to display ALV Grid with the Deep ITAB.

My ITAB is not too complex.

It has One Structure which gets whole DB table + One extra field.

Therefore my Itab looks as follows.

TYPES: BEGIN OF TY_TRIP,
        ZPM_UPLOAD LIKE ZDBTABLE, "ZDBTABLE is custom database table.
        TDTIME TYPE STRING,
       END OF TY_TRIP.
DATA: ITAB TYPE TABLE OF TY_TRIP,
      WA_ITAB LIKE LINE OF ITAB.

Now i am able to populate data into Deep ITAB.

If i call ALV Grid with ITAB then i get error. So how to call 'REUSE_ALV_GRID_DISPLAY' with this ITAB?

Thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
587

Hello,

My senior asked me to use the below definition.

TYPES: BEGIN OF TY_TRIP.
        INCLUDE STRUCTURE ZDBTABLE.
TYPES:  TDTIME TYPE STRING,
       END OF TY_TRIP.
DATA: ITAB TYPE TABLE OF TY_TRIP,
      WA_ITAB LIKE LINE OF ITAB.

If anyone else is looking to print in ALV, they can use this type of ITAB definition though it gives you the flexiblity to create ITAB and also making it FLAT and not DEEP.

But i am still looking for an answer for my first post.

Thanks.

Read only

0 Likes
587

Your senior collegue gave you correct clue. You can't pass deep table to ALV. Your definition assumes you have two components, of which first is a structure itself. This will not work with ALV. You have to use the latter, sorry.

Regards

Marcin