New to webdynpro abap

Hello,
I am quite new webdynpro abap. I would like to display a dropdown box, input field on an iView. The selected value from dropdownbox and entered input value together has to be displayed during runtime. I was looking around for a step by step by guide which i couldn't find. Please provide me a solution for which points are rewarded
best regards,
k.c.

Hi,
There are 2 dropdown UI elements present in WD abap.
1. For DropDownListByKey:
Create a dropdownby key element in your view, and bind the selectedKey property to whichever node attribute you wish to bind. When you select a value in the dropdown, it is this value you have to bind and init method write code to popuate the values to the dropdown.
The wddoinit method: write the following code:
data: lt_valueset type standard table of wdr_context_attr_value,
ls_valueset type wdr_context_attr_value,
lr_node_info type ref to if_wd_context_node_info,
lr_node type ref to if_wd_context_node,
wa_kna1 type <your kna1 table type>.
lr_node = wd_context->get_chilod_node( 'NODE_KNA1MOD' ).
lr_node_info = lr_node->get_node_info( ).
loop at kna1 into wa_kna1.
ls_valueset-value = wa_kna1-kunnr. "this will be the selected value
ls_valueset-text = wa_kna1-kunnr. "this will be the displayed value in the UI
append ls_valueset to lt_valueset.
endloop.
lr_node_info->set_attribute_value_set(
exporting
name = 'KUNNR'
value_set = lt_valueset ).
you can find more info at:<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4884180951809e10000000a155106/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4884180951809e10000000a155106/frameset.htm</a>
2. Dropdown by Index:
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/dd/b0884118aa1709e10000000a155106/content.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/dd/b0884118aa1709e10000000a155106/content.htm</a>
Define a node (for eq. 'TEXT') with cardinality '0..n' with attribute (for eq. 'TEXT').
In the view create a UI element DropDownIndx
Bind the text property of DropDownbyIndex UI element to attribute Text of context node Text.
For populating the values to the node text;
In the WDDOINIT method you can prepare an internal table with the values and bind it to the node and the lead selection defines the selected element.
The below code sample may help.
method WDDOINIT .
for populating the values in drop down
data:
node_text type ref to if_wd_context_node,
stru_text type if_componentcontroller=>element_text,
tab_text type if_componentcontroller=>elements_text .
node_text = wd_context->get_child_node( name = if_componentcontroller=>wdctx_text ).
Set/fill your values
stru_text-text = 'Value1'.
append stru_text to tab_text.
stru_text-text = 'Value2'.
append stru_text to tab_text.
set values to the node
call method node_ddi_also_text->bind_table
exporting
new_items = tab_text.
endmethod.
for reading the values which user has selected in dropdown; for reading the selected index you can write the logic/method for the Onselect event of dropdownbyindex ui element. in the method read the attribute of the node text. the lead selection of the node gives the selected element (you can use the code wizard to read the context).
Hope this helps.
Regards,
Suresh

Similar Messages

  • I am new to webdynpro ABAP can someone give the good material ?

    Hi,
    i am new to webdynpro ABAP can someone give the good material ?
    Please tell me  what knowledge do i need to learn webdynpro ABAP?
    Regards,
    Chow.

    Hi Chow,
    SAP Web Dynpro Overview
    http://wendtstud1.hpi.uni-potsdam.de/sysmod-seminar/SS2005/presentations/12-WebDynpro-Overview.ppt
    Web Dynpro General Concepts
    https://admin.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/30ea953b-8e57-2910-4e85-f7be60b00407 [original link is broken]
    Web Dynpro
    http://help.sap.com/saphelp_nw2004s/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm
    Web Dynpro for ABAP: Tutorials for Beginners
    Web Dynpro for ABAP: Tutorials for Beginners [original link is broken]
    Web Dynpro Architecture
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/content.htm
    Web Dynpro User Interface Design
    https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/webcontent/uuid/ce44a14c-0a01-0010-af89-d7dbd944f176 [original link is broken]
    Getting Started with Web Dynpro Java
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/webcontent/u [original link is broken]
    uid/8921447c-0501-0010-07b4-83bd39ffc7be
    Developing ABAP applications using Web Dynpro Configuration Scenario
    http://www50.sap.com/businessmaps/8729920B31E343F099B71340B15F06DB.htm
    http://www.sapforum.co.kr/TECHDAY07/download/9.%20SAP%20WebDynpro_%EA%B9%80%ED%98%9C%EC%84%AD.pdf
    How-to add a custom Web Dynpro iView to the MSS Employee Profile (ECC 6.0)
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/how-toaddacustomWebDynproiViewtotheMSSEmployeeProfile(
    ECC+6.0)&focusedCommentId=55238
    Developing Java Applications using Web Dynpro Configuration Scenario
    http://www50.sap.com/businessmaps/8F5B533C4CD24A59B11DE1E9BDD13CF1.htm
    Regards,
    J.Joe

  • How to Call the RFC in Webdynpro abap application

    Dear Experts,
    Good Evening to all...
    I have to add two numbers using RFC in webdynpro abap application. If we give the numbers in the input screen then the RFC should add it and give it in the output screen. This is the application for that I have created the RFC.
    But the problem is i don't know how to call the RFC in that Webdynpro abap application and how to link the input view and output view with that RFC...? I am new to Webdynpro abap. Please kindly help me on this... I am struggled here... I need your help in this....
    Thank You.

    Hi Jaga,
    You asked the same question again.
    Without closing the [previous one|Re: Where SAP store the uploaded files?].
    I think Abhi has answered your question.
    If not please elaborate on the problem.
    The solution btw is to create a Service Call.
    Sumit

  • Error in webdynpro(ABAP) application development

    Hi,
           I am very new in webdynpro (ABAP) application development. I want to create some application based on webdynpro ABAP for few Z- Report. What is the prerequisite to develop a application based  on webdynpro( ABAP ) .Because when I am trying to create application in se80 and giving the related functional model name in wedynpro component field , I am getting the error like Web Dynpro Comp./Intf. ZOS_xxx_FM does not exist. How to proceed further?
    Thanks,
    Kundan

    Hi,
    Can you be more clear...
    Please refer this link  for Personalization-
    http://help.sap.com/saphelp_nw2004s/helpdata/en/22/719f42f2ff7e5fe10000000a155106/content.htm
    Regards,
    Lekha.

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

  • Webdynpro abap cv

    Dear Experts,
    I am very new into Webdynpro abap.I want Webdynpro abap CV. Can you please help me some one...
    Previously i was worked on Wendynpro Java.
    Thanks&Regards
    Kalyan

    Hi,
    are you looking what to mention in the CV about WDA skills? I will suggest first you learn WDA as per below topics
    Web Dynpro component architecture
    Create and use Web Dynpro controllers
    Navigation
    Definition of the Web Dynpro user interface (UI)
    Input help and semantic help
    Component reuse
    Sending popups
    Configuration and personalization
    Changing context and UI at runtime
    Enhancements
    Integration the SAP List Viewer for Web Dynpro ABAP
    Portal integration
    then based on your expertise and applications developed on real scenarios, you can put the info in CV as most of us do it for ABAP.
    Thanks,
    Chandra

  • Offline PDF forms in Webdynpro ABAP.....

    Hi All,
    I am new to webdynpro ABAP....
    We have a requirement of showing the form 16 for our client employee's.
    I am trying to develop a webdynpro project which should display the employee's form 16. 
    I have created a view and placed UI element Interactive Form as per as below documentaion :
    http://help.sap.com/saphelp_erp2005/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm
    Name of template Source : HR_INTAXF16_2006
    What should be next step in order to display the form 16 data in pdf. Pls shade some light..... need your expertise.....
    PS : Our ADS is configured properly and its working fine.
    Regards,
    Anil Kumar.

    Hi,
    You can go through the below links.
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d]
    [https://www.sdn.sap.com/irj/sdn/adobe]
    [https://www.sdn.sap.com/irj/sdn/interactiveforms-elearning]
    Hope this will help.
    Thanks.

  • Search help in webdynpro abap

    hi all,
    I am new to webdynpro abap.i want to implement search help for input feilds in my application,.can anyone give me step by step procedure to create search help
    thanx in advance.
    regards,
    Anusha

    Hi Anusha,
    Web Dynpro provides two types of pre-implemented search helps :
    1. ABAP Dictionary Search help
    2. OVS
    [Input Help for WDA|http://help.sap.com/saphelp_nw04s/helpdata/en/b3/4d3642eca5033be10000000a1550b0/frameset.htm]
    I have created a blog on implementing OVS help in WDA. You can refer that for sample code.
    [OVS help in WDA|/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap]
    In addition, you can also provide help through Drop Downs and Select options.
    [Working with Select options in WDA|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff03e]
    Plz reward if helpful.
    Thanks.
    Shruti

  • How can we display photo of particular person on webdynpro abap view

    hello gurus,
                     i am very new to webdynpro abap.i have one requirement.could any one can suggest me to overcome my requirement.
    in my requirement i have one view.in that view i need to display one photo image which ever saved on my desktoop.if i click on save button i should generate one doc number and update what ever the photo image i have displayed in the view against this doc number.after some time if give the doc number in to docnumber field and click on display button it should display what ever the photo we have saved previously against this doc number.this is my exact requirement.i think for this we need to maintain one Z table to stroe the photo and respective doc.number.for this how can we stroe photo against doc number in ztables.what is the type i supposed to give for photo image field.
    could you please any one suggest me on this and could any one send me the sample code if possible.
    regards,
    babu.

    Hello Babu,
    I doubt whether you can directly display the image from your desktop into the webdynpro application using Image UI Element. Only solution what I can think of is to load the image into the MIME folder and then bind the path of image in the Source property of the image UI element. But if you ask me this is not a good solution. Let me propose my solution. If no one get back to issue with better approach then you can follow the same
    1. whenever the image the is uploaded from the desktop, create this image in the MIME folder ( you search in SDN for creating objects in MIME folder )
    2. then bind the path of the image in Mime folder to the Source property of the Image UI Element
    3. Once the image is persisted in the DDIC table, delete the image from the MIME folder.
    4. to persist the image in DDIC table, create an attribute of type RAWSTRING.
    5. Whenever you want to display image from DDIC table into the UI, then again create the image in MIME folder and delete the image from MIME folder when you are existing from the application.
    Alternative would be to use the Mime repository for storing the image and in the DDIC table just maintain the Mime folder path for the document number.
    Hope this helps you.
    BR, Saravanan

  • Parameters in webdynpro ABAP

    Hi all,
    where i can set the "  WDDISABLEUSERPERSONALIZATION" parameter for iview?
    I am very new to Webdynpro ABAP .  Trying to find out the above parameters but fialed .
    Thanks,
    Rameshb.

    Hi Ramesh,
    Create an application of your WD component. Now double click on that application. Click on the parameter tab. There a table kind of thing will be displayed. Press F4. Select WDDISABLEUSERPERSONALIZATION parameter. Give its value as 'X'. By doing this user won't be able to modify the view at run time.
    I hope it helps.
    Regards
    Arjun

  • Regarding Tree structure display in Webdynpro ABAP

    Hi Experts,
    I am very new to webdynpro ABAP , I was asked to implement some functionalities of RWBE transaction in webdynpro , in RWBE transaction list can be displayed as Tree structure , in webdynpro how i can implement this ? using ALV UI element is it possible . Please help .
    Regards,
    Ratheesh BS

    Hi ,
    I need an output like the below
    <material number                 a1           a2        a3
              < plant                       b1          b2        b3
                 . org                        c1          c2        c3
    <material number                 A1          A2       A3
    is it possible to show the output as in this format using ALV ?.
    I have tried with the help provided by SDN , but not succeed .
    also i need to capture double click event and show the currosponding result in a seperate view.
    here material number is the parent node , plant and org were child nodes
    Regards,
    Ratheesh BS
    Edited by: Ratheesh Bhaskaran on Oct 7, 2008 4:22 PM
    Edited by: Ratheesh Bhaskaran on Oct 7, 2008 4:26 PM
    Edited by: Ratheesh Bhaskaran on Oct 7, 2008 4:29 PM

  • How to add set attribute method in webdynpro abap using code wizard.

    Hi developer,
    I am new to webdynpro abap , i have developed a small component from sap technical abap but i am not able to add the set attribute method using read context node /attribute in wizard code ,pleae guide me in solution.
    thanks,
    ravi.

    Hi,
    could you copy / past your code ?
    if you need help on webdynpro and your beginner, try to watch the video on internet of WebBProfessor. It's really good videos !
    regards
    Fred

  • Webdynpro ABAP ALV tutorial - simple update or use changelog ?

    I was working through the alv tutorials for webdynpro abap, and while trying to complete the
    "Editing ALV in Web Dynpro for ABAP", I got to page 8 of the pdf document where it explains how to do the ONDATACHECK event handler, and it comments out the portion for updating/saving the data (as noted below), and does not explain anything further about the save.
    * save data to database
    {* update... => only simlate, to not change the flight data model
    * content!
    Now, I am new to webdynpro abap, and don't know if I am supposed to utlize the changelog for this, or if a simple update will work.
    Any Ideas ?

    Thank you for your answer - I am guessing from your response that a method would need to be built - similar to one which I found in the SWDP_DEMO_TUTORIALS for a webdynpro called WDT_TABLE (see below) - where a check of the table changes would need to be made before an update to the table - rather than a simple one line update statement placed at that point in the code.
    METHOD save_changes.
      DATA: table_node           TYPE REF TO if_wd_context_node,
            read_sbook           TYPE
    if_componentcontroller=>elements_sbook_node,
            aux_read_sbook       TYPE
    if_componentcontroller=>elements_sbook_node,
            wa_read_sbook        TYPE LINE OF
    if_componentcontroller=>elements_sbook_node,
            context              TYPE REF TO if_wd_context,
            change_line          TYPE LINE OF wdr_context_change_list,
            changes              TYPE wdr_context_change_list,
            aux_changes          TYPE wdr_context_change,
            lv_change_tab_size   TYPE sy-tfill,
            aux_string           TYPE string,
            lv_node_size         TYPE sy-tfill,
            aux_div              TYPE int4,
            aux_index            TYPE i,
            l_current_controller TYPE REF TO if_wd_controller,
            l_message_manager    TYPE REF TO if_wd_message_manager,
            text                 TYPE string,
            it_int TYPE STANDARD TABLE OF i WITH KEY table_line.
    * check whether context has changed
      context = wd_context->get_context( ).
      changes = context->get_context_change_log( ).
      LOOP AT changes INTO aux_changes.
        IF aux_changes-change_kind = 'A' AND aux_changes-node_name = 'SBOOK_NODE'.
          INSERT aux_changes INTO TABLE wd_this->sbook_delta.
        ENDIF.
      ENDLOOP.
    * get the complete context in 'read_sbook' table
      table_node = wd_context->get_child_node( name = 'MY_BOOKING_NODE' ).
      table_node = table_node->get_child_node( name = 'SBOOK_NODE' ).
      table_node->get_static_attributes_table( IMPORTING table = read_sbook
    * get the size of table and changes
      DESCRIBE TABLE read_sbook LINES lv_node_size.
      LOOP AT wd_this->sbook_delta INTO change_line.
        APPEND change_line-element_index TO it_int.
      ENDLOOP.
      SORT it_int.
      DELETE ADJACENT DUPLICATES FROM it_int.
      DESCRIBE TABLE it_int LINES lv_change_tab_size.
    * get message manager
      l_current_controller ?= wd_this->wd_get_api( ).
      CALL METHOD l_current_controller->get_message_manager
        RECEIVING
          message_manager = l_message_manager.
    * decide which way to update databse
      IF lv_change_tab_size <> 0.
        aux_div = lv_node_size / lv_change_tab_size.
        IF aux_div <= 3.
    * write complete table to database
          lv_change_tab_size = lv_node_size.
          CL_WDT_FLIGHT_MODEL=>write_sbook_complete( read_sbook ).
        ELSE.
    * write only the changed records to database
          LOOP AT it_int INTO aux_index.
            READ TABLE read_sbook INDEX aux_index INTO wa_read_sbook.
            APPEND wa_read_sbook TO aux_read_sbook.
          ENDLOOP.
          CL_WDT_FLIGHT_MODEL=>write_sbook_records_changed( aux_read_sbook )
        ENDIF.
        REFRESH wd_this->sbook_delta.
        REFRESH it_int.
        wd_this->sbook_changed = abap_false.
    * report message
        aux_string = lv_change_tab_size .
        IF lv_change_tab_size = 1.
          CONCATENATE aux_string 'record written to database' INTO text.
        ELSE.
          CONCATENATE aux_string 'records written to database' INTO text.
        ENDIF.
        CALL METHOD l_message_manager->report_success
          EXPORTING
            message_text = text.
      ELSE.
    *  report message
        CALL METHOD l_message_manager->report_success
          EXPORTING
            message_text = 'there are no changes to be written to database'.
      ENDIF.
    ENDMETHOD.

  • WebDynpro ABAP : Table with DropDownByKey does not have neat focus

    Hi Experts,
    I have a table, with one column of type dropdownbyKey, i need this so that i can display the DESCRIPTION rather than key. Issue is when i select a ROW in this table i see a special YELLOW BG COLOR on all columns except the column that has drop down by key   it is first thing enduser points out as issue ???
    Any help would attract points

    >
    ramkumarvalluru wrote:
    > Hi Eureka,
    >
    > I am new to webdynpro abap area.Please provide me step by step procedure for working on Dropdown by key,Check boxes  Radio buttons aand all UI elements.
    >
    > Please provide me.
    First of all, please don't attach new questions to existing threads. Second asking for step by step procedures on all UI elements is really outside the scope of a forum posting and asking for too much.  If you are that new to Web Dynpro ABAP, then start by reading the online documentation, the WDA WIKI section, and the WDA eLearnings.

  • Regarding adobe form using Webdynpro ABAP

    Hi,
    I am new to webdynpro abap.
    Currently I am working on a scenario where..
    I have a function module which generates the pdf for me based on the vbeln i provide in the first view. The only thing I have to do is  to display the generated pdf on explorer.
    As for as the examples i gone through.....I should provide the existing form name or the interface name. I don't have either of them as the function module is generating the pdf for me.
    Could any one help me on this please....
    Thanks,
    Vijaya.

    Hello Vijaya,
    Please check out the following
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785
    This is what will work for you with some modifications. Since in your case you are already receiving the PDF from the FM, just set the pdfSource to this value and you should be done.
    Regards,
    Shubham

Maybe you are looking for