Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9193

Insert blank line into ALV

$
0
0

Hey gurus,

 

I have the following code, but the ALV is showed up without any lines.

 

DATA: tabname TYPE REF TO data,

         wa_tab TYPE REF TO data.

   FIELD-SYMBOLS: <table> TYPE table,

                  <wa_tab> TYPE data.

 

   CREATE DATA tabname TYPE TABLE OF (if_table_name).

   CREATE DATA wa_tab TYPE (if_table_name).

 

   ASSIGN tabname->* TO <table>.

   ASSIGN wa_tab->* TO <wa_tab>.

 

   clear <wa_tab>.

   APPEND <wa_tab> TO <table>.

 

   IF r_grid IS INITIAL.

     CALL METHOD r_grid->set_table_for_first_display

       EXPORTING

         i_structure_name = if_table_name

       CHANGING

         it_outtab        = <table>.

   ELSE.

     IF ok_code EQ 'SAVE'.

       CALL METHOD r_grid->refresh_table_display.

     ENDIF.

ENDIF.

if_table_name contains the table's name.

How could I put a blank line or lines into ALV?

I want to make it because of the new entries to the table, like it is working in SM30.

 

Regards,

 

Robert


Viewing all articles
Browse latest Browse all 9193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>