Filling drop down in Interactive forms by ABAP

Hi experts,
  I am new to Adobe forms.I am working on a form using SFP transaction, which consist of a table.In that table I have a dropdown
as a column.I want to fill the dropdown with values from a DB table.
I am working on pure ABAP.
Can any one help me to achive this,with step by step procedures...
Thanks&Regards,
Hans.

Hello Hans,
You might want to use "dynamic properties". With that you can populate the dropw-down list from the data contained in the form.
In Designer under Extras->Options you can find an entry for Binding. Check "show dynamic properties".
If you now go back to your DDL field on the form and look at the Object - Field tab you can see that "list elements" is a link. Click on this link and a dialog for specifying a data binding for the DDL items shows up. How to do it is straight forward: Just select the node where the data can be found and specify which nodes contain the key value and the display text.
It is very helpful if the content of the DDL is in a table like structure
Regards,
Juergen

Similar Messages

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

  • Filling dynamic drop down in adobe interactive form( webdynpro ABAP)

    HI all,
    Im new in Webdynpro ABAP, my requirement is to fill drop down list in adobe interactive form. i created adobe form and its working fine.
    I Created context like ROOT(cardinality 1:1)->DATANODE cardinality 0:n. This context is for drop down and in wddoinit i did  like this.
      IN WDDOINIT ,
    DATA lo_nd_root TYPE REF TO if_wd_context_node.
      DATA lo_nd_datanode TYPE REF TO if_wd_context_node.
      DATA lo_el_datanode TYPE REF TO if_wd_context_element.
      DATA ls_datanode TYPE wd_this->elements_datanode.
    navigate from <CONTEXT> to <ROOT> via lead selection
      lo_nd_root = wd_context->get_child_node( name = wd_this->wdctx_root ).
    navigate from <ROOT> to <DATANODE> via lead selection
      lo_nd_datanode = lo_nd_root->get_child_node( name = wd_this->wdctx_datanode ).
    get element via lead selection
      lo_el_datanode = lo_nd_datanode->get_element(  ).
    ls_datanode[] = lt_dna_value[].
    CALL METHOD lo_nd_datanode->bind_table
      EXPORTING
        new_items            =  ls_datanode
        set_initial_elements = ABAP_TRUE.
       index                =
    while executing  i'm getting this error ": WebDynpro Exception: ADS: com.adobe.ProcessingException: No output was generated while rendering: Stream for: PDFOut.(200,101). " . can u please tell me how to bind value for drop down.
    I created sample table in same form and i binded same value to table, that time its executing fine.
    can u please tell me solution for this Scenario.
    Thanks
    Hemachandran.
    Edited by: hemachandran R on Sep 12, 2008 2:27 PM

    hi,
    My requirement, is to use dynamic drop down in dynamic table. I am using webdynpro abap.
    i populated the value in drop down.
    Its working fine but the problem is how to fill the default value in drop down. because i want to bind the default value which im getting specify value from the table.because each row
    im getting different values, like first row
    CAR
    , that CAR want to fill as a default value in drop down  and second row  as
    BIKE
    that BIKE  want to fill as default value in drop down  ( example drop down contain   car , bike , cycle).
    In adobe form i binded like this
      $record.DATANODE.DATA[*].DNA_RATING
    i dont know whether this one is correct or wrong  .
    im getting default value as empty.
    please give me some solution how to do this.its very urgent
    thanks
    hemachandran.

  • Drop Downs in adobe forms using Web dynpro ABAP

    Hi all,
    Im new to this adobe forms using webdynpro abap.
    In my requirement i have two drop downs on the form.
    by selecting value in one drop down i have to fill corresponding values in the other drop down.
    Using only WDA i know how to do this but with adobe i dnt know how and where i have
    to catch the drop down value and write my code. please let me know how i can achieve this.
    one more thing whatever action or events we are performing on the form where we have to place our code for this?
    Thanks,
    santosh

    hope this helps -
    [Thread: Populating one Drop-Down list from the selection of another Drop-down list |Populating one Drop-Down list from the selection of another Drop-down list;

  • F4 help in online interactive forms using ABAP

    Hi,
    Question 1:
                     I am able to get f4 help in online interactive form using ABAP. but after selecting the value from pop-up the value is not populated in PDF field. Can u help regardiing this.
    Question 2:
                     I am able to get f4 help in online interactive form using value help dropdown, first time if i click the dropdown button it is showing the popup, if i click second time it is not showing the popup.
    Thanks & Regards,
    Krishna

    Hi,
    1. I you are woking from the Web Dynpro for ABAP then after binding the Context variable in the view, and in the Adobe Layout Designer from the Library goto WebDynpro Native Tab and drag and drop the Value Help and for this automatically JavaScript is being generated, go that script and edit the line
    Var fieldname = "yourfieldname";
    Note: dont forget to link the context attribute to search help. ie. in the context properties of the attributes select the input help mode as dictionary search help and specify the name of the search help present in data dictionary.
    And now go to Utilities and click on u201CInsert Web Dynpro Scriptu201D.
    Also make sure that you specify the Layout as ZCI Layout in the Propertioes of the Adobe Form.
    2. Only the Submit button , the Enumerated Drop-Down List as well as the Value help button from the Web Dynpro Native library of Adobe LiveCycle Designer are supported. Check SAP Note: 1098009
    Regards
    Pradeep Goli

  • Adobe interactive form with ABAP workbench

    Hi Experts,
    Need to know, can we run Online Adobe interactive form using ABAP ( Not webdynpro ABAP or Java) workbench? If so how? and if possible please provide the driver program which run the form & after filling it, it updates SAP data online.
    Regards,
    Nik

    That is possible by using FLM tool. You need to buy it separately. Its an ARCH product. Or if its HR forms then you can use HCM proceess & forms.

  • Drop down list in web-dynpro abap

    Hi friend,
    i want to drop down list in WEB-DYNPRO abap kindly give me one example .
    regards
    vikash

    Suppose you have created a DropDownByIndex on your screen & bound its "Texts" attribute to a context attribute by name DROPDOWN then you can put the below coding into your WDDOINIT method to fill the values to be displayed:
    METHOD wddoinit .
      DATA: lv_node TYPE REF TO if_wd_context_node,
            lt_texts TYPE if_main=>elements_dropdown,
            wa_texts TYPE if_main=>element_dropdown.
      lv_node = wd_context->get_child_node( name = 'DROPDOWN' ).
      wa_texts-application = ' '.
      APPEND wa_texts TO lt_texts.
      wa_texts-application = 'MS Word'.
      APPEND wa_texts TO lt_texts.
      wa_texts-application = 'MS Excel'.
      APPEND wa_texts TO lt_texts.
      wa_texts-application = 'Notepad'.
      APPEND wa_texts TO lt_texts.
      lv_node->bind_table( new_items = lt_texts ).
    ENDMETHOD.
    Suppose you are using a DropDownByKey & bound the "Selected Key" property to the context attribute by name TEMP then you can proceed as shown below to fill the dropdown with values:
    data: lr_node_info type ref to if_wd_context_node_info,
            wa_value_set type wdr_context_attr_value,
            lt_value_set type table of wdr_context_attr_value.
      lr_node = wd_context->get_child_node( name = 'NODE' ).
      lr_node_info = lr_node->get_node_info( ).
      wa_value_set-value = '1'.
      wa_value_set-text  = 'One'.
      insert wa_value_set into table lt_value_set.
      wa_value_set-value = '2'.
      wa_value_set-text  = 'Two'.
      insert wa_value_set into table lt_value_set.
      wa_value_set-value = '3'.
      wa_value_set-text  = 'Three'.
      insert wa_value_set into table lt_value_set.
      lr_node_info->set_attribute_value_set( name      = 'TEMP'
                                             value_set = lt_value_set ).
    Regards,
    Uday
    Go through the Web Dynpro component DEMO_UIEL_STD_SELECTION for a working example of DropDownByKey & DropDownByIndex

  • OnSelect event for a Drop down UI Element in Webdynpro ABAP Select Options

    Hi Experts
    We have built our UI based on the webdynpro ABAP Select Options. We have a requirement that, when we change the value of a drop down box in the UI, I need to hide some fields. Can anybody help me out in handling of OnSelect event of a drop down box built using webdynpro ABAP Select Options. We are on SAP Netweaver 7.0 EHP1.
    Rrgards,
    Srikanth.
    Edited by: Srikanth Kancherla on Apr 29, 2010 10:43 PM

    Hi Srikanth,
    as you seem to be already aware, the component is dynamically built.
    so you would have to enhance the code that builds the element and insert a reference to a new action (enhancement) that could handle the onSelect event.
    What is it about this that you particularly want help with?
    Cheers,
    Chris

  • Missing code in "Offline Interactive Forms Using ABAP" SDN document?

    I am trying to build a sample offline form scenario using the code published in the SDN document "Offline Interactive Forms Using ABAP" written by Vani Krishnamoorthy. Everything works perfectly up to the point where we instantiate the PDF Object to extract the data from the form. Then there seems to be some code missing just before we call the method SET_DOCUMENT. We are supposed to export the parameter pdfdata = pdf_data , but I cannot find where pdf_data variable is declared or assigned. Also, an ENDTRY statement seems to be missing.
    Has anyone had success with Vani's offline scenario, and if so, do you know what code is missing, if any?
    Thanks in advance for any help you can offer.

    I found the missing code in sample program FP_PDF_TEST_06. Everything works well now.
    The PDF file that was uploaded from the PC first needs to be converted from binary to XSTRING before you can create the PDF object:
    data: lt_rawtab type standard table of raw255,
            g_pdfdata type xstring,
            l_len type i.
      call method cl_gui_frontend_services=>gui_upload
        exporting
          filename                = l_filename
          filetype                = 'BIN'
        importing
          filelength              = l_len
        changing
          data_tab                = lt_rawtab   "PDF file (binary)
        exceptions
          file_open_error         = 1
          file_read_error         = 2
          etc. etc.
    Convert binary tab to Xstring
      call function 'SCMS_BINARY_TO_XSTRING'
        exporting
          input_length = l_len
        importing
          buffer       = g_pdfdata              "converted to Xstring         
        tables
          binary_tab   = lt_rawtab
        exceptions
          failed       = 1
          others       = 2.
      if sy-subrc is not initial.
        message id sy-msgid type sy-msgty number sy-msgno
                   with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    Instantiate PDF object..
      data: l_fp     type ref to if_fp value is initial,
            l_pdfobj type ref to if_fp_pdf_object value is initial,
            l_fpex    type ref to cx_fp_runtime,
            l_type    type string,
            l_errmsg  type string.
    Get FP reference
      l_fp = cl_fp=>get_reference( ).
    Handle exceptions with Try..Endtry
      try.
      Create PDF Object using destination 'ADS' (<--this is how it is
      defined in SM59)
          l_pdfobj = l_fp->create_pdf_object( connection = 'ADS' ).
      Set document
          l_pdfobj->set_document( exporting pdfdata = g_pdfdata ). 
      Tell PDF object to extract data
          l_pdfobj->set_extractdata( ).
      Execute the call to ADS
          l_pdfobj->execute( ).
        catch cx_fp_runtime_internal
              cx_fp_runtime_system
              cx_fp_runtime_usage into l_fpex.
          case cl_abap_classdescr=>get_class_name( l_fpex ).
            when '\CLASS=CX_FP_RUNTIME_INTERNAL'.
              l_type = 'INTERNAL ERROR'.
            when '\CLASS=CX_FP_RUNTIME_SYSTEM'.
              l_type = 'SYSTEM ERROR'.
            when '\CLASS=CX_FP_RUNTIME_USAGE'.
              l_type = 'USAGE ERROR'.
          endcase.
          l_errmsg = l_fpex->get_short( ).
          message e010(ad) with l_type ':' l_errmsg.
      endtry.

  • Interactive forms using ABAP

    Hi ,
              Is it possible to design Interactive forms in ABAP. I have a requirement for a client using R/3, there is no Portal involved so WebDynpro ABAP is not an option.In this case I am wondering is this a possibility using general ABAP.
    Cheers
    S Kumar

    Hi S Kumar,
    You can design the Adobe Interactive Forms without WebDynpro or Portal, This can be done by writing a driver program similar to driver program where we write for SmartForm. Or you can use the WebServices to design your forms. But some functionalities may not be satisfied as in the WebDynpro or Portal.
    Regards
    Pradeep Goli

  • Multi language support for Adobe interactive form in ABAP WD

    Hi ,
    I translated the adobe form in multi language in SE63, If i execute the form with passing LANGU(language) parameter, form supports for multi language.
    I created XML schema based interface and if a execute interactive form in ABAP Webdynpro, i am unable to pass launguage(LANGU) parameter. because InteractiveForm element property does not have language key parameter.
    Apart from creating different language dependent forms, is there any alternate way we can pass the LANGU key parameter to Interactive Adobe form???

    Hi,
    As far as i know when you use Adobe forms in a WD4A application, language is your "web" connection language.
    You can have a look at standard class CL_WD_ADOBE_SERVICE, it's used when generating an adobe forms from WD4A. , more particulary look at method DETERMINE_DOCPARAMS.
    regards

  • Interactive Form with ABAP DDIC Interface

    Hi,
    I'm new on adobe interactive forms and  I have some problems. I have a form with a abap dictionary based interface.
    When I test my web dynpro application with the interactive form, it is not interactive. :-P
    And yes the property "enabled" of the UI-Element is marked.
    First I watched an e-Learning an build a web dynpro application with a from which has a interface based on xml.
    I generated the inteface of the form from my context. It works fine.
    But with a interface based on xml I dont't know how I can get a table on my PDF in the Adobe Lifecycle Designer.
    So I searched snd n the forum and found a tutorial (InteractiveForm_and_Dynamic_Tables). Like in this tutorial I created a interface based on ABAP Dictionary and a form with a table. Then I choose this form on my UI-Element as templateSource and generate the context from the interface. But as i mentioned above, now the PDF isn't interactive.
    Any idea?
    Thx Florian
    PS: when someone can tell/help me in german it would be much easier for me to understand...

    You can create Interactive form with ABAP dictionay based interface.  You need to add following code in method "WDDOMODIFYVIEW" of your view.
       DATA: LR_INTERACTIVE_FORM  TYPE REF TO CL_WD_INTERACTIVE_FORM,
          LR_METHOD_HANDLER    TYPE REF TO IF_WD_IACTIVE_FORM_METHOD_HNDL.
      CHECK FIRST_TIME = ABAP_TRUE.
      LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT( 'TEST' ).
      LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
      LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( ABAP_TRUE ).
    Refer:: http://help.sap.com/saphelp_nw70/helpdata/en/42/c247dc6227311ce10000000a1553f7/content.htm

  • Is it possible to create a drop down menu using form fields rather than text?

    Is it possible to create a drop down menu using form fields rather than text?

    Yes, correct - values of form fields. If one is blank, then the field would be blank - yes? If two or more have the same value that is fine.
    A standard dropdown ... As shown here. If there is an easier way to do this, I'd love to hear your suggestions. Thank you!

  • Fill Drop down list in Interactive form

    Hello.
    I am trying to display multiple values form the context of an form, so not web dynpro! I am using a valuelist object for that.
    When I test the form I am only getting to see the first value of my internal table and the drop down list cannot be expanded.
    If I analyse the XML I see that the items are there which I want to display.
    What is the cause of this, or is this only possible with Interactive form in an Web dynpro scenario (I hope not)
    Regards,
    Harrie Prinsen

    Hi Harrie,
    As per this post, I understand that you are going to use a simple ADOBE PRINT FORM which fetches data from ECC and displays it in the form...Am I right?
    See, if it is going to be a Simple PRINT FORM which is NON-INTERACTIVE in nature, I dont see the need of DROP DOWN LIST in this scenario. I think that could be the reason why always the first item of the INTERNAL TABLE is displayed all the time.
    If you have an INTERACTIVE SCENARIO where the user can select an option from the drop-down, then you can go with ABAP WD/JAVA WD/ISR Adobe Interactive Forms.
    Regards,
    <i><b>Raja Sekhar</b></i>

  • Standalone Interactive Forms without ABAP Dynpro and Drop down boxes

    Friends,
    I need to create Adobe interactive form with drop down boxes. I have 2 questions:
    1) do i need to use abap dynpro to display the form or can i display the form using print program
    2) for using drop down box, should i use the one from standard library or Web Dynpro ActiveX or Web Dynpro Native library
    Points will be rewarded for helpful answers.
    Thanks.

    Hi,
    Its not necessary to have ABAP web Dynpro to create and display adobe forms. You can display it in programs in ABAP. Go to following link to know more:
    [https://www.sdn.sap.com/irj/sdn/adobe#section39]
    There is a sample application for Adobe form in ABAP and lot more.
    You can use web dynpro Native dropdown list.
    Hope it will help you.
    Regards,
    Vaibhav Tiwari.

Maybe you are looking for

  • K8N Platinum Video and S-ATA issues

    hey, here is my problem: i bought some hardware 3 weeks ago, including: A64 3800+ (Venice), MSI K8N Neo4 Platinum (MS-7125), Leadtek PX6800 GT TDH (265MB), Be Quiet! 450 Watt Titanium S1.3 in exchange for my old system (2500+, Abit K7N, ATi Radeon 98

  • OO ALV grid refresh problem on sort

    I have an editable OO ALV where I over ride the standard functionality for append, insert, Delete etc to handle condition that when a new row is inserted/appended its status which is in a non-editable cell  is defaulted to some value. Now the logic i

  • FCPX,  problems in window/record audio/monitor/choose 'airplay'.

    I had to record a voice over (audio by dropmenu windows/record) there are options for mic and monitor. By monitor one is 'airplay'. I wanted to find out the purpose of this.You need a password. I tried several times (my standaard and only password fo

  • Left with no software after subscription?????

    You have got to be kidding me. After my magazine subscriptions expire nobody rips them out of my hands and takes them away. The only way I see this making sense for me is if Adobe implements the option of keeping the current status of the software av

  • Imovie 8 project library thumbnails not showing up after import

    I have imovie 8 on my mac at home and I edited some footage and then wanted to bring it into work. I copied all the necessary event libraries and project libraries and I'm having a problem viewing them in my imovie 8 at work. I stored the Event libra