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

AVL grid - hide toolbar but still need function

I have a ALV Gris on the screen. I don't wan't to have a toolbar on the screen, but I still wan't to be able to download the ALV as HTML. (hide using layout-no_toobar = 'X')

This is done by using standard functioncode &HTML. But How do i trigger this code from my own button ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Mar 26, 2009 at 07:11 PM

    You have to call the method EXECUTE_FCODE to execute the same function what ALV grid buttons can do.

    Since EXECUTE_FCODE is private method, we can't call it from outside.

    There is one method FCODE_BOUNCER (Internal, Temporary, Do not Use!) which can be used to achieve this functionality.

    Try like this in your PAI.

        WHEN 'EXIT'.
        when 'HTML'.
          sy-ucomm = '&HTML'.
          grid1->FCODE_BOUNCER( ).
        WHEN OTHERS.
    *     do nothing


    Naimesh Patel

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 26, 2009 at 11:54 AM


    Create a pf-status for your report program.

    Goto SE41 --> create a new pf-status for your program --> on next screen click menu EXTRAS --> select ADJUST TEMPLATE radiobutton --> click done.

    You will a get a pf-status will all standard buttons.

    Delete the unwanted buttons from pf-status and keep the one you need.

    To have standard functionality rather than coding by your side.

    Hope this helps you.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I have created a screen in screenpainter where a custom control is placed.

      In this control I'm displaying the AVL grid :

      CALL METHOD grid2->set_table_for_first_display
              i_structure_name     = 'ZAF85_3'
              it_toolbar_excluding = gt_toolbar_excluding
              is_layout            = ls_layout
              it_fieldcatalog      = lt_fieldcat[]
              it_sort              = lt_sort
              it_outtab            = gt_output.

      An because I'm using screen painter the status is set as normal in PBO

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.