How to get the status of the backgroud job?
Hi all,
I have a job, there are two steps. I have checked in the table TBTCP, the status is always 'P', which means:job step scheduled, even the step is finished. How can we get the status of every step? Many thanks in advance!
try FM BP_JOB_STATUS_GET
but Table TBTCO(field-status) gives the status of the job i.e whether scheduled,released,active,finished,ready or terminated job.
check following tables
<b>TBTCJSTEP - Background Job Step Overview
TBTCO - Job Status Overview Table
TBTCP - Background Job Step Overview</b>
Message was edited by:
Vasu G
Similar Messages
-
How to get the Background job name
Hi,
I am executing a report in background and i want to get the background job name in the same report program. How can i get the same.
Regards,
Rajgopal Dara.Hi,
for this fm is used 148 times in our system, I made a check program and it works:
report zsbatchfm.
data: xv_jobcn type btcjobcnt.
data: xv_jobnm type btcjob.
data: xv_stepc type btcstepcnt.
call function 'GET_JOB_RUNTIME_INFO'
importing
* EVENTID =
* EVENTPARM =
* EXTERNAL_PROGRAM_ACTIVE =
jobcount = xv_jobcn
jobname = xv_jobnm
stepcount = xv_stepc
exceptions
no_runtime_info = 1
others = 2.
if sy-subrc <> 0.
write: /1 'SY-SUBRC = ', sy-subrc.
else.
write: /1 'JOBCOUNT = ', xv_jobcn.
write: /1 'JOBNAME = ', xv_jobnm.
write: /1 'STEPCOUNT = ', xv_stepc.
endif.
commit work.
In online mode you get a SUBRC = 1, in batch mode you get the informations (here: in SPOOL)
Please check it on your system!
Regards,
Klaus -
How to get the status of service in rac
Dear all,
how to get the status of service in rac.
SQL> show parameters service;
NAME TYPE VALUE
service_names string DEVDB, DEVDB1, devdb
[oracle@rac1 ~]$ srvctl status service -d devdb -s devdb
PRKO-2120 : The internal database service devdb cannot be managed with srvctl.user7244870 wrote:
Dear all,
how to get the status of service in rac.
SQL> show parameters service;
NAME TYPE VALUE
service_names string DEVDB, DEVDB1, devdb
[oracle@rac1 ~]$ srvctl status service -d devdb -s devdb
PRKO-2120 : The internal database service devdb cannot be managed with srvctl.
Internal services cannot be managed with srvctl utility. Check if you have any user defined service in dba_services
SQL> desc dba_services
Name Null? Type
SERVICE_ID NUMBER
NAME VARCHAR2(64)
NAME_HASH NUMBER
NETWORK_NAME VARCHAR2(512)
CREATION_DATE DATE
CREATION_DATE_HASH NUMBER
FAILOVER_METHOD VARCHAR2(64)
FAILOVER_TYPE VARCHAR2(64)
FAILOVER_RETRIES NUMBER(10)
FAILOVER_DELAY NUMBER(10)
MIN_CARDINALITY NUMBER
MAX_CARDINALITY NUMBER
GOAL VARCHAR2(12)
DTP VARCHAR2(1)
ENABLED VARCHAR2(3)
AQ_HA_NOTIFICATIONS VARCHAR2(3)
CLB_GOAL VARCHAR2(5)http://docs.oracle.com/cd/B19306_01/rac.102/b14197/srvctladmin.htm -
How to get the status of the button?
i want to know how to get the clicked status of the button? whether it is in clicked state or in unclicked state?
For ex: i have the following code...
<components:IconButton id="bold_btn" width="22" icon="@Embed('/assets/bold.png')" click="onBoldClick()" enabled="{this.loadCompleted}" toggle="true"/>
how to find whether the bold button is clicked or not?
this.bold_btn.????Hi Isa,
You can make use of a Boolean variable to acheive this functionlaity...check out the below simple example...
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white" width="100%">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private var isBtnToggle:Boolean = false;
private function onButtonClick():void
isBtnToggle = !isBtnToggle;
if(isBtnToggle)
btnToggle.label = "I am Toggled ON";
Alert.show("Button is Toggled ON");
else
btnToggle.label = "I am Toggled OFF";
Alert.show("Button is Toggled OFF");
]]>
</mx:Script>
<mx:Button id="btnToggle" label="I am Toggled OFF" toggle="true" click="onButtonClick()" />
</mx:Application>
If this post answers your question or helps, please kindly mark it as such.
Thanks,
Bhasker Chari -
How to get the set pf-status and call Transaction work together in SA
hi,
I am using Set pf-status to display the details screen and the same time using call transaction va03 leave screen 0 to display the corresponing sales order.
The issue is both of them are not workin together properly.
it could be helpfull if you give some code which deals the issue in detail...
can you please give details how to get the previous screen once the new screen is obtained thru set pf-status
thanks and regards
Edited by: san dep on Jul 10, 2008 6:25 PMHi,
Try this code ---
SET PF-STATUS 'STATUS_NAME' OF PROGRAM 'ZPROGRAM_NAME'.
Regards
Pinaki -
How to get the time interveral for each status of worklow (wating,Inprocess
Hi Friends,
I have requreiemnt to get the time interval for each status of workflow.
ex.
status
workflow id | startd date | enddate | waiting | Inprocessing|Error|......
1026 10.10.2008 25.10.2008 1hr 1hr 30 min 2 hr
Please do give me idea how to get the time stam of each status of workflow.
Thanks,
D.prabhuHi,
I think the following tables would be helpful to you:-
SWW_CONT Container Contents for Work Item Data Container
SWW_CONTOB "Container Cont. for Work Item Data Container (Only Objects)"
SWWLOGHIST History of a work item
SWWORGTASK Assignment of WIs to Org.Units and Tasks
SWWUSERWI Current Work Items Assigned to a User
SWWWIHEAD Header Table for all Work Item Types
Hope it Helps!
Regards,
Kanika -
How to get the viewrow value by string
Using Jdev11.1.1.5.0-adfbc-ireport3.0.0
here i'll describe: what i did.
am using jsff(dynamic region) while hitting the af:tree nodes it will opens. ok fine
i had somevo with manually wroten query. and query is fine no problem with that
here i give sample not a original query
select * from sometable where acctid = :pacctidi drag and drop the pacctid from corresponding execute params vo as selectoncechoice
static vo
Data value - account payable , advance
Data Name - ap,ad
in that jsff
*page representation*
account type : account payable (ap) - select one choice type
advance (ad) - select one choice type
like this some select once choice and some inputs.
Run report - command button
.jsff code
<af:selectOneChoice value="#{bindings.ACCT_TYPE.inputValue}"
label="Account Type"
shortDesc="#{bindings.ACCT_TYPE.hints.tooltip}"
id="soc3" required="true"
autoSubmit="true"
binding="#{backingBeanScope.SUP1040V.soc3}"
valuePassThru="true"
valueChangeListener="#{backingBeanScope.SUP1040V.ValueChangeListener1}">
<f:selectItems value="#{bindings.ACCT_TYPE.items}" id="si3"/>
</af:selectOneChoice>
<af:commandToolbarButton text="Export in pdf" id="ctb2">
<af:fileDownloadActionListener method="#{backingBeanScope.SUP1040V.Report}"
/>
</af:commandToolbarButton>.java
//while hitting the button following logs are appeared i show it as commented format.
public void Report(FacesContext context, OutputStream out) throws IOException,Exception
FacesContext ctx = FacesContext.getCurrentInstance();
HttpServletRequest request =
(HttpServletRequest)ctx.getExternalContext().getRequest();
HttpServletResponse response =
(HttpServletResponse)ctx.getExternalContext().getResponse();
BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry();
System.out.println("print binding" +bindings1 );
//while using sop i get this in my log : : print binding ReportsPageFragments_SUP1040VPageDef_WEB_INF_TaskFlows_SUP1040_V_TF_xml_SUP1040_V_TF
JUCtrlListBinding listBinding1 = (JUCtrlListBinding)bindings1.get("ACCT_TYPE");
System.out.println("print list bindings" +listBinding1 );
//while using sop i get this in my log : : print list bindings0
Object selectedValue1 = listBinding1.getSelectedValue();
System.out.println("print selected value" + selectedValue1);
//while using sop i get this in my log : : print selected valueViewRow [oracle.jbo.Key[AP ]]
request.setAttribute("ACCT_TYPE", //here i want the value "AP" in String );
if i use like this means
request.setAttribute("ACCT_TYPE", soc1.getValue() ); i get the index value.
i need the dataname "ap" so i go above method which say wrotes ...
request.getRequestDispatcher(response.encodeURL("/sup1040servlet")).forward(request,response);
System.out.println("hihihihih");
response.flushBuffer();
ctx.responseComplete();
public void ValueChangeListener1(ValueChangeEvent valueChangeEvent) {
// Add event code here...
String AcctType = valueChangeEvent.getNewValue().toString();
System.out.println("AcctType" + AcctType);
FacesContext contxt = FacesContext.getCurrentInstance();
valueChangeEvent.getComponent().processUpdates(contxt);
BindingContainer bindings1 =
BindingContext.getCurrent().getCurrentBindingsEntry();
// Get the sepecific list binding
JUCtrlListBinding listBinding1 =
(JUCtrlListBinding)bindings1.get("ACCT_TYPE");
// Get the value which is currently selected
Object selectedValue1 = listBinding1.getSelectedValue();
System.out.println(selectedValue1);
}if i get ap means my report runs. or else it will shows empty page.
how to get the viewrowimpl class value as string.
Edited by: ADF7 on Mar 24, 2012 7:27 AMADF7,
I'm not sure I understand what you are up to.
As far as I understand you want to get the display value instead of the index
I use this code
public void StatusChangedListener(ValueChangeEvent valueChangeEvent)
BindingContext lBindingContext = BindingContext.getCurrent();
BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry();
JUCtrlListBinding list = (JUCtrlListBinding) lBindingContainer.get("Status");
int newindex = (Integer) valueChangeEvent.getNewValue();
Object row = list.getDisplayData(); // Wichtig um die liste zu laden!!!!
Row lFromList = (Row) list.getValueFromList(newindex);
Object lAttribute = lFromList.getAttribute("Value");
String newVal = (String) lAttribute;
}to get the value from a selectOneChoice component...
Timo -
How to get the current week from sysdate?
Hi sir,
i want to know how to get the current week from sysdate?
thanksHi Nicolas
It seems you like to check my post and also make commend ;) thanks for your attention
Have you ever read the posts above and given solutions ?Yes, I did
Have you read the docs ? Yes, I checked
What's the added value here ?Did youYou shared doc with solution(long one), I shared short one which point same solution(Check what Joel posted)..So what is benefit, As you can guess oracle docs are sometimes become so complicated as specialy for beginner...(At least it was like that for me and Belive me somedocs are still sooo complicated even for oracle coworkers ) But for you I dont know ;)
=> Why writting the PS in bold ?Why.. Let me think... Ohh Maybe I am looking some questions(many) and even user get answer they should not changed status so I am reading some posts and try to get problem and loosing time..
So I am putting that PS wiht BOLD because I dont wanna lose time my friend ;) Because While I am trying to help ppl here In same time I am trying to giving support to my customer prod systems. Which mean time is very important for me...
Hope my answer could satisfy you..
One important PS for you.. You may not like my posts (or someone) but my friend I become tired to read&answer and make commend to on your comment which is about my posts.
I am not newbie in forum(At least I fell like that) and I belive I know how I should make post..
Thank you
Regards
Helios -
How to get the current slide Index or Id?
I can get the selected slide of presentation use blow method.
Office.context.document.getSelectedDataAsync(Office.CoercionType.SlideRange, function (asyncResult) {
if (asyncResult.status == Office.AsyncResultStatus.Failed) {
write('Action failed. Error: ' + asyncResult.error.message);
else {
write('Selected slides: ' + JSON.stringify(asyncResult.value.slides));
But, How can I get the executor slide?Hi,
>> How to get the current slide Index or Id?
In my option, when you select a slide, it change to current slide. So, you could use the getSelectedDataAsync method to get the current slide, and then get the index or id by using the Slice object. You could refer the link below for Slice Object.
# Slice.index property (JavaScript API for Office)https://msdn.microsoft.com/EN-US/library/office/jj715285.aspx?f=255&MSPPError=-2147217396
Some key code as below:
<script>
function getText() {
Office.context.document.getSelectedDataAsync(Office.CoercionType.SlideRange,
{ valueFormat: "unformatted", filterType: "all" },
function (asyncResult) {
var error = asyncResult.error;
if (asyncResult.status === Office.AsyncResultStatus.Failed) {
write(error.name + ": " + error.message);
else {
// Get selected data.
var dataValue = asyncResult.value;
write('Selected data is ' + dataValue.slides[0].index);
// Function that writes to a div with id='message' on the page.
function write(message) {
document.getElementById('message').innerText += message;
</script>
>> How can I get the executor slide?
What do you mean by this? Is this a new issue which is different from the above issue? If so, I will recommend you post a new thread for this issue and share us more information about this.
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to get the SQL Signon that Agent Jobs "Run As" or "Executed as User"
How to get the SQL Signon that Agent Jobs "Run As" or "Executed as User"?
I have an install SQL scripts that creates a Linked Server. I want to put some security on the Linked Server and only grant the Agent Job Signon (the "Run As" or "Executed as User") access to the linked server. I need to retrieve the
Agent Job Signon (something like "NT SERVICE\SQLAgent$FIDEV360BI02").
I could query certain jobs and SUBSTRING the Message column - using some form of the query below, which would return "Executed as user: NT SERVICE\SQLAgent$SSDEVBI02. The step succeeded." But that is pretty imprecise.
use msdb
SELECT [JobName] = JOB.name,
[Step] = HIST.step_id,
[StepName] = HIST.step_name,
[Message] = HIST.message,
[Status] = CASE WHEN HIST.run_status = 0 THEN 'Failed'
WHEN HIST.run_status = 1 THEN 'Succeeded'
WHEN HIST.run_status = 2 THEN 'Retry'
WHEN HIST.run_status = 3 THEN 'Canceled'
END,
[RunDate] = HIST.run_date,
[RunTime] = HIST.run_time,
[Duration] = HIST.run_duration,
[Retries] = HIST.retries_attempted
FROM sysjobs JOB
INNER JOIN sysjobhistory HIST ON HIST.job_id = JOB.job_id
-- CHANGE THIS
-- WHERE JOB.name like '%GroupMaster%' or Job.name like '%etlv%'
ORDER BY HIST.run_date, HIST.run_timeby default all sql jobs are executed as sql server agent account, unless otherwise a proxy is setup.
you can get the proxy information as Olaf mentioned, if the proxy_id is null for the step, it implies that the job step was executed as sql server service account and in such case it will be null
so, if it is null, it ran as sql server agent account.
so, one work around is get the sql server agent service account and if the proxy is null, that means it ran as sql server agent account, so, use isnull function. the disadvantage would be if the sql server agent account was switched, you might not get the
accurate information as the new account will show up though the job really ran as old account, to get this information, you need to get this from the logmessage column as you mentioned above.
try this code...
/*from sql 2008r2 sp1, you get the service accounts using tsql,otherwise you have to query the registry keys*/
declare @sqlserveragentaccount varchar(2000)
select @sqlserveragentaccount= service_account
from sys.dm_server_services
where servicename like '%sql%server%agent%'
select message,isnull(name,@sqlserveragentaccount) as AccountName
from sysjobhistory a inner join sysjobsteps b
on a.step_id=b.step_id and a.job_id=b.job_id
left outer join sysproxies c on c.proxy_id=b.proxy_id
Hope it Helps!! -
How to get the return message after running BD20 tranaction ?
Hi Gurus,
My requirement is to Post vendor invoice through ALE/IDOC ( Inbound IDOC ).
- For that I had generated the IDOC using Function module 'IDOC_INBOUND_WRITE_TO_DB '
- Then I had processed that generated IDOC by calling the standard program rbdapp01(BD20-Tranaction ) using the below statment
SUBMIT rbdapp01 WITH SELECTION-TABLE lt_seltab .
Could any one suggest me how to get the report output of standard program (rbdapp01) to an internal table so that I dispaly as an seperated report like Posted Document number with messages or Error message
Suggest me any Function module or any other standard program to process the IDOC so that I can fulfill my requirement.
Regards
PaulUse can read the IDOC status after processing...
Eg.
SELECT * FROM edidc INTO TABLE t_idoc_control_tmp
FOR ALL ENTRIES IN t_update WHERE docnum = t_update-docnum.
and then add your own logic IF SY_SUBRC EQ 0.
I hope this will help you.
Regards,
Amey -
How to get the size of the table
Hi All,
How to get the size of the table in Oracle 10g?
Is there any script which needs to be run?
Regards,
ApoorvHi All,
Sorry but somehow the table user_segments is not populated in my case. But we have another table SYS.ALL_TABLES whose structure is given below. Would I be able to calculate the table size based on the columns given below:
ColumnName Data Type
OWNER VARCHAR2 (30 Byte)
TABLE_NAME VARCHAR2 (30 Byte)
TABLESPACE_NAME VARCHAR2 (30 Byte)
CLUSTER_NAME VARCHAR2 (30 Byte)
IOT_NAME VARCHAR2 (30 Byte)
STATUS VARCHAR2 (8 Byte)
PCT_FREE NUMBER
PCT_USED NUMBER
INI_TRANS NUMBER
MAX_TRANS NUMBER
INITIAL_EXTENT NUMBER
NEXT_EXTENT NUMBER
MIN_EXTENTS NUMBER
MAX_EXTENTS NUMBER
PCT_INCREASE NUMBER
FREELISTS NUMBER
FREELIST_GROUPS NUMBER
LOGGING VARCHAR2 (3 Byte)
BACKED_UP VARCHAR2 (1 Byte)
NUM_ROWS NUMBER
BLOCKS NUMBER
EMPTY_BLOCKS NUMBER
AVG_SPACE NUMBER
CHAIN_CNT NUMBER
AVG_ROW_LEN NUMBER
AVG_SPACE_FREELIST_BLOCKS NUMBER
NUM_FREELIST_BLOCKS NUMBER
DEGREE VARCHAR2 (10 Byte)
INSTANCES VARCHAR2 (10 Byte)
CACHE VARCHAR2 (5 Byte)
TABLE_LOCK VARCHAR2 (8 Byte)
SAMPLE_SIZE NUMBER
LAST_ANALYZED DATE
PARTITIONED VARCHAR2 (3 Byte)
IOT_TYPE VARCHAR2 (12 Byte)
TEMPORARY VARCHAR2 (1 Byte)
SECONDARY VARCHAR2 (1 Byte)
NESTED VARCHAR2 (3 Byte)
BUFFER_POOL VARCHAR2 (7 Byte)
ROW_MOVEMENT VARCHAR2 (8 Byte)
GLOBAL_STATS VARCHAR2 (3 Byte)
USER_STATS VARCHAR2 (3 Byte)
DURATION VARCHAR2 (15 Byte)
SKIP_CORRUPT VARCHAR2 (8 Byte)
MONITORING VARCHAR2 (3 Byte)
CLUSTER_OWNER VARCHAR2 (30 Byte)
DEPENDENCIES VARCHAR2 (8 Byte)
COMPRESSION VARCHAR2 (8 Byte)
DROPPED VARCHAR2 (3 Byte) -
How to get the list of unviewed Instances?
Hi All,
Can anyone tell me how to get the list of unviewed instances?
I want to get all the instances which have been scheduled but not viewed.
Please help me on this.
I tried to get the info from audit report but i could not able to achieve it.
is it possible from query builder?
Thanks,
NagaveniHi Ravi,
Thank you for the reply!!
Then it is not possible to get the unviewed reports.
how does it work if i create a audit report with Viewed status and list of all instances then we can filter out the unviewed reports.
Does above solution is going to work?
i have not tried yet, seeking your opinion. -
How to get the full pictures, when only a strip of it is seen?
When Yahoo India web page is viewed through Mozillz firefox 4.0.1 the photos in the gallery are seen only as a small strip and not fully. How can I correct this defect?
Hi
1. I want to get the mail statuses of the invoice mail sent to a customer.
2. In which table the log will be stored ?
3. How to get the link for the billing document for which the mail was sent to the customer ?
What do you mean?
How do you manage the mail?
I suppose you manage it by a messages, if it's so you can have 2 different status:
- One for the message: check table NAST
- One for mail: see transaction SOST
The link is in NAST table
Max -
How to get the 4 digit number associated with a SAP icon ( ICON_MAIL )
Hi Friends,
Could anyone please tell me how to get the 4 digit number associated with a SAP icon ( ICON_MAIL ).
eg: - For ICON_GREEN_LIGHT the four digit id code is '@08@' (which you can get from ICON table )and the associated 4 digit number is'1003'.
Similarly I want to get the 4 digit number for ICON_MAIL(e-mail icon)
<b><REMOVED BY MODERATOR></b>
Ashiq
Message was edited by:
Alvaro Tejada GalindoYou can use this report...It's not mine...
REPORT zdummy_atg_2.
TABLES: ICON.
INCLUDE <ICON>.
FIELD-SYMBOLS: <F>.
SELECT * FROM ICON.
ASSIGN (ICON-NAME) TO <F>.
WRITE: /(5) <F>, 20 '@',21 ICON-ID+1(2),23 '@',ICON-OLENG,
ICON-BUTTON,ICON-STATUS,ICON-MESSAGE,ICON-FUNCTION,
ICON-NAME.
ENDSELECT.
Greetings,
Blag. -
HT1923 how to get the old version of itunes
how to get the old version of itunes. i dont like the new one. pls help.
If you want iTunes 10.7:
http://support.apple.com/kb/DL1576
But before you to go the effort of trying to downgrade, try these steps, presuming you're referring to iTunes 11:
- Press Control-B to show the menus
- From the View menu, select "Show Sidebar" and "Show Status Bar'
That makes iTunes 11 look much like earlier versions of iTunes and satisfies many people.
Regards.
Maybe you are looking for
-
Can someone tell me if there is any way to add a fully editable layer mask in pse 8?
Hi I am a web designer and ahve been working hard recently in adding new web graphic skills to my arsenal. Now, the problem I have been expiriencing with elements 8 is that while trying to reproduce a mirrored text effect, following a tutorial onlin
-
Wht r the advantages of using bdc rathan than lsmw?
Hi , I want to knwo.. wht r the advangtages of using bdc rathan than lsmw.,,,
-
IWeb pages don't work just the "Home" one
I recently published my website, and everything went smoothly just that the other pages cannot be clicked on. Only the main page works but the other tabs are not clickable. And I checked the inspector in iWeb and it doesnt seem to be overlapping. Tha
-
In forground progarm working fine, but in back ground it is not working
Hi experts one program having functionality like using BDC it is creating the session and it is posting session automatically. if error occurs mail notification send to user .used this FM ---SO_NEW_DOCUMENT_ATT_SEND_API1 when i am executing the progr
-
Why are my Red Line Edge Smart Guide indicators not showing up or continuing the image to the edge o
I have been messing with a single long page layout with scrolling effects. So I have 2 or 3 other objects behind another object pair that I have been trying over and over to get to extend to the edge of the browser by pulling the size anchor of the r