Active' background status to 'canceled
hi exprets,
Is there any FM by which we can set the "Active' background status to 'canceled". i want to cancel the active job if some codition is satisfied .Please le me know on the same. plz help me,
Mahesh
Hi, can someone help me
When end massive processes the jobs status does not change remaining "active" State, and to verify the bulk load finished well
Thank you very much for the support that I can deliver
LEONOR
Similar Messages
-
Hi All,
In our HR systems, we use workflows extensively and in one of our custom workflows we send a notification to one group mail box. The FND_USER is defined and the group mail box address is given correctly.
In the workflow we recursively send notifications to that user as long as there are some unprocessed records in our custom table. The issue now is the users claim that the mails are not received by them in our live instance. While debugging we noticed that the mail_status is null and status is CANCELED for this particular workflow always.
I checked the following and they are correct:
1. Notification 'On Revisit' parameter set to 'Reset'
2. Checked in fnd_user and wf_local_roles, the user is active and the email id is correct there
3. No timeout parameters set for this notification
P.S. Notifications to this user are sent properly when sent from some other workflows. So not sure whether something is missing in the above workflow process.
It is really strange that the notification status is CANCELED. The begin and end date are same for such notifications. So these are not canceled by some abort process activities.
Please suggest.Please post the details of the application release, database version and OS.
In the workflow we recursively send notifications to that user as long as there are some unprocessed records in our custom table. The issue now is the users claim that the mails are not received by them in our live instance. While debugging we noticed that the mail_status is null and status is CANCELED for this particular workflow always.
I checked the following and they are correct:
1. Notification 'On Revisit' parameter set to 'Reset'
2. Checked in fnd_user and wf_local_roles, the user is active and the email id is correct there
3. No timeout parameters set for this notification
P.S. Notifications to this user are sent properly when sent from some other workflows. So not sure whether something is missing in the above workflow process. Can you find any errors in the Workflow log file?
It is really strange that the notification status is CANCELED. The begin and end date are same for such notifications. So these are not canceled by some abort process activities.
Please suggest.How To Troubleshoot Java-based Workflow Notification Mailer [ID 242941.1]
Troubleshooting Workflow Java Notification Mailer - Technical Reference [ID 1191125.1]
A Guide For Troubleshooting Workflow Notification Emails - Inbound and Outbound [ID 831982.1]
Oracle Workflow Release 12 Diagnostics [ID 469822.1]
OWF H Diagnostics, Solutions and Information [ID 332152.1]
Thanks,
Hussein -
Job in background is getting cancelled
Hi Abapers,
I have created the program to display data. It works fine when I execute it from SE38.
But when I execute the same program in background, It gets cancelled.
Can any one give me the reason & what can we do for this?
Thanks,
Hemal ShahHi Hemanl ,
Since you are executing the program ins background i assume that it is not an interactive ALV , so i would suggest you not to use a container on the screen and use the default screen provided by sap.
Here is the steps you need to folllow
1. Delete the Screen you created to display the ALV.
2. As the screen in deleted so no custom container is required , hence remove the code to create the custom container .
3: When you create grid object give the parent i.e. the parameter I_PARENT the value
CL_GUI_CONTAINER=>SCREEN0 ,
Rest of the coding with the gird as the original one .
Make these changes and execute your program and see,
Regards
Arun -
Background job PLAAP5BULCOD_CONS_CHECK_CCR_MPOR cancelling
Hi,
Background job PLATA_CONS_CHECK_CC_EMPTOR canceling in my SCM 5 system.
Log from SAM is as below. Job is running around 2.5 hours.
In ST, found few time out errors while this job is running.
Didnt found errors related to this job (user, twp) in SAM.
Is function module /SAPPORO/COIF_DELTA_SE_FROM_R and /SAPPORO/DM_COPY_ORDERS_LCD_PACK related to the program /SAPPORO/COIF_DELFTWARE ?
how to fix this? is any other logs are available to check this (in SCM)?
Please suggest.
(AIX,Oracle,SCM)
SAM error: ____________________________________________________________________________________
21.03.2010 10:30:03 Job started
21.03.2010 10:30:03 Step 001 started (program /SAPPORO/COIF_DELFTWARE, variant PR_MANU_FORD, user ID BATCH_AM)
21.03.2010 11:13:04 Iteration executed
21.03.2010 11:13:05 Spool request (number 0000031813) created without immediate output
21.03.2010 11:13:05 Results saved successfully
21.03.2010 11:13:06 Step 002 started (program /SAPPORO/COIF_DELFTWARE, variant PR_PLAN_FORD, user ID BATCH_AM)
21.03.2010 12:00:18 Iteration executed
21.03.2010 12:00:24 Spool request (number 0000031833) created without immediate output
21.03.2010 12:00:25 Results saved successfully
21.03.2010 12:00:25 Step 003 started (program /SAPPORO/COIF_DELFTWARE, variant PR_MANU_FORD, user ID BATCH_AM)
21.03.2010 13:00:58
21.03.2010 13:00:58 Background job terminated due to communication error
21.03.2010 13:00:58 Job canceled after system exception ERROR_MESSAGE
ST22 Errors_______________________________________________________________________________
TIME_OUT ERRORS with the following details:
user ID: BATCH_AM
Function module: /SAPPORO/COIF_DELTA_SE_FROM_R (and /SAPPORO/DM_COPY_ORDERS_LCD_PACK also )
Thanks & Regards,
Nagendra.Hi Nagendra,
it seems the problem is related to timed out issue in the work process
what is the present value of rdisp/max_wprun_time ? check in RZ11 , increase the value of atleast 3600 ( setting zero is maximum value , you can also try and revert back once bgd process completes)
Thanks and regards
Purna -
Background job got cancelled for the user ----- Isolation and resolution
Hi Experts,
One background job got cancelled for the user I have the Jobname and User...
Able to view the log information in SM37.
I am not sure what is the next step to do and how to resolve this issue.
Could any one please provide me the step by step Isolating the issue and resolving it.
That would be really greatfull.
Thank you in advance.
Regards,
Prem.Hi,
What the error it was stating in that SM37 job log?
Pls post that error log, not completely just mention the error here we'll try to help you.
rgds, -
Table name to display status for maintenance plan with active /inactive status
i need status table which display only active/inactive status of the maintenance plan.
really it helps me ..........
thanks raymond
regards,
priya -
How to stop Active Background Jobs
Hi All,
We have some immediate hotfix to be applied during which there should not be any background job running. At the same time, we don't want to kill the processes forcibly.
Is there any other way to pause/stop the active background jobs and enable later to run where it has been paused/stopped?
Thanks
VijayHi,
I knew these reports to suspend/release scheduled jobs.
So, do we need to wait until the jobs are complete? This should not be the case, as there might be some other jobs which will start while we wait for the existing job to complete.
Any other thoughts.
Thanks
Vijay -
How to find objects with active System status-JEST
Hi All,
Is there any way in which I can find Production operations based on their active system status.
The problem I'm facing is SAP stores system status for an order in JEST. And JEST contains many active system status for a PP Operation.
I have to select all Operations which have status of say e.g. REL(released).
If the select statement is as below
select objnr stat
into table t_jest
from jest
where stat = <Internal format of REL>
and inact NE 'X'.
Then this will also give those objects which are having REL plus any other higher status.
Whereas what I want is only those objects which have their current status as REL and not which also as REL.
The other way of doing this is get a all object and statuses and loop through records and filter out unwanted ones. But it will have serious impact on performance.
Does anyone has some other solution to the above problem. Any function module or any other table which stores only the current active status.
Any help would be of great help to me.
Thanks.
Message was edited by: Stephen PeterHi Peter
we have to these FMs to get the Status of Prod.Order.I have Developed one Reoprt which will show up order staus / stages
like : col1 is orders which are in Open nothing but REL.So u have to put a Condition where jest-stat ='REL' only.
OPEN-TECO PCNF-TECO
2 0
9 5
0 0
2 0
3 0
4 3
0 1
0 0
1 0
2 0
23 9
CRS_SORDER_CREATE_UPLOAD_PROXY
CRS_SORDER_STATUS_UPLOAD_PROXY
MASS_PERFORM_STATUS_CHANGES
STATUS_READ Read Object Status (JSTO and JEST)
STATUS_READ_MULTI
* Getting the Order Number and Obj.Number.
select aufnr erdat werks objnr from aufk
into corresponding fields of table otab
where auart in ('PP01','PP02')
and erdat gt s_budat-low
* prabhu on 24.5.5
and werks in s_werks.
* Getting the Obj.Number and Status Number
data : w_stat like jtab-stat.
* loop at otab.
if otab[] is not initial.
select objnr stat from jest
into corresponding fields of table jtab
for all entries in otab
where objnr = otab-objnr
and inact eq ''.
endif.
* Getting the Status Text for All The Orders
loop at jtab.
read table ttab with key istat = jtab-stat.
if sy-subrc ne 0.
select single txt04 txt30 from tj02t
into (ttab-txt04,ttab-txt30)
where istat eq jtab-stat
and spras eq 'EN'.
if sy-subrc eq 0.
ttab-istat = jtab-stat.
append ttab.
clear ttab.
endif.
endif.
endloop.
i think u got one Inputs.
Regards
Prabhu
[email protected] -
SQL Server 2008:hide any row associate with original ticket when Status is cancel
How can I say to hide any "original ticket" when the column status is Cancel?
Date Date Stamp Original Ticket Trade Number Status
01 jan 01 jan 123 130 Modify
01 jan 02 jan 123 140 Cancel
03 jan 03 jan 145 150 Modify
04 jan 04 jan 160 200 Cancel05 jan 05 janv 210 210 (empty because some trade are not modify)i wanna get this result: hide original ticket witch status are cancel Date Date Stamp Original Ticket Trade Number Status
03 jan 03 jan 145 150 Modify05 jan 05 janv 210 210 Tks a lotHello,
You can try to create a View to filter the recoder you don't need. Please refer to the following statement:
Create table ticket
([Date] date ,[Date Stamp] date, [orginial ticket] int, [trade number] int, [status] varchar(20))
insert into ticket values
('2014-01-01', '2014-01-01' , 123, 130,'Modify'),
('2014-01-01', '2014-01-02' , 123, 140,'Cancel'),
('2014-01-03', '2014-01-03', 145, 150, 'Modify'),
('2014-01-04', '2014-01-04',160, 200, 'Cancel'),
('2014-01-05', '2014-01-05',210, 210,NULL)
go
create view v_ticket as
with cte as(
select [orginial ticket], [Date],[Date Stamp],[trade number],status,
row_number() over (partition by [orginial ticket] order by [date stamp] desc ) as rn
from ticket )
select * from cte
where rn = 1 and (status <>'Cancel' or status is null)
go
select * from v_ticket
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
There is any fm to get employee is active / not (status)
there is any fm to get employee is active / not (status)
Look at prog : RPCSOCPX
FM
CALL FUNCTION 'HR_PT_CHECK_EMPLOYEE_ACTIVE'
EXPORTING
ENDDA = P_ENDDA
BEGDA = P_BEGDA
REL_PER = P_FLAG
IMPORTING
FL_ACTIVE = P_ACTIVE
TABLES
AB = P_ABAUX
WPBP = P_WPBPAUX
EXCEPTIONS
AB_NOT_CLASS = 1
OTHERS = 2.
OR HR_ECM_TEST_EE_IS_ACTIVE
OR
CALL FUNCTION 'CATS_CHECK_EMPLOYEE_ACTIVE'
EXPORTING
PERNR = PERNR
date = date (DEL)YIKP45K046668
BEGDA = DATE "YIKP45K046668
ENDDA = DATE "YIKP45K046668
EXCEPTIONS
PERNR_NOT_FOUND = 1
PERNR_NOT_ACTIVE = 2
OTHERS = 3.
Good luck !
Khan -
User exit on QA02 when changing status to Cancel
Please let me know any userexits or badi's on QA02 while changing inspection lot status to cancel.
Thanks
TejHi,
Check the below exits.
EXIT_SAPLQPL1_001
EXIT_SAPLQPL1_002
EXIT_SAPLQPL1_003
EXIT_SAPLQPL1_004
EXIT_SAPLQPL1_005
EXIT_SAPLQPL1_006
EXIT_SAPLQPL1_007
Thanks, -
How to Cancel a ACTIVE background Job scheduled in SM37.
Hi Friends,
I have scheduled a Background job. The job is ACTIVE now. How can I cancel this job?
Regards,
VijiThere is a last ditch method for jobs that don't get canceled for some reason or the other
Go to SM50 - first try canceling the job from there
If that doesn't work, note down the Process ID (PID) of the job
Take direct OS access to your system (You would need your Basis person for this) and terminate the job
If the server is Windows based, you can end it using the task manager and end that process id -
Error in active background jobs
Hi All,
i facing problem while cosing the job
i have written the code
IF NOT p_imm IS INITIAL.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = l_f_jobcount
jobname = l_f_jobname
strtimmed = l_flg_start_sofort
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.
COMMIT WORK .
and it is not showing any error and it should finished the job in sm37 but i am always getting the ststus active rather than finished.
please suggest what could be the reason
Thanks,
Madhuhi all,
please help me on this..
when there is no data then background job finish the job and in the job log it shows thst no valid data for selection. but if there si any data ... the job status stil active and it never get finished.... and finaly it get cancelled.
even while dubugging it never shows sy-subrc value other than 0. even when i run the background job manually for the submit sdt program it finish the job. I don't understand the reason why it is in active stage while executing id dialog.
Please mention if there is any parameter value missing ..
my code as follows..
do n times. "n muber of jobs
Start Immediately
IF NOT p_imm IS INITIAL.
l_flg_start_sofort = 'X'.
(1)Open the job
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = l_f_jobname
IMPORTING
jobcount = l_f_jobcount
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE e032(sxmsf) WITH l_f_jobname.
ENDIF.
(2)Report start under job name
SUBMIT (g_c_prog_c1_lo)
WITH s_partn IN r_partn
WITH s_parro IN s_parro
WITH s_grvsy IN s_grvsy
WITH s_lgreg IN s_lgreg
WITH p_updab = p_updab
WITH p_updbi = p_updbi
WITH p_enqal = p_enqal
TO SAP-SPOOL WITHOUT SPOOL DYNPRO
VIA JOB l_f_jobname NUMBER l_f_jobcount AND RETURN.
*(3)Job closed when starts Immediately
IF NOT p_imm IS INITIAL.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = l_f_jobcount
jobname = l_f_jobname
strtimmed = l_flg_start_sofort
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.
COMMIT WORK .
ADD 1 TO g_cnt_job.
l_r_tbtcjob-jobcount = l_f_jobcount.
l_r_tbtcjob-jobname = l_f_jobname.
l_r_tbtcjob_previous = l_r_tbtcjob.
IF NOT l_flg_first_job IS INITIAL.
g_v_tbtcjob_first = l_r_tbtcjob.
ENDIF.
CLEAR: l_flg_first_job.
ENDDO.
thanks -
Report program when run in background job getting cancelled immediately
Hi
When i run a program in foreground i am able to see the output. But when run in background not able to run the job successfully. The job is getting cancelled immediately.
I am using the below function module for output display. Should i need to pass any parameters in the below function module so that i can run the program in background successfully.
CALL METHOD DETAIL_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = IS_LAYOUT
I_SAVE = 'A'
IS_VARIANT = GS_VARIANT
CHANGING
IT_FIELDCATALOG = IT_FIELDCATALOG
IT_OUTTAB = BLOCKED_STOCK_TAB_ALV[].
Please suggest.
Thanks and regards
Rajani YeluriHi Rajani.
ALV require the DRYPOR(screen) for display but incase you run in back ground which have to write to spool but in spool we can only write in format of LIST REPORT not inter-active report like ALV. That why
system cancelled your process immediately.
Hope it helps.
Sayan. -
Background job getting CANCELLED
hello,
i have a background job scheduled for a report program.it is getting cancelled and giving the following error:
"TABLE_ILLEGAL_STATEMENT"
You attempted to change, delete or create a line in the
internal table "???", but no valid cursor exists
for the table.
Possible reasons:
1. The relevent ABAP/4 statement does not include the addition
"...INDEX...", although the statement is not
inside a "LOOP...ENDLOOP" loop processing this table.
2. The relevent ABAP/4 statement was called from within a
"LOOP...ENDLOOP" loop after a DELETE "???".
what could be the reason?it is also giving following error message:
Caution: Program has changed
Caution: At time of termination, Active source code no longer available and after above two statements its giving sign "?" before every statement in below manner:
024300 ? lit_ekpo_dummy1[] = it_ekpo[].
024310 ? DELETE lit_ekpo_dummy1 WHERE ebeln NE tab1-ebeln.
024320 ? DESCRIBE TABLE lit_ekpo_dummy1 LINES count01.
024330 ?
024340 ? REFRESH lit_ematn_dummy[].
024350 ? lit_ematn_dummy[] = lit_ematn[].
Maybe you are looking for
-
Required replace BSEG with BSAK BSIK BSIS BSAS for report performance
Hi Experts i m optimizing a report in which data is extracting from BSEG , 5 time so i reduses the performance of report so i want replace BSEG with BSAK BSIK BSIS BSAS for the same data what I am getting now . this is report of Purchase of item. cod
-
Preferences do not lock in after I make changes
I hope someone can help me on this! Thanks in advance. I changed my ITunes Import Setting Preferences this afternoon - big mistake because it started downloading music at 10MB/per minute. I changed it back to AAC Encoder, High Quality (128 kbps) but
-
Why can't I find the privacy policy for Adobe Flash in English on the website? I don't read Arabic.
-
My serial number contains letters and numbers and the boxes won't print the letters. Anybody?
-
OBIApps - 11.1.1.7 Fact table joining to time Dim by default
Hi, I am trying to pull a column only from the Fact table F1 and not pulling any Dimension columns into the report criteria. But when I run the results and look for the physical SQL, BI is joining the Time dimension table to the Fact table. Does any