Data population in a dropdown inside a Table in WebDynpro Java

Hi All ,
I have a table inside which there is a dropdown in a ZCI Form. I am using enumerated dropdown list.
The issue is binding of this dropdown is not woking as it works for normal dropdown.
I am getting pdfdocumentcreation exception if trying to bind this dropdown using dynamic binding.
Anybody help me out to solve this issue.
regards
Ravindra

Hi,
  Refer the below link you will get useful information
Dropdownlist to display r3 table
Re: DropdownList box to display R/3 table
see this link for when to use DropDownByIndex (DDI) vs DDK (DropDownByKey) and how populate data from R/3.
Re: webdynpro populating dropdown values programmatically
create context value attribute and bind to drop down by key
not getting value from DropDownByKey
Dynamically adding values to dropdown by key thread
Dynamicaly adding values to DropDownByKey
Dropdown by key
dynamic DropDownByKey
http://help.sap.com/saphelp_nw04/helpdata/en/4a/8613e41629344194e4f40393740d51/content.htm
Regards,
Saraswathi.
Pls reward points for useful info
Message was edited by: Saraswathi D

Similar Messages

  • Binding and displaying data to table in webdynpro java

    hi all,
    i want to know how to bind the output values to table in webdynpro java.
    i know how to bind values in context to table,but if we want to display the values from database(back end ) and display in table present in the view.
    eg: i have table in view and want to get values from backend(SQL server) and display it in that table.
    plz help me to know ..
    thanks
    sirisha

    Hi Saisirisha,
    Try this.
    1> Take a Value Node(Employee) cardinality 0..n.
    Employee Structure
    Employee
    |------Surname(Attribute)
    |------FirstName(Attribute)
    |------Category(Attribute)
    2> Bind this value node(Employee) in the View datasource of table.
    3> Try the code inside wdDoInit method.
    try {
         // Load the JDBC-ODBC bridge
         Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
         // specify the ODBC data source's URL
         String url = "jdbc:odbc:SSPer";
         // connect
         Connection con = DriverManager.getConnection(url,"North","Ken");
         // create and execute a SELECT
         Statement stmt = con.createStatement();
         ResultSet rs = stmt.executeQuery
         ("SELECT Surname,FirstName,Category FROM Per");
         while (rs.next()) {
         // get current row values
         String Surname = rs.getString(1);
         String FirstName = rs.getString(2);
         int Category = rs.getInt(3);
         //create table row and add the value in the table
         IPrivate<Put View Name>.IEmployeeElement empElm = wdContext.createEmployeeElement();
            empElm.setSurname(Surname);
         empElm.setFirstName(FirstName);
         empElm.setCategory(Category);
         wdContext.nodeEmployee().addElement(empElm);
         // close statement and connection
         stmt.close();
         con.close();
    } catch (java.lang.Exception ex) {
         wdComponentAPI.getMessageManager().reportException("Exception : "ex.getMessage()+,true);
    http://www.developer.com/java/data/article.php/3417381
    Regards,
    Mithu

  • Access ABAP table in Webdynpro Java application

    Hi All
    Is it possible to access ABAP table in Webdynpro Java application
    Please provide your input
    Thanks
    Karthi D.

    Hi you will connect to the remote SAP system, the
    backend, using an Adaptive RFC MOdel. To access database tables, you can make use of existing functions in terms of RFC function modules. For each function module you need, the system generates a corresponding Java proxy class. All the generated proxy classes and interface are bundled together in the RFC model and treated as part
    of your Web Dynpro project
    In WebDynpro java you RFC by using Model :
    Adaptive RFC Model
    1. automatically adapts to changes in function module signature
    2 provides support for data types and extensibility
    3.support for different structure definitions in different backend
    systems (release dependent structures, custom adaptation)
    Basic principles and guidelines
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c216de
    See this blog
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2brfc
    http://help.sap.com/saphelp_nw04s/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm
    Thanks,
    Tulasi

  • Can we access PI tables from WebDynpro Java via PI 7.1?

    Hi Experts
    Is it possible to fetch PI Tables (to display monitoring and alerts as dashboard on portal) from Java Stack. I got some javadocs API SAP Netweaver for PI 7.1 but i don't know how far it can help me in solving my purpose of fetching and displaying the PI monitoring data on Portal.
    https://www.sdn.sap.com/irj/sdn/javadocs
    Please advise if J2EE access to PI Tables is possible or RFC is the suggested solution to fetch PI Monitoring data.
    Thanks
    Neha

    Hi Neha,
    You can access PI tables from Webdynpro Java application using RFC or Webservices. Create RFC or Webservices which will fetch data from the PI tables.Create the required JCO's and the Webdynpro java application which uses the Adaptive RFC model or Adaptive Webservice Model to connect to the ECC system.
    I found a document that speaks about fetching data from SXMB_MONI Standard Table https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b050ff4f-84c3-2b10-3d99-8f9c44f57a17
    Hope this is useful.
    Regards,
    Seema Rane.

  • Enhancing Tables in WebDynpro Java using Table Utilities

    hi all,
        I want to export  table date into excel2003.I go through a blog
               /people/sap.user72/blog/2006/05/04/enhancing-tables-in-webdynpro-java-150-custom-built-table-utilities
    but I am export my table data into excel.Can anybody send tutorial of this project.?
    Thanks&Regards
    Suresh Kumar T.

    Hi Suresh,
    You can download the project from the following link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#58
    Hope it helps.
    Regards
    Nikhil

  • How to insert a button on the column header of a table in webdynpro java

    Hi
    Can anyone tell me how to insert a button on the column header of a table in webdynpro java?
    regards
    sunit

    Hi sunit,
    Instead of adding button in the column header , in the column
    add a fixed top cell.
        right click on the column
        Insert FixedTopCell
        Right click on the fixedTopCell
        insert Editor.
       select button.
    then button will be only in the top most row.
    Hope it will satisfy ur requirement
    Regards
    Smitha

  • Providing sorting filters for a table in webdynpro java application

    ho to provide sorting  , filters , for a table in webdynpro java application .

    Hi Pradeep,
    Please go through the following article on implementation of filtering and sorting:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f024364b-3086-2b10-b2be-c0ed7d33fe65
    The article contains a link to a sample application using the TableSorter and TableFilter Class.
    The same classes can be used by any other web dynpro application. Download the sample application and copy the classes. In case of a specific requirement, modify the TableSorter and TableFilter classes.
    Regards,
    Kartikaye

  • Formatting dates in a table in webdynpro java for mutliple entries.

    Hi all,
    I have a requirement to format date values in a table for multiple entries to dd/MM/yyyy format in webdynpro java for mutiple line items in that table.
    Please help me out with the technique for the same.
    Thanks and Regards,
    Soumyadeep.

    Hi,
    here is the code for changing the formatting the date.
    Date currentDate = new Date ();
                DateFormat df =  DateFormat.getDateInstance(DateFormat.SHORT);
                String today = df.format(currentDate);
                SimpleDateFormat sdfInput = new SimpleDateFormat("dd/mm/yyyy");
                SimpleDateFormat sdfOutput = new SimpleDateFormat ("mm/dd/yyyy");
    try {
                      String dateft = sdfOutput.format((Date) sdfInput.parse(df.format(currentDate)));
                } catch (ParseException e) {

  • Build gui for existing oracle database tables with webdynpro java?

    hi
    i want to build a GUI to maintain existing oracle tables
    so far we used oracleFORMS to do so
    is there a good approach for webdynpro java? or do you recommend other sap tools?
    can we generate the gui with a wizard based on the fields in the table?
    do we have to generate sql statements or type in manually?
    regards
    joerg

    Hi Joerg,
    generally that is possible, but you'll have to implement the data access by yourself, by means of EJB or another Java persistance framework such as JDO, SQLMaps, Hibernate, whatever...
    Web Dynpro allows to build a GUI based upon a model - in this case this could be some POJOs (DTOs) representing your database tables, which are communicated to the GUI by your data access layer. Consider a model as a simple Java bean representing database data.
    This approach would require to build a data access layer which incorporates manually generated sql statements, so you'll have to have expert database and java knowledge.
    There might be other approaches, this is just to demonstrate one working possibility.
    regards,
    Christian

  • Dynamic table in Webdynpro Java

    Hi Colleagues,
    I need to develop a table dynamically in webdynpro(Java), the table should not contain scrollbar, header, lines and border...Actual requirement is to group 12 elements in the from of a table
    could anyone please help me here?
    Thanks & Regards
    Swetha

    Hi Armin,
    In a window i have to develop a part of window which looks like this
    Image             URL                      Description
    Image             URL                      Description
    Image             URL                      Description
    Image             URL                      Description
    I have tried doing this using Flow layout for each line
    But when i follwed that the last column "description" is not alligned in a straight line(for all rows)
    structure is not even as shown above
    (varying depending upon the length of the URL)
    Here i have attached the piece of code i  used
    IWDTransparentContainer MainContainer1 = (IWDTransparentContainer)view.createElement(IWDTransparentContainer.class);
           IWDFlowLayout flowlayout1 =  (IWDFlowLayout)MainContainer1.createLayout(IWDFlowLayout.class);
    ////For adding Image 
           IWDImage image = (IWDImage)view.createElement(IWDImage.class);
           image.createLayoutData(IWDFlowData.class);      
           image.setSource("~sapicons/s_b_alet.gif");
    /////for Adding URL
           IWDLinkToAction link1 = (IWDLinkToAction)view.createElement(IWDLinkToAction.class);     
           IWDTextAccessor link1text = wdComponentAPI.getTextAccessor();
           link1.setText("Collaboration Window");
           IWDAction Action1  = (IWDAction)view.getAction("Openlink");
           link1.setOnAction(Action1);
           IWDFlowData linkdata1 = link1.createLayoutData(IWDFlowData.class);
           WDLayoutCellDesign rightpad = WDLayoutCellDesign.R_PAD;
           WDLayoutCellSeparator seperator = WDLayoutCellSeparator.LARGE;
           linkdata1.setCellDesign(rightpad);
           linkdata1.setVGutter(seperator);
    ///for adding description      
           IWDTextView text1 = (IWDTextView)view.createElement(IWDTextView.class);
           text1.setText("Testing");
           IWDFlowData textdata1 = text1.createLayoutData(IWDFlowData.class);
           textdata1.setCellDesign(rightpad);
           textdata1.setVGutter(seperator);
           MainContainer1.addChild(image);
           MainContainer1.addChild(link1);
           MainContainer1.addChild(text1);
           IWDGridData maincont1 = MainContainer1.createLayoutData(IWDGridData.class);
           maincont1.setPaddingLeft("10px");
           maincont1.setPaddingTop("20px");
    I found that this static way of adding rows is not the right way( Keeping in mind the future enhancements)
    So thought of trying it through table
    i have used IWDtable ...but the look does'nt meets the requirement at all(it has header....border..scrollbar..rows and colums are seperated by lines---> which are not needed)
    Could you please let me know is there a approach to do this?
    Thanks & Regards
    Swetha
    Edited by: Swetha Nellore on Feb 18, 2009 12:32 PM
    Edited by: Swetha Nellore on Feb 18, 2009 12:33 PM
    Edited by: Swetha Nellore on Feb 18, 2009 12:34 PM

  • Fetch Data from BI system and populate a Table in webdynpro

    Hi,
    I have to fetch the data from BI system into a model and populate the Table.
    The data resides in BI system. I am creating model from adaptive RFC and the function module is RRW3_GET_QUERY_VIEW_DATA. This is the max information i have got to execute the query
    Infoprovider ZM_SC_GR
    Query T_SUPGR003
    Variable: Vendor Number
    VAR_NAME_1 SPRPVEN
    VAR_OPERATOR_1 EQ
    VAR_VALUE_LOW_EXT_1 Value
    VAR_VALUE_HIGH_EXT_1
    VAR_SIGN_2 I
    Variable: Purchasing Group
    VAR_NAME_2 CSMPGRP
    VAR_OPERATOR_2 EQ
    VAR_VALUE_LOW_EXT_2 Value
    VAR_VALUE_HIGH_EXT_2
    VAR_SIGN_2 I
    Variable: Calendar Day Range
    VAR_NAME_3 SPGRDT01
    VAR_OPERATOR_3 BT
    VAR_VALUE_LOW_EXT_3 Value1
    VAR_VALUE_HIGH_EXT_3 Value2
    VAR_SIGN_3 I
    I am not able to understand which parameters of the model I should map for context mapping to map cotroller with model.
    Thanks and Regards,
    Pankaj

    after you imported Rrw3_Get_Query_View_Data function as adaptive rfc model in your component and mapped its node controller context Rrw3_Get_Query_View_Data_Input model to your controller context do the following:
    i.e.
    Rrw3_Get_Query_View_Data_Input model = new Rrw3_Get_Query_View_Data_Input();
    model.setI_Infoprovider("0FIA_MDS2");
    model.setI_Query("FIA_MDS2_Q0005MP");
    wdContext.nodeGetQueryView().bind(model);
    W3Query paramElement1 = new W3Query();
    paramElement1.setName("VAR_NAME_1");
    paramElement1.setValue("0P_CSDAT");
    W3Query paramElement2 = new W3Query();
    paramElement2.setName("VAR_OPERATOR_1");
    paramElement2.setValue("LE");
    W3Query paramElement3 = new W3Query();
    paramElement3.setName("VAR_VALUE_EXT_1");
    paramElement3.setValue(cdate);
    W3Query paramElement5 = new W3Query();
    paramElement5.setName("VAR_NAME_2");
    paramElement5.setValue("0S_CCTR");
    W3Query paramElement6 = new W3Query();
    paramElement6.setName("VAR_OPERATOR_2");
    paramElement6.setValue("EQ");
    W3Query paramElement7 = new W3Query();
    paramElement7.setName("VAR_VALUE_LOW_EXT_2");
    paramElement7.setValue(mvz);
    W3Query paramElement8 = new W3Query();
    paramElement8.setName("VAR_VALUE_HIGH_EXT_2");
    paramElement8.setValue(mvz);
    W3Query paramElement9 = new W3Query();
    paramElement9.setName("VAR_SIGN_2");
    paramElement9.setValue("1");
    model.addI_T_Parameter(paramElement1);
    model.addI_T_Parameter(paramElement2);
    model.addI_T_Parameter(paramElement3);
    model.addI_T_Parameter(paramElement5);
    model.addI_T_Parameter(paramElement6);
    model.addI_T_Parameter(paramElement7);
    model.addI_T_Parameter(paramElement8);
    model.addI_T_Parameter(paramElement9);
    then execute
    wdContext.currentGetQueryViewElement().modelObject().execute();
    and invalidate output node
    and then you get the data from r3 system.
    then you should correctly parse output node and read the data from E_Axis_Data node E_Cell_Data node.

  • RE:Creating  Table in Webdynpro Java

    Dear all,
    We are creating a medical claim in which we have to enter multiple values as input into a table.We have created a function module and imported  into model,binding to context is done .
    We are have to things in the application
    1.cltyp(dropdown box)
    2. Table
    i am writing  the following code to initilize the dropdown as
    input.setCltyp(wdContext.currentZhrg_Ep_Med_InputElement().getCltyp());
    but when we are trying to initilize the table its giving as error.
    we are not able to give inputs as the table is in disable mode.
    Please treat as Urget and reply asap
    ravi.s

    hi Ravi,
    I was faced the same problem previously, the solution for this problem is
    1. first check the Cardinality of context binding
    2. and then check the Object intialization(like create object for that particular BAPI elements(root nodes and sub nodes) in COmponent controller init() mentod)
      for Example find out the below code:
       "   Bapi_Catimesheetmgr_Insert_Input in = new  Bapi_Catimesheetmgr_Insert_Input();
    wdContext.nodeBapi_Catimesheetmgr_Insert_Input().bind(in);
    in.addCatsrecords_In(new Bapicats1());  "
    in the above code
    Bapi_Catimesheetmgr_Insert_Input  is root node and sub node is "Catsrecords_In is a sructure for the Bapicats1".
    then only ur table will be in enable mode.
    try above code once using ur BAPIs
    I hope it will helpful to u
    "Please award points for helpful answers"
    Thanks
    Anu

  • Table in Webdynpro java

    Hi All,
    How to insert data into table and store it with out backend access. Please help me out with any sample documents.
    Thanking you,
    jyothi.

    You probably need to store data in local j2ee database. keywords: jdbc, data-source-aliases.xml. Optional : jdo, hibernate. I would suggest javabean model + jdo.

  • Can we access PI tables from WebDynpro Java via PI 7.1 to display inPortal?

    Hi Experts
    Is it possible to fetch PI Tables (to display monitoring and alerts as dashboard on portal) from Java Stack. I got some javadocs API SAP Netweaver for PI 7.1 but i don't know how far it can help me in solving my purpose of fetching and displaying the PI monitoring data on Portal.
    https://www.sdn.sap.com/irj/sdn/javadocs
    Please advise if J2EE access to PI Tables is possible or RFC is the suggested solution to fetch PI Monitoring data.
    Thanks
    Neha

    Hi
    For that tables any if RFC are created if created it's possible with WD for Java technology.
    Suggestable is backend is R/3 right, advisable is use all SAP standard tech
    Regards
    -SS
    Edited by: Sridhar S on Apr 14, 2009 11:12 AM

  • Nested table in webdynpro java

    Hi Experts,
    I have a requirement where i need to display nested table. I am using NWDS 7.0.14.
    Is it possible to design grouped rows?
    Thanks in advance,
    Vinay

    Hi Vinay,
    It is not possible in NWDS 7.0 to create nested tables.
    Thanks & Regards,
    Bhargava.

Maybe you are looking for

  • How do I install itunes with Windows 7?

    how do I install itunes with Windows 7?  I always get a Windows Installer error or administrator error __

  • Help to refine this query

    Query function: list out all case no, paid amout that occured for LAST 2 fiscal years for each owner at any given time plus separte sum column for each FY Question: I don't like my query with repetition ( what if we need last 10 years). Can you help

  • Finding the base tables of a database view

    Hi I have a database view like VIQMEL, VIQMSM .So how can i find the what are the base tables for these views. pls let me know kumar

  • Download accelerator woes

    I downloaded Download Accelerator Plus a while ago. Seeing as it was just a demo, I uninstalled it. Now when i'm using Camino (or any browser for that matter) if i try to download from certain sources such as mac software sites, mirrors or download.c

  • SXMB_ADM for setting Integration server configuration

    Hi, Default client 001 is set as integration server. Can anyone suggest whether it is recommened to use this 001 as integration server or we can use a new client say 200 as integration server. Thanks and Regards, Sailesh K