Failed update is doing rollback, but not exiting.

Hi ,
I have written some update FM.I am doing this based on the records(1 to many) in the table parameter.
The requirement is,during the updation if any error happens,I need to rollback the work and need to stop the further processing.As of now,it is roll backing the work.
But it is going to the next line.I have used 'EXIT' statement in my pgm.
Please suggest me a solution.
Thanx,
Selva
Edited by: Julius Bussche on Dec 15, 2008 11:04 AM

Hi,
Let us assume there is a header and an Item table and that the header table is the check table for the item table.
So
lt_header type standard table of header_table,
lt_item     type standard table of item_table.
Assume all data is in and you are ready for updation.
insert header_table from tablelt_header.
if sy-subrc eq 0.
insert item_table from lt_item.
  if sy-subrc eq 0.
    commit work and wait.
  else.
   rollback work.
  perform issue_error_message_to_user.
else.
  perform issue_error_message_to_user.
  endif.
I have written this code in this reply only. Please use proper syntax as required. I just shared the concept i had in mind.Please Check and tell

Similar Messages

  • I have programmed iCal and Address book to sync via MobileMe. The info I type in iCal and Address Book on the MacBook Pro gets updated on the iPad, but not the other way around. Any hints?

    I have programmed iCal and Address book to sync via MobileMe. The info I type in iCal on the MacBook Pro get updated on the iPad, but not the other way around. Any hints?

    Levi G B ... Also found another thread by Davidfromsurfside on 10/14/11 0703A with the same problem. I responded on his thread "I have the same problem. IOS5 on iPad1, iPad2 and iPhone4S all with iCloud on. Lion 10.7.2 installed on my MacBookPro and iCloud set up/on. Any new iCal entry on either iPad or on the iPhone ends up via iCloud on both iPads and iPhone. BUT NOT ON THE MacBookPro. And iCal entry on the MacBookPro does NOT GET SENT to iCloud.com or to either iPad or the iPhone. This is a huge problem for me because I do all my office scheduling on the iPad or iPhone but rely on the MakeBookPro to print out daily client lists. I REALLY need to get this fixed...it is causing major business issues. " No one so far has had a fix....  :(

  • TS1814 i need to update my 3g phone but not progress it's one eror is 1611

    i need to update my 3g phone but not progress it's one eror is 1611

    Update to what? The 3G you want to update? You have ios3 or 4 on that 3G?
    Go to a friend, authorize that pc.
    Read this : http://support.apple.com/kb/ht1848
    and this : http://support.apple.com/kb/ht2519
    Make a backup of your stuff (from the phone. apps/photos/music/blabla). Update your phone. The phone will restore the backup automatically.

  • Flash MP3 Player shows update in other browser but NOT Safari

    Hi
    I am working with a Dreamweaver Document with Flash component inserted into the layout. One of the Flash Components is a MP3 player. The player is configured using javascript and refers to a file named "config.html"
    This file contains the actual mp3 information (name, title, location on server,etc).
    When this info is updated, the new songs "been here.mp3, etc." appear to be updated in other browsers but NOT Safari. Safari continues to read the original "config.html" instead of reading the new update version of "config.html.
    How can this happen, is there a phantom version of the original "config.html" that I do not see? How can I get it to load the new songs instead of the old ones? Is the problem within my Prefences?
    Thanks for your help!
    Her is the Link:
    http://www.ledisi.com/test2007/indextest.htm
    Powerbook   Mac OS X (10.3.9)  

    You're welcome. Glad I could help.
    Thanks for the and Aloha from Big Island.

  • Can calendar entries from an iPhone be pushed up to the cloud for iPad and computer updating? My phone only seems to be receiving updates from the cloud, but not able to send them.

    Can calendar entries from an iPhone be pushed up to the cloud for iPad and computer updating? My phone only seems to be receiving updates from the cloud, but not able to send them.

    Under Settings->Mail, Contacts, Calendars, What do you have set for the Default Calendar? Personal?
    If you don't have it set to a Cloud Calendar it will only create the entry locally.   You would need to select the iCloud Calendar specifically when creating the Calendar entry to have it sync.
    Otherwise set your default calendar to be the iCloud Calendar so all entries are created there by default. And as such get synced to other devices.

  • Bought updating the fireworks CS6 but not earlier versions what to do?

    bought updating the fireworks CS6 but not earlier versions what to do?

    Not a lot that you can do about it - except returning the CS6 update, and getting the full version. Do remember that Fireworks is no longer developed by Adobe, and is effectively a "dead" application. You may want to invest your money in alternative software.
    Alternatively, try to seek out a legit copy of CS5, and update that one. You might be successful on ebay - but there are a lot of illegal versions on sale on ebay, unfortunately.

  • HT4061 I AM ASKING THAT I TRIED TO UPDATE MY iPHONE 4 BUT NOT RESPONDING PLEASE I NEED MORE HELPING

    I AM ASKING THAT I TRIED TO UPDATE MY iPHONE 4 BUT NOT RESPONDING PLEASE I NEED MORE HELPING

    If you are rying to update an iPhone 4 that now has iOS 4.3, you must connect to a computer with iTunes, start iTunes and select the iPhone from the list of Devices on the left side of the window.  Then in the main Summary window select Software Update.  The process will take a rather long time, up to half an hour depending on the speed of your internet connection.

  • Why does malloc operation fails on solaris 9 x86 but not on solaris 10 x86

    Hi:
    - We are building an application written in C
    on x86 Solaris 9, x86 Solaris 10, and sparc Solaris 9.
    - During testing, we noticed that
    when the application is built on x86 Solaris 9, it dies silently;
    when the application is built on x86 Solaris 10, it runs perfectly fine;
    when the application is built on sparc Solaris 9, it runs perfectly fine;
    when the application is built on cygwin, it runs perfectly fine.
    - The statement which causes the application to die silently is:
    /* Allocate space for procedure arguments. */
    if (( myArgv = (char **) malloc(( argc+1) * sizeof(char *))) == NULL)
    - My question is: how should I change our x86 Solaris 9 nightly build
    to build the application properly ?
    - Our build systems are:
    sparc Solaris 9
    ===========
    SunOS host1 5.9 Generic_112233-11 sun4u sparc SUNW,Ultra-5_10
    Solaris 9 12/02 s9s_u2wos_10 SPARC
    Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
    Use is subject to license terms.
    Assembled 05 November 2002
    x86 Solaris 9
    ==========
    SunOS host2 5.9 Generic_118559-11 i86pc i386 i86pc
    Solaris 9 12/03 s9x_u5wos_08b x86
    Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
    Use is subject to license terms.
    Assembled 21 November 2003
    x86 Solaris 10
    ==========
    SunOS host3 5.10 Generic_120012-14 i86pc i386 i86pc
    Solaris 10 8/07 s10x_u4wos_12b X86
    Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
    Use is subject to license terms.
    Assembled 16 August 2007
    Thanks
    JL

    You should never pass something to free that wasnt received from malloc.
    Although as a special case, free of the null pointer is allowed.
    Thats all clearly written on the malloc man page..
    So if your program is free'ing non malloc'ed pointers, then thats a bug in your program.
    So based on your code sample above
    free(ds_namv[j]) would be illegal.
    But free(data[j]) should be OK, since thats a null pointer.
    However, it should be perfectly fine to assign a new malloc'ed value to an existing pointer whether or not it was originally initialised using malloc.
    When you assign it, the original value is irrelevant.
    Additionally, the code fragment ds_namv[j] = (char**)"\0"; demonstrates some further conceptual problems.
    "\0" isnt of type (char **). It's of type (char*). And its a pointer to constant space. So writing to the area pointed to, would be illegal.
    As to why it works on sparc but not x86.
    The code appears to have a number of errors, and you just got lucky that it ever worked on sparc...

  • Pro Applications Update 2010-02 installed, but not installed.

    I downloaded and installed the latest software update and it said it was successfully installed, but when I look at the applications, they are not updated (e.g. Compressor is version 3.5.2 when it should be 3.5.3). I have opened the applications just to check for the new features, but they are not there.
    Is there something I'm not doing? Would reinstalling the apps do anything?

    I was having the same problem on two of my older systems. It seemed like every week (automatically) or anytime I manually ran software update, it would recommend "Pro Applications Update 2008-05 1.0 3.1 MB". This seem to be a looping problem and it continued even after applying the update. I replaced one of my computers and being a new computer I was not having any problems. Later I upgraded my hard drive and chose "Mac OS Extended (Journaled) Case Sensitive" as the format for my new drive. About a week later the problem started happening on my new computer with a new drive. I also noticed some applications that I migrated over were acting strange. So I re-formatted my drive "Mac OS Extended (Journaled)" and the problem has seemed to have gone away. I think some applications and utilities including "software update" (in some instances) may not like a case sensitive file system. Also note that Apple ships their computers Mac OS Extended (Journaled) and I wonder how many companies including Apple beta test both "Mac OS Extended (Journaled) Case Sensitive" and "Mac OS Extended (Journaled)". Any application that writes to a intermediate file on the filesystem or relies on reading and writing to files on the file system could potentially be affected if it were developed on a non case sensitive systems and later deployed on a system that was case sensitive.

  • Simple Question: Why does this code not exit properly?

    This code is pretty simple. All I want to do is load and play a sound file in an application, but this code to load the sound file does not exit properly. I know that some resources must be allocated which I need to deallocate in order to shut down the process, but I don't know what to call to do a proper shut-down. Any help would be appreciated.
    -adam
    import java.applet.Applet;
    import java.applet.AudioClip;
    import java.net.MalformedURLException;
    import java.net.URL;
    public class PlaySoundTest extends java.applet.Applet
    public static void main( java.lang.String[ ] aryArgs )
    java.net.URL urlSound = null;
    try
    urlSound = new java.net.URL( "file:/" + aryArgs[ 0 ] );
    catch( java.net.MalformedURLException murle )
    murle.printStackTrace( );
    System.exit( 1 );
    java.applet.AudioClip acSound = java.applet.Applet.newAudioClip( urlSound );

    HI , If u'r still looking for the solution, this code is working on my system -
    import java.applet.Applet;
    import java.applet.AudioClip;
    import java.net.MalformedURLException;
    import java.net.URL;
    public class PlaySoundTest extends java.applet.Applet
    public static void main( java.lang.String[ ] aryArgs ){
    java.net.URL urlSound = null;
    try{  //rahul
    try
    urlSound = new java.net.URL( "file:" + aryArgs[ 0 ] );
    catch( java.net.MalformedURLException murle )
    murle.printStackTrace( );
    System.exit( 1 );
    urlSound = new java.net.URL( "file:" + aryArgs[ 0 ] );
    java.applet.AudioClip acSound = java.applet.Applet.newAudioClip( urlSound );
    if(acSound != null){
    acSound.play();
    catch( Exception murle )
    {        //rahul
    murle.printStackTrace( );
    System.exit( 1 );
    }//main
    The only change I made was in the URL part - file: instead of file:/ .
    The other was of course to play the soundclip ...... :- ) I got really confused the first time I played it .

  • Regarding Template updates, what does this error " not updated, item not found" mean?

    This is the second time I've posted this question so hopefully somebody will respond. At some point in the last few weeks I found that I could no longer apply a template in a group operation (returns the error shown above). If I modify the template and save it it shows all the related files to be updated but does not actually update them and again returns the error "not updated, item not found". As a test I created a duplicate of a particular .html file and applied the associated template successfully. When I apply a template change it does properly update the newly created file but not the others. I also did a mechanical file compare (using windiff.exe) between the original and duplicate file and there are NO differences in the two .html files. I have also deleted and recreated my site maps several times.
    As an aside, Library items do update successfully.
    I am running Dreamweaver CS6 on Windows 7.

    I have an extensive home network and I consider myself to be very proficient with personal computers (had one since 1981) so let's start at that level.
    I have you beat by 2 years. Bought an Apple II+ in 1979!
    When this problem first started, I went to another PC (home built desktop Win 7 64 bit) I have and created a new Dreamweaver site copy using an instance of the site that was on a network share running on a NAS box (Netgear RAID5) that I use for central file storage. Just for a test I did the same thing on my main working PC (see below) and created a new site with the data that was on the network share. Well, lo and behold the template problem went away with both of the two sites I am having trouble with. Now I have no idea why sites housed on my PC are having a problem but that seems to be the issue.
    Your setup is very similar to mine - NAS (I'm using an Intel NAS) housing all my working files.
    Just for a test I did the same thing on my main working PC (see below) and created a new site with the data that was on the network share. Well, lo and behold the template problem went away with both of the two sites I am having trouble with.
    So it's working in the duplicate site, but not the current site. And in the current site, you have some files that update as desired and some that do not? Why not just make the duplicate site be the main working site?
    Anyhow, I cannot think of any wrinkle that would cause DW to update some legitimate child files in a site but not others, except for a corrupted file cache.

  • IPod touch 4 gives message "Cannot Download" "there is not enough available storage to download...You can manage your storage in settings." when trying to update or install one but not all apps. I have more storage than the app takes. Can u help?

    iPod touch 4 gives message "Cannot Download" "there is not enough available storage to download...You can manage your storage in settings." when trying to update or install one of the apps, but not other apps.  I have more space available than needed for the app.  What do I need to do to fix this problem?  Do I need to completely reset this device as new and, if so, how should I do that? 

    You need to delete some item (apps, music, photos etc) from the iPod,.However, sometime files get corrupt. To determine that connect the iPod to your computer and click on the iPod under Devices in iTunes. How much storage is used by the "other" category. If over 1 1/2 GB that indicates corrupted files.
    To get the "other" down to normal value you need to restore your iPod usually restoring from backup works but sometimes restoring to factory settings.new iPod is required./

  • IPod updates on 1 iTunes but not 2 others

    I manually manage my music and my iPod will update on my father's computer but not the one i originally set it up with or my laptop... I have 7.0.2 and an iPod photo 20gb. Please help... Its really frustrating...

    Click here for options.
    (38419)

  • Any one else got email problems since iOs6.1 update? Can receive but not send.

    Since updating to iOs6.1 I can receive email but not send using the iPads generic mail app. Has anyone else experienced this problem? Any suggestions about how to resolve this. Have deleted accounts and added again without success.

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Try this: Delete the account in Mail and then set it up again.
     Cheers, Tom

  • Help, mail does receive but not send

    can anybody help me, my mail does receive  but does not sent any acount exept iCloud acounts.
    it does not connect to servidor SMTP

    This is a reasonalby common occurance, Apple addresses it in:
    http://support.apple.com/kb/TS1307
    If that does not help then it is possible a setting has been corrupted. In that case go to Mail-Settings-Accounts and re-input all the settings even though they may look OK.

Maybe you are looking for

  • How Do I Delete My Old Skype Account?

    How do I go about deleting an old Skype account which I feel got hacked? Huge thanx in advance for any help and support

  • Reverse sign +/- in a hierarchy

    Hi all I need to subtract just one node of a hierarchy. So I ticked the flag reverse sign +/-, and then I set the node I need to be changed. The problem is that it doesn´t work. My node sign is not reversed as I expected. Should I do anything else? t

  • Can't save image, error message ???

    Hi, I'm trying to save a pdf image in photoshop, as I always do, hitting command S, or going to file-save. I keep getting an error message saying "could not save "x" file because the file is already in use or was left open". Well duh, of course it's

  • While Creating New Insert Form Existing Data Display from the Table

    Hi I am New To Sun Java Studio Creator and New to Java Also While Creating New Insert Form Existing Data Display from the Table while i am Run the Form. Can any one help me to Solve this one

  • Introspector calling the Base Class multiple times

    Hi I am having a Java Bean C (which extends B which in turn extends A) ...and each of these Classes have the BeanInfo classes .. ABeanInfo , BBeanInfo , CBeanInfo.... And i had written my beaninfos such a way that they are optimised by extending the