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

How to create POPUP windows (from ALV report)

Hi there,

I have a ALV report which has a field where the user can click and view more details of the selected data. I would like to have a popup and then display the selected data...is that possible? Any function module which I can use to pop up a window and display selected data?

Thanks in advance!

Cheers,

MC

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Feb 02, 2005 at 05:42 AM

    MC,

    Try using FM POPUP_TO_INFORM. Alternativly, try to get FMs with names POPUP*. Sure you will find one..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 02, 2005 at 03:40 PM

    Hi MC ,

    Hope this will work out...

    Just put the selected rows in an internal table (here it)outtab) and then display them using below stmt...

    call function 'POPUP_WITH_TABLE'

    exporting

    endpos_col = l_ins

    endpos_row = 15

    startpos_col = 1

    startpos_row = 1

    titletext = 'table'

    importing

    choice = ans

    tables

    valuetab = it_outtab

    exceptions

    break_off = 0

    others = 0.

    Regards

    Immanuel

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 02, 2005 at 03:55 PM

    Hi MC,

    Please follow the steps below for getting the result you desired.

    1. In your field catalogue, move 'X' to the slis_fieldcat_alv-hotspot field. This will enable the user to select it.
    2. Set slis_t_event_exit-ucomm = '&IC1' and slis_t_event_exit-before = 'X' and pass this internal table to the ALV function call. This will enable to code your own logic for that standard user command.
    3. Pass your 'User command' routine name to the appropriate paramter of the function module.
    4. Your 'User command' routine should have the following format.
    *---------------------------------------------------------------------*
    *       FORM USER_COMMAND                                             *
    *---------------------------------------------------------------------*
    *       ........                                                      *
    *---------------------------------------------------------------------*
    *  -->  UCOMM                                                         *
    *  -->  SELFIELD                                                      *
    *---------------------------------------------------------------------*
    FORM user_command USING ucomm    LIKE sy-ucomm
                            selfield TYPE slis_selfield.
    
      CASE ucomm.
        WHEN '&IC1'.
          PERFORM display_pop_up USING selfield.
        WHEN OTHERS.
      ENDCASE.
      MOVE '&REFRESH' TO ucomm.
    
    ENDFORM.                                    " USER_COMMAND
    5. Write your code for the pop-up in the routine 'DISPLAY_POP_UP'. Look at 'POPUP*' function modules to pick up the best suitable one for you.
    

    Hope this helps,

    Srinivas

    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.