Simultaneous background jobs using the same BAPI issue

I scheduled 2 simultaneous background jobs on a custom program using the same BAPI (closing PM orders).
Run 1 to CLSD orders created on year 2001
Run 2 to CLSD orders created on year 2000
What happened was while run 1 was still active, run 2 encountered a dump and was cancelled.
Upon checking in ST22, dump was generated in CO_ZV_CONSISTENCY_CHECK.
Also, Run 2's dump happened when it encountered a data inconsistency for an order number being processed for Run 1.
Since the BAPI is being accessed at the same time by the two jobs, Is it possible that the commit work on run 1 could affect the processing for the Run 2, hence the data inconsistency?
Is this a buffer issue?
Additionally, no dump is encountered when Run 1 or Run 2 is run by itself.
I also encountered this issue before for creating Project and WBS using BAPI, but the solution we came up with was not to do parallel runs to avoid the error as this was a one time upload only.

If the second job is dependent on the 1st job, then use following logic which will let you know the status of 1st job. Once 1st job is completed, call JOB_OPEN of 2nd job.
ENDLESS loop till 1st job is completed
DO.
CALL FUNCTION 'BP_JOB_READ'
    EXPORTING
      job_read_jobcount     = w_jobcount
      job_read_jobname      = w_jobname
      job_read_opcode       = '20'
    IMPORTING
      job_read_jobhead      = wa_jobhead
    TABLES
      job_read_steplist     = i_jobsteplist
    EXCEPTIONS
      invalid_opcode        = 1
      job_doesnt_exist      = 2
      job_doesnt_have_steps = 3
      OTHERS                = 4.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
To Display the status text as per the status type
  CASE wa_jobhead-status.
    WHEN 'S'. WRITE: / text-006. "'Scheduled'.
    WHEN 'R'. WRITE: / text-007. "'Released'.
    WHEN 'F'. WRITE: / text-008. "'Completed'.
    WHEN 'A'. WRITE: / text-009. "'Cancelled'.
    WHEN OTHERS.
  ENDCASE.
IF wa_jobhead-status = 'F'.
exit.
ENDIF.
ENDDO.
PERFORM OPEN_2nd_JOb.

Similar Messages

  • How to schedule a background job using the Event concept..?

    Hi Folks,
    I have a requirement that, I need a schedule a background job.
    Once after the previous job successful only, new job should get triggered. How to go ahead with this..?
    For Eg, I am scheduling a job called ZTEST periodically for 1 minute. If the job is not get completing with in 1 minute, I dont want to start my new job. Only after the success of my old job, I want my new job to run.
    Waiting for ur replies.
    Regards,
    Savi.

    Hi,
    You can use events that have already been defined, or you can create new events for scheduling background jobs.
    If you wish to use new events, do the following to implement the event scheduling:
    Define and transport the event as a user event with transaction SM62.
    You must define only event IDs; event arguments are not defined in the R/3 System. Instead, you specify event arguments when you schedule a job to wait for an event and when you trigger the event.
    If you define a new event, you must also transport it to your production systems. The event transaction does not have a connection to the transport system. Instead, you must create a transport request for the event yourself.
    Do this to transport an event:
    Create a transport request.
    Start the editor in the transport request and enter the following:
    R3TR TABU <table name> where table name is BTCSEV for a system event ID, BTCUEV for a user event ID.
    Press F2 with the cursor on the table name to call up the screen for specifying the table entries to transport. In this screen, enter the event ID’s that you have created.
    Save and release the transport request. Ensure that it is imported into your production system(s).
    To trigger an event, add:
    – the function module BP_EVENT_RAISE to your ABAP program, or
    – the program SAPEVT to your external script, batch file, or program.
    When your programs execute these keywords, an event will be triggered in the R/3 background processing system. The event-based scheduler is started immediately. It in turn starts all jobs that were waiting upon the event, subject to normal background processing restrictions, such as the requirement that the job has been released to start.
    Schedule the jobs that are to run when your events are triggered.
    You can schedule jobs for one-time start or to be started whenever an event is triggered.
    Regards,
    Raj.

  • I have been having a issue with getting the colors on my monitor to match the colors fro my print lab. I now have the monitor calibrated to match the prints but when I open elements it doesn't use the same colors. If i have it use the calibrated profile b

    I have been having a issue with getting the colors on my monitor to match the colors fro my print lab. I now have the monitor calibrated to match the prints but when I open elements it doesn't use the same colors. If i have it use the calibrated profile by changing the color management settings, the color picker no longer shows true white or black. How do I get elements 12 to honor the new calibrated settings?

    Ok so I've done what you said and this is what it's come back ....
    I don't know that these are the errors , but they're the things which don't look right ...
    Throughout the shut down there is a recurring line ;
    It says ;
    Com.apple.launchd 1 0x100600e70.anonymous.unmount 301 PID still valid
    Then there are 2 more which I think are related ;
    Com.apple.securityd 29 PID job has I overstayed its welcome , forcing removal.
    Then the same with fseventd 48 and diskarbitrationd 13
    Oh and on Launchd1 : System : stray anonymous job at shut down : PID 301 PPID13 PGID 13 unmount...
    Then the last process says "about to call: reboot (RB_AUTOBOOT).
    Continuing...
    And stops ...
    Hope this means something to you ... Thanks again for your help so far :-)

  • How to schedule the background job using current selection screen field val

    Hello Friends,
    How to schedule the background job using current selection screen field values.
    after completion of the job the spool should be sent as a mail to SAP Inbox.
    Is there any way to create the variant dynamically by reading the current selection screen values.
    Thanks,
    Ravi

    Hi,
    To get the variant details you can use teh following FM.
    'RS_VARIANT_CONTENTS'.
    Regards,
    Ankur Parab

  • I have an apple id for my ipod touch at home. My company is planning to issuing Ipads. Should I use the same apple id on the ipad for those apps I purchase and would like to purchase and use on my work ipad?

    I have an apple id for my ipod touch at home. My company is planning to issuing Ipads. Should I use the same apple id on the ipad for those apps I purchase and would like to use on my work ipad?

    Yes, otherwise you will have to pay for those apps again. If an app is purchased by one Apple ID, he/she will be able to redownload it again for no cost (note: this does apply to songs, but NOT to movies).

  • How to fix the "Two computers using the same IP address" issue on the airport express

    I just bought an airport express and got dsl at my apartment, and I haven't been able to set up the wireless connection. My DSL works just fine but whenever I hook up the AX I get an error message saying that there are two computers using the same IP address on the network, but I only have one computer.
    I know this is probably a simple fix, but I've never had this issue when I set up the Extreme at my parents house and I haven't been able to find a thread on this.
    As of right now I have it set to Factory settings.
    Help please!

    This modem was designed to connect directly to a computer and you are trying to connect it to a router.
    Unfortunately, this is not a simple fix as both the modem and your AirPort Express will need to be configured differently to work together correctly.
    Connect the modem directly to your computer.
    Open up your browser and type the default IP address for the modem into the address bar. Check your documentation on the modem but it is likely 192.168.1.254
    That will bring up the configuration page for the modem.
    You may need to enter the modem access code which is on a label on the back or bottom of the device
    Look for an Advanced tab, then look for a tab labeled something like PPP Location
    Right now, you will see that "PPP is on the modem"
    Chance that to "PPP is on the computer or router"
    Click to save your new settings and the modem will restart
    If you ever need to get the modem back to its original settings, you will need to hold in the reset button on the back of the modem for 5-6 seconds and then enter in the default IP address to be able to access the settings on the modem
    Connect the modem to the AirPort Express with an Ethernet cable
    Open AirPort Utility on your Mac and click Continue to follow the guided setup to "Create a wireless network"
    You may be asked to "switch" networks when you do this. You want to switch
    Select the "Connect Using PPPoe" option when it appears
    Enter your user name and password with your provider. Leave the Service Name area blank. You want to always stay connected if you see that option
    Continue to follow the guided setup and Update to save settings
    Pull the power cord from the modem, wait a moment, then restart the modem
    Log on to the wireless network that you created during the setup and you should have an Internet connection

  • HT5569 iPhone WiFi issue. I enter a password, click join, and get a message back that it is the incorrect password. I have several computers and two other iPhones connected using the same password. Any clues?

    iPhone WiFi issue. I enter a password, click join, and get a message back that it is an incorrect password. I have several computers and other iPhones connected using the same password. Any ideas?

    Hey there Gordo456,
    It sounds like you are not able to join your Wi-Fi network with the correct password on 1 out of many devices. I recommend the troubleshooting from the article named:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/TS1398
    Restart your iOS device.
    Update your device to the latest version of software.
    Update your Wi-Fi router to the latest firmware2. For AirPort Base Stations, install updates using the AirPort Utility.
    If that troubleshooting does not resolve the issue, I would next try these steps from further down the article:
    Unable to connect to a Wi-Fi network
    Verify that you're attempting to connect to your desired Wi-Fi network.
    Make sure you're entering your Wi-Fi password correctly. Passwords may be case sensitive and may contain numbers or special characters.
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings. Note: This will reset all network settings including:
    previously connected Wi-Fi networks and passwords
    recently used Bluetooth accessories
    VPN and APN settings.
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • My debit card kept getting rejected by my iTunes account, it there an issue with iTunes? I have been using the same Card since very long time. I downloaded the iOS 8, can I talk to someone so I can get this resolve?

    My debit card kept getting rejected by my iTunes account, it there an issue with iTunes? I have been using the same Card since very long time. I downloaded the iOS 8, can I talk to someone so I can get this resolve?

    Apple is not here. Contact Apple to resolve your issue:
    iTunes Support WorldWide
    or
    iTunes Support by eMail ww
    Cheers,
    GB

  • How to use a multiple boards (6321/6323) analogical acquisition task with simultaneous analogical generation task using the same boards (Labwindows CVI10)

    Subject : it seems impossible to run a multiple boards analogical acquisition task with one or several analogical generation task using the same boards.
    NI Configuration : Dev1 = Dev2 = 6321 boards
    Development environnement : LabWindows CVI 10
    Source code for analogical acquisitino task :
           DAQmxCreateTask("",&AIRecordingtaskHandle);
           DAQmxCreateAIVoltageChan(AIRecordingtaskHandle,chan,"",DAQmx_Val_NRSE,min,max,DAQmx_Val_Volts,NULL);
           DAQmxCfgSampClkTiming (AIRecordingtaskHandle, "", rate, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, sampsPerChan);
           DAQmxGetTaskAttribute(AIRecordingtaskHandle,DAQmx_Task_NumChans,&gNumChannels);
    Chan = "Dev1/ai0, Dev1/ai1, Dev1/ai2, Dev2/ai1"
    Source code for analogical generation taskS :
           DAQmxErrChk (DAQmxCreateTask("",&AOtaskHandle_C1_DAC0));
           DAQmxErrChk (DAQmxCreateAOVoltageChan (AOtaskHandle_C1_DAC0, chan, "", min, max,DAQmx_Val_Volts, ""));  // chan vaut Dev1/ao0
           DAQmxErrChk (DAQmxCreateTask("",&AOtaskHandle_C1_DAC1));
           DAQmxErrChk (DAQmxCreateAOVoltageChan (AOtaskHandle_C1_DAC1, chan, "", min, max,DAQmx_Val_Volts, "")); // chan vaut Dev1/ao1
           DAQmxErrChk (DAQmxCreateTask("",&AOtaskHandle_C2_DAC0));
           DAQmxErrChk (DAQmxCreateAOVoltageChan (AOtaskHandle_C2_DAC0, chan, "", min, max,DAQmx_Val_Volts, "")); // chan vaut Dev2/ao0
    At the first DAQmxReadBinary call attempt, the system shows an error (see attached document) 
    What we understand about that error : it is impossible to run the two set of tasks (ai and ao) using ressources from both Dev1 and Dev2 in the set of tasks because it is not allowed to use the same Reference Clock for that.
    The question is : is there a way to to that without having that kind of message?
    We tried different combinations :
    - Using only one ao task (on Dev1/Dac0) : same error
    - Not using any ao task (only the ai task) : no error
    - configuring the ai task with only channel from Dev1 : no error 
    - Using "/Dev1/ai/SampleClock" as internal clock for the ai task and "/Devk/ao/SampleClock" for each ao task (k standing for "1" or "2" depending of the ao task we consider) : error
    Thanks a lot.
    Pièces jointes :
    MsgErreur NIDAQmx.JPG ‏38 KB

    doublon
    Valentin
    Certified TestStand Architect
    Certified LabVIEW Developer
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • How To Use The Same Library - MacBook Pro's And Windows XP Pro?

    Background:  I have a fully configured MacBook Pro running OS X 10.8.3. Also, I run Windows XP Pro SP3 using Parallels Desktop. My primary iTunes Library and all content is stored on an external hard disk and the iTunes is "pointed" to that location by setting the iTunes' Preferences' Advanced Settings to the full path where the Library is located. Everything I have inside iTunes works perfect - the size if the Library is over 225GB!
    BUT, when I install and use iTunes on my Windows XP Pro operating system (under Parallels), the contents of the Library SEEMS to work okay (while I'm in Windows) but the Windows' iTunes Library location in Preferences' Advance Tab is NOT THE SAME LOCATION AS IS THE MAC's LIBRARY LOCATION! It is not at the same location as my main/primary iTunes Library is "pointed to".
    The problem occurs when I close Windows and return to the Mac OS X and then try to use my primary iTunes. All of the contents (and any content) within iTunes no longer work! When I attempt to play ANY song, movie, TV show, music video, audiobook, etc., a message pops up saying in effect "Location of 'x' can't be found, do you want to locate it?" I can then click 'yes' and navigate to the Library file that contains the song's file and it will then play fine, as it should. BUT, ONLY THAT SINGLE SONG WILL WORK - THE REMAINING 225GB STILL DON'T WORK!!!
    So, I am forced to go into iTunes' Preferences' Advanced tab and click on "Change Location" then navigate to the proper library file (NOTE, THE LOCATION HAD BEEN CHANGED TO THE LOCATION FOR THE WINDOWS' LIBRARY LOCATION!!!)! Doing this corrects the primary iTunes functionality, but only after being forced to deleting the "iTunes Media Folder", quit iTunes, restart iTunes and Consolidate the Library - a whole bunch of steps and time to get back to "normal"!!!!!
    Again, this all happens by going into Windows, opening its iTunes, then THAT triggers the entire scenario I've described above - EVERY TIME!
    Thus, I avoid iTunes when I go into Windows, but I should NOT have to avoid using iTunes inside Windows! I hope I have described the problem/issues well enough that someone of you experts can provide a practical solution for me.
    A potential remedy I've thought of is:  Go into Windows' iTunes then go into its Preferences' Advance tab and change ITS location to be the exact same location as the primary Mac OS X's, click OK, then immediately close that iTunes.
              DOES THIS SOUND LIKE IT WILL WORK - I.e., USING THE EXACT SAME LIBRARY LOCATION FOR BOTH iTUNES?????
              IF THIS WOULD WORK, WHAT ELSE MUST I DO TO EITHER iTUNES OR TO BOTH iTUNES TO USE BOTH iTUNES
              USING THE SAME LIBRARY???
    Thank you for any suggested solutions - VERY MUCH!
    Larry

    Note that sharing a folder between different OS that use different file paths is not recommended as some files can have an absolute path or other OS specific data.
    You can click the Choose Folder button if you want to create or use a folder in a different location.<br />
    Make sure to select an empty folder (you need to create this folder in advance) and not a folder that already has files as Firefox will use the specified location in this case.
    *http://kb.mozillazine.org/Profile_Manager
    You can also create a new profile via the command line.
    *https://developer.mozilla.org/Command_Line_Options
    You can consider to use Sync to sync the two profiles

  • Multiple users using the same templates?

    The place I work puts out a weekly TV show and we regularly use the same lower thirds for various titles that come up throughout the show. After opening them up in Motion 3 I saved the titles as templates, which is great because now I can do all the work in FCP rather than Motion.
    However, the templates are saved to my user on the local HD. We have multiple editors that work on multiple computers.
    Is there a way to make the templates available on all computers to all users?
    Any suggestions is appreciated.
    jesse.

    Too, here's one more roadblock to (hypothetically) consider.
    Even if what we've discussed happened to work, there would be one more issue: network bandwidth. When you add one of these "Master Templates" to a FCP timeline, then drag it to the browser, then right-click and select "Reveal in Finder", it points straight to the Templates folder that I alluded to earlier. Locally.
    So if this template lived in one central place then, potentially, all editors could be trying to access it, in real-time, remotely, simultaneously. I think this would wreak havoc quickly. Unless of course you're employing a SAN. Now we're talking about a whole new beast. (Unless you've got a SAN already. ;))
    Bottom line is you're going to distribute templates to all editors individually. Unless you're developing new templates all the time, then this shouldn't be too much of a chore. Just out of curiosity, how many editors will this be deployed to?

  • Problem with SubmitButton name across screens, which use the same action?

    I am using multiple submit buttons in a single JSP. The problem i am using the same action across 4 screens, and excpet the 1st screen the remaingin 3 screens have BACK & Continue button, in every page the click of back button should take back to the previous screen and continue should submit the options selected to the next screen;
    The problem is i m using to LookupDispatchAction to handle multiple submit buttons, and i m using this for buttons
    <html:submit property="method"><bean:message key="reg.bt.back"/></html:submit>
    In resource bundle reg.bt.back=Back , but i need to pass to the previous screen so how to do that
    Help needed............
    Thanks in Advance

    why can you not store the information you require in the session?
    session.setAttribute("attributename" <attribute object>);
    surely that would negate you needing to pass parameters though the http?
    but otherwise there are several ways to do this, first of all you could simply rewrite the URL, which i'll admit is slightly labour intensive, but it would do the job... of if you really wanted you could put hidden html values throughout your page, and populate them with the data you wish you pass in your request, as long as the hidden inputs are in the <form> there should be no issue here.
    N.B. you are right, i would never suggest using JS for ANYTHING to do with sessions and submitted/retrieving data when you are using a JSP.

  • Mozilla using the same session ID for  different browser

    Hi
    I am using mozilla to test my application. I tested two subscription of my application in two different mozilla browsers simultaneously.
    Here I Found details are swapped. Because mozilla using the same JSession ID for the two browser.
    This is a flaw in mozilla or whether this issue is solved in any one of the version of mozilla.
    When ever I am opening a new window, new session ID should be created like in IE (Internet explorer).this not happening in Mozilla.
    Can any one help me out from this problem?
    Thanks
    Dilip

    Hi,
    I cannot help you with your problem.
    But I want to ask what are you using to control Firefox ( on Windows... ) ?
    Thanks

  • HT204074 All of our devices have the same apple id (2 iphone 4's & 1 Windows Comp..) How can we seperate them but also allow them to still use the same itunes account?

    I tried to ask a similar question before, however did not understand our issues well enough to even form a comprehensive question and the kind replies.
    I apologize, unfortunately I've yet to resolve our problem.
    All of our devices are under the same Apple ID & password (an IPhone 4s, an IPhone 4, and a Dell Laptop that uses Windows 7.) How in the world can
    we separate them (so we can both use our free 5GB under the iCloud storage that each of our IPhone's offer, but "also" still use the same shared ITunes
    account?
    As it stands right now, my son's phone (iPhone 4) is set up under our Apple ID & pw-which enables him to use the free 5gb's under the iCloud.
    I cannot take advantage of the Free 5gb's iCloud on my IPhone 4s, because it's all "my info." on my son's phone (my email address & pw=what we've always used for our shared ITunes acct.)
    A big fat mess I know, and don't even want to confuse things by asking about these SMTP's...1 thing at a time!
    Not sure if it is still on his phone, however in trying to resolve this issue last time I set him up with a MobileMe address. I believe I entered my info back into his phone because it created a bigger mess!
    Thank you in advance for any suggestions/help! It's taken me some time to gather the patience and courage to ask for help again in resolved this
    issue!

    I don't know if I'm asking this all in a way that can be understood? Thanks ED3K, however that part I do understand (in the link you provided!)
    What I need to know is "how" I can separate or rather create another Apple ID for my son-who is currently using "my Apple ID?" If there is a way to let him keep "all" his info on his phone (eg-contacts, music, app's, etc.) without doing a "reset?') Somehow I need to go into his phone's setting-create a new Apple ID and possibly a new password so he can still use our combined iCloud & Itunes account?
    Also then letting me take back my Apple ID & password, but again allowing us (my son and I) to use the same iCloud & Itunes account? Does that make more sense??? I'm sincerely trying to get this cleared up once and for all----just need guidance from someone who has a true understanding of the whole Apple iCloud/Itunes system!
    Thanks again for "anyone" that can help me!!!

  • How Many Times Can I Use The Same Serial Number For Adobe Creative Suite 4?

    I have design standard and was told I can use the same serial number on multiple computers. How many time can I use it? And say I install it on the maximum number of computers, but get a new computer, can I uninstall it on one of the old computers and use it on the new one? And can I use the programs on both computers simultaneously or do I have to use them one at a time?

    Fred Tech wrote:
    Broadly speaking, it depends on the type of license you have.
    Specifically, if you have a single license then officially, you should only install it once on one computer.
    Practically, (unless it has changed with CS4) you maybe able to install it on more then one computer, BUT can only run one instance of the software at a time. You can not run more then one instance of the software concurrently; i.e. you can't run Dreamweaver on Computer 1 and Photoshop on Computer 2. That would be two instances, and is not permitted.
    This is my understanding. I am happy to be corrected if I am wrong
    Fred
    Sorry Fred you are wrong.
    If you have a single license you can install it on as many computers as you like. you can only activate the suite on two computers at anyone time. Work and Home or as many of us do it Desktop and Laptop. You can not use the computers simultaneously. You only have 20 activation/deactivations so use them wisely. Student versions only have one activation. You can not break up the suite installs the suite is considered one application.

Maybe you are looking for

  • Copy fixed text values from shopping cart to PO in SRMSERVER 5.5

    Hi, We use SRMSERVER 5.5 and want to use text schemas with fixed values to allow the user to in the shopping cart select specific predefined texts that should be visible on the output of the PO. When looking at the IMG documentation for standard text

  • Authority-check for particular comp code

    Hi All, when i'm using standard Authority Object F_BKPF_BUK  for a particular standard code say 'CO01'. but it is working for all company code, but i want work for only one company code say 'CO01' ONLY.i'm using in report program (zreport prog) I wri

  • Correction Invoice and "invalid document structure" problem

    Hello! Can anybody explain what properties are obligatory for correction invoices? I'm trying to add() one and it always say -5002: invalid document structure. In the CSI1 table I see linenum has to be unique, every baseline is twice. Do I make any s

  • Two user IDs for the same person in SAP

    Hi Experts, The user has somehow got the Approval from the management to get Two USer ID In SAP CRM. Now requested for Access. As per the Best Practice, One user should have only one SAP USER ID. Since the User is a Managaer in Sales, we have assigne

  • How can I get apps for my ipod touch with ios 2.2?

    I've been trying to search for games/apps for my iPod Touch but can't seem to find anything that doesn't required iOS 3.0 or greater. Does anyone have any suggested apps/games for the older gen ipod touch?  Is there a way to search the apps store for