Dropdown list on Dynpro for a disabled input field - No PAI triggered?

Hello experts,
I am facing a problem with a dropdown list on a dynpro (defined as a subscreen). The drop down list should be  for a field that is not input ready (at least it should appear not being input ready).
The user should be able to pick a value from the dropdown list and as soon the selected row changes a PAI should be processed as other fields on the main dynpro as well as the subscreen itself need to change accordingly.
The dropdown list works fine but with the field not being set to input ready - neither the input field changes nor a PAI etc. is triggered.
But if the property for input is set to input ready, it works fine.
Info:
Dropdown list is populated in POV
A function code is assigned to the field
What am I missing here?
What properties must be set for the field.
Thanks,
Chris
PS. If set to input - how do I prevent the single empty line in the list?

hi
good
SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE|TABLE node.
allows you to define further nodes for dynamic selections. If the node has type T, you can use TABLE instead of NODE. The user can then decide at runtime the components of the node for which he or she wants to enter selections. Dynamic selections require special handling in the database program
F4 HELP->
AT SELECTION SCREEN ON VALUE REQUEST FOR P_SACHA.
    PERFORM VALUES_SACHA.
THANKS
MRUTYUN^

Similar Messages

  • The list doesn't appear in the input field

    Hi All
    The list doesn't appear in the input field when I make input or press the BACKSPACE key.
    Notes:
    I made this modifications:
    1. In connection properties I set High speed connections (LAN)
    2. In local data settings I set the historial to ON
    we had SAPGUI 620 in workstations and now we have installed SAPGUI 710
    Thanks for your time and help
    Message was edited by:
            Genner Sanchez

    Hello Genner,
    see note 399180:
    o  FIELD NAME LENGTH
       The history is only written for field names with a maximum length
       of 40 characters. In earlier SAP GUI versions, this length was
       restricted to 30 characters. The history file must be deleted to
       achieve extended support.
    o  FIELD LENGTH
       If the length of the input field is 60 or more characters,
       history is not written either. "Input field length" refers to the
       dictionary length of the field, not to the "visible length" on
       the screen. (The restriction of the input data to 60 characters
       results from the fact that text editors were often built as lists
       of text fields with a length of 60 in the past. In those editors,
       this history was quite annoying.  On customer request, this was
    Regards, Martin

  • 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.

  • Dynamic DropDowns using Web Dynpro for ABAP

    Hi,
    I'm creating my first Web Dynpro for my new client.
    The requirement is this:
    There are three fields to be displayed on a screen - FieldA, FieldB, FieldC.
    All three should appear as DropDowns on the screen.
    FieldA determines the possible value list of FieldB.
    Once Field B is selected, FieldA and FieldB determines the possible value list of FieldC.
    Each of the fields have their own "master" and text tables.  (eg: like T005 and T005T).
    There is also a "matrix" table that contains all three fields (as Primary Keys).  Note: There is also a "Disabled flag" field.
    So basically we have 3 tables containing the master records.
    We use these values to build a matrix of combinations:
    FieldA   FieldB   FieldC   Disabled
    A111     B111     C111     ' '
    A111     B111     C222     ' '
    A111     B111     C333     'X'
    A222     B111     C111     ' '
    A222     B111     C333     ' '
    A222     B222     C111     ' '
    Now, we want to display the three fields on a Web Dynpro View.
    I've created View Context as follows:
    CONTEXT
      +-- Header_Data (node)
          +-- FIELDA_NODE (node)
              +-- FIELDA_CODE (attribute)
              +-- FIELDA_TEXT (attribute)
    FIELDA_NODE is based on the Disctionary Structore of FieldA's text table (which contains, the LANGU field, and the FieldA Code and Text fields)
    Cardinality and Selection are both  0..1
    FIELDA_CODE (attribute) has Input Value Mode of "Automatic".  When I chose this, SAP derived the Type of Input Help as "Search Help" and Determined Input Help as "ZFIELDA_SH" (which I created using the "master" and text tables).
    (Note: FIELDB and FIELDC are defined the same way).
    I then created the Layout:
    For FEILDA_CODE, I created a DropDownByKey (using the context menu item "Create Container Form").  So now, FIELDA_CODE's property selectedKey is "...HEADER_DATA.FIELDA_NODE.FIELDA_CODE"  (as per above View Context).
    Now when I run the Web Dynpro Application, I get the error:
    Context Path HEADER_DATA.FIELDA_NODE.FIELDA_CODE Cannot Be Resolved (Last Node Is Empty) ?&#43968; ??
    Can anybody help with this?
    I have no idea why it's doing this.  I assume I've missed a step or done something completely wrong!
    I've tried DropDownByIndex for FIELDA_CODE, and got the error message:
    The ASSERT condition was violated.
    (Note: One way that does work is to create a Supply Function (node property) for the FIELDA_NODE.  And create a DropDownByIndex for the FIELDA_TEXT field/attribute.)
    But, I feel this should be un-necessary.  Since I have the master and text tables, I have the Search Help, I should be able to create a DropDownByKey field - without need for any coding.
    Also, once FieldA is working.
    How can I restrict FieldB and FieldC (based on the matrix table above)?
    I created an OnSelect event for FIELDA, but in the EventHandler module I wasn't sure
    (1) what was the easiest way to get the selected value of FIELDA, and
    (2) how to the restrict the possible values of FIELDB.
    Any help would of great value!
    Thank you in advance.
    Rajendra
    PS:  Sorry for the long winded explanation, but it's the only way to describe what I've done so far.

    Hi Rajendra,
    In order to use a DropDownByIndex the needs to be set to multiple. Currently, the node is 0..1. Please set it to 0..N and it should work.
    The reason why the DropDownByKey does not work is that the node has no element. Using 0..1 means that initially no element is present. You need to supply one.
    In summary, a better design would be to decouple the places where the dropdownbykey and dropdownbyindex get their data from or to use two dropdownbyindex with a master/detail relationship.
    Best regards,
    Thomas

  • Dropdown List Value Test For Null || " "

         I wrote a pre-sign script to test a for a value in a dropdown list before allowing signature of the document. However I want to test for a value of null in addtion to one space aka " ". I added a value in the dropdown list of " " along with the choices of names so users could erase an accidental selection in this list before they were ready. However when I place the or ( || ) operator in the if statement of the script the script doesn't work. If I remove the || " " statement the script works as it is supposed to. How do I test for this value of " " along with the null test so I don't have to write another if statement?
    if (form1.Page3.Author.Reviewed.Admin.rawValue == null || " ")
    xfa.event.cancelAction = 1
    xfa.host.messageBox("You did not select your name on the dropdown list before trying sign the document .");
    else

    Your if statement is incomplete. You need to put the test in again for the other value:
    if (form1.Page3.Author.Reviewed.Admin.rawValue == null || form1.Page3.Author.Reviewed.Admin.rawValue == " ")

  • F4 Help for a dynamic input field( class CL_DD_INPUT_ELEMENT)

    Hi all,
    I am programming a dynamic document which has several input fields on it. I want to program F4 helps for these fields, does anyone have an idea how I can do that?
    I have the idea to program a button(class CL_DD_BUTTON_ELEMENT) next to the input field and manually program an F4 help in the event handler of the button. But I do not know how I can handle pattern entries with '*' etc. in the input field. Is there a function module which could give me an F4 list(F4IF_INT_TABLE_VALUE_REQUEST could not be used, because it needs a dynpro field as a return field, which we do not have in this case).
    Kind Regards,
    Sükrü

    hi
    good
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE|TABLE node.
    allows you to define further nodes for dynamic selections. If the node has type T, you can use TABLE instead of NODE. The user can then decide at runtime the components of the node for which he or she wants to enter selections. Dynamic selections require special handling in the database program
    F4 HELP->
    AT SELECTION SCREEN ON VALUE REQUEST FOR P_SACHA.
        PERFORM VALUES_SACHA.
    THANKS
    MRUTYUN^

  • 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" ;

  • Conditionally disable input field

    I was hoping for suggestions or practical advice on how to conditionally disable field on an ADF from. As the user enters data on the form I would like to grey out certain field based on the fields that are being populated.
    Thanks

    Hello
    I have a similar situation..thats not working.
    This is what I have: (levels are nested)
    Level 1: panelGroupLayout -scroll (pgl1)
    Level 2: I have a SELECT ONE RADIO (sor1) in a panelFormLayout. (pfl1)
    Level 3: Two input fields in a panelGroupLayout. (pgl2)
    The SELECT ONE RADIO has autoSubmit = TRUE, and the partial trigger for pgl2 is set to sor1 and I used EL Expression for Rendered to #{bindings.RI.inputValue=='YES'}.
    But whenever I run it, the pgl2 is not showing which is correct, but when I select YES from the radio buttons, it won't show up either.
    Any suggestions?

  • LOV for an unbound input field in ADF-JSP

    Hi i have a web app using ADF BC, struts , JSP.
    Jdev - 10.1.2
    JHS - 10.1.2
    I have a text field <input type="text" value="solution">
    I need to populate this UNBOUND input field with a value from an LOV which pops up in a separate window.
    I need help right from the beginning... which i guess wud be to create a VO for it.. i have never done it earlier so any help wud be useful.

    Hi,
    try
    <BODY onload="document.DataForm.EmployeeId.focus()">
    where EmployeeId needs to be substituted by the name used in the textfield property
    <html:text property="EmployeeId"/>
    If this was Empno then the example would be
    <html:text property="Empno"/>
    and
    <BODY onload="document.DataForm.Empno.focus()">
    Frank

  • Hi ,i want provide a input help for a Selection input field

    Hi Experts,
    I want to provide  a input help for field in selection-screen ,
    this field is non primary key Custom Table(Z) selection input field .
    how we can get ,f4 help for this field.
    how to get f4 help Suppose field Link s_mtart-low,s_mtart-high,
    What are the function moduled available for this >
    Thanks in Advance.
    Regards,
    Hitu.

    Hi,
    refer to below code.
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_usnam-low.
    **//To provide F4 help to S_USNAM-LOW
    PERFORM f_f4help_usnam USING 'S_USNAM-LOW'.
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_usnam-high.
    **//To provide F4 help to S_USNAM-HIGH
    PERFORM f_f4help_usnam USING 'S_USNAM-HIGH'.
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_wbs-low.
    **//To provide F4 help to S_WBS-LOW
    PERFORM f_f4help_wbs USING 'S_WBS-LOW'.
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_wbs-high.
    **//To provide F4 help to S_WBS-HIGH
    PERFORM f_f4help_wbs USING 'S_WBS-HIGH'.
    *&      Form  f_f4help_usnam
        To provide F4 help to username
         -->P_0019   text
    *FORM f_f4help_usnam  USING    value(p_0019) TYPE any.
    **// To retrieve username from mkpf.
    SELECT bname
            FROM usr01
            INTO TABLE it_usnam.
    SORT:  it_usnam  BY usnam.
    DELETE ADJACENT DUPLICATES FROM it_usnam COMPARING usnam.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
      DDIC_STRUCTURE         = ' '
          retfield            = c_retusnam
      PVALKEY                = ' '
        dynpprog              = c_dynpprog
        dynpnr                = c_dynpnr
         dynprofield          = p_0019
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
         value_org            = c_s
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
      IMPORTING
      USER_RESET             =
        TABLES
          value_tab           = it_usnam
        field_tab            = it_usnam.
      return_tab             = l_it_ret
      DYNPFLD_MAPPING        =
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 2
      OTHERS                 = 3
    *ENDFORM.                    " f_f4help_usnam
    *&      Form  f_f4help_wbs
        To create F4 help for wbs element
         -->P_0039   text
    *FORM f_f4help_wbs  USING    value(p_0039) TYPE any.
    **// To retrive wbs element from mseg
    SELECT pspel
            FROM pspl
            INTO TABLE it_wbs.
    SORT:it_wbs   BY  wbs.
    DELETE ADJACENT DUPLICATES FROM it_wbs COMPARING wbs.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
      DDIC_STRUCTURE         = ' '
         retfield               = c_retwbs
      PVALKEY                = ' '
       dynpprog               = c_dynpprog
       dynpnr                 = c_dynpnr
        dynprofield            = p_0039
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
        value_org              = c_s
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
       TABLES
         value_tab              = it_wbs
      FIELD_TAB              =
      return_tab             = l_it_ret1
      DYNPFLD_MAPPING        =
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 2
      OTHERS                 = 3
    *ENDFORM.                    " f_f4help_wbs

  • BADI or User-Exit for Adding New Input Field in 0VTC

    Hi Experts,
    Has any of you worked on enhancing transaction 0VTC (Define Routes and Stages)? I have a requirement right now to add two new input fields in New Transport Routes screen. Could anyone provide a BADI or customer exit that I could use to modify the screen of the transaction?
    Thanks!
    Cross post locked
    Edited by: Rob Burbank on Mar 8, 2009 2:58 PM

    I'm concerned about the layout of the screen. Also, I didn't find any documentation about BADI_SD_ROUTE. Can anyone provide me the documentation for this BADI?
    Thanks!

  • Dynpro: event handling on input field in custom control?

    Hello,
    can I  put an input/output Field in Custom Control?
    I have seen this (DD_ADD_FORM_INPUT) but i dont need a Form.
    What i want to do is: Double Click Event handling on the input field in the custom control.
    Thank you?

    Hi Mohi,
    OK, you could reduce DD_ADD_FORM_INPUT to what you really need - but the DD elements (rarely if ever used in standard SAP) do not have a double-click event. Must stick to ENTER.
    An alternative is a text_edit or an editable grid_control with one line one field.
    The problem is: There is no way to put any selection-screen element on a control.
    I's go for the grid approach as you certainly may have some more fields of interest.
    Regards,
    Clemens.

  • Prepopulate dropdown list based on selections made in other fields

    I wonder if anyone can help?
    A form with a radio button group containing two radio buttons "yes" and "no".
    Below the radio buttons is a dropdown list that has three items in the list "option A, option B, & option C.
    Below that, is another dropdown list, with three items, "10000", "15000" & "20000"
    How can I do the following?
    When radio button "yes" is selected, and dropdown list "option A is selected, it prepopulates "10000" in the bottom dropdown list
    When radio button "yes" is selected, and dropdown list "option B is  selected, it prepopulates "15000" in the bottom dropdown list
    When radio button "yes" is selected, and dropdown list "option C is  selected, it prepopulates "20000" in the bottom dropdown list
    Thanks in advance!

    Hi $Nith$
    Just sent you a PM

  • Dropdown List Web dynpro Abap

    Hi All
    I am new to adobe forms.  I am having a problem with populating drop down list box on an adobe interactive form.  I have gone through this forum and I have tried a number of different things but nothing seems to work.
    When I run my web dynpro application the drop down looks like an input box.  There is no down arrow icon on the side.
    I check note 981638.  It states it can't be implemented.
    I am on CRM 2007 NW7 platform.
    I created an interface with an importing value called it_dropdown.  this is a table.
    I created a form that uses this interface.
    i placed a drop down list on the form layout.  In the dynamic options i click list items.  I get a popup.
    In the bindings I bind to the table... $record.IT_DROPDOWN.DATA[*]
    The text and value are bound to corresponding fields on the internal table.
    I created a webdynpro
    I created a view.
    I poped an interactive form ui elemnt on the view.
    I generated the context.
    I checked the cardinality of the node for the internal table and it is 0..n
    In my doinit method I have the following code.
      data: lr_form_node type REF TO if_wd_context_node.
      data: lr_dd  type REF TO if_wd_context_node.
      data: lt_dropdown  type WDR_CONTEXT_ATTR_VALUE_LIST,
               wa like line of lt_dropdown.
      do 20 times.
        wa-value = sy-index.
        concatenate 'Test' wa-value into wa-text SEPARATED BY space.
        insert wa into table lt_dropdown.
      enddo.
    lr_form_node = wd_context->get_child_node( wd_this->wdctx_zfp_example_01 ).
    lr_dd = lr_form_node->get_child_node( wd_this->wdctx_it_dropdown ).
      lr_imp->bind_table( lt_dropdown ).
    The adobe form displays but the drop down is not populated.
    I have tried a normal drop down and webdynpro enumerated drop downs.
    Can someone please point out what I am doing wrong.
    Thanks
    Darren

    Hi Sachin
    Here is exactly what I did.
    1. Create a web dynpro application.
    2. Crate a view
    3. On the context create a node called data_source or whatever you want.  The cardinality is 1.1.
    4. Create an attriubute on the data_source note.  I called mine 'DDOWN' and created it as a string.
    5. Pop an interactive form element on your view.
    6. In the Template Source, give the name of your adobe form.  This part was the vital bit for me as I was using a database interface originally and I think that this was my problem.  If you already have a form created that does not use xml, I would advise you to create a new temporary adobe form by putting the name in the template source and double clicking it.
    7. You will get a popup stating asking you to create an interface.  You will see a button called "context" click this and follow the steps.
    8. When you get to your form you will see the drop down context node in the data hierarchy.  Drop a drop down list on your form and then drag and drop your context node onto it.  Make sure your forms layout is ZCI. Save the form.
    9 Return to your web dynpro app.  You will see that the datasource has been updated. 
    10.  I used the following code in the doinit method of the web dynpro.
      data: lr_context_node type ref to if_wd_context_node.
      data: lt_dd type wdr_context_attr_value_list.
      DATA: node_info TYPE REF TO if_wd_context_node_info.
      data: wa like line of lt_dd.
      do 20 times.
        wa-value = sy-index.
        concatenate 'Test' wa-value into wa-text SEPARATED BY space.
        insert wa into table lt_dd.
      enddo.
      lr_context_node = wd_context->get_child_node( name = 'ZDARREN1' ). "Template Source
      node_info = lr_context_node->get_node_info( ).
      node_info->set_attribute_value_set(
         name      = 'DDOWN'                                      "DDOWN is a node on the context
         value_set = lt_dd ).
    Activate and test.
    You should see a dropdown.
    I hope this helps as this is the approach that worked for me.

  • Dropdown list in WebDynpro for ABAP

    Hello,
    I develop programs by using WebDynopro for ABAP and Interactive Forms.
    I'd llike to use Drop-downs UI elements on Interactive Forms.
    SAP material says
    "The WebDynpro Drop downs UI elements in the LiveCycle designer do not work in ABAP WD"
    see followings ( page 21)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20029530-54ef-2910-1b93-c41608ae0c90
    I don't know what to do.
    Does any one give me alternatives ?
    Best regards.
    Koji.

    Can you please let me know the scenario you are looking for?
    Is it static dropdownlist or you want to get the data from bacend?
    Cheers
    Satya

Maybe you are looking for