Disabling input

Hi,
How to use "at selection-screen output" event for disabling input of certain fields.
Please explain with easy example.
Thanks,
Mahathi

Hi,
Hope this will help you:
Hi,
AT SELECTION-SCREEN OUTPUT
event is triggered. This event block allows you to modify the selection screen directly before it is
displayed.
PARAMETERS: TEST1(10) MODIF ID SC1,
TEST2(10) MODIF ID SC2,
TEST3(10) MODIF ID SC1,
TEST4(10) MODIF ID SC2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'SC1'.
SCREEN-INTENSIFIED = '1'.
MODIFY SCREEN.
CONTINUE.
ENDIF.
IF SCREEN-GROUP1 = 'SC2'.
SCREEN-INTENSIFIED = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
2.AT SELECTION-SCREEN ON <field>
is triggered when the contents of each individual input field are passed from the selection screen
to the ABAP program. The input field <field> can be checked in the corresponding event block.
If an error message occurs within this event block, the corresponding field is made ready for input
again on the selection screen.
SELECTION-SCREEN BEGIN OF BLOCK PART1 WITH FRAME.
PARAMETERS: NUMBER1 TYPE I,
NUMBER2 TYPE I,
NUMBER3 TYPE I.
SELECTION-SCREEN END OF BLOCK PART1.
SELECTION-SCREEN BEGIN OF BLOCK PART2 WITH FRAME.
PARAMETERS: NUMBER4 TYPE I,
NUMBER5 TYPE I,
NUMBER6 TYPE I.
SELECTION-SCREEN END OF BLOCK PART2.
AT SELECTION-SCREEN ON BLOCK PART1.
IF NUMBER3 LT NUMBER2 OR
NUMBER3 LT NUMBER1 OR
NUMBER2 LT NUMBER1.
MESSAGE E020(HB).
ENDIF.
AT SELECTION-SCREEN ON BLOCK PART2.
IF NUMBER6 LT NUMBER5 OR
NUMBER6 LT NUMBER4 OR
NUMBER5 LT NUMBER4.
MESSAGE E030(HB).
ENDIF.
Reward points if found helpful....
Cheers,
Chandra Sekhar.

Similar Messages

  • Validation on Disabled input text

    it seems <af:validateRegExp cannot work inside a <af:inputText disabled='true'>, is there any easy way to have this client side validation on a disabled input text in ADF?

    I am wondering if you could create a transient attribute in the EO that displays the data from the attribute. The "real" attribute would not be disabled, and would then validate.
    You then display the transient attribute on the form, and it would be non-update-able since it is transient.
    You could then place entity level validation on the entity (instead of on the attribute) since it is based on a second value in your form. Haven't tested it, but it would seem to be a solution.
    Stuart

  • Skipping beginner guide section: "disable input hotplugging". That ok?

    I'm skipping the section in the Beginner's Guide called "Disable input hotplugging."  Is that ok? Or should I disable it and let HAL use the settings from xorg.conf?

    Ive never bothered with that and never had an issue. You can always change it if u want. All else fails, anything u do can be undone via a rescue CD.. like the arch linux disc. I used the Arch Linux CD to rebuild my kernel image on my Arch partition when I screwed up something badly with Splashy.

  • Auto unselect disabled input on selecting other text

    test html like described below
    <pre><nowiki><html>
    <body>
    <input disabled value="some test text"> some text test<input value="some test text">
    </body>
    </html></nowiki></pre>
    if you dblclick on text disabled input and then dblclick on some other text on page you will see what i mean. Also have this bug on Win7.

    Hi Vyanky, I don't believe that's possible without some major functionality. The problem, as you probably know, is that it's a lookup with checkboxes. If it was added directly in InfoPath, then it wouldn't be an issue. You should consider adding "Other"
    as a separate yes/no field instead. That way you'll be able to add an action rule to it to enable the text box.
    cameron rautmann

  • Need help to disable input selection-screen - very urgent

    Hi SAP experts,
    I have a requirement where in I need to disable ( Grey out ) the input fileds on the selection screen .
    My problem is as I am using ABAP query I am not able to use any events ( AT SELECTION-SCREEN OUTPUT ).
    My selection screen looks like this
    MATERIAL NUMBER ( SELECT-OPTIONS)
    MATERIAL TYPE ( PARAMETERS )
    Now I want to add one more check box below the above fields on the selection-screen.When I click on the check-box,the MATERIAL NUMBER  must be greyed out and MATERIAL TYPE should remain the same.
    Please let me know the coding for the same. All answers would be rewarded.
    Thanks in Advance,
    Suresh.

    Hi,
    Check out these codes.
    1.
    TABLES : mara, makt.
    parameter: p_matnr type mara-matnr,
               p_maktx type makt-maktx.
    at selection-screen output.
    select single maktx
    from makt
    into p_maktx
    where matnr = p_matnr
    and spras = 'EN'.
    loop at screen.
      if screen-name = 'P_MAKTX'.
        screen-input = 0.
        modify screen.
      endif.
    endloop.
    2.
    TABLES : mara, makt.
    TYPES:BEGIN OF tp_maktx,
          maktx TYPE makt-maktx,
          END OF tp_maktx.
    DATA:t_maktx TYPE STANDARD TABLE OF tp_maktx,
         wa_maktx TYPE tp_maktx.
    SELECT-OPTIONS: s_matnr FOR mara-matnr.
    SELECT-OPTIONS: s_maktx FOR makt-maktx.
    INITIALIZATION.
      REFRESH s_maktx[].
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name = 'S_MAKTX-LOW' or screen-name = 'S_MAKTX-HIGH'.
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
      REFRESH s_maktx[].
      if s_matnr[] is not initial.
      SELECT maktx FROM makt
      INTO TABLE t_maktx
      WHERE matnr IN s_matnr
      AND spras = 'EN'.
      endif.
      LOOP AT t_maktx INTO wa_maktx.
        s_maktx-low = wa_maktx-maktx.
        APPEND s_maktx.
        CLEAR:wa_maktx.
      ENDLOOP.
    3.
    TABLES : mara, makt.
    parameter p_cb1 type c as checkbox.
    parameter p_cb2 type c as checkbox.
    parameter p_cb3 type c as checkbox.
    initialization.
    loop at screen.
    if screen-name = 'P_CB3'.
    screen-invisible = 1.
    modify screen.
    endif.
    endloop.
    at selection-screen output.
    *loop at screen.
    *if screen-name = 'P_CB3'.
    *screen-invisible = 1.
    *modify screen.
    *endif.
    *endloop.
    loop at screen.
    if p_cb1 = 'X'.
      if screen-name = 'P_CB2'.
      screen-invisible = 1.
      modify screen.
      endif.
      if screen-name = 'P_CB3'.
      screen-invisible = 0.
      modify screen.
      endif.
    endif.
    if p_cb2 = 'X'.
      if screen-name = 'P_CB3'.
      screen-invisible = 1.
      modify screen.
      endif.
      if screen-name = 'P_CB1'.
      screen-invisible = 0.
      modify screen.
      endif.
    endif.
    if p_cb3 = 'X'.
      if screen-name = 'P_CB1'.
      screen-invisible = 1.
      modify screen.
      endif.
      if screen-name = 'P_CB2'.
      screen-invisible = 0.
      modify screen.
      endif.
    endif.
    endloop.
    Reward if helpful..
    Regards.

  • Disable a button under certain circumstances and disable input fields

    Scenario: My user receives a PDF (dymanic XML) where they fill in fields and click a Submit button to send the data to the server. They receive a confirmation copy of the form back. In our older version of Livecycle, the confirmation form was locked down - no fields were editable, the Submit button was disabled. We still need the ability to not input/change any data on the confirmation copy and not be able to click the Submit button. Under ES4, everything started out editable.
    On the confirmation copy, there are messages that I check. When those messages are present I would like to hide the buttons (optimal solution) or at the very least, disable them so the user cannot resubmit the form again.
    I've managed to put Javascript in place to lock down all input fields, I just can't get the script to work to hide the buttons. I'm beginning to wonder if the script to lock down all input fields is causing the scripts to hide the buttons to not work.
    Sample code to disable editing of input fields:
    - had to provide this code at the table level so that when a table flows to a second page, the fields are locked. When I put it at the page level or top level of the hierarchy, it only worked on the one page when I need it to cover fields that have flowed on to a second page. Even at the table level, there are still some tables that remain open until a change is made, then the fields on the second page become locked.
    - when this is entered at the subform level, second page of the subform is modifiable
    rfqHeader.rfqHeader.IssuerInfo::ready:layout - (JavaScript, client)
    if (rfqHeader.rfqMessages.Message.rawValue != null)
    // Get the field containers from each page.
    for (var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++)
    var oFields = xfa.layout.pageContent(nPageCount, "field");
    var nNodesLength = oFields.length;
    // Set the field property.
    for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++)
    oFields.item(nNodeCount).access = "readOnly";
    Sample code to make the button hidden:
    rfqHeader.rfqFooter.button.SubmitButton::initialize - (JavaScript, client)
    if (rfqMessages.Message.rawValue != null)
    this.presence = "hidden" ;
    Any help and suggestions would be welcome!
    Thanks, Josie.

    Hi Josie,
    I think, for what you are trying to do, you must be in the doc:ready to be able to do this.
    All because the doc:ready is the last event to be fired when a form is reopen...
    rfqHeader.rfqFooter.button.SubmitButton::docReady - (JavaScript, client)
    if (rfqMessages.Message.rawValue ! = null)
    this.presence = "hidden" ;

  • Ho to make a read only / disabled input text mandatory?

    Hi All,
    I'm using ADF to display data for a human task. Part of my requirement is to display a payload attribute as an output text/ read only input text. If this is null, the form should compel the user to choose from a list of values.
    How do I make an output text mandatory? Is there another way around this?
    I tried creating an input text and making it read only and mandatory, this doesn't work. Apparently, you cant make a disabled/read only input text mandatory?
    JDev : 11.1.1.4
    Thanks
    PP

    Hello! What does mandatory field mean for you? If there should be validation while saving, it will be: faces message will be shown with text, as it is defined in business rules in entity object. If you just wish to see blue “*” in front of label, just use “panelLabelAndMessage” component with “showRequired” property = “true”. If you wish to see some red frame around disabled field or button, if it has null value, I don’t know how to help you, but wish to know how to do that too.

  • Disable input help for a webdynpro field in ESS

    I need to disable the drop down capability of a field in ESS (field is "Bank Key" available in the ESS page "Bank Information"). So I need the field to stay visible and ready for input... I just want the input help to not show up (the entries in the input help are not applicable to the user and they confuse them).  how can I do that?
    Tiberiu
    Edited by: Tiberiu Sasu on Apr 27, 2010 11:25 PM

    Just throwing ideas around...
    you could create a custom field which is of the same length as bank key - but no value helps etc assigned to it. Add this into the CI_append structure of the bank details structure used by ESS.
    Then in the inbound and outbound mappings - UI conversion class BAdIs move the bank key to and from this plain text field and into the "real" bank key field.
    You could then "decorate" the iView with the additional customer field and hide the standard bank key field.
    Sounds like a lot of bother! But depends on how much you dislike modifying standard WD Java apps (personally I'd put that in the definitely worthwhile basket - maintenance after support packs on WD Java is not fun!)
    Cheers,
    Chris

  • Disabling input option

    Hi, I am new to ABAP and I have a requirement where in I need to display two radio buttons with each radio button accepting one parameter. When the first radio button is chosen, the parameter of second radio button should be disabled. When the second radio button is chosen, the first parameter should be disabled. I have written the following code but it does not seem to be working.Please have a look at it and suggest any modifications required.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: ODS RADIOBUTTON GROUP radi default 'X'  modif id RD1
    user-command ucomm.
    PARAMETER : p_odc(20) type c modif ID RD1 . "OBLIGATORY .
    PARAMETERS: FILE RADIOBUTTON GROUP radi modif ID RD2.
    PARAMETER : p_filpth LIKE rlgrap-filename modif id RD2. "OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    AT selection-screen output.
      loop at screen.
        if ods = 'X'.
          if  screen-group1 = 'RD1'.
            screen-input = 1.
            modify screen.
          endif.
        endif.
      endloop.
      loop at screen.
        if file = 'X'.
          if  screen-group1 = 'RD2'.
            screen-input = '1'.
            modify screen.
          endif.
        endif.
      endloop.
    Thanks,
    -Kiran

    Hi Kiran,
    Try out the below code -
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: ods RADIOBUTTON GROUP radi DEFAULT 'X'
    USER-COMMAND ucomm.
    PARAMETER : p_odc(20) TYPE c MODIF ID rd1 . "OBLIGATORY .
    PARAMETERS: file RADIOBUTTON GROUP radi.
    PARAMETER : p_filpth LIKE rlgrap-filename MODIF ID rd2. "OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF ods = 'X'.
          IF screen-group1 = 'RD1'.
            screen-input = 1.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'RD2'.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
      ENDLOOP.
      LOOP AT SCREEN.
        IF file = 'X'.
          IF screen-group1 = 'RD2'.
            screen-input = '1'.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'RD1'.
            screen-input = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
      ENDLOOP.
    Reward points if found useful...!
    Cheers
    Abhishek

  • Disable input (Grey color) for the Amount field for TANN item category item

    Hi All,
    I want to disable the input of pricing field in Sales tab in VA01/VA02 for the TANN item category line.
    Now I can ZERO the pricing field, but cannot disable the input.
    Please help.
    Thank you very much.
    Terry

    I've done by User Exit MV45AFZZ
    form userexit_field_modification.
    Thanks.

  • Disable input on page load depending on page level item

    Hi All,
    I am trying to set the disabled property of a HTML input button when an APEX page is loaded. This can be achieved easily by using getElementById and setting the *"disabled"* property in the onLoad event of the body.
    However, I need to keep the state of the button as disabled if the page is refreshed by the user or through a submit. I've stored this state in a page item, however using +$x(PAGE_ITEM_NAME)+ in the onLoad body event does not return me the value stored in the page item. Calling the same code using an onClick of a dummy button returns me the value.
    1. What is the appropriate way of getting the value of page_item during a page load?
    2. If doing it on a page load is not feasible, is there a way of setting the state of a html input button to disabled using a page process for e.g?
    Thanks heaps,
    Raihaan

    Hi Raihaan,
    Let's do this a little bit different, as this approach gets you into trouble.
    Create an application process called "GETLOCK" (Shared Components > Application Processes > Create), make sure the "point" is set to "onDemand". Paste in the following source:
    DECLARE
      result NUMBER;
    BEGIN
      FOR c IN (select count(flag) lock_status from c_locking where rownum = 1) LOOP
        result := c.lock_status;
      END LOOP;
      HTP.P(result);
    END;Next go back to your page, and go to the page definition, paste the following code in the HTML Header:
    <script type="text/javascript">
    function checkButtons(){
      ajaxRequest = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=GETLOCK', 0);
      ajaxResponse = ajaxRequest.get();
      if (ajaxResponse == 1){
        $x('Button_1').disabled = true;
        $x('Button_2').disabled = false;
      }else{
        $x('Button_2').disabled = true;
        $x('Button_1').disabled = false;
    </script>Change the Button_1 and Button_2 to the button names accordingly (make sure it is the "id" attribute).
    Next paste the following javascript in the Page "Footer Text":
    <script type="text/javascript">
      disableButtons();
    </script>What you just did, is create an Application Process, that is called upon by an AJAX call in the javascript header, that is fired by the javascript in the page footer.
    I think you allready have your DML taken care of, with the submit of your buttons. Now every times the page loads, it checks which button to disable.
    Hope it helps,
    Greetings,
    Rutger

  • Me21n disable input at item level for a/c assn

    HI expoerts,
    I want to disable screen input for field account assignment at item level.
    anyone know about any exit or badi.
    thanks

    Hi,
    SPRO->Materials Management->Purchasing->Purchase Order->Define Screen Layout at Document Level.
    Then chosse me21n and click details.
    select Basic Data, Item then click choose (tick) button. there you can set the desired screen layout for me21n

  • Disabled input date field

    Dear Techies,
    i am using BSP with page flow logic.
    I have a date field, my requirment is i have to mandate the usage of date field only through the calander help which is provided by the input field, it should be disabled by the keyboard entry only for dat field.
    I disabled the input field on page load by using java script, and the input field is working fine, the changed value is appearing but the changed value is not being stored in the value attribute.
    When i debug the javascript is overriding the disabled property, please help me how can this be achieved.
    Regards
    Imran.

    hye Bhavana,
      Thanks for the patience.
    My requirement is:
    i should have an input field of type date, which should not be input enabled but it should accept values from the calender help. That means user should select only date from calender, but he should not be in a position change or enter values from keyboard.
    For this i have followed this approach.
    i have my htmlb tag for input.
    <htmlb:inputField id       = "tx"
                            value    = "<%= date %>"
                            showHelp = "X"
                            type     = "date" />
    And i have javascript which will disable it at the client side. This will only disable the input from a keyboard, but when i select date from calander it appears in the input field which is as per my requirment.
    Now when i am going for any eventing, the value in the input field is initialized. This is my problem. I want the input field to retain its value.
    If i dont use the javascript and make it enabled input field, i dont have a problem in rendering the change in date.
    So please give me any solution through the approach or i dont mind any new solution.
    Hope it is clear and once again appriciate your effort in understanding.
    Awaiting your response.
    Regards
    Imran.

  • Unable to disable input field in modal dialog box

    Hi All, I have a screen typed modal dialog box with a table control.
    I want to disable field input in the table control when some conditions meet.
    I write the following code in the PBO, but it's not working. The group1 has been set.
    LOOP AT SCREEN.
           IF screen-group1 = 'DSP'.
             screen-input = 0.
             MODIFY SCREEN.
           ENDIF.
    ENDLOOP.
    Would anyone help me? Thanks in advance!

    Hi,
    Loop over table control and then modify the table control. Check the below threads for reference:
    enble / disable table control column at runtime.
    Table Control Enable / Disable Row | SCN
    Table Control&amp;nbsp; Fields Disable. | SCN
    hope this helps u,
    Regards,
    Kiran

  • DISABLING INPUT FIELD

    HI Experts,
                   I hav used select-options date. I need to disable the high date range (S_DATE-HIGH). so that user can only change the lower limit. pLZ HELP.
    tHANKS.
    KHAN

    Hi,
    SELECT-OPTIONS
    Declares selection criteria for a selection screen.
    Syntax
    SELECT-OPTIONS <sel> FOR <f>
                   [DEFAULT <g> [to <h>] [OPTION <op>] SIGN <s>]
                   [MEMORY ID <pid>]
                   [LOWER CASE]
                   [OBLIGATORY]
                   [NO-DISPLAY]
                   [MODIF ID <key>]
                   [NO-EXTENSION]
                   [NO INTERVALS]
                   [NO DATABASE SELECTION].
    Declares a selection table <sel> for the field <f>. For <sel>, places input fields on the corresponding selection screen. The additions allow you to set a default value, accept input in lowercase, define a required field, suppress or modify the display on the selection screen, restrict the selection table to a line or a selection to a single field, or prevent input from being passed to a logical database
    Regards,
    Priya.

Maybe you are looking for

  • Looking at moving from G5 to MacPro

    I've never used OS 10.4 but I'm looking at going from G5 OS 10.39 to a MacPro 10.48. Is this a simple transition? Can I use my software on the MacPro? (IE: Adobe suite CS2, Quark, Office, fonts)

  • Vendor creation

    Vendor is having different locations and accordingly they are supplying materials, but in the vendor master we want to maintain master data with single location only as a policy decision. Example: we are maintaing vendors "X" plant details in the ven

  • Problem related to dropDowns in java creator

    hi, My problem is related to cascading dropDowns in java creator. i hav placed 4 dropDowns on my jsp page. n whn i populate them using queries based upon the value selected in the previous dropDown, the dropDown do not retain the selected values the

  • Executing jar files

    Hey I v made a jar file and m able to execute it through the command prompt by using the command " java -jar myapp.jar ". But when I double-click the jar file, m geeting a JVM error - Could not find the main class. I hv checked the Manifest.mf file,

  • Transfer of Asset from one class to another

    Hi Friends, one asset has been created using wrong asset class. We haven't passed any dep run entries at all. I created another asset in correct asset class and tried to use ABUMN. Under Transfer: to existing asset - it does not allow me: error : ret