Application Development 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: 

How to display DDIC in ALV

Former Member
0 Kudos

Is there any online tutorial on how to display the data in DDIC in ALV ?

7 REPLIES 7

FredericGirod
Active Contributor
0 Kudos

Hi,

could you clarify your question ? 

regards

Fred

0 Kudos

I have DDIC structure that are filled from internal table. how to show (pass)  the structure data into the SALV ?

0 Kudos

Hi Adham,

sorry i am not clear with your question, but i can give u a suggestion.

You can try to search it at "sap*technical.com" (without " and *)

sorry if thats not too help you. But i wil ltry to help you more

0 Kudos

That depends, what did you use to display ALV ?   Oo / FM ?  what kind of class, function ...

if you need simple example, have a look to the transaction DWDM

0 Kudos

Hi Adham Enaya

Simple try like this

REPORT  yram_SALV.

DATA: it_sflight TYPE TABLE OF sflight.
DATA: gr_table TYPE REF TO cl_salv_table.
DATA: gr_functions TYPE REF TO cl_salv_functions.

START-OF-SELECTION.
   SELECT * INTO TABLE it_sflight FROM sflight up to 10 rows.

   cl_salv_table=>factory( IMPORTING r_salv_table = gr_table CHANGING t_table = it_sflight ).
   gr_functions = gr_table->get_functions( ).
   gr_functions->set_all( abap_true ).
   gr_table->display( ).

bruno_esperanca
Contributor
0 Kudos

Hi Adham,

Try SE38 -> SALV_DEMO* in your system.

You should have around 40 demo programs that show how to use SALV class to display data.

Kind regards,

Bruno

Former Member
0 Kudos

Hi,

Use CL_SALV_TABLE and forget about all your issues - no field catalog definition, no macros. Search for the excellent blogs of Rich Heilman or other sources on ALV object model.

For dynamic internal tables, search for RTTS.

Note: You never need a TABLES statement. You need no BOX_FIELDNAME and field for this if you use CL_SALV_TABLE and set selection mode (ROW_COLUMN or CELL) and you have what you need.

Regards,

Chintan