Enabling Push Buttons

Hi Gurus,
I have a column of push buttons in my table control, each push button for each line item.
According to my requirement, I disabled the push button column initially, it will only get enable depending
upon each line item's condition.
Like, 1st row, if rad2 = 'x' , then the push button for that line should get enabled.
        2nd row, if rad2 = 'X', then the push button for that line should get enabled.
        3rd row, if rad2 NE 'X', then the push button for that line should be disabled.
I tried a lot , but its not happening. May be because I disabled the column based on the screen group.
Can anyone please help me on this ?
Thanks
Chandan

Hi,
First assign some function keys for Radio buttons..
and assign the Logic for enabling and disabling screen logic in the PBO..
Refer:
Take the group1 for the screen fields that you have taken on screen as ABC and then follow code to disable fields, in PBO:-
IF <condition>. "as per your condition
  IF screen-group1 = 'ABC'.
    LOOP AT SCREEN.
      screen-invisible = 0. "to disable screen fields
    ENDLOOP.
    MODIFY SCREEN.
  ENDIF.
ENDIF.
Now say if you want to enable fields on some condition then you may use:-
IF <condition>. "as per your condition
  IF screen-group1 = 'ABC'.
    LOOP AT SCREEN.
      screen-invisible = 1.  "to enable Push Button
    ENDLOOP.
    MODIFY SCREEN.
  ENDIF.
ENDIF.
Regards,
Prabhudas
Edited by: Prabhu Das on May 11, 2009 7:51 PM

Similar Messages

  • Enable push button

    Hi,
       I need to customize an infotype. I've created one push button on the screen, when click on the button, a table control will show out.
      However, I don't know why when I display the screen in PA30, the push button show disabled mode and I couldn't click on it.
      Do anyone know why and how can I solve it?
      Many thanks in advance.

    in the lay out check tha attributes of thatbutton.check the display tab i the attributes.in that check box corresponiding to invisible should not be checked(empty).
    regards,
    bharat.

  • Reg:dynamically enabling push button in module programs

    hi guru's.
           i have placed a pushbutton on a screen,and i have hide it.
    on certain conditions i want to enable the pushbutton dynamically through coding,how to do that....
    plzzz help......
    with regards,
    balaji.s

    Dolike  below
    loop at screen.
       if screen-group1 = 'G2'.
            screen-active = 1.
            screen-input = 1.
            screen-output = 1.
            screen-invisible = 0.
            modify screen.
          endif.
    endloop.
    here you need to assign your  field to  a group  say 'G2'.
    do rward if helpful

  • How to Enable a Push Button In The Form That Is Always Greyed Out?

    Greetings All,
    I am trying to enable an existing "Return" Push Button(PB) which is always greyed out whenever the form is called in either an update or review mode. After some research, I found that this PB's functional property is "Enabled" (i.e. the enabled value = 'Yes'), and it is coded programatically set 'Off' in 30 places and 'On' in 2 places in the form that I inherit from my predecessor by using the following code:
    SET_ITEM_ON_OR_OFF('BLK_UPDATE.PB_RETURN', <XXXXX>);
    Where <XXXXX> could be either TRUE or FALSE. I've been spending a lot of time in trying to enable this "Return" PB (without modifying the existing programming code) by adding the 'SET_ITEM_ON_OR_OFF' built-in command to set the PB on in WHEN-BUTTON-PRESSED TRIGGER for the PB_RETURN and WHEN-NEW-FORM-INSTANCE Trigger, but all tries in vain. Could you please help me with the following question?
    What is the easiest way to enable a PB that is set programmatically?
    Is there something else I should know to enable a PB, in addition to what I have already mentioned above?
    Thanks in advance,
    Jinlan
    --

    Thanks all for your information and help. I included the following code, as suggested by Manu, in WHEN-MOUSE-DOWN TRIGGER for the PB_RETURN and WHEN-NEW-FORM-INSTANCE TRIGGER:
    SET_ITEM_PROPERTY ('BLK_UPDATE.PB_RETURN_WORK_REQ', ENABLED, PROPERTY_TRUE);
    and I made sure there was no " SET_ITEM_ON_OR_OFF('BLK_UPDATE.PB_RETURN_WORK_REQ', FALSE);" statements after the above code, but, the "Return" PB is still in grey; in other words, it is still not accessible when my form is called.
    Perhaps, I need to place the above SET_ITEM_PROPERTY code in a different trigger other than the triggers mentioned above, uh? Any thoughts on this?
    Manu,
    You are absolutely right that the "SET_ITEM_ON_OR_OFF" is an ih-house written procedure which is defined/stored in the Attached Libraries. (I should have checked before making the "built-in" assumption. Thanks for catching and clarifying this.) Please help me with the following questions:
    How do I view the procedure in the Attached Libraries???
    Thanks in advance,
    Jinlan
    --

  • Enabling a push button in query mode only

    Hello!!
    How do you enable a push button only in query mode? Do I need to write some code? If so can anybody help?

    Use the following code
    if :system.mode = 'ENTER-QUERY' THEN
    SET_ITEM_PROPERTY('BUTTON',ENABLE,PROPERTY_TRUE);
    ELSE
    SET_ITEM_PROPERTY('BUTTON',ENABLE,PROPERTY_FALSE);
    END IF;

  • Push button details in web ui of crm 6.0

    Hi All,
    I would like to view and know the details of existing push buttion function in web ui crm screen. 
    Though clicking F2 on the push button, i am able to see the technical details of Component, View, Context Node and role key. 
    I need to add the same existing functionality in a differenct view for which i am not able to find the details in the Structurte of Component IUICMDC.  Please help us.
    Thanks and Regards to all
    P.Raj

    Hi,
    You need to know wich view you want to add the new push button.
    In trx. BSP_WD_CMPWB select the view and enhance it. Go to the view layout and check if you see something like this
            <uhtmlb:toolbar id              = "Toolbar"
                            buttons         = "<%= controller->get_buttons( ) %>"
                            maxButtonNumber = "3" />
    If yes, and I think you will find enhance the method get_BUTTONS OF _impl class
    Add the code
      CLEAR ls_button.
      ls_button-id       = 'New Button'.
      ls_button-text     = 'New text'.
      ls_button-on_click = 'NEWMETH'.
      ls_button-enabled  = 'X'
      APPEND ls_button TO rt_buttons.
    Create a method with name you used in on_click property.
    Best regards,
    Caíque Escaler

  • Push Button in Every record in ALV grid output

    Dear Experts,
    I need to print a push button in first column of every record in ALV grid output. How ?
    No OOPS concepts please.
    Thanks,
    Siva.

    For this requirement, you have to copy the standard PF status of the ALV output. Do as below :-
    1) Go to SE41
    2) Enter the program name as SAPLKKBL
    3) In the field status enter STANDARD_FULLSCREEN
    4) Click on STATUS button on the application toolbar.
    5) Enter the name of your Program & a new status name.
    6) Click on COPY.
    This way the standard status will be copied to the custom status & call the same status in your program using SET PF STATUS statement. Then double click on the custom status name & you will be navigated to SE41, there you can add you new button on the application tool bar & assign a function code, which you can program by enabling the export parameter I_CALLBACK_USER_COMMAND of the Function module REUSE_ALV_GRID_DISPLAY.
    Just a sample code snippet for your reference :-
    FORM USER_COMMAND USING L_UCOMM LIKE SY-UCOMM
    LS_SELFIELD TYPE SLIS_SELFIELD.
    CASE L_UCOMM.
    WHEN 'your function code goes here'.
    Do further processing.
    This way you will have the standard PF status alongwith your button as well.
    Edited by: Kumar Manas Mishra on Jan 29, 2010 1:03 PM

  • Enable print button in print preveiw of smartform

    Hi All,
             I have a requirment to display the spool. (print program and smartform).  But while displaying the spool the PRINT option in menu and PRINT button is not active in the output.  Is there any way to enable the print option while displaying a spool.
             I am using the following function module for dispalying the spool.
    'RSPO_RID_SPOOLREQ_DISP'.
    Is there any particular parameter i need to pass while calling the smartform ?
    Please give some suggestions...
    Thanks in Advance
    Jijeesh.P.G

    Hi,
    Check the tcode SPAD
    Click on Full Administration Push Button
    and Check Device Types tab.
    All the Print control options of the spool are maintained.
    Reward if useful....

  • Push button signal to parallel port to trigger a process

    I just need to connect a push button to the parallel port to set it as a trigger signal for a process.
    When push button is pressed, labview executes a process.
    Kindly help me how to do this, the wiring please
    Regards
    Grugh Mike
    Success is Everything !!
    Solved!
    Go to Solution.

    Data Lines to be used as inputsSome parallel ports can be configured to use the data lines as inputs. It depends a great deal on the way the manufacturer designed the parallel port. With some models the data lines can be read the same way we read the control lines, by driving them to high logic so they will take on the value of an external signal. However, most parallel ports require that you set the direction bit for input. This is bit 5 in the Control register (base+2). If the port is capable of it, setting the direction bit high has the effect of making the lines tri-state so it can be driven externally. Sometimes it is also necessary to toggle bit 6 high or low. However, it should be noted that some manufacturers actually lock these bits so that software cannot change them. An example is shown below in Figure 7.
    To test whether your data lines can be used for input, try the following:
    Set bit 5 of the control register high (at base address+2).
    With nothing connected to the port, write a couple of values to the data port, and read each back after you write it.
    If the reads DON'T match the writes, your port is probably bidirectional. Setting C5 disabled the data outputs and you're reading the open inputs of the data-port buffer. If the reads DO match the writes, your port isn't bidirectional. The data outputs are still enabled, you're reading back what you wrote, and you won't be able to read external signals. If it is possible to use your data lines for input, then you just need to set control register bit 5 high and read from the value of the data lines at the base address.

  • Issue with Icons display in PUSH BUTTONS in forms 11g

    Hello,
    This is regarding an issue with the icons background for the push buttons in the forms 11g. When we enable the icons for the buttons (.gif) they are visible on the
    top left corner of the buttons and not in the centre. In one of the forums it was written like this is a common problem in Forms 11g. Is there any way by which we can
    centralize this icons on the Forms buttons. Also I have heard that image editing tools can be used to centralize the icons. I tried with one of the tools but it seems
    like it is not working.
    Can somebody suggest a workaround for this?
    Thanks in Advance
    Ram

    I will assume you are attempting to use the images included in the Forms applet jar. These images are purposely structured so that the subject is off-centered. You should not see that same behavior if you use your own images or edit the ones built-in to Forms. However, keep in mind that the images packaged in the Forms applet jar are intended to be used in a menu toolbar and not custom buttons.
    For more information, refer to MyOracleSupport note 1391073.1 where I explain this in detail.
    Michael Ferrante
    Senior Principal Support Engineer
    Forms Global Technical Lead
    Oracle Corporation
    .

  • How to add left push button column in REUSE_ALV_GRID

    Hi,
    I need to add the push button on the left most part of the grid which will enable the user to select multiple lines and do further processing. I'm currently using REUSE_ALV_GRID.
    I've tried to search but I only saw suggestions for ALV using OO.
    Please help. Thanks.

    Hi,
    If you ar eusing OO ABAP
    declare : ls_layo TYPE lvc_s_layo,
    You have to set...   ls_layo-sel_mode = 'A'.
    If you are using 'REUSE_ALV_GRID_DISPLAY'..
    go for the following ..
    sp_group(4)    type c,        " group specification or,
    reprep(1)      type c,        " selection for rep/rep

  • Push Buttons, Radio Buttons, Folder Tabs

    Could someone please let me in on the secret to selecting
    background colors for push-buttons, radio-buttons and folder
    tabs. I've tried the obvious properties with no luck.
    I am developing on a Windows NT 4.0 platform using Developer
    6.0. I will be releasing my app to the web soon and could
    really use some help.
    Ideally, I would like to be able to select any color ( i.e. to
    match the background color of the canvas ), but so far the only
    choices seem to be black, white or a couple of other non-
    desirable colors ( bright red, green, yellow, yuck! ). Is a
    custom color palette the ticket?
    I realize that many button properties are controlled by Windows.
    If this is the case, are there any work-arounds? When I
    distribute the application, will I be able to offer my customers
    the ability to configure Windows to correctly define the button
    colors?
    I am sure that others have these same questions. I have not
    been able to find any answers. Any help is greatly appreciated.
    Mike
    [email protected]
    null

    Hi,
    1. Disabling Push button.
        In PBO loop at sccreen and check the field name is equal to push button name
        set screen-input = 0.
        modify screen.
        endloop.
    2.assign a function code to radio button in screen element it will trigger the PAI.
    In PAI during loop at table control check the field value is equal to 'X'.then not down the roqw number and in PBO enable the button based on the row number by looping at screen.
    3Assign the fcode to push button.Once the user presses the button in PAI check the focde and see for which line it is pressed based on it call the pop up screen using FM or dialog box.
    Regards,
    Nabheet Madan
    Never give Up.
    Edited by: nabheet1234 on May 11, 2009 2:26 PM
    Edited by: nabheet1234 on May 11, 2009 2:27 PM

  • Sort up and sort Down push buttons in module pool with table control wizard

    hi,
    i have created 2 buttons for Sort up and sort Down push buttons in module pool with table control wizard
    please any one can help me.
    regards

    Hi
    Following code is to enable and disable the tbl control using two buttons. Just alter the code and for each button write the sort code.
    REPORT  YJAN27_SCREEN                                               .
    TABLES: SFLIGHT, YFLIGHT_28.
    TYPES: BEGIN OF struct1,
          carrid like sflight-carrid,
          connid like sflight-connid,
          fldate like sflight-fldate,
           END OF struct1.
    CONTROLS TBL1 TYPE TABLEVIEW USING SCREEN 2700.
    DATA: OK_CODE LIKE SY-UCOMM,
          CARRID LIKE SFLIGHT-CARRID,                                    "cols in tbl ctrl
          CONNID LIKE SFLIGHT-CONNID,
          FLDATE LIKE SFLIGHT-FLDATE,
          itab TYPE TABLE OF STRUCT1 WITH HEADER LINE,
          cols like line of TBL1-COLS,
          FLAG TYPE I.
    FLAG = 1.
    CALL SCREEN 2700.
    *&      Module  STATUS_2700  OUTPUT
    *       text
    MODULE STATUS_2700 OUTPUT.
      SET PF-STATUS 'BACK'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_2700  OUTPUT
    *&      Module  USER_COMMAND_2700  INPUT
    *       text
    MODULE USER_COMMAND_2700 INPUT.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
      WHEN 'BACK'.
        LEAVE PROGRAM.
      WHEN 'DIS'.                                                         "write code for sort up
        loop AT TBL1-COLS INTO COLS.
           COLS-SCREEN-INPUT = 0.
            MODIFY TBL1-COLS FROM COLS.
        ENDLOOP.
        FLAG = 2.
      WHEN 'ENA'.                                                       "write code for sort down
        loop AT TBL1-COLS INTO COLS.
            COLS-SCREEN-INPUT = 1.
            MODIFY TBL1-COLS FROM COLS.
        ENDLOOP.
        FLAG = 1.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_2700  INPUT
    *&      Module  GET_DATA  OUTPUT
    *       text
    MODULE GET_DATA OUTPUT.
      select carrid connid fldate from SFLIGHT into table itab.
    ENDMODULE.                 " GET_DATA  OUTPUT
    *&      Module  POPULATE_TBL  OUTPUT
    *       text
    MODULE POPULATE_TBL OUTPUT.
        MOVE-CORRESPONDING ITAB TO SFLIGHT.
    ENDMODULE.                 " POPULATE_TBL  OUTPUT
    *&      Module  CHANGE_SCREEN  OUTPUT
    *       text
    MODULE CHANGE_SCREEN OUTPUT.    " use this module if you want to hide the other button
    CASE FLAG.
      WHEN 1.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'B_ENA'.
            SCREEN-INVISIBLE = 1.
             MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'B_DIS'.
            SCREEN-INVISIBLE = 0.
             MODIFY SCREEN.
          ENDIF.
       ENDLOOP.
      WHEN 2.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'B_DIS'.
            SCREEN-INVISIBLE = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'B_ENA'.
            SCREEN-INVISIBLE = 0.
             MODIFY SCREEN.
          ENDIF.
       ENDLOOP.
    ENDCASE.
    ENDMODULE.                 " CHANGE_SCREEN  OUTPUT
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_2700.
    MODULE CHANGE_SCREEN.     " use this if you want to display one button at a time
    MODULE GET_DATA.
    loop at itab WITH control TBL1.
        MODULE POPULATE_TBL.       " populate tbl ctrl
    endloop.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_2700.    " do the sort operations
    loop at itab.
      endloop.
    Hope this helps
    Regards,
    Jayanthi.K

  • Function keys for Push buttons

    Hi All,
    I have one query in module-pool program,I need to assign Function keys to Push buttons in my programe,like for create(F7),dispaly(F6) and also I need to overwrite few standard function keys,
    any one please guide me.
    Thanks n regds,
    Sree.

    Hi,
    you want in more detail.....ok
    (1)u've created a screen -
    > added push buttons etc. -
    > given name to screen elements i.e pushbuttons etc.and also declared them in program
    (2) create its GUI status ,say STATUS_100---->here you have to assign Function codes ->like if in standard toolbar you want BACK,EXIT,CANC or whatever you want,for ex. for BACK u'll find its icon -> double click on it>give the Func code say F3,now u also wnt to enable Func Key F3 for this--> go to UTILITIES (menu bar)-> F Key consistency-> here u will find all the Func keys-> so to F3 give the same func code as u gave to BACK icon button.
    similar approach u can use for pussbuttons:
    double click on push button> in screen painter attributes-> give the Func code to it ,say for CREATE button u give Func code NEW->come back to GUI status->similarly  go to UTILITIES (menu bar)-> F Key consistency-> here u will find all the Func keys---> so to F7 give the same func code (NEW)  as u gave to CREATE push button.
    (3) In PBO of this screen create a module to set its PF status:
    In screen flow logic:
    PROCESS BEFORE OUTPUT.
    * To set pf-status and title
      MODULE status_0100.
    In Program:
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_100'.
      SET TITLEBAR 'TITLE_100'.
    ENDMODULE.
    Hope this much detail is quite clear!!!
    Regards,
    Neha
    Edited by: Neha Shukla on Mar 5, 2009 10:35 AM

  • Push button set to calculate form

    Hi Friends,
    Ive to create calculator by simple form without any data service. Ive modeled form with push button to assign value from one field to another (push button option->action->system action->dynamic->action->formula with correct pass value from one field to another, but it doesn't work, it means field is empty after push button. do you know how to modeled button to put the result to the field? At the moment value puts to field automatically. I want to control this event by button. How?
    Martin

    Data Lines to be used as inputsSome parallel ports can be configured to use the data lines as inputs. It depends a great deal on the way the manufacturer designed the parallel port. With some models the data lines can be read the same way we read the control lines, by driving them to high logic so they will take on the value of an external signal. However, most parallel ports require that you set the direction bit for input. This is bit 5 in the Control register (base+2). If the port is capable of it, setting the direction bit high has the effect of making the lines tri-state so it can be driven externally. Sometimes it is also necessary to toggle bit 6 high or low. However, it should be noted that some manufacturers actually lock these bits so that software cannot change them. An example is shown below in Figure 7.
    To test whether your data lines can be used for input, try the following:
    Set bit 5 of the control register high (at base address+2).
    With nothing connected to the port, write a couple of values to the data port, and read each back after you write it.
    If the reads DON'T match the writes, your port is probably bidirectional. Setting C5 disabled the data outputs and you're reading the open inputs of the data-port buffer. If the reads DO match the writes, your port isn't bidirectional. The data outputs are still enabled, you're reading back what you wrote, and you won't be able to read external signals. If it is possible to use your data lines for input, then you just need to set control register bit 5 high and read from the value of the data lines at the base address.

Maybe you are looking for

  • Got an idea for a print app?

    Got an idea for a print app? Well get that thinking cap on and tell us what print apps you'd like to see next!  We'll post the best new ideas to the ePrintCenter for users to see and respond to. We will credit your ideas to your screen name.  Check o

  • How do I use windows with my mac

    How do I use windows with my imac?  I need to know which program I need.

  • Application Performance Issue

    Hi ! We have developed a web application which was moved to staging around an year ago. Now the application is facing connection failures and session time outs. We inferred that it is 'coz of the increase in the size of database resluting in larger o

  • Connection AFW failed, due to: RecoverableException :  SOAP Adapter.

    Hi All,   We are using XI3.0 Sp14 .  the message flow is IDOC> XI> SOAP ADPATER (receiver side)--> External system.  Here everything is fine, we are using https URL of the extrnal system to send the cXML file on there side.  The external URL is fine

  • How to create web service manually in APEX?

    When I try to create a web service from wsdl, I get error: "The WSDL document could not be understood by the rendering engine". I have found no APEX documentation about how to fill data when creating web service manually. I have wsdl file (have put w