Display output list by pressing a push button on selection screen.

Hi All,
Is there any possibility of displaying the output list by pressing a push button on the selection screen.
Thanks,
Neslin.

Hi,
Just write the code like this
Case sy-ucomm.
when 'PRE'.
Here write the output list
" leave to list-processing. Write this statement
endcase.
Regards
Sarves

Similar Messages

  • Creating push button on Selection screen application toolbar

    Hi Friends,
    this is a HR-ABAP report. I have to create a push button on Selection screen. when user clicks on that push button 'MODAL DIALOG BOX' has to be displayed containing some data.
    plz kindly give some sample code to do this.
    Regards,
    Radhika Dasharatha.

    Hi,
    1)Use SELECTION-SCREEN  PUSHBUTTON /10(20) PUSH USER-
      COMMAND 'ABC'. in selection screen.
    2) Give the static name to button in INITIALIZATION event like PUSH = 'PRESS'.
    3) At selection screen.
      if sy-ucomm eq 'ABC'.
    call FM HR_BE_GE_MODAL_DIALOG
    endif.
    Thanks
    Sandeep
    Reward if useful

  • Push button on selection screen

    Hi,
    I have provided push button on selection screen after input fields I mean just below to input fields by using the syntax selection screen pushbutton…..   And it is appearing on the selection screen.  As per the requirement I need to enter material number on the selection screen and if I press corresponding push button I need to call one transaction using bdc program.  I wrote case sy-comm and corresponding user command ( whatever is there in the selection screen syntax) in when condition under start of selection event.
    But the control is not going to that place after I press push button. If I put that code inside of at selection screen it is going. But I can not write all the bdc program and select queries inside of at selection screen event if so please suggest me how I can proceed.
    I will give the points.
    Thanks a lot in advance.

    Hi,
    SELECTION-SCREEN BEGIN OF BLOCK b_2 WITH FRAME TITLE text-018.
    SELECT-OPTIONS s_fields FOR qpmk-mkmnr NO-DISPLAY.
    SELECTION-SCREEN PUSHBUTTON /1(24) name USER-COMMAND flds.
    SELECTION-SCREEN END OF BLOCK b_2.
    AT SELECTION-SCREEN.
    IF sscrfields-ucomm = 'FLDS'.
        PERFORM display_fields.
      ENDIF.

  • How to Add Push Button On Selection Screen

    Hi Experts,
    How to add Push button on Selection Screen.
    Points will b rewarded for useful help.
    Bohra.

    Hi,
    To create a pushbutton on the selection screen, you use:
    SELECTION SCREEN PUSHBUTTON [/]<pos(len)> <push>
    USER-COMMAND <ucom> [MODIF ID <key>].
    The [/]<pos(len)> parameters and the MODIF IF addition have the same function as for the formatting options for underlines and comments.
    <push> determines the pushbutton text. For <push>, you can specify a text symbol or a field name with a maximum length of eight characters. This character field must not be declared with the DATA statement, but is generated automatically with length <len>. The field must be filled before the selection screen is called.
    For <ucom>, you must specify a code of up to four characters. When the user clicks the pushbutton on the selection screen, <ucom> is entered in the UCOMM of the SSCRFIELDS interface work area. You must use the TABLES statement to declare the SSCRFIELDS structure. The contents of the SSCRFIELDS-UCOMM field can be processed during the AT SELECTION-SCREENevent.
    Ex.
    REPORT DEMO.
    TABLES SSCRFIELDS.
    DATA FLAG.
    SELECTION-SCREEN:
    BEGIN OF SCREEN 500 AS WINDOW TITLE TIT,
    BEGIN OF LINE,
    PUSHBUTTON 2(10) BUT1 USER-COMMAND CLI1,
    PUSHBUTTON 12(10) TEXT-020 USER-COMMAND CLI2,
    END OF LINE,
    BEGIN OF LINE,
    PUSHBUTTON 2(10) BUT3 USER-COMMAND CLI3,
    PUSHBUTTON 12(10) TEXT-040 USER-COMMAND CLI4,
    END OF LINE,
    END OF SCREEN 500.
    AT SELECTION-SCREEN.
    CASE SSCRFIELDS.
    WHEN 'CLI1'.
    FLAG = '1'.
    WHEN 'CLI2'.
    FLAG = '2'.
    WHEN 'CLI3'.
    FLAG = '3'.
    WHEN 'CLI4'.
    FLAG = '4'.
    ENDCASE.
    START-OF-SELECTION.
    TIT = 'Four Buttons'.
    BUT1 = 'Button 1'.
    BUT3 = 'Button 3'.
    CALL SELECTION-SCREEN 500 STARTING AT 10 10.
    CASE FLAG.
    WHEN '1'.
    WRITE / 'Button 1 was clicked'.
    WHEN '2'.
    WRITE / 'Button 2 was clicked'.
    WHEN '3'.
    WRITE / 'Button 3 was clicked'.
    WHEN '4'.
    WRITE / 'Button 4 was clicked'.
    WHEN OTHERS.
    WRITE / 'No Button was clicked'.
    ENDCASE.
    This example defines four pushbuttons on a selection screen that is displayed as a
    dialog box. The selection screen is defined in a statement chain for keyword
    SELECTION-SCREEN.
    If the text symbols TEXT-020 and TEXT-040 are defined as 'Button 2' and 'Button 4',
    the four pushbuttons appear as follows on the selection screen displayed as a dialog box.
    Regards,
    Bhaskar

  • Error during creation of push button on selection screen

    Hi,
    I wanted to create push buttons on selection screen,
    Code:
    DATA DB1 TYPE VBAP-WERKS.
    DATA DB2 TYPE MARA-MATNR.
    SELECT-OPTIONS : SPLANT FOR DB1,
                                    SCLASS FOR DB2.
    SELECTION-SCREEN:  FUNCTION KEY 1,
                                        FUNCTION KEY 2,
                                        FUNCTION KEY 3.
    INITIALIZATION.
    DATA FUNCTXT TYPE SMP_DYNTXT.
    CLEAR FUNCTXT.
    DATA: FUNCTXT_01 TYPE SSCRFIELDS-FUNCTXT_01.
    FUNCTXT-TEXT = 'DEL'.
    SSCRFIELDS-FUNCTXT_01 = FUNCTXT.
    CLEAR FUNCTXT.
    FUNCTXT-TEXT = 'EDIT'.
    SSCRFIELDS-FUNCTXT_02 = FUNCTXT.
    CLEAR FUNCTXT.
    FUNCTXT-TEXT = 'CRE'.
    SSCRFIELDS-FUNCTXT_03 = FUNCTXT.
    But during activating, I'm getting the error as : Field "SSCRFIELDS-FUNCTXT_01" is unknown. It is neither in one of the specified tables nor defined by "DATA" statement.
    Please suggest solutions to overcome this error.
    Regards
    Darshan MS

    Hi,
    trans. for examples of selection screen : BIBS
    regards
    Fred

  • ADD push button in selection-screen

    Hi Guys,
    I have a requirement.
    In the selection screen on the report, I need a push button "Click".
    When i "Click"  First Time this it should display all the selection screen Blocks B1,B2,B3 from my selection screen.
    For second "Click" it should Hide the Blocks B1,B2,B3.
    I am doing the following code in my report:
    But for first Click it is displaying the Blocks.And for the Second click it is not Hiding.
    Please suggest on this.....
    initialization.
      if screen-group1 = 'A1' .
                screen-active = 0.
                modify screen.
              endif.
            endloop.
            loop at screen.
              if screen-group1 = 'A2' .
                screen-active = 0.
                modify screen.
              endif.
            endloop.
            loop at screen.
              if screen-group1 = 'A3' .
                screen-active = 0.
                modify screen.
              endif.
            endloop.
    I am using " At selection screen:
    at selection-screen.
    if gv_flag = space.
            loop at screen.
              if screen-group1 = 'A1' .
                screen-active = 1.
                modify screen.
              endif.
            endloop.
            loop at screen.
              if screen-group1 = 'A2' .
                screen-active = 1.
                modify screen.
              endif.
            endloop.
            loop at screen.
              if screen-group1 = 'A3' .
                screen-active = 1.
                modify screen.
              endif.
            endloop.
            gv_flag = 'X'.
          elseif gv_flag = 'X'.
                  loop at screen.
              if screen-group1 = 'A1' .
                screen-active = 0.
                modify screen.
              endif.
            endloop.
            loop at screen.
              if screen-group1 = 'A2' .
                screen-active = 0.
                modify screen.
              endif.
            endloop.
            loop at screen.
              if screen-group1 = 'A3' .
                screen-active = 0.
                modify screen.
              endif.
            endloop.
            gv_flag = space.
    endif.

    You are hiding it in INITIALIZATION block which means it hides only once before PBO. If you want to show/hide it in turn simply place all your code in PAI, not just part of it.
    Regards
    Marcin
    Sorry didn't notice part of the code in the bottom
    The logic should go like
    at selection-screen.
    if gv_flag = space.
    loop at screen.
      case screen-group1.
         when 'A1' or 'A2' or 'A3'    
            screen-active = 1.
            modify screen.
         when others.
       endcase.
    endloop.
    gv_flag = 'X'.
    elseif gv_flag = 'X'.
       loop at screen.
          case screen-group1.
               when 'A1' or 'A2' or 'A3'.
                screen-active = 0.
                modify screen.
             when others.
        endcase.
    endloop.
      gv_flag = space.
    endif.
    Regards
    Marcin
    Edited by: Marcin Pciak on Apr 1, 2011 12:33 PM

  • Radio button in selection screen and push button

    Hi experts,
    I want to give radio button in selection screen side by side.
    how we can do this on slection screen.
    secondly i want to resize push button on selection screen.
    please provide me the exact solution.
    thanks
    babbal

    Hi babbal,
    For Your Requriment yo can go to tcode se51 & then give ur program name & give screen number as 1000 because 1000 is default screen for all the programs and in se51 Press Layout button & then you can make changes to the Selection screen according to your requriment
    Hope it will be Helpfull.......!!
    Thanks & Regards,
    Bhushan

  • Button in selection screen

    Hello Gurus ,
    I want to insert data from selection screen into my ztable , I have activated save button in menu bar , with function text SAVE and function type , E , S ,  null , H , P all I have tesated , but it is not working , with case sy-ucomm , when 'SAVE' .
    In same way Print is working but not save .I am not getting the prob .
    Is there any problem , plz help me , I m in hurry .
    I am waiting for  all of your valuable reply .
    Regards,
    Joy .

    Hi Joy,
    Check out the below related threads for placing the push buttons ... Frame logic accordingly as per your requirement ..
    push button in selecion screen
    Push button on selection screen
    push button on selection screen\
    PUSH Button in Selection Screen

  • Edit a selected row in an alv report after pressing a push button ?

    hi all ,
    I want to edit a selected row in an alv report but that too after i press a push button . After pressing the push button , a pop up shud *** showing all the entries of the selected row which shud be editable and after editing it shud be saved into the database table.
    How can i do this please help asap ???

    May this prog. of mine can solve your requirement.
    REPORT z_demo_alv_jg.
    TYPE-POOLS                                                          *
    TYPE-POOLS: slis.
    INTERNAL TABLES/WORK AREAS/VARIABLES                                *
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
          i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
          w_field TYPE slis_fieldcat_alv,
          p_table LIKE dd02l-tabname,
          dy_table TYPE REF TO data,
          dy_tab TYPE REF TO data,
          dy_line TYPE REF TO data.
    FIELD-SYMBOLS                                                       *
    FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
                   <dyn_wa> TYPE ANY,
                   <dyn_field> TYPE ANY,
                   <dyn_tab_temp> TYPE STANDARD TABLE.
    SELECTION SCREEN                                                    *
    PARAMETERS: tabname(30) TYPE c,
                lines(5)  TYPE n.
    START-OF-SELECTION                                                  *
    START-OF-SELECTION.
    Storing table name
      p_table = tabname.
    Create internal table dynamically with the stucture of table name
    entered in the selection screen
      CREATE DATA dy_table TYPE STANDARD TABLE OF (p_table).
      ASSIGN dy_table->* TO <dyn_table>.
      IF sy-subrc <> 0.
        MESSAGE i000(z_zzz_ca_messages) WITH ' No table found'.
        LEAVE TO LIST-PROCESSING.
      ENDIF.
    Create workarea for the table
      CREATE DATA dy_line LIKE LINE OF <dyn_table>.
      ASSIGN dy_line->* TO <dyn_wa>.
    Create another temp. table
      CREATE DATA dy_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN dy_tab->* TO <dyn_tab_temp>.
      SORT i_fieldcat BY col_pos.
    Select data from table
      SELECT * FROM (p_table)
      INTO TABLE <dyn_table>
      UP TO lines ROWS.
      REFRESH <dyn_tab_temp>.
    Display report
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_structure_name         = p_table
          i_callback_user_command  = 'USER_COMMAND'
          i_callback_pf_status_set = 'SET_PF_STATUS'
        TABLES
          t_outtab                 = <dyn_table>
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
      ENDIF.
    *&      Form  SET_PF_STATUS
          Setting custom PF-Status
         -->RT_EXTAB   Excluding table
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'Z_STANDARD'.
    ENDFORM.                    "SET_PF_STATUS
    *&      Form  user_command
          Handling custom function codes
         -->R_UCOMM      Function code value
         -->RS_SELFIELD  Info. of cursor position in ALV
    FORM user_command  USING    r_ucomm LIKE sy-ucomm
                               rs_selfield TYPE slis_selfield.
    Local data declaration
      DATA: li_tab TYPE REF TO data,
            l_line TYPE REF TO data.
    Local field-symbols
      FIELD-SYMBOLS:<l_tab> TYPE table,
                    <l_wa>  TYPE ANY.
    Create table
      CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN li_tab->* TO <l_tab>.
    Create workarea
      CREATE DATA l_line LIKE LINE OF <l_tab>.
      ASSIGN l_line->* TO <l_wa>.
      CASE r_ucomm.
      When a record is selected
        WHEN '&IC1'.
        Read the selected record
          READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
          rs_selfield-tabindex.
          IF sy-subrc = 0.
          Store the record in an internal table
            APPEND <dyn_wa> TO <l_tab>.
          Fetch the field catalog info
            CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
              EXPORTING
                i_program_name         = 'Z_DEMO_PDF_JG'
                i_structure_name       = p_table
              CHANGING
                ct_fieldcat            = i_fieldcat
              EXCEPTIONS
                inconsistent_interface = 1
                program_error          = 2
                OTHERS                 = 3.
            IF sy-subrc = 0.
            Make all the fields input enabled except key fields
              w_field-input = 'X'.
              MODIFY i_fieldcat FROM w_field TRANSPORTING input
              WHERE key IS INITIAL.
            ENDIF.
          Display the record for editing purpose
            CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
              EXPORTING
                i_callback_program    = sy-repid
                i_structure_name      = p_table
                it_fieldcat           = i_fieldcat
                i_screen_start_column = 10
                i_screen_start_line   = 15
                i_screen_end_column   = 200
                i_screen_end_line     = 20
              TABLES
                t_outtab              = <l_tab>
              EXCEPTIONS
                program_error         = 1
                OTHERS                = 2.
            IF sy-subrc = 0.
            Read the modified data
              READ TABLE <l_tab> INDEX 1 INTO <l_wa>.
            If the record is changed then track its index no.
            and populate it in an internal table for future
            action
              IF sy-subrc = 0 AND <dyn_wa> <> <l_wa>.
                <dyn_wa> = <l_wa>.
                i_index = rs_selfield-tabindex.
                APPEND i_index.
              ENDIF.
            ENDIF.
          ENDIF.
      When save button is pressed
        WHEN 'SAVE'.
        Sort the index table
          SORT i_index.
        Delete all duplicate records
          DELETE ADJACENT DUPLICATES FROM i_index.
          LOOP AT i_index.
          Find out the changes in the internal table
          and populate these changes in another internal table
            READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX i_index.
            IF sy-subrc = 0.
              APPEND <dyn_wa> TO <dyn_tab_temp>.
            ENDIF.
          ENDLOOP.
        Lock the table
          CALL FUNCTION 'ENQUEUE_E_TABLE'
            EXPORTING
              mode_rstable   = 'E'
              tabname        = p_table
            EXCEPTIONS
              foreign_lock   = 1
              system_failure = 2
              OTHERS         = 3.
          IF sy-subrc = 0.
          Modify the database table with these changes
            MODIFY (p_table) FROM TABLE <dyn_tab_temp>.
            REFRESH <dyn_tab_temp>.
          Unlock the table
            CALL FUNCTION 'DEQUEUE_E_TABLE'
              EXPORTING
                mode_rstable = 'E'
                tabname      = p_table.
          ENDIF.
      ENDCASE.
      rs_selfield-refresh = 'X'.
    ENDFORM.                    "user_command
    Regards,
    Joy.

  • How to print the Module pool screen using a push button in the screen

    Hi Every one,
                         i have developed a module program , which have a selection screen and it display the output in a structured way.
    output includes boxes, texts etc...
    my problem is :---
    How to print the Module pool screen using a push button in the screen.

    When the "Print" button is pressed:
    leave to list-processing and return to screen 100.  "(current screen)
    Call a transaction that runs your print program.
    Rob

  • I have just updated my MBP to Maverick OS. I am unable to shutdown or log off. When i press the shutdown button, a black screen appears which goes off on pressing any key. The shutdown or log off dialog does not appear. Your kind help is much appreciated.

    I have just updated my MBP 17 / retina display to Maverick OS. I am unable to shutdown or log off. When i press the shutdown button, a black screen appears which goes off on pressing any key. The shutdown or log off dialog does not appear. Your kind help is much appreciated.

    The button response has changed. 
    Short press : sleep
    Medium press (2-3 sec) : restart, shutdown, sleep dialog
    Long press : force shutdown. (Same as before)

  • Whenevenr I call a person sometimes the phone gives me an option of callback and end when I press the callback button the whole screen goes blank and only the upper Taskbar where it shows network provider , time and battery percentage is shown

    whenevenr I call a person sometimes the phone gives me an option of callback and end when I press the callback button the whole screen goes blank and only the upper Taskbar where it shows network provider , time and battery percentage is shown

    Standard troubleshooting...
    Try a reset by pressing the home and sleep buttons until you see the Apple logo, ignoring the slider if, it comes up. Takes about 5-15 secs of button holding and you won't lose any data or settings.
    Remove all apps from Recently Used list...
    - From any Home Screen, double tap the home button to bring up the Recents List
    - Tap and hold any icon in this list until they wiggle
    - Press the red (-) to delete all apps from this list.
    - Press the home button twice when done.
    If still a problem restore with your backup.
    If still a problem restore as new, i.e. without your backup. See how it runs with nothing synced to it.
    If still a problem, it's likely a hardware issue.

  • After resetting my phone to factory settings, it will not turn on. When i press the power button a white screen and black apple pop up. it stays on that screen and will not go to the home screen, it will just die. please help!

    after resetting my phone to factory settings, it will not turn on. When i press the power button a white screen and black apple pop up. it stays on that screen and will not go to the home screen, it will just die. please help!

    Make sure it is charged for about 10min using the adapter, then connect in recovery mode, explained in this article:
    If you can't update or restore your iOS device

  • Deleted push button in development Screen but it is showing portal - Urgent

    hi expert,
    i Deleted two push buttons in development Screen painter but it is showing portal. what shoul i do to remove the push buttons in portal?
    Very Urgent.
    Thanks in Advance.
    Regards,
    A.Sivakumar.

    What technology are you using in the portal to render the screen?... ITS, WebGui or what... sounds like something needs to be re-published which you can probably just do from within SE80.
    Jonathan

  • Is it possible to increase the height of the Push button in a screen?

    Dear All,
    Is it Possible to increase the height of the Push button in a screen (Module Pool Programming)?
    Is it possible to increase the font size of the characters in a screen (Module Pool Programming)?

    Hi Vijay,
    My question is.. I want to know whether it is possible to increase the height of the Push button in a screen. If it is possible, How to increase the height of the Push button?

Maybe you are looking for

  • IPod Nano Syncing Problems With iTunes 10

    I have an iPod Nano 4G with 1.0.4 installed on it. It works just fine but I downloaded this video from the iTunes store ( http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewTVSeason?i=396250905&id=39 5373961&s=143441 ) and it will not let me add t

  • ITunes 7.4.3 and Windows 2000

    My computer (running Windows 2000 SP4) locked up when attempting to run the latest iTunes update. After thay, iTunes was corrupted and would not run. I removed the application via the Control Panel, and downloaded iTunes 7.4.3. The installer gives me

  • Using Template blue box stop movement of graphic and/or text..

    I am using one of the templates...it worked fine when I was using there formatted section. However I tried to add a new page that doesn't use their text or graphics. I hit return a few times until I got a new page. I placed a graphic, but when I try

  • Music Itunes Mac

    I'm organizing my songs for itunes mac, and I have two albums with the same name but with different songs, how do I put everything in one albu

  • Oracle JSF Bridge with JBoss Richfaces

    Hello, I have a JSF webapp using RichFaces libraries and I would like to connect to it from Oracle WCI portal. People advised me to use the Oracle JSF bridge, but I struggled to make it working... I know that other bridges exist: - JBossPortletBridge