Lock when trying to update a Z-field in MARD

Hi,
I have a Z-field in an append to MARD. In MIGO we create an output idoc (a custom made Z-idoc) and in the function module processing the idoc I want to update my Z-field in MARD. The update in MARD are made with a bapi called BAPI_MATERIAL_SAVEDATA.
Pseudocoding of the function module which are processing the idoc:
Get material document into bapi structures
loop items.
   perform get_some_more stuff
   perform update_mard.
endloop.
form update_mard.
    do some stuff
    call method class=>update_mard
    loop at error messages.
         Give a message
   endloop.
    call function BAPI_TRANSACTION_COMMIT.
endform.
in the update_mard-method I fill the structures needed to handle the append in mard and call the BAPI_MATERIAL_SAVEDATA
I hope you are with me so far. From the update_mard I receive some error message handled in the loop that the material couldnt be saved. I assume I have a lock problem. But I cannot get the program to stop when I set a break-point. It simply doesnt stop.
So two questions:
1. Can I somehow force my break-points to come in effect?
2. Can I "postpone" the actual update of MARD until the material document output is processed? If so how? If not, what can I do to avoid my lock problem?
best regards,
Glenn

Hi,
I have tried to put a break-point just before my error message are created but it still don´t stop. But since I get the error message I know that the flow passes my break-point. It just doesn´t stop. Does it matter if I use break-point or break ?
I can see lock entries during the processing. I set a wait up to 30 seconds so I have plenty of time to check lock entries, and I see that there are entries.
My concern is that I want to be able to postpone my processing until the system releases the lock, but preferrably from the function module where I handle my idoc.
br,
Glenn

Similar Messages

  • HT4864 When trying to update my Mail Account Mailbox Behaviours settings, when I try to close the settings pane the following messages occur: Invalid Incoming Mail Server The "Incoming Mail Server" field cannot be empty. The incoming mail server box has p

    When trying to update my Mail Account Mailbox Behaviours settings, after making the changes when I try to close the settings pane the following messages occur: Invalid Incoming Mail Server The “Incoming Mail Server” field cannot be empty. The incoming mail server box has in light grey colour: p02-imap.mail.me.com in it and I cannot edit its content. Any ideas what is going on and how to fix it?

    Hi all,
    Mattreichenbach is probably on the right track here with a reset of settings.  I think I've determined the issue has to do with cached account information and inconsistencies for the account name.  This seems to crop up when I've changed my password and it hasn't propagated fully to all the servers, devices, certificates, etc.
    Hopefully many here are on their way to restoration of service by now but it's clear that a lot of people are having the same issues.  Very frustrating and definitely something Apple needs to resolve:  incoming mail server field grayed out, incorrect autopopulation of different fields, other unanticipated behaviors.  If you're still having issues, though, here's what worked for me...
    First, head to the iCloud preferences pane in System Configuration and choose "Sign Out".  When I did this it prompted me with a number of "are you sure" type questions about retaining information on my local machine.  I chose to delete/remove the info each time simply because it should all be restored by the cloud and I didn't want to risk a massive duplication of my data... I will say, I'm back up and running with no issues so I suspect you can make the same delete/remove choices...  But use your own judgment.  I don't want you to lose any data (ie.. please use care as you do this because I cannot bear the thought of causing anyone to experience the pain of data loss).
    Once you've signed out of iCloud, restart your system.  When you get back in, head to the Mail, Contacts and Calendars section of your System Preferences and add your account back by choosing the brushed aluminum "iCloud" button.  When it asks for your account name, use your @iCloud.com email address.  I am all but certain my issue had started because one of my devices (iPhone or whatever) had been set up with an email alias specified instead of my @iCloud.com address.
    Apple, if you're reading through any of these issues (there are TONS of users having this same problem).  Take note, that your icloud service somewhat frequently is not responding and yet tells the user that the password is wrong and this prompts people to be changing their passwords unnecessarily.  This has happened to me on numerous occasions.  Also, I noticed that last week's outage corresponded to a VERY similar outage exactly one year ago to the day.  Sounds like planned maintenance to me and I think you could do a better job notifying folks so we're not wasting HUGE amounts of time troubleshooting a problem that we have no hope of fixing.
    Hope that helps some of you!
    Terry Mullane
    Washington, DC

  • When trying to update to 4.0.1 it locks up when checking for updates do plug-in. This causing Firefox not to work. Why?

    When trying to update to 4.0.1 it locks up when checking for updates to plug-in. This causing Firefox not to work. Why?
    I am running windows 7. I have tryed uninstalling and reinstalling and every time it locks up at the same point, when it is checking for updates to plug-ins. I have run troublt shooting and it tels me :Incompatible Application. Why??

    Create a new profile as a test to check if your current profile is causing the problems.
    See:
    * [[Basic Troubleshooting#Make_a_new_profile|Basic Troubleshooting: Make a new profile]]
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See:
    * http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • My iPhone 3gs locked when I was updating to iOS 6.0.1.

    My iPhone 3gs locked when I was updating to iOS 6.0.1.
    I begun updating by the iPhone itself, then it asked to connect to iTunes, but at the end  - after tried to restore the firmware it does not restore (id error 29). I've just replaced the battery, there is something linked with this?
    Why do I unlocked my iPhone?
    Thanks,
    Miguel

    See if this helps:
    http://support.apple.com/kb/TS3694#error29
    How did you replace the battery? Did you take the back off
    and replace it yourself?

  • IPhone 5 going into recovery mode when trying to update iOS 7

    My 5 went into recovery mode when trying to update to 7.0.2 OTA. At first I was like ok just a glitch. Well trying to update to 7.0.3, it did it again. So right now I am again in the process of restoring and updating my 5.
    What is going on?

    because I'm an idiot.. of course.. All my other over the air updates have worked, I had a good wifi connection, knew I had a backup, and was desperate to get past the initial bugs I've been experiencing..
    I downloaded iTunes on my work PC, enough to get it going again, which I bascially had to do twice.. iTunes didn't find a backup and said that iCloud didn't have a backup, even though it did.. So, it did a basic install of iOS 7..  I then erased all settings from the iPhone itself and when it restarted I chose to restore from iCloud which the phone was able to find..
    Have not seen anything better.. I've had a couple random reboots. Once when swiping the Starbucks notification on the lock screen, the phone immediately crashed back to the apple boot screen.

  • When trying to update  Apps in iTunes on my computer my old Apple ID appears, which is no longer in use and has no password; even when I try to create a password for this Old ID, Apple won't let me. When I go into see my Account settings My new Apple ID /

    When trying to update  Apps in iTunes on my computer my old Apple ID appears, which is no longer in use and has no password; even when I try to create a password for this Old ID, Apple won't let me. When I go into see my Account settings My new Apple ID / iTunes ID are listed and the passwords are correct obviously so why can't I update my Apps?   Why does my Old apple ID keep appearing and how can I get Apple to change this?

    I have the same problem - it is maddening. I rely on this iPad for work so this is not just an annoyance! The above solutions of changing the appleid on the device or on the website do not work.
    The old email address no longer exists - I haven't used it in a year probably and I no longer have the account.  I logged into the appleid website and there is no trace of the old email address so there is nothing that can be deleted or changed there.  On the iPad there is no trace of the old email address so nothing can be deleted there either. I have updated the iPad software and the same problem comes right back.  Every 2 seconds I am asked to log in using the old non-existent email.  The device is currently useless.
    The only recent change to anything was the addition of an Apple TV device, which was set up using the correct login and password.
    Does anyone have any ideas? The iPad has been backed up to the iCloud so presumably it now won't recognize the current iCloud account? So restoring may notbe an option?

  • When trying to update apps i keep getting billing method incorrect(this is on iphone 4s) i hsve tried this store,apple id,view id,payment info but does not offer me the none option,i can npt update my phone any ideas anybody please?

    when trying to update apps i keep getting billing method incorrect(this is on iphone 4s) i hsve tried this store,apple id,view id,payment info but does not offer me the none option,i can npt update my phone any ideas anybody please?

    If you dont have none option then you must own itunes some money. So you have to enter the payment like a itunes giftcard. you can contact itunes by email by going to expresslane.apple.com

  • When trying to update apps an invalid apple id show up and I cannot get the apple id to update to the same id,  I have restored, restored as a new phone, I have been into the manage I am at wits end after 7 hours on hold and working with techs.

    When trying to update apps an invalid apple id show up and I cannot get the apple id to update to the same id,  I have restored, restored as a new phone, I have been into the manage I am at wits end after 7 hours on hold and working with techs.

    Finally got through to tech support and found someone who seemed to know what was going on, he walked me through and using appleid.applesupport got me to a point where i could get a new password for the apple id that kept showing up. 
    I think you were on the right trail and I want to say thanks for your help.  Much appreciated
    ccl43

  • When trying to update Aps, my iPhone repeatedly rejects my apple ID password.  I reset it, and it still rejects it.  I've reset it on my computer, phone still rejects it . . . tired of this.

    When trying to update Aps, my iPhone repeatedly rejects my apple ID password.  I reset it, and it still rejects it.  I've reset it on my computer, phone still rejects it . . . tired of this.

    Are you positive you're using the exact Apple ID to update these apps that was used to originally ontain them? You can verify such by right-clicking one the apps, in your iTunes library, & selecting "Get Info". This will show you the Apple ID used to originally obtain the app...does it match on your phone?

  • When trying to update my CC apps, the update fails. I get this error: Update Failed. There was an error installing this update. Please try again later or connect customer support. This is currently happening for InDesign, Photoshop and Bridge. I had this

    When trying to update my CC apps, the update fails. I get this error: Update Failed. There was an error installing this update. Please try again later or connect customer support. This is currently happening for InDesign, Photoshop and Bridge. I had this problem previous and was able to fix by doing a complete wipe of my computer and reinstalling CC. However, I should not have to wipe my computer clean everytime I need to do a CC update. HELP!

    Hi,
    Please download the updates directly from the link below:
    WIN: All Adobe CC 2014 Updates: The Direct Download Links for Windows | ProDesignTools
    MAC: All Adobe CC 2014 Updates: The Direct Download Links for Mac OS | ProDesignTools
    Regards,
    Sheena

  • When trying to update apps from iPad and iPhone a previous one time users email keeps coming up. How do I delete their information?

    When trying to update apps from iPad and iPhone a previous one time users email keeps coming up. How do I delete their information?

    delete off any apps that are asking for the wrong apple id and download/sync them over from the correct one

  • When trying to update my Apps I am being advised my account is not valid for the UK, I must switch to the Ireland store. How do I do this?

    When trying to update or purchase Apps I am being advised my account is not valid for the UK Store and I must switch to the IReland store. How do I do this?

    Change App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3.Tap "View Apple ID"
    4. Enter your user name and password.
    5. Tap "Country/Region."
    6. Tap "Change Country/Region"
    7. Select the region where you will be located.
    8. Tap "Done".

  • When trying to update apps it keeps telling me my account cannot be verified. How do I fix this?

    When trying to update my apps it keeps telling me it cannot verify my address! How do I fix this?

    Contact itunes support

  • When trying to update, I get the message: Account not in this store,...switch to the Canadian store.  How do I do that?

    When trying to update apps, I get the message:  "Account not in this store,...switch to the Canadian store before purchasing"  How to I switch, and how did it even get changed to US store?  I don't remember changing anything, and I used to be able to update, no problem..  I have synced with my computer for music - could it have happened then?  I changed on the computer to Cdn site, but will it not go to the iPhone automatically?

    On you iPhone go to settings-iTunes & AppStore.
    Tap user name, sign out.
    Log back in with your apple ID and password.
    That should fix the problem

  • When trying to update apps it asks for account password but it doesn't show my account. Help!

    When trying to update apps it asks for account password but it doesn't show my account ID, it shows my dad's. How can I fix this so I can sign in?

    It sounds like the apps were purchased using your dads account, so they will have to be updated using that account.

Maybe you are looking for

  • Anyone know what is this?

    Interval Since Last Panic Report:  44248 sec Panics Since Last Report:          4 Anonymous UUID:                    D73EBFEF-1FC1-462E-B11A-2A3968232F71 Sun Sep  2 16:31:30 2012 panic(cpu 0 caller 0xffffff7f80918947): NVRM[0/1:0:0]: Read Error 0x000

  • Is there any convenient way to work with BFILE column in EJB 3.0 projects

    Hi, all Can anybody answer this simple question? I know there is a special type - BFILEDomain in ADF BC, but what about EJB any links and advices would be greatly appreciated. Thanks in advance. Alex.

  • Using a CMP Entity Bean local stub as a field of another CMP Entity Bean

    Hello, Is it possible to implement a field of a CMP Entity bean as another CMP Entity bean and how is it done? I've seen a pseudo code for this in Ed Roman's Mastering EJBs, second edition, but I can't seem to get it to work (pages: 330 - 1:1 using C

  • Captivate 6 suddenly won't load

    I get a window with an exclamation point. I've uninstalled & reinstalled, same problem, although the program appears to be sitting there in the apps folder on my mac. Ideas?

  • Mail abruptly quit working

    I am not sure where to begin though the mail service on my server appears to be running but is delivering NO mail to any client. Outbound mail appears to leave but never arrives? I know that it is Halloween but this isn't a Halloween joke. Thank you!