KSV5 Batch Job fails on second day

Hi All,
We execute KSV5 in batch for first four days(i.e. 01 till 04 of new month) of new month.
First day the Batch job runs successfully, but balance 3 days the job fails with an error as
(program RKGALKSV5, variant XXXX DSB, user ID BATCH)
The reversal has not been updated
Message no. GA534
Diagnosis
Because CCA: Actual Distribution has already run, old document numbers are reversed before processing begins. Processing can only begin once reversals have been updated. If processing occurred earlier, debits and credits not yet reversed would be affected.
To ensure this, the reversal sets a lock (ENQUEUE EK811D) which is only removed once updates have been made.
The processing waits until the block has been removed. The maximum time processing will wait is determined by the profile parameter ENQUE/DELAY_MAX. The default for this parameter is 5 seconds. Normally this amount of time is sufficient; however, certain factors such as high system usage can delay updates.
This is the case here.
System Response
Processing of CCA: Actual Distribution is not started.
Procedure
Wait until the reversal has been updated. You can monitor the update with the menu path Tools -> Administration. If the update is not made due to a system error, contact your system administrator. If the reversal is updated, restart the processing. Because reversal has been performed, processing starts immediately.
If this error occurs repeatedly, increase the value of the ENQUE/DELAY_MAX profile parameter. Processing then will wait longer for the reversal to be updated. Consult your system administrator before you change the parameter.
We are not sure where & how to update the wait time in Profile Parameter.
Can you pls advice, how to fix it.
Appreciate your help.
Regards,
Dixon.

Hello Dixon,
Are you running the same cycle each time ?
so you run, and reverse and then run and reverse  ??
or is it 4 different cycles ?

Similar Messages

  • Batch Jobs fail because User ID is either Locked or deleted from SAP System

    Business Users releases batch jobs under their user id.
    And when these User Ids are deleted or locked by system administrator, these batch jobs fail, due to either user being locked or deleted from the system.
    Is there any way that these batch jobs can be stopped from cancelling or any SAP standard report to check if there are any batch jobs running under specific user id.

    Ajay,
    What you can do is, if you want the jobs to be still running under the particular user's name (I know people crib about anything and everything), and not worry about the jobs failing when the user is locked out, you can still achieve this by creating a system (eg bkgrjobs) user and run the Steps in the jobs under that System User name. You can do this while defining the Step in SM37
    This way, the jobs will keep running under the Business User's name and will not fail if he/she is locked out. But make sure that the System User has the necessary authorizations or the job will fail. Sap_all should be fine, but it really again depends on your company.
    Kunal

  • Email notification if batch job fails

    Hi,
    My requirement is to send a notification to a user if the batch job fails.
    The batch job is a Z report program.
    Regards
    Suresh Kumar

    HI,
    Check this thread..
    When a Job in SM37 fails means a email should be send
    Regards,
    Omkar.

  • Setting up alarms when batch jobs fails

    Hi,
    I hv a requirement to setup alarms whenever a sap batch job fails,  Can anyone help me in this regards.
    Thank you very much in advance.
    Kind Regards,
    Ahmed.

    check this document
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8065591d-ea33-2b10-a0af-f17c923874c8
    see in page-2.
    кu03B1ятu03B9к

  • Batch job failing with INVALID_STARTDATE exception

    Hello Experts,
    our batch  job  runs 17th minute of every hour on daily basis.It is running successfully from 00:17 AM to 20:17 PM and gets completed within 1 hour for every run.
    But when it is starting 21:17PM, it keeps on running for next 5-6 hours and then gets cancelled with error "Invalid_startdate"
    Currently it is posting all the idocs.Idoc status is 53. But the problem is  closing the job Function module JOB_CLOSE is throwing an exception "INVALID_STARTDATE" and gets cancelled.
    Could anyone please provide us any help on this.

    Usually this message is raised because of:
    Unsupported combinations of specifications, such as periodic repetition of jobs that were scheduled to wait for a predecessor job
    Incomplete or incorrect specifications, such as an incomplete start date.
    but..is your SAP in a time zone 3 hours different from yours?
    e.g. New York has already a new day when you have 9PM in LA

  • To run a batch job two times a day daily

    Hi,
    I am facing a problem in creating a batch job in SM36.
    Is ther any option so that i can run the job every day at 10 am and 2 pm????
    THanks in advance!!!!!
    harkamal

    create two instances of job with the same name to run at 10 Am and 2 PM daily.
    Hope this helps.

  • Batch job failing-error"SUBMIT authorization F_001 required"

    hi Experts,
    One job kept failing -job log saying"SUBMIT authorization F_001 required"-please guide

    Hi Julius and all,
    Thanks for inputs,here the Auth group missing is clear--its "F-001".
    But the problem is this that User is able to run this some days before and still able to run the job in quality,(and also i am able to run the job in Fix and quality systems for test id created identical as user),but getting this error only in production.
    Same roles are given in all systems.(with No f_001 is given under P-Group in Fix and Quality also)
    Also nothing comes up in traces
    Is it possible that this Auth Group is given under some more broad auth group/s whoes access granged in Quality systems like two or three Auth group defined under some Auth group and access is coming from that Parent Auth Group?
    Please tell if this kind of Grouping and relation-ship possible for Auth Groups or not
    Thanks Again

  • Batch job not creating purchase requisitions

    I have a batch job that runs every day at 5 pm.  The point of this job is to run the MRP and create purchase requisitions for materials that have more demand than current supply.
    Programs ran within the jobu2026
    RWPOB001
    RVV50R10C
    RMMRP000
    My problem...
    Purchase Requisitions are not being created for random materials after the batch job has been ran.  When the MRP is run by itself (MD01), ALL materials will have purchase requisitions created for them without fail.  There is no order to it, and no one has kept track of any material numbers that have not had purchase requisitions created, so I cannot check the configuration.
    How I would like to investigateu2026
    1 u2013 Obtain a list of ALL purchase requisitions created in the timeframe AFTER the batch job has been ran
    2 u2013 Export this list into Excel
    3 u2013 Run the MRP manually to create purchase requisitions for ALL materials
    4 u2013 Obtain new list of ALL purchase requisitions created in the timeframe AFTER the MRP was manually ran
    5 u2013 Export this list into Excel
    6 u2013 Compare both lists; remove duplicates, display materials and requisitions that were created AFTER the batch job missed them.
    How would I go about getting a full list of purchase requisitions that have been created within the time frame the batch job has been ran, then export them into excel?  I understand that ME5A is the standard transaction for displaying lists of purchase requisitions, but how would I go about pulling all purchase reqs CREATED within a certain time period?
    Please, include specific SAP transactions and details in your answers.
    Also, if anyone has any good advice regarding how to get to the bottom of this specific issue, Iu2019m open to suggestions.  All good suggestions will be rewarded promptly.

    Cameron Lawrence Dunbar wrote:
    >
    > You mention that RMMRP000 should be ran before requirements planning.  Is it possible that our positioning of the program at the end of the job is causing these issues?  Or is it most likely the varient/parameters of one of these programs?
    >
    > Also, how can I display a list of purchase requisitions CREATED over a certain period of time?
    No, I did not say that RMMRP000 should be ran before requirements planning. I said it is the requirments planning. So you just run it twice if you execute it with MD01 again after this job.
    Running it twice should not end in different results if it is run with the same paramters (selection variants)
    As you are saying you get different results, I think you are running it actually with different entries in the selection screen.
    So you need to compare both selection screens. MD01 is obvious as you see it directly.
    Compare it with the selection variant of the batch job, that you can display  via the menu after you displayed the job in SM35
    ME5A transaction can give you a list of requisitions. alternative you can just use SE16 at table EBAN.
    Edited by: Jürgen L. on Apr 25, 2011 9:08 PM

  • How to view ALL batch job details (SM37) at one glance ?

    Dear all,
    I am documenting all released batch job details, the information required includes the job name, client number, job frequency .. etc.
    In order to see that information, i go to SM37 and click on each job to see the details. I have about 60 jobs released, to get their details i have to click on them at least 60 times.
    Is there a report or table that i can refer to that provides me the information of all the jobs in one screen ?
    Thanks.
    Advice and comment will be appreciated.
    Regards,
    Kent

    Dear Prashanth,
    Thanks for the link, I managed to get the required information from table TBTCO or TBTCP with below selected fields.
    JOBNAME = Background job name
    SDLSTRTDT = Planned Start Date for Background Job
    SDLSTRTTM = Planned start time for background Job
    SDLUNAME = Initiator of job/step scheduling
    PRDMINS = Duration period (in minutes) for a batch job
    PRDHOURS = Duration period (in hours) for a batch job
    PRDDAYS = Duration (in days) of DBA action
    PRDWEEKS = Duration period (in weeks) for a batch job
    PRDMONTHS = Duration period (in months) for a batch job
    PERIODIC = Periodic jobs indicator ('X')
    STATUS = State of Background Job, S = Released, F = Finished
    AUTHCKMAN = Background client for authorization check
    EVENTID = Background Processing Event
    EVENTPARM = Background Event Parameters (Such as, Jobname/Jobcount)
    Dear Juan,
    Thanks for your reply.
    Regards,
    Kent

  • Batch job failure

    Hi ,
    Can any one tell me why does batch job fails when there is no data?
    Is there any means to check hat  i.e. can we put some validations to check this?
    Thanks in advance

    hello alekhika....
    Check if any procesing is done using sy-tcode or sy-ucomm.
    Some times, using these in program and when scheduled a batch on this program will lead to dumps.
    Instead, directly call program (instead of sy-tcode) and check.
    Regards,
    kishan

  • Monitoring DI batch job

    I want to create an alert whenever a batch job fails. I can see a failure on the web client console. How can I grab that to send it to TSM?

    Possible solutions are with XI 3.x, so it's not at all straightforward in XI Release 2.
    What you're essentially looking for is an adapter - something that will adapt the Web Service data source into something that an Universe can connect to.
    Haven't tried any of the Web Services adapter classes for RDBMS or ODBC drivers for Web Services, so can't recommend anything that would work.
    Sincerely,
    Ted Ueda

  • Function module to start failed batch job

    Hi all,
    Any function module in ABAP to start the failed batch job run which i will use in a report.
    I am using SAP 4.7.
    Thanks
    Raj

    Hi Minish,
    Normally, we can call an RFC in background task as below:
    CALL FUNCTION func IN BACKGROUND TASK
                         [DESTINATION dest]
                         parameter_list
                         [AS SEPARATE UNIT].
    But I am not sure whether your external application can call this RFC in background. But you can create an another RFC and inside call this RFC in background.
    Then call the new RFC so that it will internally call the required RFC in background and Immediately after it will be closed.
    Regards,
    Selva K.

  • SAP BODS XI 3.2 - batch job, global variable, name includes apostrophe - why failing?

    Global Variable in batch job used to define user access (add/update/remove) - how do we handle the inclusion of an apostrophe in a name?
    Tested with wildcard prior to apostrophe, still failing.
    Any clues, please?
    Thank you.

    I believe you can not use any special characters in global variables name.

  • Every day Expired subscription clean up job fails on publisher server

    Dear All,
    Few days back I configured transactional replication b/w 2 server after that every day I noticed
    Expired subscription clean up job fails on publisher server but not any effect to replication it's going smooth.
    ERROR MESSAGE:
    Only functions and some extended stored procedures can be executed from within a function. [SQLSTATE 42000] (Error 557).  The step failed
    please help me!!!
    Thank In Advance!!!
    mastanvali shaik

    Actuvally already I configured replication for this server 3 database after we moved to another server for some h/w issue.
    that time we deleted subscriber and publisher and break transaction replication.
    after new server configuration it's allow to configure replication for 2 databases only.
    as per above query I found category 1 for 3 databases but 2 databases are in replication.
    the another databases that showing category 1 is past in replication, but it doesn't allow to configure replication.
    please give me solution for same .
    Db name
    dbid
    sid
    mode
    status
    status2
    category
    cmptlevel
    version
    ABCD
    7
      0x010500000000000515000000C953D90F09EF4A00F4EBEF3281230000
    0
    65536
    1090519040
    1
    100
    661
     -replication running
    FGH
    11  
    0x010500000000000515000000C953D90F09EF4A00F4EBEF3281230000
    0
    65536
    1090519040
    1
    100
    661
    - not allowing for   replication
    XYZ
    12
       0x0105000000000005150000006FE21C5B049413F15AD147AEF4010000
    0
    65536
    1090519040
    1
    100
    661
     -replication running
    past replication working for three databases
    mastanvali shaik

  • Regarding Batch job "RISTRA20" getting fail

    Hi,
    There is one bacaground Job which is active for the past three days with no error it has not gererated an output also, its a standard report "RISTRA20" for PM module.
    have you got any idea why the job is active such a long time, it has not finished though the required output is generated.
    Please help me with the solution if you ever have exprience this probelm.
    Regards,
    Vishvesh

    Hi
    Yes you are right the batch job is related to ip30.
    We have scheduled background job (Ristra20) for generating maintenance orders through maintenance plan. Every night it runs automatically and generates orders.
    This batch job is running for the complete day without any output, May be it is going into loops beacuse of some data issue or the other.
    If you can please help me to investigate the same.
    Thanks in advance.
    Vishvesh

Maybe you are looking for