Selection screen pushbutton

I have designed one push button on the selection screen below to input fields. If I press that button then I need to do some bdc programs after that I need to display log in the output screen. For this what I did is I have created perform statement in at selection screen event. And I am calling all the transactions inside of that form. But I am not able to display log in the output screen as it is under at selection screen event. So how to provide the log in the output screen after pressing push button.
What I did is under start of selection I am looping messtab internal tables. The log displaying after I press execute button but it is not displaying after I press push button.
Please help me what logic I have to build for this.
Thanks a lot in advance.

Try something like this.
REPORT  RICH_0001.
tables: sscrfields.
selection-screen PUSHBUTTON  1(20) pb_test user-command PB1.
at selection-screen.
  if sy-ucomm = 'PB1'.
     sscrfields-ucomm = 'ONLI'.
  endif.
start-of-selection.
write:/ 'StartOfSelection has been executed'.
Regards,
Rich Heilman

Similar Messages

  • Logical Database selection screen pushbutton

    Hello All,
    I need to create a pushbutton on a selection screen of a logical database.  Basically this pushbutton when clicked will either display or suppress some fields on the screen.  I have tried to use the SSCRFIELDS option to create a pushbutton, however that never displays for me.  Logical Database DDF has an example of a pushbutton that I am looking to create, however the functionality will be different.  I am not sure what I am missing, can anyone help?  Thanks.
    John

    Hello All,
    Thanks for your replies. However, there is something that is causing these options not to work.  For some reason when using SSCRFIELDS nothing displays.  For the SELECTION-SCREEN PUSHBUTTON command, we see the push button however our code for some reason is not working.  I have another developer working this with me and we are both stumped.  We are mirroring that DDF Logical Database and are not having any luck so far.  Does anyone have any further suggestions?
    John

  • Dynamic variables: SELECTION-SCREEN PUSHBUTTON

    hi, how I can create 100 buttons on a cycle so dynamic?
    example:
    SELECTION-SCREEN BEGIN OF LINE.
       SELECTION-SCREEN PUSHBUTTON (4)  TEXT-001    USER-COMMAND but1.
       SELECTION-SCREEN PUSHBUTTON (4)  TEXT-002    USER-COMMAND but2.
       SELECTION-SCREEN PUSHBUTTON (4)  TEXT-003    USER-COMMAND but3.
       SELECTION-SCREEN PUSHBUTTON (4)  TEXT-004    USER-COMMAND but4.
    SELECTION-SCREEN END OF LINE.
    .....must be dynamic and they can be 100 and just 10
    thanks in advance.
    goudden.

    It gives you an error cause the macro is wrong. Try like this:
    define create_line.
    SELECTION-SCREEN BEGIN OF LINE.
       SELECTION-SCREEN PUSHBUTTON (4)  TEXT-&1    USER-COMMAND b&1.
       SELECTION-SCREEN PUSHBUTTON (4)  TEXT-&2    USER-COMMAND b&2.
       SELECTION-SCREEN PUSHBUTTON (4)  TEXT-&3    USER-COMMAND b&3.
       SELECTION-SCREEN PUSHBUTTON (4)  TEXT-&4    USER-COMMAND b&4.
    SELECTION-SCREEN END OF LINE.
    end-of-definition.
    selection-screen begin of block b01.
         create_line: 001 002 003 004, 005 006 007 008.
    selection-screen end of block b01.

  • SELECTION-SCREEN PUSHBUTTON 0(20) name USER-COMMAND FILE.

    Hi,
    I'm trying to put a button on a selection-screen!
    I'd like this button to be Icon + text! Text is ook, how do I add an icon ?
    regards,

    If you want to create pushbuttons with tool tips on a selection screen or you want to assign a tooltip to the pushbuttons created with SLECTION-SCREEN FUCTIONKEY in the GUI status of a selection screen, the correction instructions contain a sample program which demonstrates how you can assign tool tips to pushbuttons or application toolbars in a selection screen.
    Code
    REPORT ZZTOOLTIPDEMO.
    TYPE-POOLS icon.
    DATA: funckey TYPE smp_dyntxt.
    TABLES: sscrfields.
    SELECTION-SCREEN PUSHBUTTON 1(40) pushbutt USER-COMMAND
    com VISIBLE LENGTH 12.
    SELECTION-SCREEN FUNCTION KEY 1.
    INITIALIZATION.
    CALL FUNCTION 'ICON_CREATE'
    EXPORTING
    name = icon_information
    text = 'My Text'
    info = 'My Quickinfo'
    ADD_STDINF = 'X'
    IMPORTING
    RESULT = pushbutt
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    MOVE icon_information TO funckey-icon_id.
    MOVE 'My text' TO funckey-icon_text.
    MOVE 'My quickinfo' TO funckey-quickinfo.
    MOVE funckey TO sscrfields-functxt_01.

  • Selection-screen pushbutton & Table Control

    Hi Everyone
    In my program i have a pushbutton in my selection-screen; this button call a screen with a table control, the problem is when i run my report and return to the first screen, the data in the TC is cleared.
    It's possible to save the information of my TC if i run my report and return to the first screen??
    Thanks & Regards
        David

    Hi,
    Write the logic for putting data from an internal table into table control in the PBO of the called screen & not in the PAI of the calling screen. Also, when you exit that screen, retrieve data into the internal table.
    For e.g. if Screen 9002 contains table control then
    PBO of Screen 9002:
    loop at it_itab into x_itab with control table_control_name.
    module put_data.
    endloop.
    PAI of screen 9002:
    loop at it_itab into x_itab.
    module get_data.
    endloop.
    Reward points if the answer is helpful.
    Regards,
    Mukul

  • Tooltip on pushbutton on alv report selection screen

    Hi Experts,
    I have a selection screen with two pushbuttons i want to provide tooltip on this button when user takes his cursor on it .. some part of my code
    Selection screen:
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(20) text-t02 FOR FIELD p_info.
    PARAMETERS: p_info TYPE string.
    SELECTION-SCREEN: PUSHBUTTON 68(10) but1 USER-COMMAND cli1.
    SELECTION-SCREEN : END OF LINE.
    PARAMETERS:      r_exe_im  RADIOBUTTON GROUP rb1.
    PARAMETERS:      r_st  RADIOBUTTON GROUP rb1.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN: PUSHBUTTON /1(20) exec1 USER-COMMAND cli2.
    SELECTION-SCREEN: FUNCTION KEY 1.
    SELECTION-SCREEN END OF BLOCK b1.
    please tell me on these selection fields how to display tool tip.
    Thanks and regards,
    Roshan.

    Hi,
    After completing your executable program in SE38, activate it and goto SE51(Screen painter).
    Here give the name of your program and screen number as 1000.
    Click on Change.
    Goto Element List Tab.
    Here you will find all your elements from your program.
    Select the required element and click on Properties.
    Here you will find a Tooltip Text property. Click on the button 'Text' of this property.
    You will be given 2 options 1) Text from Text element 2) Text from Variable
    Enter as per requirement
    Save and Activate.
    Hope this will be useful
    Regards
    Bhupal

  • Problems in at selection-screen output - setting pushbutton invisible

    Hello,
    I hope I can get some help here
    I have a problem with setting a pushbutton invisible
    i have a field (long-text) in my screen - and behind this a pushbutton for calling the editor
    if in a variant the parameters field is set invisible i also want to set the pushbutton invisible
    i have no idea why in the at selection-screen output event screen-invisible is always 0 - but in the variant the field is set invisible.
    i need to know if the parameters field is invisible to set the pushbutton the same
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) S_TXB_L1.
    PARAMETERS S_TXT_L1 TYPE ZHR_FC_STRING.
    SELECTION-SCREEN PUSHBUTTON 79(15) P_LTX_1 USER-COMMAND YLTXT1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) S_TXB_L2.
    PARAMETERS S_TXT_L2 TYPE ZHR_FC_STRING.
    SELECTION-SCREEN PUSHBUTTON 79(15) P_LTX_2 USER-COMMAND YLTXT2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) S_TXB_L3.
    PARAMETERS S_TXT_L3 TYPE ZHR_FC_STRING.
    SELECTION-SCREEN PUSHBUTTON 79(15) P_LTX_3 USER-COMMAND YLTXT3.
    SELECTION-SCREEN END OF LINE.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
        IF SCREEN-NAME(7) = 'S_TXT_L'.
          MERK_INVISIBLE = SCREEN-INVISIBLE.
        ENDIF.
        IF SCREEN-NAME(6) = 'P_LTX_'.
         SCREEN-INVISIBLE = MERK_INVISIBLE.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Thanks very much...
    Helmut

    I agree - there seems to be some confusion here. In the variant the field can only be "hidden" while in the code it is possible to make the field completely invisible. 'Hiding' the field in the variant merely hides it by default and adds a 'plus' button to the toolbar, by clicking which the hidden elements can be exposed.
    As far as changing the screen fields goes, I find it usefull to use MODIF ID. Perhaps this blog could be helpful:
    http://friendlyabaper.blogspot.com/2009/07/my-super-awesome-selection-screen.html
    P.S. Please use the code tags for the code, per Forum Rules.

  • HOW CAN I PLACE 2 PUSHBUTTONS SIDE BY SIDE ON THE SELECTION-SCREEN?

    i want to place 2 buttons but using my code, the other goes below the first. Can anyone help me?

    hi,
    write as below
    selection-screen: pushbutton 10(30) text-003 user-command
                                                    clk1 modif id sg1,
                       pushbutton 50(50) text-004 user-command clk1
    the push buttons appear in the same line.
    reward if useful,
    thanks and regards
    Edited by: hema bobbili on May 23, 2008 6:58 AM

  • How to disable a pushbutton created in selection screen.

    How to disable a pushbutton created in selection screen.

    you can make it invisible during runtime.
    At the event,  AT SELECTION-SCREEN OUTPUT. you can turn attributes on and off for screen elements.  In this case, invisible = 1, makes the element invisible, 0 makes is visible.
    here is a short sample.
    report zrich_0001.
    parameters: p_check type c.
    selection-screen pushbutton 40(20) gocfg
                         user-command gocfg.
    at selection-screen output.
      loop at screen.
        if screen-name = 'GOCFG'.
          screen-invisible = '1'.
          modify screen.
        endif.
      endloop.
    Regards,
    Rich Heilman

  • Pushbuttons on selection-screen

    Hi ,
       i have a push button on the selection screen , when press it my list must be displayed.
    how can i do it.
    Regards
    Arun

    REPORT Z3_SELECTION_SCREEN .
    Tables : MAKT,SSCRFIELDS.
    DATA : FLAG VALUE '0'.
    SELECTION-SCREEN BEGIN OF BLOCK ONE WITH FRAME  title TEXT-001 NO
    INTERVALS .
    selection-screen begin of line.
    Parameters : MATNR like MAKT-MATNR MODIF ID SC1 value check,
                 MAKTX LIKE MAKT-MAKTX MODIF ID SC1.
    selection-screen end of line.
    SELECTION-SCREEN END OF BLOCK ONE .
    *SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN : PUSHBUTTON 10(20) TEST  USER-COMMAND ABCD.
    SELECTION-SCREEN : PUSHBUTTON 40(20) TEST1 USER-COMMAND ABCD1.
    SELECTION-SCREEN : PUSHBUTTON 70(20) TEST2 USER-COMMAND ABCD2.
    *SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
    TEST = 'List'.
    TEST1 = 'TEST1'.
    TEST2 = 'TEST2'.
    AT SELECTION-SCREEN .
    IF SSCRFIELDS-UCOMM = 'ABCD'.
            SELECT SINGLE MAKTX FROM MAKT INTO (MAKTX)  WHERE MATNR = MANTR AND
             SPRAS = SY-LANGU.
    eNDIF.
    Start-of-selection.
    Write: / MAKTX.

  • PUSHBUTTON and AT SELECTION-SCREEN

    Hi, I don't understand why I'm not being able to catch the user command in the example below.  I tried in the CASE statement sscrfields-ucomm, sscrfields, sy-comm, but none of them work. Is the problem related with displaying a message ? Or am I indeed misunderstanding the use of the USER-COMMAND assigned to the PUSHBUTTON I created ? All I want is to be able to perform any action in the AT SELECTION-SCREEN event, when the button is pushed.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN PUSHBUTTON 4(10) but1 USER-COMMAND c1.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
      but1 = 'BUTTON 1'.
    AT SELECTION-SCREEN.
      CASE sy-ucomm.
    *  CASE sscrfields-ucomm.
    *  CASE sscrfields.
        WHEN 'c1'.
          MESSAGE 'You clicked me' TYPE 'I'.
      ENDCASE.
    Thanks !
    Avraham

    Hi,
    Give C1 in caps 
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN PUSHBUTTON 4(10) but1 USER-COMMAND c1.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
      but1 = 'BUTTON 1'.
    AT SELECTION-SCREEN.
      CASE sy-ucomm.
    CASE sscrfields-ucomm.
    CASE sscrfields.
        WHEN 'C1'.
          MESSAGE 'You clicked me' TYPE 'I'.
      ENDCASE.
    Cheers
    Kothand

  • Get TEXT OF Pushbutton on selection-screen

    HI ,
       How can i get the name of the pushbutton on the selection-screen.

    Dear Arun,
    First of all Thanks for giving me points for your 'Time Query'.
    It was my first inauguration in sdn.
    Regarding this 'Button Name'  Query,
    It seems to me that your problem is still not solved.
    All the answers provided do 'Something Else'
    and your 'Real Questions' remains unsolved.
    Its a very good question. I also tried much and
    presently conclude that for achieving this :
    1. Some Discipline in Naming Convention has to be followed.
    2. This discipline is between
        a) Name of button
        b) user command for this button
    3. I have written a sample code in which
        a) 3 buttons appear on screen.
        b) press any one button
        c) then press 'Execute' Button For displaying name
    4. The main logic is to
        a) search by using a 'Loop at Screen'
        b) In the loop, in the name field search the ucomm.
    5. I hope this will be satisfactory till time. If it get
    something more, i will let u know.
    6. Once again please give points if u feel satisfied.
    Thanks & Regards,
    Amit Mittal.
    REPORT abc.
    DATA : btnname(8) TYPE c.
    REQUIRED
    TABLES sscrfields.
    Create Button
    Note : Name Of Button 'U1_HELLO'
            Starts with 'U1' (assigned user command)
            This kind of discipline required
    SELECTION-SCREEN PUSHBUTTON /10(20) u1_hello USER-COMMAND u1.
    SELECTION-SCREEN PUSHBUTTON /10(20) u2_hello USER-COMMAND u2.
    SELECTION-SCREEN PUSHBUTTON /10(20) u3_hello USER-COMMAND u3.
    Init
    INITIALIZATION.
      MOVE 'BUTTON 1' TO u1_hello.
    MOVE 'BUTTON 2' TO u2_hello.
    MOVE 'BUTTON 3' TO u3_hello.
    AT SELECTION-SCREEN.
    *------- Loop at Screen
      LOOP AT SCREEN.
        IF screen-name CS sscrfields-ucomm.
    FOUND
          btnname = screen-name.
        ENDIF.
      ENDLOOP.
    END-OF-SELECTION.
      WRITE:  'BUTTON NAME IS ' , btnname.

  • Selection-screen and top-of-page in ALV

    Hello experts,
    1. In my selection-screen I have 2 parameters as display only. Now, how can I position/move them?
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(10) text-002 FOR FIELD p_dcode.
    PARAMETER: p_dcode LIKE zsoemailid-kunnr MODIF ID id1,
               p_name1 LIKE kna1-name1 MODIF ID id1.
    SELECTION-SCREEN END OF LINE.
    SELECT-OPTIONS: s_sorder FOR vbap-vbeln MODIF ID id2,
                    so_date FOR vbap-erdat MODIF ID id2.
    SELECTION-SCREEN END OF BLOCK b1.
    2. In my ALV display, how can I make my header and ALV list display with no spaces. Example:
    Dealer no: 12345
    Address: XXXXXX
    Tel: 00000
    "<--ALV display
    Again, thank you guys and have a nice day!

    Hi viray,
    For positioning the parameters on selection screen you can use two additions pos_low and pos_high as in given example
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 10(15) TEXT-001
                       FOR FIELD PARM.
      SELECTION-SCREEN POSITION POS_LOW.
      PARAMETERS PARM LIKE SAPLANE-PLANETYPE.
      SELECTION-SCREEN PUSHBUTTON POS_HIGH(8) PUSHY
                       USER-COMMAND ABCD.
      SELECTION-SCREEN ULINE (5).
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN ULINE /12(10).
    Regards
    Sumit Bhutani
    Ps reward points if helpful

  • How to deal with dynamic selection screen elements when macros are used?

    Hello experts,
    This is regarding the dynamic selection screen elements. Actually the requirement is to modify the existing standard report program RFUMSV00 by copying it into a Z report, adding a few selection screen elements and new fields in the output. I actually did everything required except for the one thing that is going out of my reach.
    There are a certain fields which are coming when they are not supposed to get displayed. I don't understand the code because of its obsoleteness. Neither can I debug it because it is just data declaration.
    This is the code where there is a fault. If I copy the entire code into a new Z report, I'm getting new fields like Entry Date, Document Type, Reference Transaction,  Reference key, Logical system.
      DEFINE selection_screen_line.
      selection-screen: begin of line.
      parameters &3 like &4 default 'X' modif id mc4.
      selection-screen: comment (30) &1 for field &3 modif id mc4.
      selection-screen: comment pos_low(10) text-019
                        for field &2 modif id mc4.  "neu
      parameters &2 like rfums_alv-variante modif id mc4.
      selection-screen:
          position pos_high.
      selection-screen: pushbutton (15) text-028
                        user-command &5 modif id mc4.
      selection-screen end of line.
    END-OF-DEFINITION.
    Kindly, suggest me the right solution.

    In the program attributes ( SE38 > RFUMSV00 > GOTO > Properties ), you will find a logical database BRF declared. The include DBBRFSEL is part of the selection screen of this logical database.
    The selection screen is actually the selection screen of this logical database.
    Under the Logical Database field, there is a Selection screen field where you can input which selection screen of the logical database to be used.
    But, this is just to change the selection screen that is displayed. To completely suppress it you need to remove logical database declaration from the properties of the program and call it inside your program through function module.
    You cannot just remove it from the declaration because many of its variables are used in the program.
    So call it using function module as the first step in INITIALIZATION section of the program.
    The syntax and function module to call it in your program can be found in the following thread :
    How to hide the selection screen of a Logical datebase?
    Regards,
    Ashish

  • 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

  • IPhone 3G, Safari cannot open OWA (Outlook Web Access) to Exchange 2007

    Hello, picked up iPhone 3G in hopes of replacing my Windows Mobile 6 phone (AT&T 8525), and first i did was, a) Installed the my .pfx certificate, appears successful as the certificate showed up under Settings | General | Profile, as identity certifi

  • PO with multiple account assignments - non valuated / valuated GR

    Hi Experts, If I create a PO for goods with multiple account assignments the GR will not be valuated, but if I do the same for a service PO the GR will be valuated. What is the reason for this? Thanks in advance, Francisco Melo

  • Displaying Images stored in Database

    Hi, all i am having images stored in Databases as BLOB. how i can display that in flex application. suppose i am having the ArrayList of Employees in which employee object also have a field of called empImage, how i can display this data in flex. i a

  • Plot fill hides the grid.

    I want to use color regions on my graph. But, if I use a background image, it doesn't adjust with the scale. If I use plot fill and create data arrays for my boundaries, it hides the grid. Does anyone know how to accomplish this? (see attached pictur

  • Can't associate Planning Outline to Business Rule in EAS

    Hi all I've searched through this forum but can't seem to find a solution to my issue on any of the existing threads, I have tried what has been suggested to others who seem to have the same problem. My issue is this ... When I have a Business Rule o