Table Control in web-dynpro for java

Hi SDN,
I was working on a web-dynpro application where I has to display a table control.
Here I am listing my Requirement.
1) A table with 7 columns are to be displayed.
2) 5 of the columns are Drop down list where  3 of the 5 drop downs have dependency of the pervious drop down selection.
3)other 2 columns are input box.
4)The list for the drop downs come from a bapi.
5)the user is to be allowed as many rows he can
6)when he clicks save button the values are to be stored using table of another bapi
Hi all, I have posted this earlier but no solution for this please help me in resolving this.
Thanks in advance.
Regards,
Sai krishna.

Hi Sai,
I have better solution, I will explain solution for your design and then I will explain new design.
<b>Solution to your problem</b>
How many values each drop down contains? If its not large, execute all drop downs in the beginning of the application and store them in HashMap with dependency key and value as the list of populated values.
- Create a top Node
<b>1) A table with 7 columns are to be displayed.</b>
Create 5 Value Nodes with simple type attributes under your topnode. Set singleton property for each of the node to false. And attach them to the Drop Downs. Populate the parent drop down and non dependent drop downs in the begining itself.
<b>2) 5 of the columns are Drop down list where 3 of the 5 drop downs have dependency of the pervious drop down selection.</b>
Attach onSelect events and based on the current selection of the values, check your pre populated HashMap and fill the node with new values.
<b>3)other 2 columns are input box.</b>
This is normal, create two nodes with simple types under Top Node.
<b>4)The list for the drop downs come from a bapi.</b>
As mentioned previously all these values are pre populated. so you need not to call the BAPI for each request.
<b>5)the user is to be allowed as many rows he can</b>
Provide  Add,Delete buttons which dynamically creates rows which means your context elements.
<b>6)when he clicks save button the values are to be stored using table of another bapi</b>
Read the values from nodes and send it to other BAPI.
<b>New Design</b>
As per your requirement create a form with 5 drop downs and 2 input fields( for dependency you can use the logic mentioned in the previous design). Provide Add,Delete and Update Buttons under the form. And also create a Result table with 7 columns with simple attribute types. Once user enters some values in the form and clicks on Add button then add a new value to the Bottom result table which doesn't have any drop downs. When user needs to update any row on selection of the row populate the values back to the form, then user clicks on update button. Same logic applies to delete also.
Regards
Abhilash

Similar Messages

  • Creating a purchase order in web dynpro for java.........

    hello all,
    i am new to web dynpro for java.i have already done an application
    "Creating a Web Dynpro Application Accessing ABAP Functions" this application
    have good document on sdn.
    this application is working fine .
    Now i got an requiremnt for creating a purchase order in web dynpro for java.
    in normal report when i call  the bapi the parameter are the header, headerx,item, itemx is an internal table.
    CALL FUNCTION 'BAPI_PO_CREATE1'
      EXPORTING
        POHEADER                     = HEADER
        POHEADERX                    = HEADERX
      POADDRVENDOR                 =
      TESTRUN                      =
    IMPORTING
      EXPPURCHASEORDER             =
      EXPHEADER                    =
      EXPPOEXPIMPHEADER            =
    TABLES
       RETURN                       = RETURN
       POITEM                       = ITEM
       POITEMX                      = ITEMX.
    i just want to know how can i fill these internal table in web dynpro
    for java to create an application accessing "Bapi_po_create" .
    Thanks

    Hi Gopal,
    I'm not sure what is your issue, it seems you're not really understanding how the Model structure works in WDP.
    I'll assume few things here, like you know how to Import the Model into the WDP, and you know a little bit about what Java Classes will represent this Model in the Project.
    Try these steps:
    1. Import your Model into the Project;
    2. Open your Component Modeler, create a Data Link between your Model / Component (Or Custom Controller, as you prefer)
      - You can also use the "Apply Template -> Service Controler"
    3. Map the Input of your Model as the Main Node, check the Input Tables (you prob. will have two, POITEM = ITEM - POITEMX = ITEMX)
    4. Also, check the Return box, since this is BAPI return (You can use to display Backend messages)
    Now you have the Model mapped into your Controller, you need to develop the Java function to execute it.
    1. Create a new Input class, like
    BAPI_PO_CREATE1_Input purchaseOrderCreateInput = new BAPI_PO_CREATE1_Input();
    2. Bind your Input Node, in the Controller, with your Input Class;
    wdContext.nodeBAPI_PO_CREATE1().bind(purchaseOrderCreateInput);
    3. Set any Import parameters you need:
    purchaseOrderCreateInput.setEXPPURCHASEORDER(XXXX);
    4. To Add references to the Table, you will perform something like:
    First, you need to know what "Structure" you need to add (POItem Structure) - You have a Java class that represents that Structure..
    POITEM_Element poItemElement = new POITEM_Element();
    poItemElement.setPROPERTY();   /// Set your Properties
    purchaseOrderCreateInput.getPOITEM().add(poItemElement);
    5. Execute your Input,
    purchaseOrderCreateInput .execute();
    Hope it helps,
    Regards,
    Daniel

  • Can I Design a Forum with using web dynpro for java?

    Hi All:
        Can i design a forum with using web dynpro for java?
        I want to design an application like a simple forum which maybe has many replies.So if i use
    the UI technology "web dynpro for java", i will to create UI elements dynamically.How can i control this
    dynamical UI elements to keep layout ?

    Hi,
    yes you can do that....
    for exaple if you observe SDN...
    you can imagine like....
    A big Transparent Container(TC)....
    Inside that number of other TCs(depending upon the question nd its replies...)....
    In side each TC, again around 9 UIElements....
    one for menioning what is the question/reply?
    other for your description of question/reply...
    other for your name,
    displaing your fourm point... etc...
    So it will be
    for(loop till your (Question+No of replies))
    Create Transparent Container....
    Add Childs to the Container...
    Decide your layout....
    In case if you want to know how to create UIElements dynamically....
    http://help.sap.com/saphelp_nw04/helpdata/en/4f/07cf3dd28b5610e10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/dynamic%2bui%2bgeneration
    Regards,
    Srinivas.
    Regards,
    Srinivas.

  • Creating Sales Order using Web Dynpro for java

    Hi SDN,
    I am new to Web Dynpro for java. I have developed an application for creating a sales order using adaptive RFC Model using BAPI. It's working fine when i create a single order. I wanna create SO with more than one line item. I have used the Table UI Element to do so. But i could not able to enter the 2nd item details. Please suggest me how to pass more than one line item from the Table UI element.
    Thanks in advance.
    Regards,
    Basha

    Hi Basha,
    Do you need to display the header items and detailed items?
    If the BAPI Contains Output values in R/3 side.
    I mean to say if BAPI  contains 4 line items.u can get thru wdjava the followinf way.
    1. Create webdynpro application.
    2.Import the model.
    3.Create Customcontroller and model binding .
    4. Write the execute method in controller.
      BAPI b = new BAPI();
      WdContext.node<BAPI>.bind(b);
       give inputs for BAPI
    b.setname(" ");
    b.setno("");
    wdContext.currentBAPI().modelObejet().execute();
    wdContext.node<output>.invalidate(); in try catch
    5. create view or when u give the dynpro application its
    in the add custom to view and drag BAPI custom to view .
    6.Crete UI for ur table thru insertTemplate table directly mapp the  output values.
    7. deploy and run
    U can get the out line items .
    Or any thing else post ur requirement.
    Thanks
    Lohi

  • Best practice for Web Dynpro for Java to connect to SAP HR

    What is best way to connect Web Dynpro for Java application deployed in SAP portal to connect to SAP HR ?
    Is it good practice to connect to underlying SAP database ( eg oracle) directly to get the data or is there a better way ?
    This below article describes to connect to external DB, however Is there any other way for  SAP HR ?
    http://wiki.sdn.sap.com/wiki/display/WDJava/WebDynproApplciationwithDatabaseMS+Access

    Hi,
    There are 2 supported ways :
    First is  to use JCO connections to call abap RFC enabled function modules. (BAPIs for example)
    Second is to call SOAP web services (HR enterprise services for example)
    You should never access directly database tables...
    Regards,
    Olivier

  • About ALV in Web dynpro for Java

    hi everybody:
    Web dynpro for Java didn't support ALV, i don't know whether it have some UI or other  like  ALV
    if it have ,please tell me,
    thank you verymuch!
    Best Regards _

    HI guys:
    I have a problem. I want to delete a data form table,ues RFC fuction
    (ex: Bapi_Delete_Travel_Expense_Input) 
    the model need three mandatory parameter ,"number","tripnumber","framedata".
    my code:
    deleteNode.bind(deleteElement);
         deleteElement.setnumber("28002");
         deleteElement.setTripnumber("100041");
    but the "framedata" is a structure ,is node ,not a attribute.
    I don't know how to write the code. Please give me some suggest
    Best Regard
    Yan

  • Invoke Workflow from Web Dynpro for Java Application

    I am working on a custom web dynpro for java application and when the user clicks the submit button the SAP standard workflow (WS50000041) should be invoked. Does anyone have experience they can share with me on how to achieve this functionality? It should also be able to attach an adobe form or read data from the form and submit the data as xml.
    Thanks,
    Ashley

    Hi Ashley,
    Use following code in RFC to invoke your workflow -
    DATA : w_subrc TYPE sy-subrc,
                w_wi_id LIKE swwwihead-wi_id.
    CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
            EXPORTING
              task                      = ' WORKFLOW - WSxxxxxx '
              language                  = sy-langu
              do_commit                 = 'X'
            IMPORTING
              return_code               = w_subrc
              workitem_id               = w_wi_id
            TABLES
              input_container           = it_container
              message_lines             = lv_swr_messag
          COMMIT WORK.
    With this code your workflow will get start. But u have to use workflow id in next application also in which your request is getting navigated. In that application you have to take this workflow ID and have to pass again in workflow using - PortalNavigation statements.
    After that this workflow will get start to publish in your TaskList (My Task) in Portal. Remeber that your all task should be maintained in workflow table by using SWFVISU  transaction.
    After that go to Portal and Re-Register your UWL so that your new Workflow ID will get usable in portal.
    With this way you would be able to use workflow with Web Dynpro Java using UWL and Workflow.
    Regards,
    Roshan Gupta

  • Notification Service in Web Dynpro for Java?

    Hello Experts,
    I'm new on the topic "web dynpro for java" and have a question about a real-time-notification of web dynpro clients.
    In web dynpro for abap ther is apparently a new solution called "Notification Service" (since NW 7.0 Ehp2).
    Details: http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/f0802995-3433-2c10-2787-d7db51352891&overridelayout=true
    But I found no hints how to solve the problem of a real-time notification in web dynpro for java.
    Requirements for short: The server can trigger a refresh in one or more web dynpro clients.
    Requirements a liitle more extended:
    1. A web dynpro is running in a browser and shows data it gets from a DataBase table1
    2. Now a function module1 is started by an event and changes the data in table1 on the server side, the web dynpro does not know about this event or the changes made by external components.
    3. These changed data should be visible immediately in the running web dynpro after the event occurd --> trigger a refresh of the web dynpro from the function module1?
    All I actually know is that: The web dynpro can update its context with the new data from table1 after a refresh of the gui (wddomodifiyview). Using a timed trigger I can get new data after x seconds (same way --> context update and gui refresh). Is there another way to refresh the web dynpro (that noticed requirements of #3) ?
    Regards,
    Anja Hormann

    I recommend that you create another Web Dynpro application with this Timer to execute an RFC. This application would be in a Web Dynpro iView hidden from your SAP EP and shoot an event that would be captured by another application.
    However I would take great care with this type of application.
    And to answer your question at the moment, to my knowledge, there is no solution for this kind of integration between the ABAP and JAVA.
    regards,
    Angelo

  • In Web DYnpro for java there is any Configuration controller?

    Hi,
    Experts,
    I am having a confusion that is there any "Configuration Controller" present in Web dynpro for java.Where as i know that it is present in Web dynpro for abap could u please pass some idea on it.And how can identify the type of component in metadata files.
    Thanks in advance,
    Shabeer Ahmed.

    Hi,
    you have Configuration Controller that we can call it as CC in Webdynpro application which developed using FPM that is Floor Plan Manager, which is used as part of developing the ESS and MSS business package.
    The configuration Component is used to difine all the View Navigations and Road Map steps and define prespectives, and Vac's, Events for navigation from one view to another view.
    go through this link u came to know abt FPM
    http://help.sap.com/saphelp_erp2005/helpdata/en/43/3b8e8cb4ab1800e10000000a1553f6/frameset.htm
    Cheers,
    Apparao.

  • External jars in Web Dynpro for Java CE 7.1.1

    Hi there,
    Can you give me some guidance for including external jars in Web Dynpro for Java (CE 7.1.1)?
    I vainly tried for some hours now to get my external jars running in the new version of web dynpro (part fo Composition Environment 7.1.1).
    The routines described in some other threads didn't help me. For example, in CE 7.1.1 there's no DC Metadata that would allow me to add an external library.
    FYI, in the error message during build it simply says the package is not found.
    My error is javac ERROR: D:\test.jdi\LocalDevelopment\DCs\demo.sap.com\retail\_comp\src\packages\com\sap\demo\retail\javafiles\DomParser.java:12: package com.sap.semprom.retail.sc does not exist
    javac ERROR: import com.sap.semprom.retail.sc.BoundEvent;
    Thx in advance!
    Holger

    See http://help.sap.com/saphelp_nwce10/helpdata/en/d7/fc139ba1549047a5372ad3c0d540ea/frameset.htm
    under "External library".
    Armin

  • Hardware requirement for Web Dynpro for JAVA

    Hi Friends,
                    I am a  starter in Web Dynpro for JAVA and about to develop web dynpro application in JAVA.Can anyone please guide me on the hardware requirement for this application of SAP?
           Presently I have ECC 5.0 installed in 1 GB RAM using 160 GB harddisk.
    Regards
    Ashish.

    Hi Ashish,
    If you want to install NWDS only then as said 1g.b is sufficient.
    But if it's Personal System then you have to install Portal also( WAS).
    You will require minimum of 2g.b of RAM and 120g.b of hard disk.
    regards
    Anil

  • DM152 - Creating Interactive Forms in Web Dynpro for Java

    Hi,
    I'm looking for the "initial" Web Dynpro project used in "DM152 - Creating Interactive Forms in Web Dynpro for Java". Does anyone know where I can get this zip file?
    Thanks in advance,
    Geraldo.
    [email protected]

    Hi Geraldo,
    Refer the forum and ask Abdul or Ken to send the code
    /thread/24464 [original link is broken]
    Regards,
    Santhosh.C

  • How to read a comma separated file in web dynpro for java?

    Hi,
    I am new to web dynpro for java, i am trying to develop an application where i am uploading file which is a comma separated file i need to read the content of it and then call an rfc  pass those values to it. i have created the ui for the afforesaid.
    How do i read the content and call the RFC please help
    Thanks

    Hi Anumeha,
    Perhaps your question can be answered in the Web Dynpro Java .
    Thank you.
    Regards,
       Jan

  • Catching errors in Web Dynpro for Java when thrown from RFC Raise Exception

    Hello Developers,
    I'm looking for information that explains how a Web Dynpro for Java application responds and processes errors that are thrown from a Raise Exception event within an RFC.
    The Exceptions do not appear to be part of the Model and I can't identify how they get processed.
    When rfc HRXSS_CAT_WD_RECORD raises exception PERNR_NOT_LOCKED this exception is passed back to the calling webdynpro CAT DC that displays the exception on the web page along with the log. 
    I would like to display a friendlier message and without the log.  Any information on how to customize the handling of this error would be greatly appreciated.
    Thank you,
    Terry

    [see here|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fuser-interface-technology%2fwdJava%2FHowtoHandleExceptionsEffectivelyWhileWorkingwithWebDynproJava%28WDJ%29.pdf]

  • How do we scan for viruses of uploaded excel file in Web Dynpro for JAVA

    Hi All,
    Please let me know "How do we scan for viruses of uploaded excel file in Web Dynpro for JAVA"
    Regards,
    Ganga.

    Hi ,
    pl go through this note "Integrating a virus scan into SAP applications 817623 "
    SAP Virus Scan Interface
    http://help.sap.com/saphelp_nw2004s/helpdata/en/30/42c13a38b44d5e8d1b140794e8e850/frameset.htm
    Sample Application
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6e1c4221-0901-0010-63ba-b1f9459d6e74
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f2681486-0a01-0010-8497-c778eac80da5
    Regards
    Ayyappparaj

Maybe you are looking for

  • Getting values from a multi check box

    I have a multi record block with on text item and check box... I ned to get the value when i click the checkbox to fetch the data from teh sql query.. For eg; I have a multi record block with the values as A,B,C,D,E and if i check the checkbox for te

  • Multiple itunes libraries on same computer and removable hard drives

    I have multiple itunes libraries, one resides on my internal hard drive on my computer and the other on a removable hard drive that I pug into the ocmputer via a USB cable, can itunes recognize both libraries at once, and how do I get it to do that?

  • Yoga 2 Pro HDMI - no audio on tv

    Yoga 2 Pro  Win 8.1 Mini HDMI to HDMI adapter - to an HDMI cable - to the tv. Video: displays fine Audio: only on the Yoga Right-click the speaker icon...Playback devices...two items listed: 1. Speakers (Conexant SmartAudio HD) - Marked as default 2.

  • Profit & Loss Query in oracle R12

    hi Anybody know that how to get profit and loss in oracle apps R12 and if any person have the Profit & Loss Query, so plz send me query. Thanks Zulqarnain

  • Posting VAT only invoices

    Hi Experts, Please help me post VAT only invoices. I would like to post the invoices only with VAT amount and to see the same in VAT report. Can anybody has come across these type of situations, if then please help me. Regards