Persisting the post data while handling errors in STRUTS

hi,
Let me explain my situation.
I have an updation form.On click of the update button I am doing some validations in my Action class.In case of any error it will redirect back to the input page.
Now comes my problem.As I have told you,my form is an updation form.So it contains field already set with some values,a bean.When the error ,redirects control back to the input page,the newly enterd data,which has errors is not displayed and instead the old bean contents are resetted.
How to persist the newly entered data?
Any suggestions will be helpful,
thanks,
vysh

Hi David, could you help me to write this kind of routine? (Like ON-ERROR Oracle Forms)
I have tryed to follow a lot of examples published in this forum, but none of then are working properly.
In the URLs bellow you will see that a lot of people are looking for the same solution.
Re: Catching ORA errors in Validations
Error Trapping
Error Handling
Handling Oracle error messages
Re: Catching Unique constraint error.??
Re: how to get custom error mwssage
Re: showing oracle error ID
Thanks
Nilton
Message was edited by:
Nilton Maganha

Similar Messages

  • How to change the posting date in UD stock posting for a HU managed item?

    Hi,
    We are using Handling Unit managed items with QM activation. For a specific HU managed material, we wanted to post the stock on a previous date. We have created PO on a back date and made GR also on a back date. Now the problem is, the system has generated an inspection lot. Now while trying to do UD and stock posting, I do not see the "Doc" tab which we normally see in UD stock posting for normal inspection lots (non-HU managed items) for changing the date.
    I don't see any other way to change the posting date for the HU managed item in UD stock posting. Anyone can help please?
    Thanks & Regards,
    Madhavan Krishnamoorthy.

    I don't think you can.
    Craig

  • Unable to create a billing document , have to change the posting date

    Dear All,
                      I have performed the following steps:
                     1. I have created Customer
                     2. Created a material.
                     3. Linked the customer to the material
                     4. Post initial stock for the material.
                     5. Create a Sales/Order.
                     6. Displayed the sales order and recorded the scheduled delivery date.
                     7. Created the delivery for the sales order.
                     8. Transfer the stock from the warehouse management
                     9. And update the order.
    While updating the order I selected post goods issue and it would not go ahead because the posting date is not there in the posting period. Where do I change the posting date. I could not find it anywhere. I did not enter the date anywhere.
    Thank you,
    Sandhya

    Hello Sandhya
    Here is how MMPV works.
    Lets say I am at the end of the May month 05.31.2009 so lets say period corrresponding to this is 05/2009.
    Now if you want to post data in June perios 06/2009 should be opened.
    Here is what I will do in MMPV
    Enter my company code
    Instead of using periods I will use date which will be 06/01/2009 (mm/dd/yy format in my example)
    Check radio button check and close period
    Click on remaining checkboxes.
    Execute
    The effect of this will be that the previous periods will be closed and June will be opened.
    In your case since no one has opened periods after 2006 so may be you will have to repeat this step for each month until you reach current period if that is the one in which you want to post goods issue.
    Thanks
    Vikas

  • HttpServletRequest getReader read part of the post data

    Hi all,
    HttpServletRequest getReader read part of the post data (even though the conten length is bigger).
    It stops after 48k (49,152 bytes)
    int sizeOfBuffer = 100;
    char[] cbuf = new char[sizeOfBuffer];
    StringBuffer inputBuffer = new StringBuffer();
    BufferedReader reader = request.getReader();
    int chars = 0;
    while ((chars = reader.read(cbuf)) >= 0) {
    inputBuffer.append(cbuf, 0, chars);
    reader.close();
    inputBuffer includes parts of the data??
    Can anyone help me to know what is wrong??
    Thanks,
    Lior.

    Hi Jakub,
    Yes, you can query TDM files for samples with certain specifications.  Take a look at this Tutorial Introduction to LabVIEW Data Storage VIs.  The section on Query Conditions demonstrates how to look for select samples using the Data Storage express VIs. 
    I hope this is helpful.  Please post if you have further questions!
    Cheers,
    Megan B.
    Applications Engineer
    National Instruments

  • Tax Code removed on changing the posting Date in Purchase Order

    Dear All,
    This is with reference to the Purchase Order Document tax part, the document has been defined with the approval procedure and document series followed as annual series. The document series is linked to the period indicator as I am using the monthly series for the A/R & A/P Invoice.
    Now some Purchase Order was generated in the last month i.e. 30 NOV 07 which has gone for approval. These document are approved in the current month (Dec 07) & user are trying to add the records it displays the message as "Date deviates from permissible range [Purchase Order - Posting Date]  [Message 173-11]" as the period indicator is changed to Dec 07 in document numbering.
    The problem is when user changes the document date to Dec 07 for posting; system removes the tax codes, which is available in the document. Now as this is approved document user is not able to change or renter the tax codes.
    In this situation what can be done as the same case will again happen for the next month.
    Pls. provide the solution / work around for this problem.
    Regards,
    Yogesh Jadav

    hi yogesh,
    Cancel/Close the created purchase order.
    First you should change docduedate in posting period upto december 2007/end of fiscal year,by following the below path.
    (Administration->sytem intialization-> general settings--> posting period tab)
    Create a new purchase order.
    Send it for approval,authorizer can change date as required,
    once the posting date changes,tax code get refreshed,authorizer
    need to select tax code once again.
    <b>Tax code normally get refreshed when you change posting date it's normal
    system behaviour.</b>
    After authorizer does above changes,he can approve purchase order.
    Once purchase order is approved,orginator can add it as purchase order in draft stauts.
    <b>After approval we can not do any changes in purchase order.</b>
    Hope my solution will solve the problem.
    Thanks,
    With regards,
    A.Jeyakanthan

  • How to change the posting date of confirmations?

    Hi,
    In my company CATA is scheduled as a background job and uses some ABAP logic to set the correct posting date for the confirmations that are transferred to the PS module. As a result of a wrong date entry in the table which is used in the ABAP logic, all the confirmations (8572) that should have had posting date in February got posting dates in March.
    As far as I can see some of the options are:
    - Use CN48N and cancel one and one confirmation
    - Manually add 8572 confirmations with the correct amount of time, employee number, periode, posting date etc.
    Due to the amount of confirmations this procedure will be very time consuming.
    My questions is what is the best procedure to correct the posting date for 8572 confirmations with wrong posting date?
    Regards,
    Petter Kvalvik

    hi
    write a LSMW or BDC to cancel the confirmation and correct it by another LSMW or BDC program for correct date.

  • Control the Post Date  when use BAPI_OUTB_DELIVERY_CONFIRM_DEC to PGI !

    Dear all,
       How can I control the Post Date (WADAT_IST) when I use BAPI_OUTB_DELIVERY_CONFIRM_DEC to PGI?
    Thanks to help me.

    In ECC 6.0, I used this BAPI to perform the picking using this way:
    1. Implement enhancement point  BAPI_OUTB_DELIVERY_CONFIRM_D01 in enhancemnt spot ES_SAPLV50I to set the update picking flag on delivery control structure.
    GS_DLV_BAPI_CONTROL-UPDATE_PICKING = 'X'
    2. Implement enhancement of standard BADI SMOD_V50B0001. Use method EXIT_SAPLV50I_004 to loop at table CT_VBPOK and update the fields VBELN and POSNN with suitable values.
    There is one problem with this solution, though.  The delivery quantity cannot be updated.  Any increase in the delivery qty ITEM_DATA-DLV_QTY actually updates the picked quantity on the delivery.  Consequently, there is little practical use of this technique.
    John

  • Problem with the Posting Date of Goods Receipt or Invoice Receipt for PO

    Hi All,
    I am working on 2LIS_02_SCL - Purchasing Data (Schedule Line Level),
    For our report, we should get the scheduled PO quantity,actual PO qty, Scheduled date and actual date in the report.
    we are getting all these fields from the above extractor...
    For a PO which is opened (Delivery Completion indicator not set) - we where getting all field as in ECC(ME23N)
    But for a PO which is finished(Delivery completion indicator is set) - we where are getting actual GR qty,planned qty,planned or scheduled date at schedule line level.But we are not getting the Posting Date of Goods Receipt or Invoice Receipt for PO from history EKBE for all the schedule line.
    ex:
    for open PO
    PO num         item num   schedule line    Planned date   actual date  difference  actual qty  planned qty  difference
    450002432   10                        1              01/10/2011    02/10/2011       1 day          100             100             0
                                                     2              02/10/2011    04/10/2011       2 days        200             400            200
                                                     3              03/10/2011    07/10/2011       4 days         300            300              0
    For the same PO when it is Finished or completed(Delivery completion indicator is set)
    PO num         item num   schedule line    Planned date   actual date  difference  actual qty  planned qty  difference
    450002432   10                        1              01/10/2011    07/10/2011       6 day          100             100             0
                                                     2              02/10/2011    07/10/2011       5 days        200             400            200
                                                                    03/10/2011    07/10/2011       4 days         300            300              0
    for all the schedule line its displaying the last posting date(i think its taking from EKKO table)
    Is there any possibility to get that posting date history ....

    You can have multiple receipts against a PO schedule line, but this extractor is not meant to go to that level of granularity.  Please try to use 2lis_02_sgr instead which provides goods receipts per PO schedule line.

  • Issue with the Posting Date of the Purchase Order.

    Hi All,
    There are fields in BW like SSL1: Time OK, SSL2: Qty OK, SSL3: Time & Qty Ok, SSL4: Days Late (Routines are written to calculate). These fields will indicate whether the delivery against a GR is OK or not with respect to Time, Quantity and the No. of Days..
    But here the issue I am facing is
    If there is only1 delivery/ GR against a single item the calculation in BW are correct - i.e. for a particular PO if there is only one delivery the above fields like SSL1: Time Ok, SSL2: Qty OK will show like the delivery is done within the specified time and everything is OK (in case if it is delivered within the allotted time)
    But if there are multiple deliveries or multiple GR's  posted for one PO item, the calculations are going wrong i.e. even if the delivery is done well within the specified time it is showing the wrong calculations like it is delievered too late. Because in this case the earlier dates are overwritten.
    Can anyone throw me some light on how can I go about solving this issue.
    I am thinking of declaring the Posting Date as the KeyField of the DSO as of now it is a Data field  I also want to know the impact of assigning this as a Keyfield.
    Thanks in advance,
    Prasapbi

    Hi,
    As I understand, you have a DSO based on Purchase Order and your key field is PO and its line item. The problem as you stated will always be there if you have multiple deliveries/GRs created for a single line item because the system will overwrite the entries for same key.
    Problem with adding Posting date as keyfield will be that then your key will be PO-PO Lineitem-Date. When PO will be created, the Posting date will be blank(correct me here if I am wrong), therefore you will have one entry for same PO-line item combination. One without date and other with date, which again would be incorrect. If my assumption about Posting date was wrong, even then your data may not be correct because then you may have many entries with same posting date which again would overwrite each other.
    If there is any direct link between PO line item and number of deliveries that will get created for them, then you can bring that field in DSO as keyfield. But I don't think there is any such field.
    Looking at your report requirement, I would suggest that you make a DSO based on Goods Receipts and then calculate these keyfigures by comparing the dates between GR posting date and PO line item date.
    Else you can change the way your datasource works(if its generic one based on function module). Since your main requirement is to check whether the GR posting date has met your SLA or not, you should fetch all the details only when GR is created and make your key field as PO-PO Line item-GR

  • What G/L Accounts are Updated Accordingly when the Posting Date is Changed?

    We are on SAP 2007 PL15, and our new fiscal year started 1 July 2008. Beginning on 1 July, whenever we change the posting date on a marketing document to a date in June, the following message appears:
    Newly Entered Posting Date Relates to Another Posting Period. Do you want to update G/L accounts accordingly? [Yes]  [No]
    Does anyone know what G/L accounts would be "updated accordingly" based on Posting Date? We did not get any such message last year when we were on SAP 2005.
    Thank you,
    Mike

    Dear Mike,
    Make be the exchange rate difference acount or related.
    Wish it is useful for you .
    Regards
    Apple

  • How to change the posting date at the line item level in a sales order

    how to change the posting date at the line item level in a sales order

    Hi,
    I believe the POSTING DATE will appear on the accounting document
    In the Accounting document, the posting date will be based on the  Billing date.
    Please let me know if you need any more details
    santosh

  • In MIGO , How to restrict the user to change the posting date?

    Hi All,
    In MIGO , I want the user to restrict from change in posting date i.e. user should not be able to change the posting date. The system should take to-day date only as a posting date.
    Thanks in advance.
    GP

    Hi,
              check this MBCF0005.
    EXIT_SAPM07DR_001.
    BADI being <b>MB_MIGO_BADI.</b>
    <b>Reward points</b>
    Regads

  • BAPI to change the posting data of invoice document

    Hello All,
          I need a BAPI to change the posting date of the invoice document (Type : RE, Generated from MIRA transaction). Do let me know if you can across a BAPI to do it.
    Thanks,
    Siva.

    BAPI_INCOMINGINVOICE_CHANGE

  • Freezing out the posting date in mir7 and miro

    Dear Gurus
    We want to freez out the posting date in mir7 and miro? Hoe to do it?  Can it be done in MM or FICO ??
    Atul

    Hello,
    In MMPV transaction you can give the period which you want to open.For eg if you want to do miro postings til jan 2010 but not for feb 2010 you can opn til jan 2010 in MMPV transaction

  • How to Hide/show the columns data while doing Drill down or drill up

    Hi ,
    How to Hide/show the columns data while doing Drill down or drill up in webi report .
    Does it possible BO 3.1 version ?
    Please suggest me on this.
    Thanks & Regards
    Venkat

    While that is not there yet, you can make use of the show when empty yes/no in combination with alerters.
    So I have an alerter applied to every cell of the table.
    When a condition is true (say I drilled down) I just put = "" in every cell, emptying the table,
    because its now empty and doesn't need to show, it wont.
    For the detail table I use the opposite, so when you drilled down it becomes visible...
    Hope this helps all that do not have 40 yet
    Good luck,
    Marianne

Maybe you are looking for

  • Help me please... Airport

    I have a simple question... I have a iMac G5 with Built-in 54 Mbps AirPort Extreme Wi-Fi (802.11g), I have too, a new Nintendo Wii, I want my Wii to see Internet with my AirPort Extreme. It is possible??? Do I need to buy a Base Station (Extreme or E

  • Purchased GCU, but account doesn't reflect the purchase

    On December 22, 2013, my wife purchased Battlefield 4 (xbox one) and a 2-year subscription to GCU.  She used the coupon that we had previously received to get GCU for $30.  Her receipt reflected that she had purchased GCU, but said that it was $0.00

  • Numbers export to PDF looks horrible

    Was just editing a 1 page Mac OS X Numbers file on the iPad and wanted to share a PDF with a colleague. From the iPad, the page and graphs/charts now get split into many pages that look just horrible and are completely useless - simple graphs lit acr

  • Do not find download icon on your website

    maybe stupid but on the mac I can not find the download icon on your webpage

  • A confusing query

    Hi All, will this query result give an info about why my profit period is different in the report between balance sheet and profit and loss: SELECT distinct case when T0.transtype = 60 then 'Goods Issue' when T0.transtype = 59 then 'Goods Receipt' wh