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

Pop-up List

Hi All,

Please, execute the MSC3 tcode,

Input Plant, Batch, (other required fields),

Hit enter..

Click on Classification from the application tool bar

then click on LIST icon, on the bottom-right corner...

it's displaying the LIST in Pop-UP window...

How to get it..

I have tryed in two ways,

1. call screen 9300 starting at 02 03 ending at 89 11.

In this case, WRITE can't work...

2. leave to list-processing and return to screen 9200.

Write works, but no Pop-up........

Please, pass some hint...

Thanks,

KalChand

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 20, 2008 at 06:33 AM

    You should be able to write a list in a popup dialog screen without problems... there's plenty of SAP examples e.g. in function group KYEP there is a screen 300 which is uses as "blank canvas" to write a list onto... you can also take the approach of using "suppress dialog" in the PBO and write the list in the PAI.

    Jonathan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 20, 2008 at 03:18 AM

    Try 'REUSE_ALV_POPUP_TO_SELECT' to display data in the popup window.

    If you are using OO ABAP, then use CL_GUI_ALV_GRID class to display the data.

    Hope this helps.

    Thanks,

    Balaji

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 20, 2008 at 08:57 AM

    Hi Chand,

    Have a look at this sample program to create popup list using ALV.

    REPORT  zvenkat_alv_popup.
    **********************************************************************
    * Declarations.
    **********************************************************************
    ** Types
    TYPES:
          BEGIN OF t_p0001,
    *        checkbox TYPE c,
            pernr    TYPE p0001-pernr,
            ename    TYPE p0001-ename,
          END OF t_p0001.
    ** Work Areas
    DATA:
         w_p0001 TYPE t_p0001.
    * Internal tables
    DATA:
         i_p0001 TYPE STANDARD TABLE OF t_p0001.
    *&---------------------------------------------------------------------*
    * ALV Declarations
    *----------------------------------------------------------------------*
    * Types Pools
    TYPE-POOLS:
    slis.
    * Types
    TYPES:
       t_fieldcat         TYPE slis_fieldcat_alv,
       t_events           TYPE slis_alv_event,
       t_layout           TYPE slis_layout_alv.
    * Workareas
    DATA:
       w_fieldcat         TYPE t_fieldcat,
       w_events           TYPE t_events,
       w_layout           TYPE t_layout.
    * Internal Tables
    DATA:
       i_fieldcat         TYPE STANDARD TABLE OF t_fieldcat,
       i_events           TYPE STANDARD TABLE OF t_events.
    
    **********************************************************************
    * start-of-selection.
    **********************************************************************
    START-OF-SELECTION.
      PERFORM get_data.
    **********************************************************************
    * end-of-selection.
    **********************************************************************
    END-OF-SELECTION.
    
      PERFORM display_data.
    *&---------------------------------------------------------------------*
    *&      Form  get_data
    *&---------------------------------------------------------------------*
    FORM get_data .
    
      SELECT pernr ename
        FROM pa0001
        INTO CORRESPONDING FIELDS OF TABLE i_p0001 UP TO 10 ROWS.
    
    ENDFORM.                    " get_data
    *&---------------------------------------------------------------------*
    *&      Form  display_data
    *&---------------------------------------------------------------------*
    FORM display_data .
    
      PERFORM build_fieldcatalog.
      PERFORM display_data_alv.
    ENDFORM.                    " display_data
    *&---------------------------------------------------------------------*
    *&      Form  display_data_alv
    *&---------------------------------------------------------------------*
    FORM display_data_alv .
      DATA:
            l_program TYPE sy-repid.
      l_program = sy-repid.
    
      CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
        EXPORTING
          i_title            = 'XYZ'
          i_tabname          = 'I_P0001'
          it_fieldcat        = i_fieldcat
          i_callback_program = l_program
        TABLES
          t_outtab           = i_p0001.
      IF sy-subrc <>  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    
    ENDFORM.                    " display_data_alv
    *&---------------------------------------------------------------------*
    *&      Form  build_fieldcatalog
    *&---------------------------------------------------------------------*
    FORM build_fieldcatalog .
    
      CLEAR: w_fieldcat,
             i_fieldcat[].
      w_fieldcat-fieldname = 'PERNR'.
      w_fieldcat-tabname   = 'I_P0001'.
      w_fieldcat-seltext_m = 'Emp No'.
      APPEND w_fieldcat TO i_fieldcat.
      CLEAR w_fieldcat.
    
      w_fieldcat-fieldname = 'ENAME'.
      w_fieldcat-tabname   = 'I_P0001'.
      w_fieldcat-seltext_m = 'Name'.
      APPEND w_fieldcat TO i_fieldcat.
      CLEAR w_fieldcat.
    ENDFORM.                    " build_fieldcatalog

    Regards,

    Venkat.O

    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.