Skip to Content

CL_SALV_TABLE mail icon

Hi,

I am using CL_SALV_TABLE in one of the report. My question is if we are using with LIST_DISPLAY then in the output you will get an icon for report output as mail

  try.
      cl_salv_table=>factory(
        exporting list_display = gc_true
        importing
          r_salv_table = gr_table
        changing
          t_table      = gt_outtab ).

But

if we are using with CONTAINER option we are not getting the mail icon in the toolbar.

      call method cl_salv_table=>factory
        exporting
          r_container  = g_docking_container_2
        importing
          r_salv_table = gr_table
        changing
          t_table      = i_ysccalv4.

How to get this mail icon in the toolbar?

PS. Please donot suggest to select --> toolbar > views > list output--> then use mail option

I need the mail option in the grid output toolbar without going into list output mode

a®s

Edited by: a®s on Jan 31, 2008 2:35 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 31, 2008 at 07:39 PM

    Hi. The reason is that in the "List" output you are seeing a standard list diaplay which is written by using WRITE statements, this kind of output is designed to be send to a spool request or even wrapped up in a HTML formt to be sent via email. But in the container, you are seeing the graphical grid, not a list display, this grid is not designed to be printed nor sent via email, this is why you don't see the icon on the grid display, only on the list display. You may notice that when you click the print preview button, it will automatically convert it to the list display, from there you can send as email.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

    • Rich,

      Thanks for your info.

      The only option available is to create custom button in the toolbar using

      try.
            v_text1 = text-b01.
            v_text2 = text-b02.
      
            grt_functions->add_function(
              name     = 'MYFUNCTION'
              icon     = '@42@'
              tooltip  = v_text2
              position = if_salv_c_function_position=>right_of_salv_functions
      ).
          catch cx_salv_wrong_call cx_salv_existing.
        endtry.
      

      and once user clicks then i need to call fun module LIST_TO_OFFICE

      Whether this will work?

  • Posted on Jan 31, 2008 at 08:11 PM

    Rich,

    Its working . before calling LIST_TO_OFFICE i need to output of the grid in an internal table

    Thanks

    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.