CIF Batch jobs and LUW

Hi Experts,
Can anyone tell me about CIF Batch jobs and LUW please. Explain these two in detail whether they are the same or any difference and any relationship between both.
Thanks in advance
Suvecha

Hi
LUW stands for Logical Unit of work.
Its a way of binding data together(multiple CIF queues under a single entity)
It is useful to maintain the atomicity of data.
For ex :- Say u have 5 materials under a single TLB order and u have sent that order to R3 for recieving number.If any of those materials is having master data which doesn't satisfy the filter criteria for Integration Model then the whole LUW will be blocked.
Signifies the entire data set will be passed on as a single LUW.
For CIF batch Jobs could you please explain what exactly you want to know.
Thanks
Amulya

Similar Messages

  • Transaction CJI3 AND  - batch job and output in excel format

    We are trying to schedule a batch job and would like to have the output in an excel file.  Is there a way to enhance CJI3 and FMEDDW to have the output in a excel file.  I've looked at the Layout for creating the disvariant and I know you can have the output in excel format in the foreground, but I'm looking to put an excel file on the SAP DIRECTORY.
    Has anyone done this?
    Thank you.
    Linda

    Talking about Enhancement Options, I believe you can achieve it using Enhancement Implementation. There must be one towards the end of the program just before the ALV is displayed. You can create an implementation of the implicit enhacement spot and output the file to a location maintained in some VAR (to keep the output location dynamic as we don't have it on the select screen).
    My reply is not to the point but I hope you find a way using enhancement spots.
    Should you need any help with enhancement implementation, following blog is good enough:
    Blog - [Enhancement Framework|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417800%29ID1759109750DB10206591421434314571End?blog=/pub/wlg/3595]
    or you can ask back here.
    regards,
    Aabhas
    Edited by: Aabhas K Vishnoi on Sep 24, 2009 10:40 AM

  • Batch job and background job

    Hi
    what is the difference between a batch job and backgroun job ??
    thanks
    kumar

    hi kumar,
    As far as I know
    Batch job are the jobs created with sessions. You can process those sessions in SM35. These are not direct update methods.
    Where as the background jobs are the jobs running in the background with out user interaction. Once you schedule the job for the background job it will run with out user interaction according to the given schedule.
    You can run the batch jobs also in background.

  • Difference between extraction as a batch job and BADI

    Hello
    Please can somoene explain me what does this mean:
    The extractor is based on the running of a BADI when tickets are saved rather than extraction as a batch job
    thanks

    Hi Tom,
    Batch Job and BAdi's are two different things but their purpose is somewhat similar i.e. background processing.
    BAdi's are SAP enhancmenents where in you can attach your own code to SAP code which is getting executed so that along with std code to ger our job is done.
    Background jobs are scheduled to run in system periodically. Here we can code like it will check for certain things and then if required it will execute some code.
    Thanks and Regards,
    Vaibhav Pendse

  • Difference between batch job and Background Job

    Hi Forum,
    Can anyone distinguish between batch job and background job for me please ?
    SK

    Hi,
    Batch Job:
    A batch job is a process that runs in the background, often deferred and unattended, to process data in groups (batch) rather than by individual transactions (e.g. a monthly phone bill rather than a bill for each individual phone call). A batch job executes a sequence of programs and technical instructions that are stored in a command file. Progress and error messages are output to a log file allowing users to determine, at any time, if the batch job completed successfully or identify the cause of the problem. Because batch jobs run in the background they are less visible to the end user.
    In a business-computing context, batch job scheduling implies the automatic execution of background tasks (batch jobs) at pre-determined points in time (e.g. every day at 8pm, midday on Wednesday).
    3 types of batch job scheduling can be distinguished: native, basic and advanced batch job scheduling.
    Most operating systems and some business solutions software come equipped with native batch job scheduling tools that provide a limited service (e.g. Windows Scheduled Tasks, UNIX crontab, SAP CCMS) locally to each installation. However, business processes may span multiple platforms, applications, countries and companies. Their complexity may require much more functional power as provided by basic batch job scheduling including national and regional variations in the working calendar, sequence variations according to the day of the month, triggering of jobs by the successful completion of preceding jobs, elimination of gaps and reduced batch windows. Major benefits of basic batch job scheduling are enhanced productivity, operations reliability and cost-reduction. For e-business applications that require real-time processing, the distance between interactive individual processing and batch processing tends to decrease. Advanced batch job scheduling can handle these advanced requirements: event-driven scheduling for a real-time synchronization with interactive processing, just-in-time scheduling to run operations as soon as possible, cross-platform and cross application services for the entire IT landscape, real-time overall monitoring to track background operations for all applications on all servers.
    The standard benefits of batch job scheduling are drastically amplified when job schedulers can handle the end-to-end automation and monitoring requirements for all background operations.
    To schedule a back ground job follow the below steps:
    1. Use Transaction SM36.
    2. Assign a job name.
    3. Set the job’s priority, or “Job Class”:
    High --- Class A
    Medium --- Class B
    Low ---Class C
    4. Here you can specify,when the job is to start by choosing Start Condition. If you want the job to repeat, or be periodic, check the box at the bottom.
    Else click on the immediate and save this.
    5. Now,define the job’s steps by choosing Step.
    Here you need to give the ABAP program that has been used and the name of the variant thats being used.
    6. Save the fully defined job to submit it to the background processing system.(You need to click save button on the main screen i.e SM36)
    7. When you need to modify, reschedule, or otherwise manipulate a job after you've scheduled it the first time, you'll manage jobs from the Job Overview.
    8. Release the job so that it can run.
    The job, even those scheduled for immediate processing, can not run without first being released.So,do remember to release.
    Hope this helps you.
    Regards,
    Rakesh

  • PL/SQL batch jobs and error reports handling

    Has anyone ever had to write exception and statistics reports from a PL/SQL batch job and how have those been handled? I have 3 options below not but sure what is best (or is there another) way to do this.
    I have a series of batch jobs that are written in PL/SQL. A unix script will invoke a SQL*Plus script that calls a stored procedure. The stored procedure may call other procedures and functions. I'd like to collect all the errors and write them out a report that the user can review. I was thinking of just writing a message using DBMS_OUTPUT and spool that to a file in my script, but I have concerns that other message in the buffer may end up in the report. The other thought was to use UTL_FILE but then I would have to make sure the file handle got passed thru all the procedures and functions appropriate. The last thought was to write to a table ( a temporary PL/SQL table) , and then read that table and write to a file using UTL_FILE (don't have to pass file handles that way) - but I'm not sure if a called function or procedure can access that table.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by mirp:
    Has anyone ever had to write exception and statistics reports from a PL/SQL batch job and how have those been handled? I have 3 options below not but sure what is best (or is there another) way to do this.
    I have a series of batch jobs that are written in PL/SQL. A unix script will invoke a SQL*Plus script that calls a stored procedure. The stored procedure may call other procedures and functions. I'd like to collect all the errors and write them out a report that the user can review. I was thinking of just writing a message using DBMS_OUTPUT and spool that to a file in my script, but I have concerns that other message in the buffer may end up in the report. The other thought was to use UTL_FILE but then I would have to make sure the file handle got passed thru all the procedures and functions appropriate. The last thought was to write to a table ( a temporary PL/SQL table) , and then read that table and write to a file using UTL_FILE (don't have to pass file handles that way) - but I'm not sure if a called function or procedure can access that table.
    <HR></BLOCKQUOTE>
    Just a thought
    If You use utl_file, You can write all opeations with files in a separate package with public variables of file handles and so on. Not necessary to pass all variables to each procedure and function

  • Can U set breakpoint within a batch job and look at variables?

    Hello friends,
    I am trying to solve a problem that occurs within a program / transaction which can only be executed in background. The transaction in question is FPCOPARA and apparently this program cannot be executed in foreground.
    If I understand well, we cannot set breakpoints within a background job and as a result we cannot inspect variable etc. during job execution. So the question is how to achieve the same goal within a batch job? How did you do it? As this is a standard SAP transacrtion, no program modification can be applied.
    Your help is greatly appreciated.

    Hi......
    After u have executed ur batch job..
    go to sm37 >>select ur job using checkbox>>enter 'JDBG' in transaction box and press enter
    now debugger will start ..initial it will go through system code..after after a while the debugger will reach to your code and den you can debug the remaining report....
    all the best
    regards
    vivek

  • CS4 Media Encoder batch jobs, and .avi ffdhshow

    I have two distinct, but slightly related questions to ask.
    First I should point out: I've used Premiere and After Effects for creative purposes before, but today I am using Adobe software for a more practical purpose: some engineering research work. Essentially, I have thousands of hours of video to process, I have all the firepower needed to perform it, I am currently limited by the ammount of time I am stuck clicking away at the computer.
    Essentially my job right now is to convert and concatonate 1 minute segments into larger cohesive files. I say convert because the supplied files are encoded as .avi with an obscure proprietary surveillance video format (Mavix, for those of you familiar, doubt it though, even a google search won't bring up anything). It's okay, I have the VFW installed and so far I've been doing fine (if not slowly) pre-converting to NTSC DV default with AME CS4 and then importing into VDub (handy because of it's automatic file appending feature) at which point I compress with ffdshow (gave me the best performance considering quality, compression and processing perfromance). Vdub is also handy because I can take better advantage of multi-cores (8 per machine) by running Vdub jobs and AME jobs simultaneously. I am still amazed how mult-tasking on these machines gets me absolutly no performance hits.
    Why is it that I am using AME? It seems to be the only thing that can decode these Mavix files (I've tried them all). And only a direct convert through AME... if I open it up in premiere first, then export it, the video glitches.
    Question 1:
    Right now, the biggest challenge is batch converting videos. I can drag up to 70-75 videos (regardless of hardware) into AME before it starts rejecting files. I would like for it to pre-process thousands of them at a time automatically. Any ideas how the queue size can be increased or how I can properly batch convert thousands of files at a time? Checking back at a computer every 20 minutes for a week is a real waist of time when I could leave it sit over the weekend in a corner and do it's thing.
    Question 2:
    I wanted to reuse the concatenated files that Vdub spat out (.avi ffdshow H.264 -> no comments please, I have a good reason for doing this) for some other work. I just want to know if it is possible to get Premiere to work from these files directly or if I have to reconvert them to somethign else first. So far, importing them yields black video.

    Hi,
    I have absolutely no experience with this...but as to question number 2... I did a google search on ---avi ffdshow h264 cs4 ----and found this info
    As you probaby know a lot of people using premiere are adament about NOT loading codec packs, and in particular ffdshow and k-lite...but you probably know that or you might not have said " no comments please "....etc.
    That said, there is a part of the following stuff that says something about using cs4 with ffdshow with h264 enabled in the video and something enabled in the sound.. and then the reference to K-lite...but that k-lite post was using ( at that point ) a different editor I think...so take this with a grain of salt and maybe check the ffdshow enabled setting so you can see your video in PP...
    Good luck  ....and I hope your computer doesnt explode  or anything bad happens...which might mean a total reformat and reinstall etc...
    http://forum.videohelp.com/threads/302604-Creative-Vado-HD-AVI-%28H-264%29-Editing
    ·  I also own a Vado HD.
    May I know which editor is compatible with it?
    Quote
    · 13th Apr 2009 09:36 #7
    poisondeathray
    View Profile
    View Forum Posts
    Private Message
    Member
    Join Date: Sep 2007
    Location: Canada
    For simple edits, you can use vdub (see above)
    If you need a NLE, Vegas Pro 8 will work, if you have ffdshow (h.264 enabled) or x264vfw, but it won't see the audio. So you can open it in vdub and save the audio as wav then import into Vegas
    Premiere Pro CS4 will work, but you need ffdshow (h.264 enabled in the video configuration and MSADPCM enabled in the audio configuration)
    Cheers
    Quote
    · 10th May 2009 23:15 #8
    rogerconnery
    View Profile
    View Forum Posts
    Private Message
    Member
    Join Date: Sep 2006
    Location: United States
    Hi, I just bought a Creative Vado HD and I have 3 clips I just want to paste together.
    I downloaded Virtualdub, downloaded x264vfw, downloaded ffdshow (h.264 enabled) and installed all three. I still can't open any of the Vado HD clips into Virtualdub. I get an error message. Is there another step I am missing?
    Thanks in advance!
    Quote
    · 10th May 2009 23:21 #9
    poisondeathray
    View Profile
    View Forum Posts
    Private Message
    Member
    Join Date: Sep 2007
    Location: Canada
    do you have this version installed?
    http://sourceforge.net/projects/x264vfw/
    if that doesn't work for you , enable h.264 in the ffdshow vfw decoder interface (yellow icon, not red icon), because vdub relies on vfw , not directshow    ( ROBODOG2 NOTE ----GRAPHIC BELONGS HERE.....SEE BELOW )
    Quote
    · 11th May 2009 12:16 #10
    rogerconnery
    View Profile
    View Forum Posts
    Private Message
    Member
    Join Date: Sep 2006
    Location: United States
    @poisondeathray - yes that helped! thank you!!!
    Now that I am able to "edit" my Creative Vado HD videos in Virtualdub, I notice something very strange. Each video clip is approx 30 seconds long. The total combined/merged clips should be approx 2:30 long. However, windows media player (as well as right clicking for properties) says the video is WAY longer than it should be (like 11 min long)!!!
    Anyone else notice this? Is this a virtualdub mistake or human error on my part?
    Quote
    · 11th May 2009 12:49 #11
    poisondeathray
    View Profile
    View Forum Posts
    Private Message
    Member
    Join Date: Sep 2007
    Location: Canada
    Did you do any editing or just append the clips? If you edited portions did you cut on keyframes?
    Did you set "direct stream copy" for video & audio?
    What do other media players (e.g. vlc, kmplayer, smplayer) and mediainfo say about the joined clip ?
    Quote
    · 26th Jul 2009 15:54 #12
    cybereality
    View Profile
    View Forum Posts
    Private Message
    Member
    Join Date: Jul 2009
    Location: United States
    Has anyone found a solution to this issue yet? I can't believe Creative would release a product like this with almost no 3rd-party support. I really wanted to get this camera, but this is a deal-breaker. I managed to get a few raw files from the Vado HD to test. They work fine just for playing in WMP, but I cannot edit the videos in any program I tried. Adobe Premiere CS4 doesn't work. You see the audio but no video. If you try to do basically anything it crashes. Sony Vegas 9 doesn't work either. Same deal, audio with no video. Same issue in VirtualDub. I have ffdshow installed and H.264 is enabled (libavcodec). Do I have any other options here?
    Quote
    · 26th Jul 2009 17:34 #13
    Xpenguin17
    View Profile
    View Forum Posts
    Private Message
    Member
    Join Date: Jul 2009
    Location: United States
    Download and install K-Lite mega codec pack. The ffdshow configuration will be pretty streamlined so you likely won't have to screw around with it after the install.
    Quote
    · 26th Jul 2009 22:56 #14
    cybereality
    View Profile
    View Forum Posts
    Private Message
    Member
    Join Date: Jul 2009
    Location: United States
    Thanks Xpenguin17. I installed the K-lite mega pack and now I can import the Vado HD raw avi files into Premiere. So far everything looks good. Thanks a lot.

  • Batch jobs and deleting one time variants

    Hi,
    I have a need to generate a background job with up to
    21 steps each step needing a different variant determined
    at creation.
    I have written an abap that will create the job, steps
    and variants for the batch stream. This works fine.
      My problem is trying to delete the variants I created
      at the end of the batch stream. I have tried setting
      up another step to delete the variant but that fails
      as RS_DELETE_VARIANT gives an error if the variant
      exists in a current batch job, which it does in this
      case as the variants are used in previous steps.
      Ideally I would like to create variants as SAP itself
      does when you dynamically submit a job to batch.
      How can I get around this problem elegantly ?
    Allan

    Dear Allan
      Welcome to SDN.
      One solution that i can propose is:
      With the ABAP Program that submits the job, do the following:
      Step 1: Open the job using FM: JOB_OPEN.
      Step 2: Submit all programs using SUBMIT statements and values for parameter with reference to the job-id and job counter.( I guess if we use JOB_SUBMIT here we will be specifying the variant name which already exists).
      Step 3: Close the job using FM: JOB_CLOSE.
      Using the above procedure the variants created will be temporary and no need to delete.
    Below is an example which can help you understand the same:
    PERFORM JOB_OPEN USING SY-REPID CHANGING L_JOBCNT.
    SUBMIT Y00_SD_F2_003 WITH P_BUKRS = P_BUKRS
                         WITH P_FILE1 = P_OFILE
                         WITH P_RUN = P_RUN
                         VIA JOB SY-REPID NUMBER L_JOBCNT
                         TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                         WITH DESTINATION = 'HPMISPRT'
                         WITH IMMEDIATELY = SPACE
                         WITH KEEP_IN_SPOOL = 'X'
                         AND RETURN.
    PERFORM JOB_CLOSE USING L_JOBCNT SY-REPID.
    *&      Form  JOB_OPEN
    FORM JOB_OPEN  USING    P_REPID
                   CHANGING P_JOBCNT LIKE TBTCJOB-JOBCOUNT.
    DATA: L_REPID  LIKE TBTCJOB-JOBNAME.
       L_REPID = SY-REPID.
       CALL FUNCTION 'JOB_OPEN'
         EXPORTING
           JOBNAME                = L_REPID
        IMPORTING
          JOBCOUNT               = P_JOBCNT
        EXCEPTIONS
          CANT_CREATE_JOB        = 1
          INVALID_JOB_DATA       = 2
          JOBNAME_MISSING        = 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.
    ENDFORM.                    " JOB_OPEN
    *&      Form  JOB_CLOSE
    FORM JOB_CLOSE  USING    P_JOBCNT LIKE TBTCJOB-JOBCOUNT
                             P_REPID.
    DATA: L_RELEASE(1) TYPE c,           "Job released
          L_REPID  LIKE TBTCJOB-JOBNAME.
       L_REPID = SY-REPID.
       CALL FUNCTION 'JOB_CLOSE'
         EXPORTING
           JOBCOUNT                          = P_JOBCNT
           JOBNAME                           = L_REPID
           STRTIMMED                         = 'X'
        IMPORTING
          JOB_WAS_RELEASED                  = L_RELEASE
        EXCEPTIONS
          CANT_START_IMMEDIATE              = 1
          INVALID_STARTDATE                 = 2
          JOBNAME_MISSING                   = 3
          JOB_CLOSE_FAILED                  = 4
          JOB_NOSTEPS                       = 5
          JOB_NOTEX                         = 6
          LOCK_FAILED                       = 7
          INVALID_TARGET                    = 8
          OTHERS                            = 9.
       IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    ENDFORM.                    " JOB_CLOSE
       Hope the above info lead you in solving your problem.
    Kind Regards
    Eswar

  • Difference between Batch jobs and background jobs...

    hi APO Gurus ....
    This may sound a very silly question. What is  the exact difference between a batch run and executing a background job ?

    If i understand correctly  your question is  executing a program (for example) in background and running in a batch jobs.  You can execute a program in background while you are online, go to menu program->execute in background and enter print parameter, schedule parameter. System creates and starts job dynamically. You can check in SM37.  Batchjob is you create job using   SM36 (with program and Variant) define run frequency. System automatically run job in specified frequency.  I my experience, technically both are same, system behaves exactly same. One dynamically creates job other one runs on predefined freq.
    Thanks,
    Niranjan

  • Submit batch job and return control to the user

    Hi
    Have a situation where we need to submit a batch report and then return control to the user of the application before the report is finished. What is the best way to do this? The old application is written using Java and the application is using threads to do this. However, the application is being re-written in App Ex.
    Any ideas would be appreciated.
    Thanks

    You need to use package APEX_PLSQL_JOB.
    You can use the APEX_PLSQL_JOB package to run PL/SQL code in the background of
    your application. This is an effective approach for managing long running operations
    that do not need to complete for a user to continue working with your application.
    Just look for it in the help.

  • 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

  • Invoice not generated through Batch Job

    Hello
    I am facing a Problem in Batch Job. When the delivery is created through VL01n transaction manually, the Invoice for this delivery is created automatically. However for one of the delivery the Invoice was not created automatically through Batch Job.
    Can some one help me how to go further on this problem? I have checked the Batch Job and found that it is schedule daily, However the Delviery was created after this schedule time. So ideally this delivery should have been considered for automatic generation of Invoice in the next schedule run of the Batch Job. However this has not happened.
    Any views on this
    Regards
    Screams

    Hello,
    Please check the billing date and the billing date which is in the variant. in the variant there could be that the billing date might have been specified from and to, in any case billing date for the document is not past the variant billing date it will pick up.

  • How to send an updated list using batch job

    Hi All,
      The program displays data on the screen, if the data looks ok, then there is an option to update.
    When I run update, the program submits a batch job and the basic list gets updated, but my batch job is still sending the data on the screen. how can i send the updated list using batch job.
      Ex: output of the program
                    1         2
           there is an update button on the screen, when i press update button, my program submits in batch job, the above list becomes
                    1        2
                    3        4
    but when i check the spool, it shows the o/p as         1           2 ..it is not sending the updated list.
    Please suggest me how to send the updated data
    Thanks,
    Kumar

    Hi Krishna,
      I have added a button on the alv list. when i press update button, my program updates the list, then submits the batch job. I am attaching the sample test program i am trying with, please suggest me how can i get the updated list.
    *& Report  ZTESTSSSSS
    REPORT  ZTESTSSSSS.
    DATA: gt_fieldcat TYPE slis_fieldcat_alv,
          lt_fieldcat type slis_t_fieldcat_alv,
          gt_sort     TYPE slis_t_sortinfo_alv,
          g_repid     LIKE sy-repid,
          gt_layout   TYPE slis_layout_alv.
    start-of-selection.
      lt_return-type = 'S'.
      lt_return-message = 'test message'.
      append lt_return.
      CLEAR gt_fieldcat.
      gt_fieldcat-fieldname = 'TYPE'.
      gt_fieldcat-outputlen = '3'.
      gt_fieldcat-tabname   = 'LT_RETURN'.
      gt_fieldcat-seltext_l  =  'Type'.
      gt_fieldcat-seltext_m  =  'Type'.
      gt_fieldcat-seltext_s  =  'Type'.
      APPEND gt_fieldcat TO lt_fieldcat.
      CLEAR gt_fieldcat.
      gt_fieldcat-fieldname = 'MESSAGE'.
      gt_fieldcat-outputlen = '15'.
      gt_fieldcat-tabname   = 'LT_RETURN'.
      gt_fieldcat-seltext_l  =  'Message'.
      gt_fieldcat-seltext_m  =  'Message'.
      gt_fieldcat-seltext_s  =  'Message'.
      APPEND gt_fieldcat TO lt_fieldcat.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM       = sy-repid
          I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
          I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
          IT_FIELDCAT              = lt_fieldcat
        TABLES
          T_OUTTAB                 = lt_return
        EXCEPTIONS
          PROGRAM_ERROR            = 1
          OTHERS                   = 2.
    *&      Form  set_pf_status
          text
         -->RT_EXTAB   text
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'STANDARD'.
    ENDFORM. "Set_pf_status
    *&      Form  user_command
          text
         -->R_UCOMM      text
         -->RS_SELFIELD  text
    FORM user_command USING r_ucomm     LIKE sy-ucomm
                            rs_selfield TYPE slis_selfield.
      DATA: li_count TYPE I.
      IF r_ucomm EQ 'UPD'.
    Adding another message
        lt_return-type = 'S'.
        lt_return-message = 'Another test message'.
        APPEND lt_return.
        rs_selfield-refresh = 'X'.
        rs_selfield-col_stable = 'X'.
        rs_selfield-row_stable = 'X'.
        l_upd = 'X'.
       LOOP AT lt_return.
         WRITE: / lt_return-type, lt_return-message.
       ENDLOOP.
        IF sy-batch IS INITIAL.
          l_upd = 'X'.
    Open the Job
          CALL FUNCTION 'JOB_OPEN'
            EXPORTING
              jobname          = w_name
            IMPORTING
              jobcount         = w_number
            EXCEPTIONS
              cant_create_job  = 1
              invalid_job_data = 2
              jobname_missing  = 3
              OTHERS           = 4.
          IF sy-subrc = 0.
            SUBMIT ('ZTESTSSSSS') VIA JOB w_name NUMBER w_number
                    AND RETURN
                    WITH p_recnnr = p_recnnr.
            CALL FUNCTION 'JOB_CLOSE'
              EXPORTING
                jobcount             = w_number
                jobname              = w_name
                strtimmed            = 'X'
              EXCEPTIONS
                cant_start_immediate = 1
                invalid_startdate    = 2
                jobname_missing      = 3
                job_close_failed     = 4
                job_nosteps          = 5
                job_notex            = 6
                lock_failed          = 7
                OTHERS               = 8.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.  "User_command
    Thanks,
    Kumar

  • Program or function module to get active Batch jobs

    Hi Experts,
                     I need a program or a FM that would give me the list of active batch jobs and also the time they were running
    for.
    Plz help me out

    You Just follow the below code, It is exactly same as your requirement.
    TYPES:   BEGIN OF ty_itbl,
               jobname   TYPE   tbtcp-jobname,
               jobcount  TYPE   tbtcp-jobcount,
               stepcount TYPE   i,"tbtcp-stepcount,
               sdldate   TYPE   tbtcp-sdldate,
               sdltime   TYPE   tbtcp-sdltime,
               sdluname  TYPE   tbtcp-sdluname,
               status    TYPE   tbtco-status,
               END OF ty_itbl.
      DATA :   wt_itbl TYPE TABLE OF ty_itbl,
               wa_itbl TYPE ty_itbl.
    SELECT     a~jobname
                   a~jobcount
                   a~stepcount
                   a~sdldate
                   a~sdltime
                   a~sdluname
                   b~status
                   INTO CORRESPONDING FIELDS OF TABLE wt_itbl
                   FROM tbtcp AS a
                   INNER JOIN tbtco AS b
                   ON    b~jobname    EQ    a~jobname
                   AND   b~jobcount   EQ    a~jobcount
                   WHERE a~progname IN wp_prog
                   AND   a~sdldate  IN wp_date
                   AND  b~status eq <STATUS>. "<-Give the Active Status here

Maybe you are looking for

  • DVI and HDMI feed to the same HD monitor

    I am adding a Black Magic Hd extreme card to my Mac Pro and currently have a 23" Apple display only for editing with FCP (I've been using a Sony Trinitron 14 " CRT TV for SD monitoring in the past). I can't afford a pro HD monitor so will be going do

  • Card, cant plug into my pismo

    I bought a airport card that i had plugged into a MDD dual 867 and I sold the machine and wanted to install it in my pismo powerbook. I found the box and it has a part number M7600LL/C, the plug does not seem to fit. I looked at my wifes box for her

  • Rman script execution

    Dear all, am deleting the obsolete rman backups using the following command : rman allocate channel for maintenance type disk; delete obsolete for channel type disk; release channel; am running this inside the script ...this script is getting stucked

  • When is Adobe going to start offering ACE exams for its CS5 products?

    I am most interested in getting the CS5 Web Specialist certification (Dreamweaver, Flash Pro, and either Photoshop or Illustrator).  I have asked multiple departments at Adobe over the phone and even called Pearson VUE, the company Adobe outsources i

  • Photoshop suddenly freezing on startup - won't open

    Hi There, All of a sudden, photoshop won't open - have tried: - Removing all Photoshop user and system prefs - Uninstalling from creative cloud and reinstalling - Logging in as a new user Logging in as a new user works so it's obviously something to