Workflow for background jobs
Hi All,
I want to develop workflow to send mail whenever a background job is cancelled.
How should I proceed??
I tried using object type BPJOB. But its not getting triggered.
Plz Help.
Thanks,
Supriya.
Hi,
the object you have selected is correct. Check if an entry for the EVENT ABORTED exists in SWEC tcode.
Also check a workflow template is active for the event in SWE2 tcode.
Check if the workflow is triggered using SWEL tcode.
before this, Turn on the event trace using SWELS tcode
Let me know if you have any queries.
Regards,
Raj
Similar Messages
-
Trigger Workflow for Background Job Abort
Hi,
I want to start a workflow when a Background Job fails.
I could find the BOs BPJOB & BPJOB_SMAN and the event BPJobSchedMan.Aborted, but it is not getting triggered when a background job cancelled.
Let me know if any specific settings need to be made.
Appreciate your help. Thanks in advance.
Rgds,
KumarHi,
Did you manage to get this working? i am also using BPJOB abort even but its not getting triggered.
Thanks.
Rgds,
Pankaj -
Job failure ( report RFFDKU00 scheduled for background job)
Hi Experts,
When iam scheduling the report RFFDKU00 for background job. Job is getting cancelled with status "ABAP/4 processor: DBIF_RSQL_SQL_ERROR" . when iam obesrving this job it is going to dump at this select query
" select ausbk belnr gjahr bzkey buzei
033370 from vbsegs into table t_vbsegsfields
033380 where bukrs in r_bukrs
033390 and not ( fdlev = space
033400 and fdgrp = space
033410 and fdtag = init_date
033420 and fdwbt = 0 )
033430 and not saknr in r_cm_sk "
Can anyone helpme to deal with this issues ,
thanks in advance,
Kranthinote 167301 might help.
-
Function module for background jobs email
hi abaper's
i hace to create a function module for background jobs this function module have to send an email automatically when a background job is assigned or processed in background.
thnks n regards
pardeep kumarhi dear
open this site
https://weblogs.sdn.sap.com/pub/wlg/781. [original link is broken] [original link is broken] [original link is broken]
<removed by moderator>
Edited by: Mike Pokraka on Aug 8, 2008 12:48 PM -
Hi
Can anyone suggest how to find the SQL trace for background jobs.
Thanks in advance.
Regards
D.VadivukkarasiHi
Check the transaction ST05.
Plz Reward Points if helpful -
Date and time for background job
Hi,
I am creating a program with out selection screen . This program runs based on date and time . so I need to create a table
with date and time fileds.
Program runs based on FROM DATE FROM TIME TO DATE TO TIME....... FROM DATE and FROM TIME will get it from ztable and TO DATE & TO TIME values as SY-DATUM & SY-UZEIT. In the end I will update sy-datum and sy-uzeit values in the custom table to get the values ( Use it for from date from time ) for next run of the program.
This program is mainly used for background job so how do we get the values of from date and from time for the first run of the program ? how do we update the latest date and time details by deleting old date and time details.
Thanks ,
Vinay.
Edited by: Vinay parakala on Apr 22, 2010 9:18 AMFirst of all, I'll suggest to maintain TVARVC instead of doing it in custom table unless you need a complete log.
As per my understanding, you are trying to fetch some records based on the time period(Delta loads).
So, you will do an initial run to load the complete data then you will run it for time periods. For example,
1st Load- 01/01/1991(earliest date possible) - today's date say 03/22/2010
2nd load- 03/22/2010 - today's date
so on............
You have to move the to date values to from date values and to date value needs to be updated by the latest one for each load.
Do you have any dependency on background job? Please let me know if my understanding is correct or specify your requirement in detail. -
You need to schedule and automate batch jobs in an organisation. There will be multiple variants and multiple steps within same batch jobs. The variants are date dependent and needs to change every day. You need to automatically change the variants every day and schedule the jobs. Also check for the failures in the jobs. Apart from that Once the jobs in one server example : R/3 server ends the jobs in BW servers should be triggered automatically. Explain all steps with proper T codes and also provide a dry run example. Also provide all the table used for the variants purpose.
Please help on this,thanks
NarendraHi Narendra,
The background jobs are scheduled depending on the requirement with specific variants which are both date specific and even specific sometimes. These variants are created for the programs or reports which are run in the background job ,These variants are stored in VARID table for client specific variants and
VARID_CI for client independent. For most of the times all these jobs are maintained in some job scheduling tools so that they automatically inform about job failures and processes can be automated.In our organisation we use UC4 for background job schedulign and it controls the process as you are looking for.
Please award points accordingly
With Regards,
Junaid
Message was edited by:
muhammed junaid -
Regarding Variants for Background jobs
Hi Folks
Can you please let me know the procedure how we can create the variants for Background jobs.
Points are assured for correct answers.
Regards,
kumarHi Sree Ram,
Check this info.
If you have any selection screen parameters for your program you need to enter the values for those fields in runtime. So, if you schedule your program in background to execute then there is no one to do this job. Here comes the concept of Variant.
With variant you define what are the selection field values in the runtime. During runtime the program picks this values and runs the program.
When you execute your program which has selection fields, you enter the values and then you click on 'GO TO ' tab and 'SAVE AS VARIANT'.
When you schedule your program in background, give this variant also. Then it will run automatically.
Hope this resolves your query.
Reward all the helpful answers.
Regards -
Userexit or BADI for program *RMMRP000* for background job
Hi,
We are scheduling background job for MRP through SM36 using program RMMRP000 or Through Transaction MDBT (MDBT is calling program RMMRP000) which creates PR (through background job).
I want to default one field in PR (PO Price field in valuation tab in PR default to gross) using any userexit or BADI.
Can any body suggest me userexit or BADI for program RMMRP000 for background job
Regards.Hi,
1. The below are the List of Userexit for this MDBT t.CODE.
2. But i dont see any one helping to resolve your issue.
3. May be you should lookg at the Userexit for me21n or relevant Purhcase requisition creation transaction.
reg
dsk -
Program for Background Job for COGI
Does anyone know what is the Program name for creating background job to run COGI? I'm using CORUAFFW to create variants and run the program but its not working as I guess it isonly generating the report but not deleting the records if inventory is added.
Thanks
Mama
Edited by: Amit Raichura on Mar 21, 2008 1:31 AMAmit,
Use Program "CORUAFWP" to schedule background job to post COGI error records if the error is corrected, as in your case stock is corrected.
Regards,
Prasobh -
Dear all ,
The background job is already scheduled daily (PR NOT PROCESSED BY PURCHASING) , isn't possible to check the list of users is assigned in the spool list recipiant, I have checked spool list , but its shows only one id ....
how to check the list of Spool users ...any alternate option ?
Kindly advise
RegardsHi ,
I have created a distribution list and i have included the email ids also .
any other activation is required for Distribution list ?
how the background job is sending a report to Distribution list or i have to assign a distribution list to Background job .
Kindly suggest
Regards -
Hi,
is there a function module that will check the background job status and will wait for it to finish before returning to the calling program?
I have developed a program that triggers a background job at runtime, but i also need to make sure the job is finished, successful or not, before the output of the program. i'm currently doing a query in a job table inside a do enddo loop, but i believe this is not efficient.
Any ideas?
thanks.
tykenI am not having the sample Code with me right now...
But i'll help you to build the logic...
after Write report.
Use the Function module I told u...
then...
write a select query on table tbtcp with job info you will get from FM.
What is your objective after getting the Background Job details..? -
Spool error for background job
Hi All,
I have scheduled one job in sap for a report.I have made a distribution list via tcode SO01.
I have given this distribution list to the SPOOL RECEPIENT section in SM 36.
The job is running successfully but is giving the following error and not sending emails to the distribution list.
The error is :-
"Spool list of step 1 could not be sent due to error 7".
Does anybody has any idea about this error?
Please help its a production issue.
Thanks in advance
Vivekanand MeghmalaLook at SAP note : 760838
Symptom
Background job spool lists are not sent.
Other terms
RSBTCRTE, RSPO_SPOOLJOB_TO_OFFICE, SO_DOCUMENT_SEND_API1
Reason and Prerequisites
1. The jobs in question have recipient references in table TBTCO but these have no equivalent in the Business Object Repository.
2. An error occurs when sending in the spool or in the Sapconnect layer.
Solution
This note does not provide a direct solution to the problem but it does provide a source code enhancement that you can use to create more trace information about the cause of the error. When you copy and execute a job with spool list recipients, trace messages are output when errors occur.
After implementing the correction instructions, use transaction SE91 to create the following message:
Message class: BT
Number: 347
Text: Spool list of step &1 could not be sent due to error &2.
In detail, the error numbers mean:
1 = Spool request does not exist (or no longer exists)
2 = Spool request does not contain any data
3 = Empty page area selected
4 = No authorization to send the request
5 = Access to the spool request is not possible
6 = Read error in the Temse layer
7 = Spool request could not be sent (sending problem)
8 = Incorrect request type
9 = Other -
Table name for background job with report, variant and step user id list.
Hello All,
I need to generate the list of scheduled backgroung job with the list of Report Name, Variant, Step User Id called. Please any one tell the SAP Table name from which I can get these data.
Thanks in Advance,
AmitHi Rohit,
Thanks for your reply. But from TBTCO, i can't find program/report name and variant. Just the list of background job i can see.
Regards,
Amit -
Use "grid display" for background job of RM07DOCS / MB51
Hello experts,
When you execute program RM07DOCS with transaction MB51, it uses a "hierarchy display" for the output, a list of material documents. User can then use the menus for "Goto>Detail List" and the display changes to a "grid display".
If we define a background job for program RM07DOCS with a variant, the program uses the "hierarchy display". Is it possible to use "grid display" instead? do we need to call a different program?
Thanks.
Raul VHi Raul,
Copy standard program RM07DOCS to ZRM07DOCS
Then add this code "PERFORM detail_list."
before the code "CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' "
This will solve your problem.
Regards.
Maybe you are looking for
-
This seems like it should be so simple. I have this hulking laser printer that is wonderful, but I only use it occasionally for large, high-quality, final B&W publisher proofs. I want to put it in a corner upstairs and just take my laptop up to conne
-
OIM API - How to get the values in the process form (both parent and child)
Hi, I created an RO with a Process form (both Parent and Child).I created a unconditional process task which takes in the processinstance key and tried to retrieve the process form datas.When i tried to provison the resource,the process task is getti
-
Stolen phone replaced by Apple store
What should I do if my stolen phone was replaced under warranty by an Apple store even after informing and cancelling my protection plan. The phone was blocked by service provider as it was stolen but the thief managed to replace it for a brand new p
-
Microsoft Security Client OOBE stopped due to the following error: 0xC000000D
I keep getting this error in my event Viewer and I removed Microsoft Security Client a few weeks ago and replaced it with Bitdefender 2012 Session "Microsoft Security Client OOBE" stopped due to the following error: 0xC000000D I am also getting these
-
Is there a way to use creative cloud library in photoshop actions?
Is there a way to use creative cloud library in photoshop actions?