Skip to Content
author's profile photo Former Member
Former Member

How to display DDIC in ALV

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Nov 27, 2013 at 07:55 AM

    Hi,

    could you clarify your question ?

    regards

    Fred

    Add a comment
    10|10000 characters needed characters exceeded

    • 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( ).

      pastedImage_0.png (14.5 kB)
  • Posted on Nov 27, 2013 at 08:01 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2013 at 07:32 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.