Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8419

2 SPOOLS created in one time ?

$
0
0

Hi Guys,

 

I have a little problem with creating my ALV and a header line TXT in a SPOOL.

 

Basically, I send my ALV correctly in my SPOOL. I am using the SALV. But before that, I write a String line of the ALV description with the name of the Program.

 

Actually, my program provides 2 SPOOLS. The first one contains the header line text. And the second one contains my ALV data.

 

How can I manage it to provide me only one SPOOL containing my Header Line txt and my ALV ?

 

Thx you very much.

 

 

Below, my code,

 

 

Code for Header Line:

WRITE ls_message_log-message  .

 

 

Code for my ALV:

METHOD display_alv.
 
DATA  lo_alv  TYPE REF TO cl_salv_table  .
 
DATA  lo_columns  TYPE REF TO cl_salv_columns_table .

 
CALL METHOD cl_salv_table=>factory
  
IMPORTING
  r_salv_table
= lo_alv
  
CHANGING
  t_table 
= table[].

  lo_columns
= lo_alv->get_columns( ).
  lo_columns
->set_optimize( ).

 
CALL METHOD lo_alv->display.
ENDMETHOD.

 

Many thx for your help.

 

Rachid


Viewing all articles
Browse latest Browse all 8419

Trending Articles



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