Web dynpro  passing data

Good day all,
I have create a window with multiple views. On allows me to select a material number and the second is suppose to display the data in a textview.
They are bound with the navigation links. How do I get the second view to only display the information of the number selected?

Martin is right,
Any data context node on the next view should also be mapped to the component controller, so when you are changing views you just have to use your material number to invoke the method of the component controller that gets your detailed data, its as easy as this:
before you fire you plug you can use the following:
wd_comp_controller->get_material_details( matnr = lv_matnr ).
Inside your component controller you should have a method called "get_material_details" and an importing parameter called matnr.
once the logic is run to get the details, bind your data to the component controllers Material details context node, this node should also be mapped to the view of the second screen.
So now when the second view opens the data will magically be there
Good luck,
Shaunny B

Similar Messages

  • Web Dynpro view data to  PDF creation issue

    Hi ,
    I am passing data from Web Dynpro iView to genrated PDF using url link, pdf generation is done using iText java class. 
    outputPDFData is the method to which i need to pass the data to but this is where i failed.
    Can someone please identify error or suggest how i move from here?
    Till now we completed storing test data in a temporary location using ByteArrayOutputStream but to show the data on screen??????
    ByteArrayOutputStream os = new ByteArrayOutputStream);
           List data = new ArrayList();
           data.add("Test Data1");
           data.add("Test Data2");
           data.add("Test Data3");
           PDFTestTemplate PDFTest = new PDFTestTemplate();
           PDFTest._outputPDFData_(os,data);
           final IWDCachedWebResource resource = WDWebResource.getWebResource(os.toByteArray().toString().getBytes("UTF-8"), WDWebResourceType.PDF);
           wdContext.currentContextElement().setPdfURL(resource.getURL());
           os.close();
    P.S.
    I have also referred to this blog by Prakash Singh but wasnt very helpful in my case.
    Create a PDF file using JAVA

    Martin is right,
    Any data context node on the next view should also be mapped to the component controller, so when you are changing views you just have to use your material number to invoke the method of the component controller that gets your detailed data, its as easy as this:
    before you fire you plug you can use the following:
    wd_comp_controller->get_material_details( matnr = lv_matnr ).
    Inside your component controller you should have a method called "get_material_details" and an importing parameter called matnr.
    once the logic is run to get the details, bind your data to the component controllers Material details context node, this node should also be mapped to the view of the second screen.
    So now when the second view opens the data will magically be there
    Good luck,
    Shaunny B

  • Internet Explorer limitation for Web Dynpro Table Data

    Hello everybody,
    I am having a trouble while trying to display a Web Dynpro table in Internet Explorer. This table is bound to a Context Node that is filled up manually with code, and for example if I passed more than 116 elements to the node the table only shows 116. Since this issue only happens with IE, I consider that it is related to the client part, something related with JavaScript. Any idea/suggestion?
    Many thanks in advance,
    Jesus

    Hello Siva,
    Thank you very much for your response. There is no message error, it is just not showing the entire node content, the weirdest thing is that even though WD is client independent this only happens with Internet Explorer. It works properly with any other browser such as Mozilla FF, Chrome and Safari browsers when the table has above 116 elements. When the table has below 116 elements it works properly with any browser. I have tried with IE6.0 and 7.0 using NWDS 7.0 and EP 7.0 SP 18.
    The table is child of a Group element which in turn is child of the Root Element.
    Best Regards,
    Baez

  • Adobe Interactive Forms - Web Dynpro: itab data not in textfield layout

    Hi,
    out of a web dynpro application i'm generating a pdf document which is filled with data out of an internal table. This data is displayed with a name and following the itab value. But it looks like the value is displayed in a textfield. I want the value to be displayed like a standard text.
    How can I realitze this?
    Thanks in advance,
    Tan

    Hi Tan,
    What do you mean by standard text..?
    is that mean you want to display the content as a label (static text field..?) if so there are 2 approaches.
    1) drag and drop the field from data view onto form and change the visual properties of the field.
    2) Have a static text on the form right click in it, select floating field option in context menu, a field is generated do data binding for this field.
    if even my understanding of your requirement is wrong provide more info on the UI presentation you are looking for ..
    Regards,
    Sai Krishna.

  • Saving web dynpro's dats in a custom db table

    Hello I'develop web dynpro component for cproject application. my question is how to save the new dats in a custom database table....where may I find some example?
    I'm new to web dynpro technology I need documentation please...

    what u need to do is, there must hve been some binding that u mapped with the custom table in the view of the webdynpro component.
    Now,say the method ON_AFTER_SAVE  gets triggered when u enter the data in the component and prtess save.
    so in this method write the logic of the updation of the custom table.
    DATA: Node_table type ref to if_wd_context_node,
            elem_table type ref to if_wd_context_element.
      node_table = wd_context->get_child_node( 'TABLE_DATA_SOURCE' ).
      CALL METHOD node_table->get_static_attributes_table( IMPORTING
      table = it_table ).  " here it_table will be the internal table of the type as the structure that u created in the view.
    now, get the data that u enter on the component into this internal table and modify the ztable from this internal table.
    the ztable gets updated.

  • Adobe Flash Islands for Web Dynpro ABAP Data Binding problem

    I have downloaded the NetWeaver 7.1 Trial (includes Adobe Flash Islands for Web Dynpro ABAP). I try to create a very simple FlashIslands component running within the Web Dynpro Application, everything looks good. However, all binding to the Flex component is not working. Does anyone know why?
    Since it's trial version, I login as BCUSER into NSP system. When I load up the build-in sample, such as Chart Demo, the binding to Flex seems working. I suspect if it has anything to do with package? I could only create my Web Dynpro under the $TMP package, as all the build-in sample are defined in SWDP_DEMO.
    Please help.
    Alan

    hi,
    Check out this link. It will give you an idea how to integrate Aobe island comp with web dynpro.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/307b434f-ff32-2b10-e885-991247270480
    Thanx.

  • Question about meta-data of Web Dynpro ABAP / Web Dynpro Java

    Hello together,
    everywhere I can read, that Web Dynpro meta-data is platform independent.
    I´ve read into a book, that the meta-data of Web Dynpro Java is saved as XML and
    that Web-Dynpro Java Runtime generates runnable classes and sourcecode out of this...
    - What about Web-Dynpro ABAP? Is Meta-code in ABAP is saved in XML too?
    - just for theory: is ist possible to take the meta-data of a Web-Dynpro ABAP component and
      generate a Web-Dynpro Java Component out of this?
    I tried to find it out but i failed... In table WDR_RR_LOAD (is this the right one?) I found only the
    field data. But this is a RAWSTRING and I don´t know how to make I "readable".
    I must know this for my thesis for my studies, not for work.
    Thank you very much !!!!
    Greetings,
    Oliver

    Me again,
    I am not sure if I understood it right...
    The meta-data which describes the visual part of a view is saved as XML and
    would be rendered i.e. in the webbrowser... Right?
    What about the meta-data of the Web Dynpro application?
    Is this meta-code into an other structure or XML too?
    Thank you very much.
    Many Greetings,
    Oliver

  • Ajuda de Pesquisa não funciona numa tela Web Dynpro

    Bom dia meus caros.
    Estou com o seguinte problema: uma ajuda de pesquisa está retornando os valores errados para os campos após uma seleção pela tela do web dynpro.
    Tenho uma ajuda de pesquisa Z baseada numa tabela Z com 5 campos, sendo 3 como chave primária. A ajuda de pesquisa exibe todos os 5 campos.
    Exemplo:
    Resultado da pesquisa na ajuda de pesquisa:
    CAMPO_A (PK) | CAMPO_B (PK) | CAMPO_C (PK) | CAMPO_D    |   CAMPO_E
              A             |                B        |              X           |             Y      |           1
              A             |                C        |              X           |             Y      |           2
              A             |                D        |              X           |             Y      |           3
              B             |                B        |              X           |             Y      |           4
    Se o usuário selecionar a linha 1, 2 ou 3, o retorno será sempre a primeira linha.
    Se o usuário selecionar a linha 4, o retorno será sempre a linha 4.
    Ou seja, a ajuda de pesquisa pela Web está entendo que somente o CAMPO_A  é chave.
    Isso não ocorre dentro do ECC. Se eu executar a ajuda de pesquisa dentro do ECC, o retorno sempre é o selecionado e os 3 campos que são chaves são "pintados" de azul no resultado da ajuda de pesquisa.
    Estou sem idéias. Alguém já viu isso? Pode me ajudar?
    Grato.
    Douglas S. Santos
    ABAP

    2) A tela (view) do web dynpro estava retornando dados incorretos para a tela.
    Solução: na View do Web Dynpro existia um código no método WDDOMODIFYVIEW (Method for Modifying the View Before Rendering) onde estava sendo feito um SELEC SINGLE com apenas um campo no WHERE numa tabela que possui 3 campos como chave primária. Dessa forma retornava o registro errado para a tela. O código foi corrigido. Vou postar o código para que servir de exemplo de como consultar e retornar valores na tela do web dynpro.
    DATA:
        node_zstqmf001   TYPE REF TO if_wd_context_node,
        node_importing   TYPE REF TO if_wd_context_node,
        elem_importing   TYPE REF TO if_wd_context_element,
        stru_importing   TYPE if_nota=>element_importing .
    * navigate from <CONTEXT> to <ZSTQMF001> via lead selection
      node_zstqmf001 = wd_context->get_child_node( name = if_nota=>wdctx_zstqmf001 ).
    * navigate from <ZSTQMF001> to <IMPORTING> via lead selection
      node_importing = node_zstqmf001->get_child_node( name = if_nota=>wdctx_importing ).
    * get element via lead selection
      elem_importing = node_importing->get_element(  ).
    * get all declared attributes
      elem_importing->get_static_attributes(
        IMPORTING
          static_attributes = stru_importing ).
      IF ( NOT stru_importing-desenho IS INITIAL ) and
         ( NOT stru_importing-folha   IS INITIAL ) and
         ( NOT stru_importing-revisao IS INITIAL ).
        SELECT SINGLE zfolha zrevisao zposicao zitem
          INTO (stru_importing-folha, stru_importing-revisao,
                stru_importing-posicao, stru_importing-item)
          FROM zstpmt001
         WHERE znumdes  = stru_importing-desenho
           and zfolha   = stru_importing-folha
           and zrevisao = stru_importing-revisao.
        node_importing->set_attribute( name = 'POSICAO' value = stru_importing-posicao ).
        node_importing->set_attribute( name = 'ITEM' value = stru_importing-item ).
      ENDIF.

  • Web dynpro export functionalities

    Hi all,
    I'm beginning with web dynpro and I would to know if it's possible to send web dynpro's data to Excel.
    Thanks to everybody.
    Best regards.
    Dustin Klerck

    Hi Dustin,
    in this Blog you can find the solition to your problem:
    <a href="/people/subramanian.venkateswaran2/blog/2006/08/16/exporting-table-data-to-ms-excel-sheetenhanced-web-dynpro-binary-cache:///people/subramanian.venkateswaran2/blog/2006/08/16/exporting-table-data-to-ms-excel-sheetenhanced-web-dynpro-binary-cache
    In that blog you also find a pre-requisite tutorial:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/1208c2cd-0401-0010-4ab6-f4736074acc6">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/1208c2cd-0401-0010-4ab6-f4736074acc6</a>
    Best regards.
    Gianluca Barile

  • Regarding how to pass the data from web dynpro to workflow

    hi gurus,
    how to pass the data from web dynpro to workflow.
    Regards
    vijay

    Check this [thread|SAP_WAPI_START_WORKFLOW;

  • How to pass the data from web dynpro to workflow.

    hi gurus,
    how to pass the data from web dynpro to workflow.
    Regards
    vijay

    Hi
    you can use function module
    data   ls_input_container  TYPE swr_cont.
    data   lt_input_container  TYPE TABLE OF  swr_cont.
    CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
        EXPORTING
          task            = ptask
        IMPORTING
          return_code     = lv_return_code
          new_status      = lv_new_status
        TABLES
          input_container = pinput_container
          message_lines   = lt_message_lines
          message_struct  = lt_message_struct.
    where you pass the data in imnternal table "pinput_container" as
      ls_input_container-element = 'KUNNR'.
      ls_input_container-value = ls_skna1-kunnr ."wd_this->lv_kunnr.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'CLUSER'.
      ls_input_container-value = lv_cluser.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'BUKRS'.
      ls_input_container-value = lv_bukrs. " youe value as per requirement.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'VKORG'.
      ls_input_container-value = ls_sknvv-vkorg. " youe value as per requirement
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'VTWEG'.
      ls_input_container-value = ls_sknvv-vtweg. "youe value as per requirement.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'SPART'.
      ls_input_container-value = ls_sknvv-spart. "youe value as per requirement.
      APPEND ls_input_container TO lt_input_container .
    *Also Forgot to mention where ptask is your workflow ID *
    Regards,
    Arvind
    Edited by: Arvind Patel on May 14, 2010 7:38 AM

  • Passing data from one screen to another(web-dynpro) in SRM sourcing cockpit

    HI Experts,
    i am facing problem in passing data from one web-dynpro screen and assigning the data it to another web-dynpro screen.
    my requirement is that when ever user selects a contract in PROPOSE SOURCES OF SUPPLY screen popup and press only assign only button, the data of the contract should be copied to the shopping cart.
    i have already used the BADI BBP_DOC_CHANGE_BADI, but unfortunately it was not working.
    so i tried to use the context, element and other web-dynpro fields to pass the data, i am able to pass the data from the popup to the second screen and able to assign it.
    but when ever i deselect the shoppping cart which has been assigned with the data of the popup and select another shopping cart the data of the above shopping cart is cgetting changed.
    i am unable to figure out the exact reason why this is happeing.i have written code in the ASSIGN ONLY button method to fetch the popup data and in the WDONMODIFYVIEW method of the second screen to assign the popup data to the shopping cart.
    i have tried to bind the elements using the BIND_TABLE, BIND_STRUCTURE, BIND_ELEMENT, BIND_ELEMENTS methods, but nothing is working.
    can anyone suggest me where i am making mistake and try to solve the issue.
    Thanks
    Tanveer

    Dear Poster
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Jason Boggans
    SAP SRM SDN Moderator

  • Passing data b/w BW and Web Dynpro

    Hi,
    I want to create a Web Dynpro application which can retrieve data from BW server. How should i go about it?
    Regards,
    Vijith

    Hi Vijith,
    I dont think you can publish BW reports in Webdynpro. Webdynpro doesnt have the option of publishing reports
    What you can do is use a standard BW iview in portal which is the easiest way or configure the BW server details in the j2EE engine and open the reports using the url
    You can use destination service for configuring BW server details in the j2EE engine
    See this link for more details
    BW server details from webdynpro
    Hope this helps you
    Regards
    Rohit

  • Passing a parameter while calling a web dynpro application on portal

    hi
    I am having a web dynpro application which retrieves data from R/3 system via RFC using Jco destinations define in the Portal.
    Now we have different kinds of portals running on the same WAS, now I want the application to run which access data from different R/3 systems thru different JCo destinations.
    I need to create a logic such that mu application runs fine on any portal with any Jco destination.
    Is there any provision to achieve this.
    kindly let me know about this.
    Thanks and regards
    kris

    Gopi,
    there's an parameter called "sap-wd-arfc-useSys" you can pass to the application, to change the used JCo-Connection (read more at http://help.sap.com/saphelp_erp2005/helpdata/en/f4/651741f163f023e10000000a155106/frameset.htm)
    so, if you're running the WD-aaplication on <b>one</b> WAS and call it from different portals, you have to create three (or six with the META-connections) JCo-Connection on your WD-WAS.
    In a WD-application you can access URL-Parameters with:
    WDWebContextAdapter.getWebContextAdapter().getRequestParameter("<your URL Parameter-Name>");
    kr, achim

  • How to use data from standard view in Web dynpro for ABAP

    Hello:
    I have to create an Abap Web Dynpro, and I must use data from a standard view in the new one. Does anybody know what do I have to do?
    Thank you and have a happy new year.

    Hi Rodrigo,
    Firstly, list the Standard component under Component Usage of the Component which you are creating in your View.
    Second, In the Custom Component, view, goto context, and try to add the node from the Standard component in to your view.
    NOTE: The second step requires a Node in component controller of the Standard Component.
    Finally, Now in your view, get the data from that and map the data.
    NOTE: To do this, I think you need to call your Standard WDA first and then only your node contains data and it will be passed.
    I hope it is helpful.
    Regards,
    Shashikanth. D

Maybe you are looking for

  • Logical system name has been changed for this system

    Hi gurus, I am fasing problem in BI7 system. we created a new client in the system & want to set it for BI development. System Response The transaction is canceled. Procedure Change the name of the logical system (table T000) for client  back to BID5

  • Updating Lightroom from ole version and OS to new LR 5 CC on Mac OS 10.8.5

    I decided to pull the triger on Creative Cloud and to do so had to finally upgrade from Mac OS 10.4.11 to OS 10.8.5. I kept a boot versuion of the old OS on a separate internal  hard drive just in case. I've used Lightroom for years and continuously

  • APD in Process chain

    Hi All, I have created 2 APD and include both APD in a process chain. however when i execute my process chain no extract has been generated. Below are the step i have take to create APD and Process chain. Steps: 1. Created 2 APD 2. Created 2 Variant

  • Purchased a gift app for a friend can I get a refund?

    I purchased a gift app for a friend not realizing she had a Droid not an Iphone.  She can't use the app.  Is there anyway to get a refund for the gift app on my account?

  • Problem about ExtensionFileFilter

    whats wrong with my code? please have a look at it. import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.*; import java.util.zip.*; import javax.swing.*; import javax.swing.filechooser.FileFilter; public class ZipTest {