Program running fine in Debug mode but failing in direct execution

Hi All,
I am facing a peculiar problem, I have created a report that create STO then Delivery and then Shipment one after one. I have used BAPI to do so. If STO creation is successful then Create Delivery and if delivery creation is also successfull then create Shipment.
When I run this program by pressing execute button it is only creating STO and coming out ,but if I run it in Debug mode I get all the three( STO, Delivey,Shipment). Since it run fine in debug so I can't found where the problem is.
Can any one help???
Regards
Hemant

Hi guys,
A learning for me .... how important WAIt parmeter is in commit work .. Initially i have not set WAIT paramater in commit BAPI to X due to this further processing.. Delivery and Shipment creation was failing in direct execution ... as after STO creation I was reding EKPO and that was failing in direct execution , but in backgroung everything was ok.
Thanks for your time.
Cheers
Hemant

Similar Messages

  • Code runs fine in debug mode but hangs when compiled in release mode

    I am struggling with the following problem. I have code which runs fine when it is executed in debug mode. However, when I compile it in release mode and run the executable, the code freezes and does not work. The code acquires images from a Hamamatsu camera. In the debug mode I am able to continuously acquire images. However, in the release version, the code hangs after acquiring the first image.
    I am using LabWindows/CVI version 7.
    I would greatly appreciate if I can get any help/suggestions in resolving this problem?
    Thanks!
    Regards,
    Sripad
    Solved!
    Go to Solution.

    Sripad:
    If you search this forum for "debug release crash" or "release version crash" or similar phrases, you'll find that this is a pretty common question.  Look through the other posts you find here to see if anything is applicable to you.
    The debug version does some things like padding variables so you can sometimes overrun your declared variable space without overwriting the next variable.  In the release, the variables are packed, so if you overrun one, you are overwriting another.  Just one possible difference.
    You can do some things in your release code to see where things get lost, like (temporarily using printf statements after multiple statements at the start and end of your loop to try to identify that failing line of code.
    Look through other threads to find other ideas.

  • Project runs Ok in debug mode but not in release mode

    I have an application developed with VC++ 6.0 and measurement studio. The application controls SCXI-1161/1166 relay boards to connect the UUT. The application runs ok in debug mode, but in release mode the application can't drive the relay boards. I have tried to change optimizations mode, it didn't work. Who can tell me how to solve the problem? Thanks!

    It sounds like you have an older version of our SWITCH driver which relies on our DAQ driver. I would recommend uninstalling the Traditional DAQ, DAQmx, and SWITCH drivers and then installing the newest version. At this point you have 2 options:
    1) You can download Traditional DAQ 7.4, DAQmx 7.4, and NI-SWITCH 2.4 drivers bundled together here: ftp://ftp.ni.com/support/daq/pc/ni-daq/7.4/
    2) You can install the latest version: NI-DAQmx 7.5 here: http://digital.ni.com/softlib.nsf/websearch/CF7ECC​EA4C4CC7DE86257038004D88AE?opendocument&node=13206​... This has support for all of our USB DAQ devices (if you're not using them then you may not want to worry about installing this now) and then install Traditional DAQ 7.4 here: http://digital.ni.com/softlib.nsf/websearch/C36A54​ADDA3DC33D86257038004E55E6?opendocument&node=13206​... and NI-SWITCH 2.4 here: http://digital.ni.com/softlib.nsf/websearch/9D6B8C​7FD41BF3D08625702E0072E294?opendocument&node=13206​...
    This should solve your problem.

  • Event receiver works perfectly in debug mode, but fails in release mode

    Here is my item added event which works perfectly and gives read permission to CCfield user in debug mode, but doesn't give permissions to CCfield user when item added event is triggered in release mode:
    base.ItemAdded(properties);
    try
    SPListItem item = properties.ListItem;
    string idnumber = Convert.ToString(properties.ListItem["ID"]);
    string itemurl = properties.ListItem.Url;
    SPWeb web = properties.Web;
    item.BreakRoleInheritance(false, false);
    //item.Update();
    string ccfield = Convert.ToString(properties.ListItem["EmailCc"]);
    string STRFirst = "<" ;
    string STRLast = ">";
    int Pos1 = ccfield.IndexOf(STRFirst) + STRFirst.Length;
    int Pos2 = ccfield.IndexOf(STRLast);
    string ccfield1 = ccfield.Substring(Pos1, Pos2 - Pos1);
    SPUser user = item.Web.EnsureUser(ccfield1);
    SPRoleAssignment roleAssignment = new SPRoleAssignment(user);
    roleAssignment.RoleDefinitionBindings.Add(web.RoleDefinitions["Read"]);
    item.RoleAssignments.Add(roleAssignment);
    catch (Exception e)
    throw;
    Any help?
    sk.Rakhishma

    Event receivers run using the permissions of the user who triggered the event. If your user does not have rights to manage permissions then you will need to run your security code with elevated permisisons.
    SPSecurity.RunWithElevatedPrivileges(delegate()
    { your code here } )
    Note that RunWithElevatedPermissions will not work with Sandbox code.
    Mike Smith TechTrainingNotes.blogspot.com
    my SP customization book

  • App working fine in debug mode but not otherwise on iPad

    Hi everyone,
    Sorry if I am putting this question in wrong section, this seems to be the most relative location to ask question.
    My Problem:
    I have developed an app using Adobe Air and starling. App is working perfectly when I run on Flash Builder (debug and run both). When deploying on iPad at one particular location, it is either not getting TouchPhase.ENDED or some code is crashing.
    I tried to debug while running app on iPad and its working absolutely fine. But when I create the ipa file normally i.e. without debug mode, at a particular location code is not working.
    Please help me out in this regard, asap. I need to deliver it.
    Please!!!!
    Thanks
    Waqar Iqbal

    Hi,
    I know one case, but don't know if have a solution.
    See Registering Add-on in 2004
    Best Regards.

  • C# SCOM SDK agent install works fine from debug mode but disconnects when built from installer

    My team is writing a C# application that installs SCOM agents on the fly. I used the code in :
    http://msdn.microsoft.com/en-us/library/hh329037.aspx
    as a template. Which works fine and will consistently install agents when I run it in debug from Visual Studio. But when I build an installer (using InstallShield), calls to:
    "AgentTaskResult results = adminServer.InstallAgents(agents, configuration);"
    always result in a Microsoft.EnterpriseManagement.Common.ServerDisconnectedException. The agent install even shows up in pending management on the SCOM server (but this sits in pending management forever and is never processed). Calling managementGroup.Reconnect();
    and retrying the agent install still results in a ServerDisconnectedException. The application has no problem doing other things with the managementGroup object (from debug or running from an installer). It can create MonitorConfigurationOverrides and
    gets events out of an outbound connector. So it seems like the disconnect problem is localized just to agent install requests.
    I looked in the Windows Event Log and found an OpsMgr SDK Service Error: 
    An exception was thrown while processing InstallAgents for session ID uuid:71d39b19-f9a7-4d4a-82ee-5043480af635;id=41.
     Exception message: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 778.
     Full Exception: System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 778.
       at System.Xml.XmlTextReaderImpl.Throw(Exception e)
       at System.Xml.XmlTextReaderImpl.ParseNumericCharRefInline(Int32 startPos, Boolean expand, StringBuilder internalSubsetBuilder, Int32& charCount, EntityType& entityType)
       at System.Xml.XmlTextReaderImpl.ParseCharRefInline(Int32 startPos, Int32& charCount, EntityType& entityType)
       at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
       at System.Xml.XmlTextReaderImpl.ParseText()
       at System.Xml.XmlTextReaderImpl.ParseElementContent()
       at System.Xml.XmlReader.ReadString()
       at System.Xml.XmlReader.ReadElementString(String name)
       at Microsoft.EnterpriseManagement.RuntimeService.TaskRuntimeService.CreateRemoteJobXml(JobDefinition jobDefinition, ManagementPackTask task, Guid hsId)
       at Microsoft.EnterpriseManagement.RuntimeService.TaskRuntimeService.SubmitJobs(IList`1 jobDefinitions, Guid batchId, JobCategory category)
       at Microsoft.EnterpriseManagement.RuntimeService.TaskRuntimeService.SubmitTasksInternal(IList`1 jobDefinitions, Guid batchId, JobCategory category, PrepareResultSet prepareTaskResultCallback)
       at Microsoft.EnterpriseManagement.ServiceDataLayer.AdministrationService.InstallAgents(Guid batchId, IList`1 jobDefinitions)

    Hello,
    You might ask in the
    Visual C# Language forum on MSDN.
    Otherwise, perhaps the Operations Manager - Extensibility forum:
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/home?forum=operationsmanagerextensibility
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • My G5 tower will boot and run fine in safe mode, but...

    When I boot normally I get artifacting and it locks up. I replaced the video card, reformatted and installed a new copy of OSX, etc. Thanks!

    Get Temperature Monitor to see if it's heat related...
    http://www.macupdate.com/info.php/id/12381/temperature-monitor
    And/or iStat Pro...
    http://www.islayer.com/apps/istatpro/
    If you have any temps in the 70°C/160°F range, that's likely it.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport in 10.4 & below, or 3rd party add-on, Check System Preferences>Accounts>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

  • Why does my iMac run fine in Safe Mode but has many problems when it isn't?

    If you take a look at my previous posts you will see that I have had the usual problems that many, many other iMac G5 1.8 20" Rev A owners have been recently experiencing (Kernel Panics, Screen Blurs, Screen darker at top more than bottom, etc)
    I have discovered that the only way to stop all the numerous problems that I have been having is to start the iMac up in Safe Boot Mode
    In this mode it has been running Perfect! No Crashes! No Screen Problems! It's been wonderful to get it back to normal after all the peristant problems I have had! The only thing being that you can't use sound in or out or the DVD Player with Safe Mode!
    So the question I would like to ask is:
    So does this mean that the problems I had before were just Software conflicts/issues and not Hardware ones?
    Cheers for your help
    Bob
    iMac G5 1.8 20" Mac OS X (10.4.3) 2 Gig RAM

    When you start up in Safe Mode various things aren't loaded at startup, Bob.
    Have a thinbk about which of the following may be involved in your own case:
    It forces a directory check of the startup volume.
    It loads only required kernel extensions (some of the items in /System/Library/Extensions).
    It runs only Apple-installed startup items (some of the items in /Library/StartupItems and /System/Library/StartupItems - and different than login items).
    Mac OS X 10.4 Tiger only: It disables all fonts other than those in /System/Library/Fonts .
    Mac OS X 10.4 Tiger only: It moves to the Trash all font caches normally stored in /Library/Caches/com.apple.ATS/(uid)/ , where (uid) is a user ID number such as 501.
    Mac OS X 10.4 Tiger only: It disables any Login Items.
    (from http://docs.info.apple.com/article.html?artnum=107392)
    Have a look at http://docs.info.apple.com/article.html?artnum=106464 for some more possibilities.
    You may find it worth while using System Prefernces/Accounts to creat a new admin user account and see if the problem persists with it. THis may help you narrow down the problem further.
    Cheers
    Rod

  • Query running fine in one environment but failing in other environment

    Hi,
    I have a query which i am trying to execute in two different environments.
    Test :- Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Prod:- Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Now query executes finely in one environment and fails in other environment.
    It gives following error.
    ORA-01861: literal does not match format string
    01861. 00000 - "literal does not match format string"
    The query is too long and contains CHAR-DATE and DATE-CHAR conversions.
    The same query works fine on TEST environment and and fails on PROD environment.
    Any help related to it would be appreciated.
    Thanks,
    Mahesh

    MaheshGx wrote:
    Hi,
    I have a query which i am trying to execute in two different environments.
    Test :- Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Prod:- Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Now query executes finely in one environment and fails in other environment.
    It gives following error.
    ORA-01861: literal does not match format string
    01861. 00000 - "literal does not match format string"
    The query is too long and contains CHAR-DATE and DATE-CHAR conversions.
    The same query works fine on TEST environment and and fails on PROD environment.
    Any help related to it would be appreciated.
    Thanks,
    MaheshThat's called a bug. One caused by the person who developed the code. They relied on implicit conversion between strings and dates when
    production quality code will always use to_char and to_date functions with a format mask.

  • MySQL query works fine for Debug mode not during regular run mode

    Hello fellow Java gurus,
    I'm very much confused at the moment. I have an Java application that populates and accesses a MySQL database. It's a little complicated to explain but basically I've got a few threads that manipulate it. The database itself can handle multiple client connections.
    Now, my first SQL query determines whether records exist within a particular timeframe, since one of my columns is a time of arrival (toa). This works fine in debug and normal run mode. My second SQL query is only executed once the first query returns true, which occurs 100% of the time. The second query is very similar, however, has the very weird behaviour of working the way I want it during debugging mode, but doesn't work at all during normal run mode. I really do not understand. I've tried running the 2nd query using the same connection and also a different connection as to the 1st query but it really doesn't make a difference to the non-working outcome.
    If anyone has any ideas as to as to why this is happening, please help me. Any feedback would be greatly appreciated. I am desperate at the moment.
    Kind regards,
    Mitch.

    Sorry everyone, I've been able to solve it. My boolean variables were being set to their opposite values! Silly me.... cheers anyway....

  • Why does my program run fine in highlight execution, but not normally?

    When I highlight execution, the program runs fine, but when I run the program normally, nothing happens. (I believe the program is stuck at the initialize cam vi). If someone could help me out, I'd be very thankful
    Attachments:
    intensity10.vi ‏139 KB

    The first troubleshooting technique I did was to add several "waits" throughout the program, particularily with the loops. I learned the problem was actually with the hardware itself and the camera mode. The camera must take an empty frame before it can store the image, thus the for loop needed to be replaced with a while loop.
    However, after fixing the program using boolean logic, 2 of the buttons disappear on my front panel during use (which I will have to further troubleshoot). Thank you!
    Attachments:
    intensity11.vi ‏158 KB

  • Eroor in eclipse when i have run TOMCAT in debuge mode web service debuging

    hello all,
    i have a serious problem with debug my web service. I set local variable in eclipse (-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000). And now if i run TOMCAT in normal mode all worked fine and i run remote java application fine, but if i run TOMCAT in debug mode, eclipse in console return error:
    "Error occurred during initialization of VM
    agent library failed to init: jdwp
    ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options."
    If anyone have this problem please tell me how to resolved it.
    Thank for help.

    Eclipse is kind of a competing product so this is not the best place to ask the question. With that most will be nice enough to lend a hand. I suggest ensuring that all other instances of tomcat are stopped then try again. In the Debug perspective ensure there are no servers running with the same name as the one you are attempting to use. If all else fails ensure there are no tomcat process running if they are kill them. Finally, if you cant get it to work reboot. If still no good the Eclipse might be a better place to go.

  • Why can't I run in non-debug mode???

    I recently copied a JSC project into another project using the "Save Project As" option when right clicking on the project name.
    The new project appeared to copy fine and I was able to bild and run the project normally.
    Somewhere along the line, I did something that changed something to where I can no longer run the project in 'non-debug' mode by using either the 'Run Main Project Ctrl+F5' under the 'Run' menu or by clicking the Right Green 'Run" triangle on the main menu.
    The project builds successfully, but never runs in the browser.
    I have tried stopping the server and everything else I can think of, but nothing works.
    I can select 'Debug Main Project F5' from the 'Run' menu and it will build and start in the browser.
    Other projects, including the source for this one, run fine in 'nion-debug' mode, but not this one.
    How can I fix this??
    I have run into instances where I get a message that says the build.xml file was altered externallt and was rebuilt. Is there any way to force a remake of the build.xml file using "Standard" defaults?
    Thanks

    The reason for copying the project was in order to create another very similar product that required only minor modifications at this time.
    I got around the problem by doing another project copy and then using Beyond Compare to update the new copy with modifications I made to the original copy.
    That worked.
    My basic question was what would cause the problem that would create the situation where you could run in debug mode, but not non-debug mode.
    This happened after the original copy (that worked fine) and after I had done most of the required modifications.
    My thought was that there was some file or parameter that I could change rather than redoing the process.
    Apparently not......................

  • I have acquired windows office 2011 for my macbook but unable to open it. There are currently 3 files in the folder, 1 of which seems to be the actual program which is a hfs file. iv tried looking for programs to help me open it but failed

    i have acquired windows office 2011 for my macbook but unable to open it. There are currently 3 files in the folder, 1 of which seems to be the actual program which is a hfs file. iv tried looking for programs to help me open it but failed.
    when double clicking on the image it says unable to open and gives me the option to search the app store.
    any help would be much appreciated
    Adam

    Well, first, just make sure it's the Mac version and not the Windows version (which indeed would not run on your Mac). You say "Windows Office" which is why I mention it. I think you probably just mean "Microsoft Office" though.
    Next, is this on a disk (DVD), or did you purchase and download it from the Microsoft site?
    Matt

  • My program works only in debugging mode

    Dear All,
    I am just starting to use LabVIEW and developing a instumental driver. 
    The program is rather sequentially designed because I am only used to work with text-based program. 
    The current program is working in debugging mode without any error message.
    To give an idea of how it is composed:
    1. Set up the serial port setting (machine address, baud rate, parity, etc)
    2. Send to the instument the name of a short program to be run. 
    3. Send mutiple string commands to the instruments.  Those string commands construct a short program to control the instrument.
    4. Send another string command to run the short program
    The issue is that it does not work in excution mode.  It looks to me that the communication between the instrument and computer seems to be too fast. 
    Since the program is designed in a sequential manner, it does not have any while-loop or for-loop so I cannot add any timing function. 
    Could anyone give me a hint or a right direction to fix this issue?  It would be really appreciated.  Thank you.
    Solved!
    Go to Solution.

    You could do something like the attached modification.Note how I modified the connector pane for the subVI to use the conventional 4-2-2-4 pattern and notice where I connected the terminals.
    NOTE: I am assuming the VI is supposed to run just once, and that you're not using the Run Continuously button in the toolbar. You're not, right?
    Attachments:
    NE-100_StairFlow_w_RUN00 MOD.vi ‏27 KB
    NE-100_RAT_00_XX MOD.vi ‏18 KB

Maybe you are looking for

  • Help filling out PDF - How can I get text to fit in text boxes?

    I need to fill out an application that is in the PDF format. When I filled it out, there were a few text boxes where the text did not wrap around. In other words, some of the text doesn't show. There is not enough space for what I typed. When I print

  • Problem with my 3G

    Hi all i have a BIG problem with my iphone 3g i can't work the notification i try every thing (update-reset-formate.....etc) and nothing worked all i have when i enter any app. is this alert http://img59.imageshack.us/img59/6497/img0070p.png i really

  • Reverse FI Invoice & Clear

    Hi, Need to have FI reverse invoice and also have it cleared.  The goods have not been delivered to the customer. I need to have the invoice cleared, canceled, reverse the goods issue, cancel the delivery, and close the sales order?  Do i use FB08 to

  • How to change the check box with the push button in itrator table rows

    Hi all, I want to change the check box of the itrator table rows with push button/ some thing better as to give the table view more good look and user friendly. Does any one has tried any other option in table view in place of check box Thanks Bhagat

  • Add Z-transaction to ECC menu

    Hii All How to add our own Z-tcode to the ECC menu?? PLs explain the steps. Tx