Batch job run-

Hi gurus,
How to schedule and run a batch job run using SM36 and SM37?
In MM area what are the transacions/programs are they used most?
Regards,
Deepak.

hi,
You can create any of the new program as per your requirement, but only you have to provide the technical ABAP name of the program while making the settings at SM36...
Also please go through the SDN thread..Re: Scheduling Batch Job
Regards
Priyanka.P

Similar Messages

  • Application batch job running got error ORA-03113

    Problem: when application batch job running, application system always receive this error: ORA-03113 and job stop.
    Application system: dynamic system AX
    ORACLE system: ORACLE 10.2.0.4.0
    The listener configuration setting is :
    INBOUND_CONNECT_TIMEOUT_LISTENER = 0
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER = OFF
    Whether this is the problem of listener setting? "INBOUND_CONNECT_TIMEOUT_LISTENER = 0" indicate 0 seconds or no limit?

    I only find the error message in the Client server (application server).
    below is some example of it.
    The database reported (session 56 (mtihz)): ORA-03114: not connected to ORACLE
    . The SQL statement was: "SELECT A.PURCHID,A.PURCHNAME,A.ORDERACCOUNT,A.INVOICEACCOUNT,A.FREIGHTZONE,A.EMAIL,A.DELIVERYDATE,A.DELIVERYTYPE,A.ADDRESSREFRECID,A.ADDRESSREFTABLEID,A.INTERCOMPANYORIGINALSALESID,A.INTERCOMPANYORIGINALCUSTACCO12,A.CURRENCYCODE,A.PAYMENT,A.CASHDISC,A.PURCHPLACER,A.INTERCOMPANYDIRECTDELIVERY,A.VENDGROUP,A.LINEDISC,A.DISCPERCENT,A.DIMENSION,A.DIMENSION2
    Object Server 01: The database reported (session 58 (zhlhz)): ORA-03113: end-of-file on communication channel
    . The SQL statement was: "SELECT A.SPECTABLEID,A.LINENUM,A.CODE,A.BALANCE01,A.REFTABLEID,A.REFRECID,A.SPECRECID,A.PAYMENT,A.PAYMENTSTATUS,A.ERRORCODEPAYMENT,A.FULLSETTLEMENT,A.CREATEDDATE,A.CREATEDTIME,A.RECVERSION,A.RECID FROM SPECTRANS A WHERE ((SUBSTR(NLS_LOWER(DATAAREAID),1,7)=NLS_LOWER(:in1)) AND ((REFTABLEID=:in2) AND (REFRECID=:in3)))"
    but when I use PL/SQL Developer to run the scripts. there is no problem.
    And we always met errors when application team run long time batch, about 20 - 30 minutes or even longer.
    When they run 5 or 10 minutes job, there is no error occur.

  • How to disconnect DB connections before batch job runs

    Hi All,
    I have a batch job which generates some static reports at specified location. My question is that before my batch job runs I want to disconnect all DB connections and then run the batch job then get the system up for availabily. Could you please suggest me how do I disconnect the connections before batch runs? I am using Oracle 9i DB. Your help would be more appreciated.

    user536769 wrote:
    I have a batch job which generates some static reports at specified location. My question is that before my batch job runs I want to disconnect all DB connections and then run the batch job then get the system up for availabily. Could you please suggest me how do I disconnect the connections before batch runs? I am using Oracle 9i DB. Your help would be more appreciated.What you want to do, does not make sense. Oracle is intended as a multi-user multi-processing server. It is designed that way. It is developed that. It is sold and used that way.
    Why would you want to kick off all other processes (sessions) just to run a single batch process? To make it faster?
    If so, and the idea is to make the batch process faster, then
    a) WHAT makes the batch process slow?
    b) did you determine that this is caused by other processes?

  • How to get all AD User accounts, associated with any application/MSA/Batch Job running in a Local or Remote machine using Script (PowerShell)

    Dear Scripting Guys,
    I am working in an AD migration project (Migration from old legacy AD domains to single AD domain) and in the transition phase. Our infrastructure contains lots
    of Users, Servers and Workstations. Authentication is being done through AD only. Many UNIX and LINUX based box are being authenticated through AD bridge to AD. 
    We have lot of applications in our environment. Many applications are configured to use Managed Service Accounts. Many Workstations and servers are running batch
    jobs with AD user credentials. Many applications are using AD user accounts to carry out their processes. 
    We need to find out all those AD Users, which are configured as MSA, Which are configured for batch jobs and which are being used for different applications on
    our network (Need to find out for every machine on network).
    These identified AD Users will be migrated to the new Domain with top priority. I get stuck with this requirement and your support will be deeply appreciated.
    I hope a well designed PS script can achieve this. 
    Thanks in advance...
    Thanks & Regards Bedanta S Mishra

    Hey Satyajit,
    Thank you for your valuable reply. It is really a great notion to enable account logon audit and collect those events for the analysis. But you know it is also a tedious job when thousand of Users come in to picture. You can imagine how complex it will be
    for this analysis, where more than 200000 users getting logged in through AD. It is the fact that when a batch / MS or an application uses a Domain Users credential with successful process, automatically a successful logon event will be triggered in associated
    DC. But there are also too many users which are not part of these accounts like MSA/Batch jobs or not linked to any application. In that case we have to get through unwanted events. 
    Recently jrv, provided me a beautiful script to find out all MSA from a machine or from a list of machines in an AD environment. (Covers MSA part.)
    $Report= 'Audit_Report.html'
    $Computers= Get-ADComputer -Filter 'Enabled -eq $True' | Select -Expand Name
    $head=@'
    <title>Non-Standard Service Accounts</title>
    <style>
    BODY{background-color :#FFFFF}
    TABLE{Border-width:thin;border-style: solid;border-color:Black;border-collapse: collapse;}
    TH{border-width: 1px;padding: 2px;border-style: solid;border-color: black;background-color: ThreeDShadow}
    TD{border-width: 1px;padding: 2px;border-style: solid;border-color: black;background-color: Transparent}
    </style>
    $sections=@()
    foreach($computer in $Computers){
    $sections+=Get-WmiObject -ComputerName $Computer -class Win32_Service -ErrorAction SilentlyContinue |
    Select-Object -Property StartName,Name,DisplayName |
    ConvertTo-Html -PreContent "<H2>Non-Standard Service Accounts on '$Computer'</H2>" -Fragment
    $body=$sections | out-string
    ConvertTo-Html -Body $body -Head $head | Out-File $report
    Invoke-Item $report
    A script can be designed to get all scheduled back ground batch jobs in a machine, from which the author / the Owner of that scheduled job can be extracted. like below one...
    Function Get-ScheduledTasks
    Param
    [Alias("Computer","ComputerName")]
    [Parameter(Position=1,ValuefromPipeline=$true,ValuefromPipelineByPropertyName=$true)]
    [string[]]$Name = $env:COMPUTERNAME
    [switch]$RootOnly = $false
    Begin
    $tasks = @()
    $schedule = New-Object -ComObject "Schedule.Service"
    Process
    Function Get-Tasks
    Param($path)
    $out = @()
    $schedule.GetFolder($path).GetTasks(0) | % {
    $xml = [xml]$_.xml
    $out += New-Object psobject -Property @{
    "ComputerName" = $Computer
    "Name" = $_.Name
    "Path" = $_.Path
    "LastRunTime" = $_.LastRunTime
    "NextRunTime" = $_.NextRunTime
    "Actions" = ($xml.Task.Actions.Exec | % { "$($_.Command) $($_.Arguments)" }) -join "`n"
    "Triggers" = $(If($xml.task.triggers){ForEach($task in ($xml.task.triggers | gm | Where{$_.membertype -eq "Property"})){$xml.task.triggers.$($task.name)}})
    "Enabled" = $xml.task.settings.enabled
    "Author" = $xml.task.principals.Principal.UserID
    "Description" = $xml.task.registrationInfo.Description
    "LastTaskResult" = $_.LastTaskResult
    "RunAs" = $xml.task.principals.principal.userid
    If(!$RootOnly)
    $schedule.GetFolder($path).GetFolders(0) | % {
    $out += get-Tasks($_.Path)
    $out
    ForEach($Computer in $Name)
    If(Test-Connection $computer -count 1 -quiet)
    $schedule.connect($Computer)
    $tasks += Get-Tasks "\"
    Else
    Write-Error "Cannot connect to $Computer. Please check it's network connectivity."
    Break
    $tasks
    End
    [System.Runtime.Interopservices.Marshal]::ReleaseComObject($schedule) | Out-Null
    Remove-Variable schedule
    Get-ScheduledTasks -RootOnly | Format-Table -Wrap -Autosize -Property RunAs,ComputerName,Actions
    So I think, can a PS script be designed to get the report of all running applications which use domain accounts for their authentication to carry out their process. So from that result we can filter out the AD accounts being used for those
    applications. After that these three individual modules can be compacted in to a single script to provide the desired output as per the requirement in a single report.
    Thanks & Regards Bedanta S Mishra

  • How to get the list of batch jobs running in a specific application server

    Hi Team,
    I am trying to check in SM37 if there is any specific condition to get the list of batch jobs assigned to a specific target server but cant find any.
    Is there is way to find the list of batch jobs assigned to run in one specific application server.( Target server specified in SM36 while job creation)

    Hello,
    This is what you can do in SM37.
    Execute the list of batch jobs, when the result appears on the screen edit the ALV grid via CTRL+F7.
    Now add the following columns "TargetServ" and "Executing server".
    You will now have two extra columns in your result list.
    TargetServr contains the value of the application server where the job should run when you have explicitely filled it in.
    Often this is empty, this means that at runtime SAP will determine itself on which application server the job will run (depending of course where the BGD processes are defined).
    Executing server is filled in always for all executed jobs, this is the actual application server where the job has run.
    You can also add these two fields in your initial selection screen of SM37 by using the "Extended job selection" button.
    I hope this isusefull.
    Wim

  • Batch Jobs Running during upgrade from 46C to ECC 6!

    Hi All
    We are currently due to run our upgrade in the next two weeks and I have one final concern. The only testing we have not done relates to batch jobs.
    Our upgrade stratergy is downtime minimised.
    Does anyone know any best practices or issues that could effect our upgrade?
    Cheers
    Phil

    Hi Phil,
    If I remember correctly all background jobs in SAP R/3 are de-scheduled by the upgrade process. You have to manually reschedule them after the upgrade so make sure you have good scheduling documentation (or consider the central job scheduling provided by SAP NetWeaver for the future).
    One tip is that you need to make sure that jobs started from other systems are postponed until after the upgrade too (e.g. data extractions to BI). The upgrade process cannot determine job schedules and dependencies in other systems/scheduling tools.
    Cheers,
    Mike.

  • Online and batch job running concurrently in SAP FI-CA

    Hi experts,
    Could anyone let me know of any issues which might crop up while online and batch jobs are executed concurrently in SAP FI-CA?
    If yes,then what should be the design considerations to avoid such issues?
    Many thanks,
    Sanjay Misra

    Hi Sanjay,
    William is correct in this scenario. You cann't run some processes where the object should be block while it run in background.
    Some of the processes in FICA are: FPMA, FPVA, FPINTM1, FPRW etc.
    There is only one solution to overcome from this and this is, you need to run these programmes in parellal jobs assigning maximum allotable jobs. And break into short intervals.
    Regards,
    Akhil

  • Turn off Spool Printing for MRP Batch Job run

    Hi Experts,
    Please tell on how to turn off the printing of a Batch Job which is an MRP Batch Run. Can this be done while creating the Job? We really don't need the prinout for this job. Thanks.
    Points will be awarded.
    Regards,
    LM

    Yes, this can be done while scheduling a job. When creating a job step (transaction SM36) there is a button "Printer specifications". Select any printer there and option "Send to SAP spool". Spool request will be created but it won't be printed out.
    If you are using RMMRP000 program, you also might want to uncheck "Display material list" checkbox on the selection screen. If using other program, see if there is an option to disable the log.

  • Difference: Job run in foreground, job run in background and batch job

    Hi  Gurus,
    Can you please help me to know what are the differences between job run in foreground, job run in background and batch job? Do jobs in foreground run in presentation server? Do jobs in background or batch jobs run in application server?
    Thanks,
    Kumar

    foreground job running may cause job running crash or failed if it is too big or server is busy and it take too long time. meantime it will take one sap session.
    background job will run base on request server status. and it will not take your sap session. and it will not failed normally.
    and you can get the result by SM37.
    my experience show that big report run in background normally faster than in foreground.
    Edited by: JiQing Zhao on Sep 3, 2010 4:13 AM

  • How to stop Parrallell running of same batch jobs

    Dear Experts,
    I have a batch job running every 10 minutes to create and process Outbound Delivery.
    Now, Due to high volume, some jobs may take more than 10 minutes.
    In this case, some times we have 2 jobs running parallely because of the 10 minutes interval.
    How can we stop parrallell running of same jobs?
    I want to stop starting of the next job if the first job is already running.
    Please suggest
    regards,
    Sehtty

    maybe you need to reorganize how you run your jobs, instead of 10 minutes interval you may need to change it to event triggered job run.
    Create a small program B that checks if the job A is running, and that triggers an event in case the job A is not running.
    plan this small program B to run every 10 minutes, change your old job A to run based on the event that is given by the other program.
    Result: if the job A is not running after 10 minutes, then the event is issued and your job A is started.
    if job A is still running after 10 minutes, then no event is triggered, 10 minutes later B is again checking if A is running  and the loop starts again.

  • Display error message in batch job log

    Hello
    I have a batch job running and I have an error coming during some validation logic.
    The problem is I need to continue the batch job when this error message comes and it should not cancel the batch job as it is doing currently but display that error message in batch job log, there are more similar error messages coming in job log and job gets finished, but when my error message comes job gets cancelled.
    I cannot give it as info message as it will give wrong idea about message type.
    Is there any FM by which we can add message in job log?

    Sanjeev I have done that but problem is I do not want to give that as Information message but Error message only and continue processing.
    If you see in screenshot 3rd message is given by me as information and you can see error messages also 6th and 7th and job continued till it is finished
    Basically I want that 'I' to be displayed as 'E'.
    Display error message in batch job log 

  • 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

  • How to get spool from background job run?

    Hello,
    I have this situation and need help on how to resolve:
    I have RFC FM which called from another system, in that FM I am submitting BDC section as a batch job by report RSBDCSUB. The problem is that this job may run for 1 or 2 hours and my RFC call will be close by that time. How can I bring the result of my batch job run back to the calling system in this case? Will appreciate any hints.
    Thank you,
    Glenn

    Hi
    After you the Job completes. Use the spool ID and fetch the Spool list using the report RSPOLST2.
    You can download the spool job using the Function module RSPO_DOWNLOAD_SPOOLJOB.
    Thanks
    Dev

  • 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.

  • Email Address not visible for output device MAIL in created batch job

    Issue in ECC6.0: Email Address not visible to display/change for output device MAIL in print parameter of each step in the created batch job.
    User wants to periodically receive report file via send to his email, so I create the batch job running report and send the report in pdf file to his email.
    Detail in the batch job
    1) In print parameter screen of the step in the batch job
       -Using output device MAIL (output type ZPDF1)
       -inputting email address of receiver in the EMAIL ADDRESS field
    2) After the batch job was saved, I tried to display/change the field EMAIL ADDRESS via Tx. SM37, but this field is invisible. The field can not be displayed or changed anymore. I also tried in SM36, but it is for creating new batch job, not changing the existing batch job.
    4) User receives email with pdf file from the batch job.
    How to change/display the email address of the receiver in the created batch job?
    Note that we just changed to use SAP ECC6 from SAP 4.6c. In SAP 4.6c, we can change/display the
    Email Address Field via Tx. SM37.
    Pls kindly suggest, thank you very much in advance.

    Hi Srirompoti,
    After saving the job if the job has not started then you can follow the below steps to change the Email address.
    1. View the job from Txn SM37.
    2. check the check box for your job that you want to change and goto menu path "Job->change
    3. in the next screen goto "Edit->steps." or press "F6" key
    4. place the coursor on the job and goto menu path "Step->change->print specifications.
    5. here you can change the email address.
    If you are not able change the data then you might not have authorization.

Maybe you are looking for

  • Libretto - USB Device Not Recognised error message

    Hi there I have a workaround for this problem which ocassionally happens. It is just to reconnect the USB hub(as recommended by Windows). I was just wondering if someone knows why this happens and how to fix it. The error is :-- "USB device not recog

  • Change Open Item management for FX valuation

    Hi, We have one case here where one GL had Open item management and it was revaluated with open items using an adjustment account. It ws done for a while and the user realize that this account was needed to be revaluated with the same account. Theref

  • Adding field in MRRL Tcode Initial screen

    Hi,   We have a requirement that i have to add one parameter in MRRL initial screen, Please can any one give guidelines to resolve this issue. With Thanks & Regards, Samba

  • Why iOS devices has no flash player that's why android is selling more!

    Why iOS devices has no flash player that's why android is selling more!

  • Problems installing Edge Reflow

    Hey, i can't install Edge Reflow via the creative cloud installer, everytime I try it fails at 42% throwing this error: ----------- Payload: Edge Reflow 1.0.0.0 Edge_Reflow_preview_6_LREF.pkg_1.0 ----------- ERROR: DW006: Apple Package failed to inst