Payroll area locked.How to Stop the workflow during this period ?

Dear experts,
In the travel workflows, after all the approvals, there is a standard task(Custom) with a custom method(BUS2089 Enhanced).
This method updates the infotype 2002 (Attendances). This works fine for the whole month except during the  payroll run which will be for 3-4 days after 20th of every month.
We have maintained the exception for this when the control record is in the status '1' or '4', by passing a temporary error to the workflow.
SELECT SINGLE * FROM t569v WHERE abkrs = 'Z0'.
IF sy-subrc EQ 0 AND ( t569v-state EQ '1' OR
                       t569v-state EQ '4' ).
  return-message_v1 = 'Employee Master data locked for Payroll'.
  exit_return 1001 return-message_v1 return-message_v2
                   return-message_v3 return-message_v4.
As i understand the workflows can be restarted after solving the temporary errors.But this Temp error will only be solved after the payroll record is becomes 'Exit Payroll'.
The system attempts for 3 times in the period of 30 minutes and then the tempoarry error becomes a permanent error and this way the workflows goes into a permanent error which cannot be restarted even after the payroll is exit.Due to this may workflows are unable to update the Infotyp 2002 however their trips are approved at all levels.
This counter of 3 times and 30 minutes, I belive the system is taking from the error monitoring program (RSWWERRE / SWWERRE) in SWU3.
I am thinking of putting the workflow into 'Wait' state till the period when the Payroll is locked. This way , we can avoid the workflow even from going into temporary error.
Can anyone help in this regard ? Do we need to add a WAIT step in the WF Definition or control in the method code itself ?
Does WAIT UNTIL (ABAP Keyword) works for 3-4 days of payroll run if we implement in the method code itself?
-Anwar
Edited by: Sameer Anwar on Aug 20, 2011 9:44 AM
Edited by: Sameer Anwar on Aug 20, 2011 9:45 AM

Hi Sameer,
But , Can you pls put some more information on why we need to avoid WAIT UNTIL in Tthe ABAP ?
Wait Steps are only used where you have 1 event which the workflow would expect ...moreover this would require more effort in terms of implementation...( you will have to create an event manually after your payroll is open).
I would suggest create an virtual attrubute of the BO  which will populate a whetherr the Payroll is locked or unlocked... then use this attribute as a start condition in the conditions tab of your step. this would stop the workflow until the payrol is open...
Regards
Gautam
Edited by: gautam maini on Aug 20, 2011 2:34 PM
Edited by: gautam maini on Aug 20, 2011 2:35 PM

Similar Messages

  • How to stop the workflow

    Hi. i want to know the process of how to cancel the workflow, stop the workflow.
    i know ho to reject the workflow once it is initiated.
    regards
    Arifuddin

    Hi Arifuddin,
    Are you trying to cancel the workflow using PL/SQL, if so make use of API 'WF_ENGINE.ABORTPROCESS' to cancel any active workflow.
    You can pass parameters as, 'ITEMTYPE', 'ITEMKEY', 'PROCESS NAME' and 'WF_ENGINE.ENG_FORCE'.
    Hope this helps.
    Regards,
    pP.

  • How to purge the workflow which is in process

    Hi Friends,
    I am facing one problem in the AME Workflow.
    when a user submit a page for approval process, workflow engine invokes . and in the hr_api_transcations table transacation id is created for that workflow transacation. now the problem is, if i purge that workflow process using concurrent program 'PURGE OBSELETE WORKFLOW RUNTIME DATA' . it is deleting the workflow. but when i see the hr_api_transacation table still the transacation id for that workflow is active.
    Example :-
    when i see through through the responsibility (workflow administrator web applications)=>Administrator workflow=>Status monitor
    when i type the item key say some x and search for the workflow status i cant see the workflow status. i can see it is deleted.
    but when i type the same item key in the hr_api_transacation
    like :- select * from hr_api_transactions where item_key='X' i can see the status of this transacation is active and workflow is in pending.
    can anyone explain me why system is behaving like.. how to stop the workflow process and how to delete the transacation id from the table.
    Thanks in advance

    Please check below nots
    453137.1 (Oracle Workflow Best Practices Release 12 and Release 11i) sections titled "Choosing Not to Use E-mail Notifications" and "Cleaning Up the WF_NOTIFICATION_OUT Queue"
    How to purge e-mail notifications from the workflow queue so the e-mail is not sent [ID 372933.1]
    264191.1 describes how to Purging Oracle Workflow tables of obsolete workflow runtime information for completed workflow processes is a required regular maintenance tas
    Notification Mailers Unavailable
    How to delete undelivered notifications from WF mailer

  • HT3275 2 problems: All files are locked - how to globally unlock on the backup drive? I am backing up large video files 500GB on a 2 TB machine. Time Machine repeatedly copies everything using up all of disk space. I only need 1 copy not, twenty. What to

    2 problems: All files are locked - how to globally unlock on the backup drive? I am backing up large video files 500GB on a 2 TB machine. Time Machine repeatedly copies everything using up all of disk space. I only need 1 copy not, twenty. What to do?

    2 problems: All files are locked - how to globally unlock on the backup drive? I am backing up large video files 500GB on a 2 TB machine. Time Machine repeatedly copies everything using up all of disk space. I only need 1 copy not, twenty. What to do?

  • Regarding Mail:  When I return to my computer after it has gone to sleep, my accounts go offline, and are always asking me for the password.  THis is very annoying.  How can I prevent this?

    Regarding Mail:  When I return to my computer after it has gone to sleep, my accounts go offline, and are always asking me for the password.  THis is very annoying.  How can I prevent this?

    Back up all data.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Select the login keychain from the list on the left side of the Keychain Access window. If your default keychain has a different name, select that.
    If the lock icon in the top left corner of the window shows that the keychain is locked, click to unlock it. You'll be prompted for the keychain password, which is the same as your login password, unless you've changed it.
    Right-click or control-click the login entry in the list. From the menu that pops up, select Change Settings for Keychain "login". In the sheet that opens, uncheck both boxes, if not already unchecked.
    From the menu bar, select
    Keychain Access ▹ Preferences ▹ First Aid
    If the box marked Keep login keychain unlocked is not checked, check it.
    Select
    Keychain Access ▹ Keychain First Aid
    from the menu bar and repair the keychain. Quit Keychain Access.

  • How to allocate the workflow to the action defnitions in solution manager

    Hi,
    we are having solution manager with the CHARM configured, and currently we are looking for the trigger of mail and workitem for change of action. the work flow is designed for that, but how to assign the workflow to the condition and processing type .
    please suggest, points are definetly awarded.
    Thanks and regards
    keerthi

    Hi,
    Well, why dont you check the event that gets triggered during the Status change of the user?
    This can be done by switching on the EVENT TRACE using SWELS txn and simulate the BUSINESS PROCESS and then check the event trace using SWEL.
    After getting the required Business Object and event, Please attach your WF to that EVENT in the BASIC DATA-START EVENTS.
    Regards,
    <i><b>Raja Sekhar</b></i>

  • How to stop the changes made for the BP in CRM not to update in R/3

    Hello Gurus''
    we are in need of help......i have an issue...the issue is
    Wht ever the changes we do in crm , need to be not updated in r/3 ....for example if we change the the language for the BP 100 in CRM, it should not update in R/3
    Where as in our case the data is updateing in R/3
    Here by requesting you all to help me out how to stop the updaation of some changes  which are made in CRM , that should not be in R/3
    Point will be given......
    Regards
    sreeram Raghu

    Hello
    Thanks for ur reply.........
    We have the following business process
    We create BP with role prospect in CRM, once the prospect is ready to buy the product we conver the prospet in to customer and thesame  customer is replicated in R/3 fro sales.
    What i am looking at is for the customer we created in CRM if we change any data that should be updated in r/3..it may be nay like name address ...language....etc.....
    can u help me out...as u told me to unassig/delete the subcription:All Business partner(MESG) under that we have --
    >publication>All BP(MESG)->Replication object-->Bupa_Main
    >Sites-->SQ1_300
    If we do this process does the issue will fix or else we need to do soem thing more...
    Thanks in advance
    Regards
    Sreeram Raghu
    +91-99 94 94 82 72

  • How to stop the replication of a particular business partner from sap crm to sap ecc - BDOC

    Hi experts,
    I need to know the procedure to stop replicating a particular BP #1234(example) from CRM to ECC. I don't want this BP to be replicated in ECC as in ECC this BP will not be maintained.
    BDOC failure:
    In my current scenario BDOCs are failing with error like "No BP exist". Since this BP #1234 itself is not present in ECC, the error is obvious.
    This BP #1234 is defined in CRM as an Org. Unit. We don't maintain Org. Unit in ECC. All other BP are saved under this BP(#1234).
    Issue:
    So whenever a new BP(example #ABC) is created, the BUPA_REL type BDOC fails with error "BP with number #1234 doesnot exist.
    I don't want this to happen. So what i found if we can stop the replication of this particular BP #1234, then if we make any change to the relation BP, this error should not come.
    Please help me to resolve this BDOC error.
    regards,
    Vicky

    Hi Ganesh,
    1st we create a Organization structure through tcode-PPOSA_CRM.
    A business Partner is created which represent the Organization Structure partner ID.
    2nd we create a BP through and do a Org. assignment in tcode - PPOSA_CRM.
    A business Partner is created which represent the any customer partner ID.
    As soon as you do an assignment,assigning the customer BP to the org BP, a BUPA_REL BDoc flow but it fails.
    Error we get in the BDoc: "BP XXXX doesnot exist"
    Reason: Since this Org BP is not present in ECC, the BDoc fails in CRM.
    Possible Resolution 1:
    1. I created this Org. BP in ECC through CRMM_BUPA_MAP
    2. The BP got created.
    3.Then i tried to assign a new customer BP to Org BP to check if the issue is resolved, but we get another type of error 'BP is not defined as internal Org. Unit".
    I don't know how to define BP as an internal Org. Unit in ECC?
    Can you please help me in this.
    Possible Resolution 2:
    If i can stop this particular BUPA_REL BDoc which contains this Org.unit BP, from getting replicated, means when i assign the customer BP to Org.Unit BP, BUPA_REL should not be triggered.
    I don't know if this is possible or not, but if this is possible, i would consider this a last option to resolve this issue.
    Please let me know if this helps you to understand the issue i am facing?
    regards,
    Vicky

  • How to stop the waterflow?

    Hi,
    I need to make the water coming from the shower, when shower is clicked.
    And the water should stop after 5 seconds.
    The code is below.
    The water is flowing nicely. But I do not manage to stop it.
    I added a timer, which starts when the shower is clicked. And should stop the waterflow after 5 seconds have passed.
    With the lines
    if (stop = true)
         break;
         trace("break");
    it looks like the for loop is breaking right from the start, from the first second. But not completely, somehow 1 or 2 drops are flowing.
    Without these lines nothing is happening when the time is over (5 seconds from clicking the shower). Water is just flowing.
    Can someone help? How to stop the water flowing after 5 seconds and clean of the array and stage from the waterdrops?
    Many thanks in advance!
    import flash.display.MovieClip;
    import flash.events.Event;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    var WatertropArray: Array = new Array();
    var WaterArea01: MovieClip = new WaterArea();
    var WaterBorder01: MovieClip = new WaterBorder();
    var timer: Timer = new Timer(5000, 1);
    var stopp: Boolean;
    var i: uint;
    Shower.addEventListener(MouseEvent.CLICK, waterFlowStart);
    function waterFlowStart(event: MouseEvent): void
                    addChild(WaterArea01);
                    WaterArea01.x = WaterArea00.x;
                    WaterArea01.y = WaterArea00.y;
                    WaterArea01.alpha = 0;
                    addChild(WaterBorder01);
                    WaterBorder01.x = WaterBorder00.x;
                    WaterBorder01.y = WaterBorder00.y;
                    WaterBorder01.alpha = 0;
                    stopp = false;
                    timer.addEventListener(TimerEvent.TIMER, waterFlowEnd);
                    timer.start();
                    addWaterdrops();
                    Shower.removeEventListener(MouseEvent.CLICK, waterFlowStart);
    function addWaterdrops(): void
                    for(var i: uint = 0; i < 100; i++)
                                   var waterDrop: MovieClip = new Waterdrop();
                                   addChild(waterDrop);
                                   waterDrop.x = Math.round(Math.random() * stage.stageWidth / 1.5);
                                   waterDrop.y = Math.round(Math.random() * stage.stageHeight / 3);
                                   waterDrop.alpha = 0;
                                   waterDrop.rotation = -12;
                                   WatertropArray.push(waterDrop);
                                   trace("waterdrops added");
                                   moveWaterdrops();
    function moveWaterdrops(): void
                    waterDrop00.addEventListener(Event.ENTER_FRAME, waterFlow);
    function waterFlow(event: Event): void
                    for(var i: uint = 0; i < WatertropArray.length; i++)
                                   WatertropArray[i].y += 8;
                                   WatertropArray[i].x += 5;
                                   //trace(i);
                                   if(WatertropArray[i].hitTestObject(WaterArea01))
                                                   WatertropArray[i].alpha = Math.random();
                                                   WatertropArray[i].scaleX = Math.random();
                                                   WatertropArray[i].scaleY = WatertropArray[i].scaleX;
                                   if(WatertropArray[i].hitTestObject(WaterBorder01) || WatertropArray[i].x > stage.stageWidth || WatertropArray[i].y > stage.stageHeight / 2)
                                                   WatertropArray[i].x = Math.round(Math.random() * stage.stageWidth / 1.5);
                                                   WatertropArray[i].y = Math.round(Math.random() * stage.stageHeight / 3);
                                                   WatertropArray[i].alpha = 0;
                                   if(stopp = true)
                                                   break;
                                                   trace("break");
    function waterFlowEnd(event: TimerEvent): void
                    trace("TIME OVER");
                    stopp = true;
                    stoppTrue();
    function stoppTrue(): void
                    for(var i: uint = WatertropArray.length; i > WatertropArray.length; i--)
                                   remove(i);
    function remove(idx: int)
                    removeChild(WatertropArray[idx]);
                    WatertropArray.splice(idx, 1);
                    trace("REMOVED");
                    removeChild(waterDrop00);
                    trace(i);

    thanks again, kglad.
    changed the for-loop and it is reaching now the last functions as well.
    but there is still a but  ... an error message.
    function waterFlowEnd(event: TimerEvent): void
    trace("TIME OVER");
    stopp = true;
    stoppTrue();                                                       // line 106
    function stoppTrue(): void
    for(var i: uint = WatertropArray.length-1; i >= 0; i--)
    trace("stoppTrue");
    remove(i);                                                         // line 115                                                    
    function remove(idx: int)
    removeChild(WatertropArray[idx]);                   // line 123
    WatertropArray.splice(idx, 1);
    trace("REMOVED");
    //removeChild(waterDrop00);
    trace(i);
    and the output panel gives the following (tested with 5 water drops, 5 items in array):
    TIME OVER
    stoppTrue
    REMOVED
    0
    stoppTrue
    REMOVED
    0
    stoppTrue
    REMOVED
    0
    stoppTrue
    REMOVED
    0
    stoppTrue
    REMOVED
    0
    stoppTrue
    TypeError: Error #2007: Parameter child must be non-null.
    at flash.display::DisplayObjectContainer/removeChild()
    at TitavannisinglisekeelneAS3_fla::MainTimeline/remove()[TitavannisinglisekeelneAS3_fla.Main Timeline::frame1:123]
    at TitavannisinglisekeelneAS3_fla::MainTimeline/stoppTrue()[TitavannisinglisekeelneAS3_fla.M ainTimeline::frame1:115]
    at TitavannisinglisekeelneAS3_fla::MainTimeline/waterFlowEnd()[TitavannisinglisekeelneAS3_fl a.MainTimeline::frame1:106]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    What is that error message trying to tell me?   

  • How to stop the internal batch session

    Hi ,
    How to stop the internal batch session, which is triggered from the program.
    When I execute the program, there is an batch session, which starts processing in parallel with the program, and causes an error message for the program, so the further process is affected.
    I tried finding the session through the Transactions - SM35, SM37. However, I could find any session in my name.
    However, when I try thro SM04, I could find an session with the same error message. But I am not able to end the session.
    Pleas advise.
    Thanks,
    cartesian.

    Go through transaction SM50. In case you have more than one application server (transaction SM51 will show) you can also use SM66 which will show all running processes on all application servers.
    With SM50 you will only see the process running if it is running on the same application server you are logged on to.
    Mark the process and use menu 'Program/Session - End Session' or 'Process - End with or without Core'
    Hope that helps,
    Michael

  • How to stop the auto-start of log reader agent (replication) right after my database is restored?

    I have the scenario where the SQL server is restored (after migration).
    This database has transactional replication set-up on one of the databases. When I do a manual delete and restore of the database, I see that the replication starts right after the publisher and subscriber are restored.
    Replication agents should not start and run before the integrity checks are completed. How to stop the replication from auto starting right after the migration?
    Thanks in advance - Jebah

    Thanks Pradyothana, I have disabled the logreader, distribution agents through sp_update_job in Tsql script. I have also verified that there are no pending transactions to be replicated to the subscriber, I see that the job is still being executed. Is there
    any other way to disable the jobs?
    Steps I followed
    Started with a Working publication and subscription
    Disabled the jobs (log reader and distribution agents)
    Backed up publisher, subscriber, distribution and msdb
    Deleted the publication, subscription, publisher and subscriber
    Restored the publisher, subscriber, distribution and msdb
    Enabled the jobs and executed sp_replrestart
    Observations/Issues
    Replication does not work
    Replication monitor does not show any error
    Jobs are shows as enabled but not started in job monitor
    Not able to start/stop the log reader and synchronization manually.
    I am not sure if I have missed something while restoring the db.
    Thanks in advance

  • How to stop the running infospoke

    Hi Experts,
    there is a infospoke is still running so long time, it's incorrect, i'll cancel it as kick off the dependenies, i have no idea to how to stop the running infospoke. Anybody could tell me how to do it. thanks in advance.

    hi denny,
       Go to SM37 , find the job , stop the process
    or
       To stop the job find the job with the help of the request name ( TC - SM37 ),then in the job Details find the PID .
    find the process in the process Overview (SM50 / SM51 ).
    Set the restart to NO and Cancel the process without core
    u can also see these threads that are already posted:
    stopping v3 run job LIS-BW-VB_APPLICATION_02_010
    how to cancel or change the background job which is scheduled
      In SM37, for the job , click on Step button. Then from the menu Goto > variant. You can see the process chain name here.
    sure it helps
    Thanks
    Varun CN

  • HOW TO STOP THE PROCESS CHAIN WHICH IS RUNNING IN THE PRODUCTION?

    HI ALL,
    CAN ANYONE TELL ME HOW TO STOP THE PROCESS CHAIN WHICH IS RUNNING DAILY AT 5.00 PM. I NEED TO STOP THE PROCESS CHAIN FOR COUPLE OF DAYS AND THEN RESTART IT AGAIN.
    cAN ANYONE TELL ME THE PROCEDURE TO STOP THE ENTIRE PROCESS CHAIN RUNNING IN THE PRODUCTION.
    THANKS
    HARITHA

    Hi,
    First and foremost let me advice you to be very careful while doing this.
    For Rescheduling
    RSPC> chain > Goto > Planning view and
    click on Execution tab > select > Remove from Schedule and then in Maintain variant of start process reschedule for the day you require it to run.
    For terminating active chain
    You can start from SM37, find the process WID/PID then go to SM50 or SM51 and kill it. Once its done come back to RSMO and check the request, it should be red but again manually force to red and save by clicking on the total status button in the status tab. This shuld ensure that the process is killed properly.
    The next step will be to go to targets that you were loading and remove the red requests from those targets.
    Note: For source system loads you may have to check if the request is running in the source system and kill if needed and pull it again.
    But for BW datamart delta loads u may have reset the datamarts in case u are going to pull the delta again.
    Re: Kill a Job
    Re: Killing a process chain.
    Regards,
    JituK

  • How to stop the auto updater in N900 application m...

    Hey guys,
    Anyone know how to stop the auto updater in N900 application manager ?
    Coz when i connect via wifi or 3G, it always try to search for updates...Coz of that i cant search the web properly until its over.
    Specially when i connect via GPRS, i have to pay more for this extra mega bites use from app manager...
    So got any ideas for this prob...?
    (I usually use faster app manager to install apps.)
    Click the star if this helps you (",)
    If this is your answer, please do not forget to click "Accept as solution" (",)

    virajx3006 wrote:
    Hey guys,
    Anyone know how to stop the auto updater in N900 application manager ?
    Coz when i connect via wifi or 3G, it always try to search for updates...Coz of that i cant search the web properly until its over.
    Specially when i connect via GPRS, i have to pay more for this extra mega bites use from app manager...
    So got any ideas for this prob...?
    (I usually use faster app manager to install apps.)
    dude check your inbox
    Reality is wrong....dreams are for real... 2pac .
    don't forget to hit that green kudos

  • How to stop the process chain showing status as yellow but no process step

    Dear Friends,
    How to stop the process chain showing status as yellow but no process step is running in that process chain.
    We have manually triggered the process chain for sales it finished successfully till load data but the next step is create index and DB statistics. Both of this steps are in unscheduled position only and no background job for this.
    Please guide me.
    Thanking you in advance.
    Regards,
    Shubhangi

    Hi,
      At times even I have faced this situation.  During those times, running the Function module RSPC_PROCESS_FINISH by passing the right parameters came to my rescue.
    Regards,
    Raj

Maybe you are looking for

  • The songs that i didnt buy off of itunes wont download onto my phone. Why is this happening?

    After i downloded the IOS7 i no longer could put the music i have downloaded off CD's and such onto my iphone. i was wondering how i could fix this so that i could get the rest of my music onto my phone.

  • Disable particular Mapping Execution in Process flow

    Hi, I am working on OWB 11gR2. I want to disable the execution of a particular mapping in the Process flow. For example, there are 4 mappings A,B,C,D which run one after another,I want to disable the execution of mapping C alone.Is this feature avail

  • Transport protocol version error in Integration Directory API

    Hi All, I am trying to create SOAP receiver communication channel using Java-only PI 7.31 directory APIs. I have passed all the required parameters to the CommunicationChannelIn service, but it's throwing error - "Enter at least one object key for op

  • Trying to create an O with a twirl effect

    Hello, I am pretty new to photoshop. I am trying to create an "O" like the one in the attachment and i can't for the life of me figure out how to create that. I tried everything, the twirl filter and everything but i can't even come close to getting

  • Iweb video player, audio player

    ok i have published a little website on a separate domain from .mac, in iweb i have put a video player and 2 audio players on a page. when i play them in iweb they play perfectly but when i upload it to my website only the video plays the two audio p