Save Web Dynpro Data

Hi everyone,
I am working on implementing a GP process in which one of the requirements involves the user being able to save data entered in a Web Dynpro form before moving onto the next action in the process.  Basically, the user requires the ability to launch the process, fill in some data and save the data without completing the process step (i.e., the request is in a 'draft' mode).  That way, the user can close the task for an indefinite amount of time, launch it again in the future, and the data entered beforehand will be displayed.  I am  aware that I can persist the data out to an external table, but I was wondering if there is an easier way (i.e., maybe save it in the process context where it can loaded from when the user launches the task again.)  Right now, I am using NW04s SP09 with Web Dynpro development components implementing the GP interface.
Thanks,
Greg

Greg,
You can save your data as an entity object using CAF Core. It will persist the data in the CAF layer. Once saved, you can use it on any subsequent GP steps.
Thanx,
Mahesh

Similar Messages

  • How to run sql scripts using batch file for a web dynpro data dictionary

    Hi,
    I want to develop a sql script to be executed on the server alongwith the installation of a product to pre-populate web dynpro data dictionary tables required for the application.
    I further require to make the scripts independent of the database name,so that it can be run at any client environment.
    Your help will be appreciated and rewarded.

    See shoblock's answer
    call sql script from unix
    masterfile.sql:
    @file1 &1
    @file2 &2
    @file3 &3
    @file4 &4
    then just call the master script:
    sqlplus userid/password @masterfile <p1> <p2> <p3> <p4>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • EJB Web Dynpro  - Data Persistence

    What is the recommended way for connecting to oracle database and adding business logic to web dynpro application.?
    We were researching on the CMP entity bean but found that CMP entity bean in SAP netweaver can be
    configured only to connect to the default database. Its too difficult for my consious to digest why anyone will connect only to the default portal database. Is there any way that we could work on CMP entity beans and connect to an external datasource in EP 7.0 ?
    Your valuable feedbacks would be highly appreciated...

    unlike others, I dont think it should be an issue in connecting to an external data base as long as you can telnet / ping to that db server from Portal.
    All you need to create is a JDBC datasource from portal to that database and use that datasource in your application.
    It should be pretty straight forward.
    Did you try this?
    The reason i know it should work is, i am working on MDM and from portal i create a datasource to connect to MDM database for one of the application provided by SAP and it is the standard procedure defined by SAP to create datasource and consume it.
    I just saw, yardon has provided links to help.sap on how to create datasource, so you should be good.
    Let me know if i need to explain more. I can guide you how to create datasource in Visual admin.
    Good Luck
    Regards,
    Nitin
    Edited by: Nitin Mahajan on May 1, 2009 6:50 PM
    Edited by: Nitin Mahajan on May 1, 2009 6:50 PM

  • Saving web dynpro data into a custom db tabl

    Hi experts,
                       Using editable alv i am editing alv fields , modified alv data is there in my internal table ( lt_contact).
                       How can i move internal table data to Z-table...
                     DATA: node_cont_dtls TYPE REF TO if_wd_context_node,
                                elem_cont_dtls TYPE REF TO if_wd_context_element,
                                lt_contact TYPE if_main=>elements_cont_dtls.
                               CHECK r_param->t_error_cells IS INITIAL.
                                node_cont_dtls = wd_context->get_child_node( name = `CONT_DTLS` ).
    get data from context node <NODE_FLIGHTTAB>
                              node_cont_dtls->get_static_attributes_table(
                                                                                    IMPORTING table = lt_contact ).
    Modified data is there in it_contact
                             modify table ZBAS_CONTACTS  from lt_contact TRANSPORTING name1.
                    Here when i am using above modify statement  it show in error
                       field  ZBAS_CONTACTS is unknown

    Hello Rakhi
    Use this statement
    MODIFY ZBAS_CONTACTS FROM TABLE lt_contact .
    Thanks and Regards
    Chaitanya.A

  • Converting Web dynpro date to SAP date type

    Hi
    I am using BAPI_FLIGHT_GETLIST to get list of flights but depending on some input criteria eg. on a particular date. I have written code upto this:
    Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input();
    wdContext.nodeBapi_Flight_Getlist_Input().bind(input);
    I wiil accept date from user.
    Now what to do ?
    Please help in the steps with code.
    Thanks
    Ananda

    Hi Ananda,
    While creating you Model for BAPI_FLIGHT_GETLIST, you must have got particular context nodes and attributes etc.
    You can map that Model context to your view context and in turn can map an "Inputfield" with the date attribute you want to take from user(Date picker control will come with the Inputfield at runtime). For this you dont need any coding.
    Then for submitting the request you may have a button. On the event of that execute the Model. It will work
    Hope this will help,
    Regards,
    Mausam

  • How to do date validation in Web Dynpro java

    Hi
    We have one requirement that One input field with date type is there.When we take Date type input field then in web dynpro Date navigater is appearing by default.Our requirement is if user enters the date manually in the input filed instead of chossing the date from the Date navigator then how we will do the following date validations manually:
    a. If user is entering the date in any format then it should convert it to dd.mm.yy format.
    b. How to do leap year validation?Suppose user is entering   29.02.20007 then it should display Invalid date.
    c. How to do the follwing date validation:
        Let's say that current running hours(Text Vie
    w) on a given engine is 100, entered on 10-Jun-2008(Running hour date-Text view)).
    -On 15-Jun-2008(New Running Hour Date-input field), I try to enter a value of 300 hours(New running hour-input field).
    -This is impossible, because only 5x24=120 hrs has passed from the previous update.
    -Hence, in this case the maximum value I can enter is 100+120=220.
    Can anybody help me in solving the above 3 date validation?

    Hi Susmita,
    For your 3 rd requirement...
    Initially you will be storing the first date entered by the user right???
    Say that date is D1. and user entered hours is H1.
    now after some days at day D2 user again trying to enter some hours say H2. Now you have to restrict user from entering hours which are
    greater than 24*D2-D1....
    so now you have to get D2-D1....
    For this....
    long l1=youdate1.getTime();   // This will convert your Date D1 into long...
    then,
    Date d=new Date(System.currentTimeMillis());
    long l2=d.getTime();  //which is a long value of current date...
    So Now l2-l1 will give you number of days between past date and today's date...
    So On Save you check for
    if((l2-l1)*24<(H2-H1))
    message("Please enter valied number of hours");
    Hope this will help you....
    Regards,
    Srinivas.

  • Dropdown List Web dynpro Abap

    Hi All
    I am new to adobe forms.  I am having a problem with populating drop down list box on an adobe interactive form.  I have gone through this forum and I have tried a number of different things but nothing seems to work.
    When I run my web dynpro application the drop down looks like an input box.  There is no down arrow icon on the side.
    I check note 981638.  It states it can't be implemented.
    I am on CRM 2007 NW7 platform.
    I created an interface with an importing value called it_dropdown.  this is a table.
    I created a form that uses this interface.
    i placed a drop down list on the form layout.  In the dynamic options i click list items.  I get a popup.
    In the bindings I bind to the table... $record.IT_DROPDOWN.DATA[*]
    The text and value are bound to corresponding fields on the internal table.
    I created a webdynpro
    I created a view.
    I poped an interactive form ui elemnt on the view.
    I generated the context.
    I checked the cardinality of the node for the internal table and it is 0..n
    In my doinit method I have the following code.
      data: lr_form_node type REF TO if_wd_context_node.
      data: lr_dd  type REF TO if_wd_context_node.
      data: lt_dropdown  type WDR_CONTEXT_ATTR_VALUE_LIST,
               wa like line of lt_dropdown.
      do 20 times.
        wa-value = sy-index.
        concatenate 'Test' wa-value into wa-text SEPARATED BY space.
        insert wa into table lt_dropdown.
      enddo.
    lr_form_node = wd_context->get_child_node( wd_this->wdctx_zfp_example_01 ).
    lr_dd = lr_form_node->get_child_node( wd_this->wdctx_it_dropdown ).
      lr_imp->bind_table( lt_dropdown ).
    The adobe form displays but the drop down is not populated.
    I have tried a normal drop down and webdynpro enumerated drop downs.
    Can someone please point out what I am doing wrong.
    Thanks
    Darren

    Hi Sachin
    Here is exactly what I did.
    1. Create a web dynpro application.
    2. Crate a view
    3. On the context create a node called data_source or whatever you want.  The cardinality is 1.1.
    4. Create an attriubute on the data_source note.  I called mine 'DDOWN' and created it as a string.
    5. Pop an interactive form element on your view.
    6. In the Template Source, give the name of your adobe form.  This part was the vital bit for me as I was using a database interface originally and I think that this was my problem.  If you already have a form created that does not use xml, I would advise you to create a new temporary adobe form by putting the name in the template source and double clicking it.
    7. You will get a popup stating asking you to create an interface.  You will see a button called "context" click this and follow the steps.
    8. When you get to your form you will see the drop down context node in the data hierarchy.  Drop a drop down list on your form and then drag and drop your context node onto it.  Make sure your forms layout is ZCI. Save the form.
    9 Return to your web dynpro app.  You will see that the datasource has been updated. 
    10.  I used the following code in the doinit method of the web dynpro.
      data: lr_context_node type ref to if_wd_context_node.
      data: lt_dd type wdr_context_attr_value_list.
      DATA: node_info TYPE REF TO if_wd_context_node_info.
      data: wa like line of lt_dd.
      do 20 times.
        wa-value = sy-index.
        concatenate 'Test' wa-value into wa-text SEPARATED BY space.
        insert wa into table lt_dd.
      enddo.
      lr_context_node = wd_context->get_child_node( name = 'ZDARREN1' ). "Template Source
      node_info = lr_context_node->get_node_info( ).
      node_info->set_attribute_value_set(
         name      = 'DDOWN'                                      "DDOWN is a node on the context
         value_set = lt_dd ).
    Activate and test.
    You should see a dropdown.
    I hope this helps as this is the approach that worked for me.

  • Web Dynpro Abap: Select-Options: Save Selection Data

    Hello,
    I am using select-options in web dynpro abap.  Need to add a feature where the user can save his selection values as a variant. 
    All I can think of is getting all the selection values and saving these into a Z table.
    Can you suggest a better way?
    Thank you.
    Irene

    Hi Irene,
    Alas, it's currently not possible. You could write your own wrapper though adding a save button. Inside of the action handler you could retrieve the range tables of all fields, convert their content to a structure you like and save it a fitting db table. My suggestion is to use XML and a DB table with a XSTRING field in the data section to store the range table values.
    Using personalization will allow you to customize your ui and to hide certain select option fields.
    Best regards,
    Thomas

  • Adobe form to save data using Web Dynpro ABAP

    Hi. I am pretty new to SAP world and trying to learn and work on a task given to me relate to
    creating Adobe offline form using Web Dynpro ABAP same time.
    I have several questions and hopefully, many gurus like you will provide answers.
    I noticed there are many examples creating and using Adobe interactive forms (though not many newer version),
    but I didn't see (at least I didn't find any) any detail example on saving data to an internal table (such as fixed assets, vendor master, etc)
    using interactive form. Is there any detail explanation/example on this?
    I have ask this question in another forum (before I found this forum) but didnu2019t get the answer yet.
    2. When I tried to see graphic layout and modify the layout from Web Dynpro, I can't see the graphic layout.
    All I see is text list of fields/buttons that I created, but can't see section for graphic layout where I can modify layout.
    I am sure I didn't install/configure something correctly.
    Anyone has any idea what I didn't do?
    I have another question, but I will wait till later after I figure out above ones first.
    Thanks for all your help in advance.
    John

    Hi John,
    In the WD4A view, there is a button "Show/Hide Layout Preview".
    Click on that button to be able to see the Layout.
    Note that this button is next to the Pretty Print button.
    regards,
    Reema.

  • RFC's to Save data in Travel Request in Web Dynpro

    Hi All,
        Can anybody help me to find the RFC to be used in Travel Request in Web Dynpro.
    Regards,
    Kamal Rawal
    [email protected]

    Hi,
    you can start maybe if you set the external breakpoint at function FITP_CREATE_TRIP_FROM_REQUEST which is processed when first saving a request!
    gerhard

  • Import Data from Office Control (Web Dynpro for ABAP) into internal-Table

    Hello,
    I have a question concerning the Office Control UI-Eelement in Web Dynpro for ABAP:
    How can I import spreadsheet data from the Office Control into  a internal-table?
    I have an Excel-sheet (without any data) which is shown initially in the Office Control. First the empty Excel-Sheet will be loaded and in the second step data from an alvxml-transformation will be loaded into the Excel-sheet with the method 'activatexmlsource'. This works so far. When I change the loaded data in the Office Control and save it it will be stored as XLS-File. The problem is that I'm not able to use existing Upload-FM because every function module I tried uses GUI-functions and WebDynpro has no GUI-functionality. I always get the error that data from clipboard cannot be imported.
    So now the question is:
    How can I import changed data from the Office control into a internal-table staying in Web Dynpro application?
    Please give some advice, if you have some useful code or ideas.
    Thanks
    ram
    Edited by: Ramakullay Challa on Sep 24, 2009 9:05 AM
    Edited by: Ramakullay Challa on Sep 24, 2009 9:07 AM

    Hi,
    Once you save to desktop again you have made some changes to that file, this file you want to upload it right.
    Then in that case you need to use the FILEUPLOAD UI element right.
    Regards,
    Lekha.

  • Data node mapped to  Adobe Form empty - Web Dynpro ABAP

    Hi,
    I've created a web dynpro component in ABAP. One of the view contains an interactive Adobe form.
    Form properties : Data source and pdf source are mapped
    Enabled checked
    Submit action mapped to a method. This method reads the node mapped to the form.
    Form Layout: Used ZCI Layout and Inserted web dynpro script (XML interface)
    Dragged attributes from data view to create text fields.
    Submit button used from Web dynpro native group
    I could not read data from the form.
    When I submit the form, data is not captured in the context.
    I have used the same context for view and could save the data from the view. But from the adobe form, I cannot read the data.
    Is there anything I missed. I have been on this since 2 days with no solution. I dont see any mistake but the form doesnt work.
    Version: Adobe Designer : 8.1 (from market place)
    SAP Netweaver 2004s SP18
    Any help on this is appreciated.
    P.S. Used all possible help from SDN existing posts and SAP notes.
    Thanks in advance,
    Srinivas

    Hi Srinivas,
    place a button on webdynpro view it self then try.
    make sure your form is working in interactive mode.
    else keep this conde in modifyview method.
    method WDDOMODIFYVIEW.
    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(u2018<<ID_OF_YOUR_UIELEMENT>>u2019).
    LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
    LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
    endmethod.
    or try these links
    For More Information look at the link below.
    http://help.sap.com/saphelp_nw70/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm
    Please look into SAP Notes: 1229392
    You can also look at the elearning below:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/c766e918-0b01-0010-99b1-c2b78cd059b3
    Regards,
    Mahesh

  • How can I set the data binding between Web Dynpro & Database table

    Dear friend,
    I am a beginner of Web Dynpro. I want to develop my simple project like these:
    1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
    2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
    For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
    1. How can I set the data binding between Web Dynpro and Database table ?
    2.  Are there any nescessary steps that I will concern for this case?
    Sorry if my question is simple, I had try  to find solution myself, but it not found
    Thanks in advances,
    SeMs

    Hi,
    You can write your own connection class for establishing the connection with DB.
    Ex:
    public class  ConnectionClass {
    static Connection con = null;
    public static Connection getConnection() {
    try{
    Context ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
    con = ds.getConnection();
    return con;
    }catch(Exception e){
    return null;
    You can place the above class file in src folder and you can use this class in webdynpro.
    You can have another UserInfo class for reading and writing the data into the DB .
    Regards, Anilkumar
    PS : Refer
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
    Message was edited by: Anilkumar Vippagunta

  • Import Data from Office Control (Web Dynpro for ABAP) into SAP-Table

    Hello,
    I have a question concerning the Office Control UI-Eelement in Web Dynpro for ABAP:
    How can I import spreadsheet data from the Office Control in a SAP-table?
    I have an Excel-sheet (without any data) which is shown initially in the Office Control. First the empty Excel-Sheet will be loaded and in the second step data from an alvxml-transformation will be loaded into the Excel-sheet with the method 'activatexmlsource'. This works so far. When I change the loaded data in the Office Control and save it it will be stored as XLS-File. The problem is that I'm not able to use existing Upload-FM because every function module I tried uses GUI-functions and WebDynpro has no GUI-functionality. I always get the error that data from clipboard cannot be imported.
    So now the question is:
    How can I import changed data from the Office control into a SAP-table staying in Web Dynpro application?
    Please give some advice, if you have some useful code or ideas.
    Thanks in advance,
    Philipp
    Edited by: Philipp Hiebler on Feb 11, 2008 10:15 AM

    Hi,
    Once you save to desktop again you have made some changes to that file, this file you want to upload it right.
    Then in that case you need to use the FILEUPLOAD UI element right.
    Regards,
    Lekha.

  • Retriving data using web dynpro

    I want to make simple application whic stores data and retrive specified fields using web dynpro. can anyone provide tutorial link to do this

    Hi,
      The solution to this is very similar to the reports that we write.
    1. Create a context node from the dictionary element in the view of the webdynpro component.
    2. Now you may be displaying/editing this data in the form of a table in the view layout. For this create a table in the layout and bind the fields of the context to the node you created from the dictionary table in the context.
    3. In the layout you also want to have a button SAVE. on the event of this button. Write the code from code wizard where in
      a. Read the context of the dictionary table from the context.
      b. call method
    CALL METHOD lo_nd_group->get_elements
        RECEIVING
          set = lt_ddictable.
      c. update the database table using the internal table lt_ddictable.
    Hope you find this helpul.
    Regards,
    Kinshuk

Maybe you are looking for

  • External Hard Drive Mac/PC Partition

    Hello, I'm wondering if it's possible to partition my Maxtor One Touch hard drive, with a DOS partition and a OSX partition. I don't think it's possible with Disk Utility, does anybody know if there is another free application that would do this? I n

  • Displaying a radio group in SQL QUERY report region

    Good morning everyone, I have a report in which a column - ORDER STATUS, will come in with a value of 1, 2 or 3...being order unfilled, order partially filled, or order filled, respectively. I would like to display the order status as a radio group o

  • Thinkpad T420 GPU usage always shows 100% in Power Manager

    Did anyonce face the same problem before? Mine was a i7 2620M+HD3000 T420. When I open the power manager, I fount my CPU usage is around 30~40% and my GPU uasage is 100% stable... I didnt open any game when I open the power manager. Anyone know wheth

  • Missing return statement - Java noob here

    Hi to everyone! I'll just like to ask if anyone of you can check out my code and see why I can do to correct this 'Missing return statement' problem with my code. From what I've been noticing, the compiler returns this statement when the return state

  • Error print success message checksum content error: Action procesada.

    I have a problem with an application in the HTML DB that I am creating. the problem is: I create plicacion from each one of the tables, when trying to enter a registry in the application of concept, sends east error to me, but if it stores the regist