Need to add push botton in my selection screen

Hi
I am doing a report program . I need to add PUSH BUTTON in my selection screen can u give me any code or suggestions for this.
IF i press this push button i should get the basic list.
Regards
Rasheed.

Hi Here is a another example.
U can place a Push button on selection screen by using the satatement..
SELECTION-SCREEN PUSHBUTTON 2(10) butt USER-COMMAND cli3.
The push button will start from second character position on Selection screen and of length 10 characters !!
check this program...
TABLES sscrfields.
DATA flag(1) TYPE c.
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.
MESSAGE i888(sabapdocu) WITH text-001 sscrfields-ucomm.
CASE sscrfields-ucomm.
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.
Reward me if its helpful.
Regards
Ravi

Similar Messages

  • Need to add more field in the selection screen in tcode crm_dno_monitor

    Hi,
    In the transaction code crm_dno_monitor, i need to add extra fields in selection screen. Do we have any way to add fields in the standard tcode crm_dno_monitor.
    Thanks
    Prasad

    If you need to add 5 fields on ticket screen then use EEWB enhancement.
    The ticket screen transaction is crmd_order which even opens up after you double click the ticket no from crm_dno_monitor report list.
    for crm_dno_monitor you can have the BADI CRM_DNO_MONITOR which will add later the column for the fields which you can add using EEWB
    Check the following blog which guide you for custom field creation using EEWB
    /people/bruyneel.guillaume/blog/2008/06/13/service-desk-implementation-guide-part-ii

  • I need to add push button to last extended price unit in sale order item B

    i need to add push button to field  last extended price unit in sale order item additional data B

    i need to add push button to field  last extended price unit in sale order item additional data B

  • How to add push buttons in out put screen of ALV

    Hai,
    How to add push buttons in out put screen of ALV (tool bar) with out using classes or methods .I want to know using normal ALV .
    Thanks in advance .
    kiran

    Hi Kiran,
    Here is the sample code.If you are using reuse_alv_grid_display, no need to write code in PBO.
    Just double click the 'TEST' which is written in code.Then create a GUI Status.In Application toolbar,type the name of the button you want(say BUTTON).Then double click that name.Then enter the ICON name and function text.Activate it.This itself will work.If you want all the functionalities,then try to do as Vinod told.
    TYPE-POOLS: slis.
    DATA: i_qmel LIKE qmel OCCURS 0.
    data v_repid type repid.
    SELECT * FROM qmel INTO TABLE i_qmel.
    v_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = v_repid
       I_CALLBACK_PF_STATUS_SET          = 'SET_PF_STATUS'
       I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
       i_structure_name                  = 'QMEL'
      TABLES
        t_outtab                          = i_qmel
      EXCEPTIONS
        program_error                     = 1
        OTHERS                            = 2.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    form set_pf_status using rt_extab type slis_t_extab.
    set pf-status '<b>TEST</b>'.
    endform.
    FORM user_command USING ucomm LIKE sy-ucomm
                             selfield TYPE slis_selfield.
    data lv_ucomm type sy-ucomm.
    lv_ucomm
    = sy-ucomm.                                        
      CASE lv_ucomm.
        WHEN 'BUTTON'.                              "Double Click line Item
          call transaction 'MM01'.
      endcase.
    endform.

  • Prob with Push Buttons in the selection screen

    Hi All,
    1) I have 6 push buttons in the selection screen(Normal Report), 3 in a first row(P11, P12, P13) and 3 in the second row(P21, P22, P23). If I press one push button(for ex P11) the other two Push buttons(P12 P13) should grey out(Inactive mode). If I press P22, P21 & P23 shoul grey out.
    2) I need color change for the Inactive push buttons.
    Thanks
    Kris

    Can you please post your selection screen definition? I don't understand what you want to achieve by greying out the other pushbuttons when one is pressed.
    Does that mean pushing one button will do nothing except greying out the buttons?
    Typically when you push a button, you want to continue to execute the required processing for that button not just grey out other pushbuttons and stay in the selection screen.
    Anyway, you can achieve that using the following logic. I am not sure how and if you can achieve the color change.
    TABLES: sscrfields.
    DATA: v_button_pushed(5).
    SELECTION-SCREEN PUSHBUTTON /1(10) p11 USER-COMMAND push1.
    SELECTION-SCREEN PUSHBUTTON 12(10) p12 USER-COMMAND push2.
    SELECTION-SCREEN PUSHBUTTON 23(10) p13 USER-COMMAND push3.
    SELECTION-SCREEN PUSHBUTTON /1(10) p21 USER-COMMAND push4.
    SELECTION-SCREEN PUSHBUTTON 12(10) p22 USER-COMMAND push5.
    SELECTION-SCREEN PUSHBUTTON 23(10) p23 USER-COMMAND push6.
    INITIALIZATION.
      p11 = 'Push11'.
      p12 = 'Push12'.
      p13 = 'Push13'.
      p21 = 'Push21'.
      p22 = 'Push22'.
      p23 = 'Push23'.
    AT SELECTION-SCREEN OUTPUT.
      CASE v_button_pushed.
        WHEN 'PUSH1'.
          LOOP AT SCREEN.
            CHECK screen-name <> 'P11'.
            screen-input = 0.
            MODIFY SCREEN.
          ENDLOOP.
        WHEN 'PUSH2'.
        WHEN 'PUSH3'.
        WHEN 'PUSH4'.
        WHEN 'PUSH5'.
        WHEN 'PUSH6'.
        WHEN OTHERS.
      ENDCASE.
    AT SELECTION-SCREEN.
      v_button_pushed = sscrfields-ucomm.

  • Add field in listing/exclusion selection screen

    Hi, expert, i have create a condition table for my listing type Z001. there is a field name ZZABCD in the condition table. In VB03, I can see the conditon table in 'Key combination'. Now i want to add the field into the selection screen when i click the button 'Condition info' in VB03. Please advice. Thanks.

    Dear Rick,
    go to OV06, there select the table in which you want to add field. And then select the Add Field and search and add your required field.
    Also,
    while assinging accesses to access seq., select the table you want to add against the access seq. and in that table, add the newly created field. And finally save.
    There is no need to change other setting as you want to add only the field.
    Now try the field should be displayed
    regards,
    Sagar

  • How to add profit center in fbl5n selection screen

    how to add profit center in fbl5n selection screen
    and
    it is save to copy  ddf from sap to cus
    wll it affect anything else

    When you are on selection screen of FBL5N, press (Shift + F4) DYNAMIC SELECTIONS, there you will see a Dynamic selection screen along with your normal FBL5N selection screen, you will find Profit Centre ther, if you don't find Profit Centre in Dynamic Selection Screen you can add the same from the list on the left, search for profit centre, place your cursor on Profit centre and press the Arrow Button(Copy Selected) on top of the list. Now you will find Prfit Centre in Dynamic selection screen, fill the field with values and press save, that's it.....
    Reward points if useful, get back in case of query...
    Cheers!!!

  • Problem With Push buttons on the selection screen

    Hi All,
    I've taken 3 push buttons on the selection-screen with the following syntax
    SELECTION-SCREEN: FUNCTION KEY 1,
                      FUNCTION KEY 2,
                      FUNCTION KEY 3.
    and have removed the F8 execute button using FM RS_SET_SELSCREEN_STATUS
    Now, the problem is i'm able to perform validations using At selection screen but the code after the Start-of-selection is not being triggered.
    I mean the processing is being terminated after the at selection-screen.could anyone please tell me how do i trigger some code after the event start-of-selection when a user presses a push button with sy-ucomm = FC01.

    Check the below sample program :
    REPORT ZLPRWINSPC_TMP .
    tables : mara,
             sscrfields.
    select-options s_matnr for mara-matnr.
    initialization.
    sscrfields-functxt_01 = 'Clear Selection'.
    selection-screen function key 1.
    AT SELECTION-SCREEN.
    case sscrfields-ucomm.
    when 'Clear Selection' or 'FC01'.
    clear s_matnr.
    refresh s_matnr.
    endcase.
    Thanks
    Seshu

  • REPORT PAINTER - Add a field to a selection screen - custom report

    Hi,
    I'm trying to add a field to a selection screen to a CUSTOM REPORT that has been made in REPORT PAINTER (Y_DVL_xxxxxxx). How should I proceed to do so?
    Thanks a lot,
    Julien

    Hi Julien Girard ,
        Could you please check the below link :
    http://help.sap.com/saphelp_erp2005/helpdata/en/56/32e339b62b3011e10000000a11402f/frameset.htm
    Regards,
    S.Manu.

  • REPORT PAINTER - Add a field to a selection screen to a CUSTOM REPORT

    Hi,
    I'm trying to add a field to a selection screen to a CUSTOM REPORT that has been made in REPORT PAINTER (Y_DVL_xxxxxxx). How should I proceed to do so?
    Thanks a lot,
    Julien

    Hi Julien Girard ,
        Could you please check the below link :
    http://help.sap.com/saphelp_erp2005/helpdata/en/56/32e339b62b3011e10000000a11402f/frameset.htm
    Regards,
    S.Manu.

  • Add Expand/Collapse button in selection screen

    hi,
    i have to add expand button in the selection screen, afterwich, the expand button will be replaced by collapse button,
    any idea?!
    thanks

    Check this code..............
    DATA: wf_ucomm TYPE sy-ucomm.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    SELECTION-SCREEN PUSHBUTTON  /01(30) but1 USER-COMMAND but1.
    SELECTION-SCREEN PUSHBUTTON  /01(30) but2 USER-COMMAND but2.
    PARAMETERS:  p_test TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    INITIALIZATION.
      CALL FUNCTION 'ICON_CREATE'
        EXPORTING
          name   = 'ICON_EXPAND'
        IMPORTING
          RESULT = but1
        EXCEPTIONS
          OTHERS = 0.
      CALL FUNCTION 'ICON_CREATE'
        EXPORTING
          name   = 'ICON_COLLAPSE'
        IMPORTING
          RESULT = but2
        EXCEPTIONS
          OTHERS = 0.
    AT SELECTION-SCREEN.
      IF sy-ucomm EQ 'BUT1'.
        wf_ucomm = 'BUT1'.
      ELSEIF sy-ucomm EQ 'BUT2'.
        wf_ucomm = 'BUT2'.
      ENDIF.
    AT SELECTION-SCREEN OUTPUT.
      IF wf_ucomm IS INITIAL.
        LOOP AT SCREEN.
          IF screen-name CS 'P_TEST'OR
             screen-name EQ 'BUT2'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF wf_ucomm EQ 'BUT1'.
        LOOP AT SCREEN.
          IF screen-name CS 'P_TEST' OR
             screen-name EQ 'BUT2'.
            screen-active = 1.
            MODIFY SCREEN.
          ENDIF.
          IF screen-name EQ 'BUT1'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF wf_ucomm EQ 'BUT2' .
        LOOP AT SCREEN.
          IF screen-name CS 'P_TEST' OR
             screen-name EQ 'BUT2'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
          IF screen-name EQ 'BUT1'.
            screen-active = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.

  • How to add program documentation icon on selection screen

    Hi All,
    Please let me know how to add  program documentation icon on selection screen.
    Thanks
    Jog

    THis is pretty straight forward, in se38, enter program name, click change.  Now click Go To, Documentation.  Enter the documentation on this screen, save and activate, now run the program,  the icon will be there.
    REgards,
    Rich Heilman

  • Need to add Plant and CostCenter as Selection fileds of CJI3 Initial screen

    Hello Team,
    Can you suggest me OSS note or User exit to add Plant and CostCnters as selection criteria for CJI3 Actual cost line Items report.
    Thanks in advance,
    Best regards,
    Harish.P

    Harisha
    I agree with above reply but your requirement sounds a bit weird.
    Note sure if cost element reports are any useful for your requirement.
    Look (refer note) at the report painter option ( but you might still need to enter the Project/WBS)
    Note 668513 - FAQ 2: Cost element reports in Project System
    Regards
    Sreenivas

  • Need to Add BKTXT in the dynamic selection in FB03

    Hi Gurus,
    In the dynamic selection FB03, the field BKTXT is not included in the dynamic selection. Would it be possible to add this field?
    Youre inputs would be greatly appreciated.
    Thanks and best regards,
    JeCCas_DJ

    Hi,
    You wants to add the BKTXT field on the selection screen of FB03?
    Why? for what purpose?
    Better copy the program related FB03 to some Zprogram and modify it by writing a select statement to get this BKTXT firld form BKPF/BSEG tables.
    SInce this is a text field, normally we don't put onthe selection screen.
    Regards,
    Anji

  • Need to have pop up window in selection screen and capture the user action.

    Hello Friends,
                         I have a requirement, that need to show a pop up window after execution, and to get the action from user using a Push button.
    I create a selection screen and a sub screen as window.
    After user execute from the selection screen, I am popping up this window.
    Window contains some input values to be entered and push button to identify the user action.
    I try to capture the user action using sy-ucomm, but it does not hold any value when user press the button.
    How to overcome this issue.
    Here is the definition of the window.
    Pop Up Window for getting values
    SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW TITLE title .
    PARAMETER : p_vdate LIKE t9aa01-validfrom,
                p_dcggt LIKE t9aa01-hkont,
                p_dcgst1 LIKE t9aa01-hkont,
                p_dcgst2 LIKE t9aa01-hkont,
                p_na LIKE t9aa01-hkont.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 20.
    SELECTION-SCREEN PUSHBUTTON 2(10) text-001 USER-COMMAND SVE.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF SCREEN 500.
    Cheers,
    Senthil
    Edited by: Senthil on Jan 7, 2008 11:03 AM

    Hi,
    Try using the below code.
           data : w_var type string.
           CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
             EXPORTING
              DEFAULTOPTION        = 'Y'
               textline1            = 'test '
             TEXTLINE2            = ' '
               titel                = 'check'
             START_COLUMN         = 25
             START_ROW            = 6
             CANCEL_DISPLAY       = 'X'
            IMPORTING
              ANSWER               = w_var.
                     if w_var = 'J'.
                     else.
                     endif.
    Comments : J indicates Yes and N indicates No
    Regards,
    Jeswanth

Maybe you are looking for

  • Set values of check box

    Hi All, I have a multirow block with three text item columns,which source is a view. I have a column of check box besides this multirow block, so that each check box corresponds to each row in the block. If the check boxes are checked, then the corre

  • Performance Tunning - Oracle Reports 6i

    Hi Gurus, I have an Oracle Apps Reports 6i with a formula column having so much of conditions making the reports to take long time to get completed. Its taking 20 mins to complete. Please your help on this. Thanks, Genoo

  • Copy Shortcuts to the Windows 7 Taskbar using MDT

    I would like to copy items to the Windows 7 taskbar for all users, and do this during deployment as part of a task sequence. Does anyone know if this can be done. I found a script called pinItem.vbs, but do not know if it could be done from a TS, nor

  • Why are photoshop and freehand not opening?

    whenever i try and open up photoshop or freehand, it just gives me the hourglass for absolutely ages then just stops without doing anything. can someone please help? its really important. thank you, Ryan.

  • Updates are being installed by system administrator - stuck!?

    Snow Leopard Server seems stuck on this process and  indeed I am now scared to reboot! I have logged on as a diradmin and the updates are visible in the Software updates and despite my clicking install, it does not and seens hung at this process and