Fill Dropdown list in Adobe forms

Hi friends,
           I am using SFP transaction.I have two requirements.
               1. How to fill dropdown list without java script or formcalc.
               2. I have 2 dropdowns .If i select first dropdown,it will be populate another dropdown based on first drop down selection in the same form.
Can you please help me?
Thanks.
Hans

Which technology are you using Web Dynpro Java / ABAP? In both cases you can do the stuff in your backend i.e. the BAPI which you may be calling to dipslay just the material numbers, ask the ABAPer to change it so that it returns "Mat No  - Mat Desc" and not just Material No for e.g. 01000000001 - Material 1, 010000002 - Material 2 and so on.
Bind it to the drop-down in your Adobe form and it should display the description in your Interactive form drop-down list only. So you do not need an additional field and trigger seperate events.
Chintan

Similar Messages

  • How to fill dropdown list in Adobe form

    Hi Experts,
                  I am new to adobe form.Please tell me ,how to fill drop down list in adobe form?
    Thanks,
    Hans

    Hello Arafat,
    I am using a drop down list in Adobe Interactive Form for Web Dynpro ABAP.
    The form is of ZCI type layout and the form interface is of XML schema-based interface type and the XML schema source is set to "Generated".
    I have included the following code in WDDOINIT method of the view:
    data: handle1 type ref to if_wd_context_node,
    begin of zstruct,
    zktokd type kna1-ktokd,
    end of zstruct,
    zitab type table of zsttxecr.
    handle1 = wd_context->get_child_node( name = 'DATA.NODE1' ).
    select ktokd from kna1 into corresponding fields of zstruct.
    append zstruct to zitab.
    endselect.
    handle1->bind_table( new_items = zitab ).
    In the Adobe Form Designer, i have binded the node NODE1 to the enumerated drop down list from native web dynpro library. Still the drop down box is not getting populated.
    Please let me know what is missing.
    Thanks and Regards.

  • Closing a Enumerated DropDown List in Adobe form

    I have an adobe form where we used Enumerated Drop down Lists for search helps. The problem is right now we dont have option to close the Enumerated DropDown List. It closes when we select a value or sometimes if we try "ESC" key. But we want to have a "Close"/"X" button like in normal search help.
    Letme know if there is any solution or an Alternate way to close the Enumerated Drop Down List from Adobe Form by just hitting a close/X button. Each value help has over 500 values, so we cannot use normal dropdowns, letme know if any other suggestions.
    Edited by: Phani Rajesh Mullapudi on Jun 21, 2010 8:14 PM

    Hello Arafat,
    I am using a drop down list in Adobe Interactive Form for Web Dynpro ABAP.
    The form is of ZCI type layout and the form interface is of XML schema-based interface type and the XML schema source is set to "Generated".
    I have included the following code in WDDOINIT method of the view:
    data: handle1 type ref to if_wd_context_node,
    begin of zstruct,
    zktokd type kna1-ktokd,
    end of zstruct,
    zitab type table of zsttxecr.
    handle1 = wd_context->get_child_node( name = 'DATA.NODE1' ).
    select ktokd from kna1 into corresponding fields of zstruct.
    append zstruct to zitab.
    endselect.
    handle1->bind_table( new_items = zitab ).
    In the Adobe Form Designer, i have binded the node NODE1 to the enumerated drop down list from native web dynpro library. Still the drop down box is not getting populated.
    Please let me know what is missing.
    Thanks and Regards.

  • DropDown List in Adobe forms

    Hi All,
    I'm New to Adobe forms, I got a requirement on Dropdown list.
    In Layout Dropdown List contains Material Numbers . And placed one more Inputfield or text field next to the Dropdown list. 
    Once Material is selected from the dropdown list, auomtically  material desc of it should displayed in Inputfield.
    Could any please help me out in this.
    Thanks,
    Archana.

    Which technology are you using Web Dynpro Java / ABAP? In both cases you can do the stuff in your backend i.e. the BAPI which you may be calling to dipslay just the material numbers, ask the ABAPer to change it so that it returns "Mat No  - Mat Desc" and not just Material No for e.g. 01000000001 - Material 1, 010000002 - Material 2 and so on.
    Bind it to the drop-down in your Adobe form and it should display the description in your Interactive form drop-down list only. So you do not need an additional field and trigger seperate events.
    Chintan

  • Dynamic dropdown list in adobe forms.

    Hi All,
    I need to have a dynamic drop down list in the adobe forms.The values for the drop down list are selected from a standard table at runtime.This is the online scenario.
    I have been using Enumerated drop down list.How do i pass the value or bind the values to this element.
    I have enable Dynamic binding in the Properties of designer. but i am not able to enter the values into the specify item values.(OBJECT-BINDING-SPECIFY ITEM VALUE).Actually in my case it is coming disable.
    I have also set the preview format to "ACROBAT 8 (Dynamic) XML FORMAT" which is in the form properties.
    please let me know if i am missing any step?
    Thanks
    Gaurav

    Hello,
    1) I am sure you didn´t search because I have answered this question many times around here. Next time seacrh first, ask later, please. That is how we do it here.
    2) you must, in your options menu in LCD, allow yourself to use dynamic binding. Check the menus for the checkbox, that should help you get what you need.
    Regards Otto

  • Blank value added to dropdown list in Adobe Interactive forms

    Hi,
    I see blank value being added to the value list by default to dropdown lists in adobe interactive forms. The real issue is it's being added sometimes as the first value or last value in the drop down list of values which is inconsistent and resulting in Errors sometimes.
    Is there a way by which we can control the position of the blank value added by default(SAP or Adobe) to the drop down lists in adobe interactive forms .? Secondly , Is this a SAP or Adobe upgrade issue since we observed this issue only after recent upgrades ...?
    I am using HCM processes and forms and I am not adding blank value (space) explicitly in my coding of dropdown list values .
    Thanks for your time .
    Sankeerth
    Edited by: SANKEERTH D on Aug 22, 2011 1:46 PM

    Hi Sankeerth,
    The Web Dynpro framework generates a blank entry to the value set of the dropdown listbox if the Context attribute bound to the dropdown listbox is "nullable" (see properties of the Context attribute).
    The dropdown listboxes of interactive forms will be populated with exactly the same data (value sets) as the "native" Web Dynpro dropdown lisboxes.
    For SAP NetWeaver 7 EhP2, there's a Web Dynpro test application (WDR_TEST_ADOBE_ZCI) available, which demonstrates this: Start it and see the dropdown listboxes labeled "Datatype" and "Datatype (nullable)": Both are bound to Context attributes which are of type DATATYPE_D. The only difference is that one of the attributes is "nullable". The dropdown listbox bound to the nullable attribute contains the additional blank entry.
    Watch the native Web Dynpro dropdown listboxes below the interactive form: They are bound to the same Context attributes and contain the same value sets as the dropdown listboxes of the interactive form!
    Regards,
    Ralf

  • Drop down list in ADOBE Forms - WDP for ABAP...urgent

    Hi Gurus,
    Can you please explain me how to display values in the dropdown list of Adobe interactive form in WDP for ABAP. Also expalin me how to accept them in the program once the user selects the value from the list. The requirement is I have to call the RFC, get the data and display in the dropdown list at the time of initialization.

    hi,
    to populate the dropdown list you can do it...
    1). manually or 
    2). by code(i work in java... there must be some ABAP equivalent...)
    1). <b>manually</b> go to interactive form->edit
         go to Object tab->field tab ->
         you must see something like
         List Items :
         Text     + x
         click on the green + sign...
         it promps you to type. type in the value press enter... and so  on...
    2) <b>by Code...</b>
        //set up contents of a drop down list dynamically...
        IWDAttributeInfo countryInfo = wdContext.nodeTravelData().getNodeInfo().
                getAttributeInfo().getAttribute("DestinationCountry");
        ISimpleTypeModifiable countryType =
                countryInfo.getModifiableSimpleType();
        IModifiableSimpleValueSet countryValueSet  =
                countryType.getSVServices().getModifiableSimpleValueSet();
        countryValueSet.put("1","Germany");
        countryValueSet.put("2","UK");
    This will work....
    regards,
    -amol gupta

  • How to get prefilled drop down list in Adobe form from WebDynpro context

    Hi All,
    We all know that we can have dropdown list in webdynpro which can be automatically populated by the context node collection.
    How can we have the same functionality in Adobe form drop down list. I tried to bind the node attribute to drop down list in Adobe form but it shows me only first element. I am not able to see all the elements in the dropdown but if I am doing same thing for WebDynpro DropDown list I can see the complete List.
    Anybody with Solution?

    Hi Ricky
    I have started a thread for this problem and got an answer for it already. Unfortunately I did not have the time to check it out yet; have a look over there:
    https://mail.cirrus.ch/exchweb/bin/redir.asp?URL=https:///community [original link is broken]
    I appreciate if you tell me whether it worked for you.
    Andreas

  • Dropdown List in Adobe Interactive Form Using Webdynpro ABAP

    Hi Pals,
    In my scenarion I need to list the Rating Code in the Dropdown list box of the Interactive Form.
    Form Created by using SFP transaction
    Not XML Schema interface
    Passing the values to the Form by using the default function module that which created automatically while creating the Form
    Am binding the Field and also binding for the list Item. Even though the values are not listing.
    $record.sap-vhlist.<Field name>\.DATA\.FIELD.item[*]
    I have followed the above format , but no use ...
    Field Name : rating_code
    $record.sap-vhlist.RATING_CODE\.DATA\.FIELD.item[*]
    Field Name : value
    $record.sap-vhlist.VALUE\.DATA\.FIELD.item[*]
    but it is not working for me, will appreciate if some one really help me to fix this.!!!!
    Thanks & Regards
    Andy.

    For the form buttons to work on-line in your WebDynpro app, you need to change the PDF form to be Dynamic:
         if(firstTime){
              // We need to set the PDF to be Dynamic, for the form JavaScript code to work
              IWDPDFDocumentInteractiveFormContext pdfContext =
              WDPDFDocumentFactory
              .getDocumentHandler(wdThis.wdGetAPI(), "InteractiveForm")
              .getDocumentContext();
              pdfContext.setDynamic(true);
    In this code segment, "InteractiveForm" is the UI id.
    I was able to get that far, but I although I add subforms dynamically via javascript, the mapped WebDynpro context node doesn't pick up any new elements.
    ie:  if I start with two WD context elements (0..n) cardinality, then add a third via the form JavaScipt button, I see changes only in the two context elements when I submit.  A third context element isn't created or populated.

  • Only one value shown in dropdown list of ISR form using pure ABAP

    Hi all,
      We are trying to create a Adobe form using ISR library controls. We want to populate a dropdown list with all the values from  the table T001 dynamically. We have implemented the BAdi QISR1 & populated the ADDITIONAL_DATA. The BAdi is executing & populating the value correctly.
      In the we have created a control using the ISR Dropdown & mapped to the Context BUKRS from the interface created. When we execute the form, only the first value is getting filled.
      Can anyone help us in this ??? Its very urgent....
    Thanx,
    Sivagami.R

    Hi,
    I am just giving the solution what I have done in my project. Hope this will help:
         DATA: BEGIN OF it_ccode OCCURS 0,
                   bukrs TYPE t001-bukrs,
                   butxt TYPE t001-butxt,
                     END OF it_ccode.
    DATA: wa_ccode like line of it_ccode.
    Select Company Code (bukrs) and Text (butxt) from table T001.
    SELECT bukrs butxt
    from t001
    into table it_ccode.
    LOOP AT it_t001.
        ADD 1 TO lv_index.
        ls_additional_data-fieldindex = lv_index.
        ls_additional_data-fieldname  = 'FIELDNAME_KEY'.
        ls_additional_data-fieldvalue = it_t001-bukrs.
        APPEND ls_additional_data TO additional_data.
        ls_additional_data-fieldname  = 'FIELDNAME_LABEL'.
        CONCATENATE it_t001-bukrs '-' it_t001-butxt
        INTO ls_additional_data-fieldvalue.
        APPEND ls_additional_data TO additional_data.
      ENDLOOP.
    And the form my fields binding is:
    $record.FIELDNAME.DATA[*].FIELD
    Try this out. Hope this will help.
    Regards,
    Amit

  • Filling Drop down in Adobe forms

    Hi experts,
      I am developing a new Adobe form.In that I am using a table,the table consist of three drop downs in each row.
    My requirements are
    1. I want to fill the three drop downs.Guide me in that..
    2. How to capture the value selected in first dropdown...
    2. Based on the value selected in first dropdown I want to set the remaining two dropdowns.
    I am using AdobeDesigner 7.1.
    Please help me to achive this ....
    Thanks&Regards,
    Mathi.

    Hi Mathi,
    Answers to your questions:
    1. To fill the drop down select the drop down you want to fill and go to the Object palette, choose field tab and there would be an option list item press the icon button and the value you want. Similarly use button to remove the values.
    2. To use the values outside the form bind the drop down to a attribute from the data source.
    3. To use inside to set values of the remaining drop downs use the following code at the exit event of the first drop down.
    if (a.rawValue == 'a' )
         b.rawValue = 'f';
         c.rawValue = 'h';
    here i have supposed that a, b, c are three dropdowns.
    a has values : a,b,c.
    and b has values : d,e,f.
    and c has values : g,h,i.
    To write this code in the exit event of the first drop down(a) select it and in the script editor choose exit event.
    To show script editor go to windows in the menu and choose script editor.
    I hope it will be helpful.
    Regards,
    Vaibhav Tiwari.

  • Capture item by Dropdown list in Interactive Form

    Hi experts,
    I have a problem. I hope to get your suggestion ready. 
    I created a WebDynpro Abap that contains within it an Adobe Interactive Forms.
    With the method wddoinit by the component controller I set all values of the fields into interactive forms correctly.
    Inside the form there is a dropdown list which is bind to a table, the list of this dropdown list is filled with properly values of the table which is bind.
    When I select a value from the list dropdown I can not capture the selected item by the table corresponding of the data.
    Carryover below the code I use to recover (unsuccessfully) the values selected by list dropdown:
    DATA:
        node_adobe_data   TYPE REF TO if_wd_context_node,
        node_it0002       TYPE REF TO if_wd_context_node,
        node_stato_civile TYPE REF TO if_wd_context_node,
        elem_stato_civile TYPE REF TO if_wd_context_element,
        stru_stato_civile TYPE wd_this->element_stato_civile.
    navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
      node_adobe_data = wd_context->get_child_node( name =  wd_this->wdctx_adobe_data ).
    navigate from <ADOBE_DATA> to <IT0002> via lead selection
      node_it0002 = node_adobe_data->get_child_node( name =  wd_this->wdctx_it0002 ).
    navigate from <IT0002> to <STATO_CIVILE> via lead selection
      node_stato_civile = node_it0002->get_child_node( name =  wd_this->wdctx_stato_civile ).
    get element via lead selection
      elem_stato_civile = node_stato_civile->get_lead_selection( ).
    get single attribute
      elem_stato_civile->get_static_attributes(
        IMPORTING
         static_attributes = stru_stato_civile ).
    The problem persist also if I use the method GET_LEAD_SELECTION_INDEX.
    The return value always is the first item and not what I selected.
    I wait trusting your suggestions to solve the problem.
    Regards.

    Hi Davide,
    Maybe you can try to keep your own Index parameter (Integer) to keep track of the selected index.
    Then use that parameter to select data from your node:
    node_stato_civile->get_static_attributes(
        exporting
          index             = wd_this->lv_index
        importing
          static_attributes = stru_stato_civile
    Hope this helps.
    Regards,
    Roelof Albers

  • Dropdown list behaviour - (Adobe Pocket PC)

    Hi there,
    I am using Designer 8.2 to generate an Interactive Form using ABAP. A dropdown list is filled with almost 1000 entries. This forms works OK by opening it with Adobe Reader 9. The problem comes when I tried to use it in a mobile device, Motorola MC75, WM6.1.
    The form and even the dropdown list opens ok, but when I select certain items from the dropdown and the field looses its focus, the item changes by itself, normally to an item at the bottom of the list.
    I couldn't find any pattern whatsoever that gives me a hint about this problem.
    Has anybody run into something similar?
    Is there any special consideration in populating a table used as a source of a dropdown regarding the Item Code and Item Text?
    Thanks a lot for any help!
    Cheers,
    Andres.

    Hi Otto,
    Yes, backend is OK. I even tested it in a mobile phone that has the same problem.
    Javascript, good catch! Adobe Reader for Pocket PC doesn't support Javascript and I have to say, I also found some limitations with Formcalc.
    We're in touch with the provider of the devices, and even talked with Adobe Australia, but with no luck.
    It was helpful to read your answers tough. Makes me see that I tried almost everything I can think of.
    Hi Robert, nice work you had to do!
    You're right about the limitation, which is 50 and applies for Java WD and Online Interactive Forms. It's setting within the SAP Visual Administrator. There are several threads devoted to this. I don't think this is the case for me, as I alredy checked it. The issue remains with only 25 items!
    I finally give up and blame the "Pocket PC + Adobe Reader for Pocket PC + Adobe Interactive Offline Form" combination. There is a lack of support for this, and it's a shame because it could have a great potential.
    I replace those dropdowns with radiobuttons (weird, but works for my requirement) and leave a couple of dropdowns that haven't given me any problem so far, fingers crossed.
    I will leave the thread open for a few days, in case any of you SAP gurus want to share more.
    Cheers!
    Andres.

  • Dropdown list in interactive form

    Hello All,
    I want to get a drop down list in adobe interactive form. I did the following.
    1. created a simple dictionary data type and populated it with values
    2. created a context and bound it to the simple dictionary type.
    3. when I drag the element to the pdf page, it shows it as a drop down list.
    4. when I run the application also, the drop down list comes but the values are not populated. I am not able to use the dropdown also.
    What should I be doing now to get a dropdownlist that works?
    Regards,
    Chander

    Hello Chander,
    what you want to create is a drop down list populated by the Web Dynpro context values. When you use drag-and-drop it just creates a regular drop down list (where you need to specify the values in the Designer).
    However if you select in your tools palette the Web Dynpro tab you will find special drop down lists. So here is what you do:
    1. Drag and drop a Value Help Drop-down List element from the Web Dynpro Library tab to the Body Pages pane.
    2. Drag and drop your node from the Data View tab onto it. This action binds the layout element to the corresponding node.
    Cheers
    Matthias

  • Dynamic drop down list in Adobe forms

    I have created a drop down list using enumerated drop down list from webdynpro native tab and binded in the object palette by giving $record.sap-vhlist.DESCR\.DATA\.FIELD.item[]* in the list items dynamically.DESCR is the field in the internal table into which i fetched data from the database table .I have written this code in a BADI.I dont know whether my form's display type is activex or native? I am not getting any values in the drop down list.can anybody please tell me what might be missing and how should i know whether my form is ActiveX or Native?
    My form is called from portal so i have used BADI to connect portal to form

    Hi sarang,
    I have done a dynamic drop down list in which DESCR field comes from database table and pops into the drop down dynamically. I was working for a PCR scenario so the adobe form was called from portal.I will tell u all the required steps.It might work for u as it is working for me:
    1.In the form:
    I used two elements from library first is a "ENUMERATED DROP DOWN LIST NO SELECT" from web-dynpro native tab and second is "ISR_TEXT DISPLAY INVISIBLE ON EDIT MODE" from ISR controls tab.Place them one on other inthe form.
    For drop down list the setting are:
         In object, field tab click on list items there in ITEMS put :$record.sap-vhlist.DESCR\.DATA\.FIELD.item[*].in ITEMS TEXT write text in ITEMS KEY write key.
         In binding,in default binding put $record.DESCR.DATA[*].FIELD.
    For text element the settings are:
         In binding,default binding put Normal.
         when we select ISR_TEXT DISPLAY INVISIBLE ON EDIT MODE it automatically comes with calculated read only int he value tab.so open script editor and place the below code:
    $record.DESCR.DATA.FIELD (in calculate).
    2.Now the code in BADI is as follows:
    In BADI we have to write the code for drop down list in the METHOD "SCENARIO_SET_ADDITIONAL_VALUES"
    As i didnt change the standard BADI i added an enhancement spot in which i wrote a function module which fills ADDITIONAL_DATA. and the below code fills the ADDITIONAL_DATA .
    DATA: t_t572b TYPE STANDARD TABLE OF t572b WITH HEADER LINE,
            t_t554t TYPE STANDARD TABLE OF t554t WITH HEADER LINE.
      SELECT * FROM t572b INTO TABLE t_t572b WHERE sprsl EQ 'E'.
      CLEAR ls_additional_data-fieldindex.
      LOOP AT t_t572b.
        ADD 1 TO ls_additional_data-fieldindex.
        ls_additional_data-fieldname ='DESCR_KEY'.
        ls_additional_data-fieldvalue = t_t572b-descd.
        APPEND ls_additional_data TO additional_data.
        ls_additional_data-fieldname ='DESCR_LABEL'.
        ls_additional_data-fieldvalue = t_t572b-descr.
        APPEND ls_additional_data TO additional_data.
        CLEAR t_t572b.
      ENDLOOP.
    For DESCR field the we have to declare  DESCR_KEY and DESCR_LABEL in the place holders for key values and palce holders for default values in characteristics tab(where all the fields for the form are defined) of ur respective scenario.(where ur pcr scenario is defined)
    Hope ur problem got resolved.
    Please let me know if any doubts.
    If ur form is not called from portal and u want a dynamic drop down list the difference is put a data drop down list and in object, field tab click on list items there in ITEMS select the field into which u populated the data from the database table (this code shud be written in code Initialization in the respective interface) and in ITEMS TEXT put $ in ITEMS KEY put $.and in binding as we normally do bind it to the respective field in which the data is populated from database table.
    It should work.

Maybe you are looking for

  • Black Gradients!!

    Hi, I've ripped a footage from DVD (not copyrighted) and it's fine in quicktime player, VLC etc. But once I inport it into Final Cut Pro it placed black gradients on both the left and right side of the video. Whats gone wrong?

  • How can i  calculate the values of the chars in a string

    yeah, what was the method for that?

  • HT4972 ipad 1 unable to acivate after firm 5.1.1 update

    says..."your ipad could not be activated because the activation server is temporarily unavailable"  this has been going on for a week, also error thru itunes

  • Operations are not visible

    Hi All, I am in CE 7.1.1 EHP1. I have declared the DC usage dependency of a composite application project in another composite application project. At development time I can find the application service of the used project but unable to get any publi

  • ERS Run-Issue with MRER

    Hi All, While doing ERS Run through MRER ,getting error message: PO item contains an estimated price: cannot be settled. Could you please tell what is this error and how to solve it. Thanks In Advance Payal Saxena