How to get the job output to be displayed/send in a report?
Dear All,
IHAC that have a couple of jobs which they all work fine and return the desired value, and now the customer wants to take the output of the jobs and place it in one big report?
The jobs created are the daily health checks that the DBAs run. They would like to have all the output from all the jobs consolidated in one report to be sent to them every morning on their emails.
Kindly advise if this is doable.
There isn't really a way to redirect a job's output. Unless you try to dig it out of the repository. Trust me it will be a hell of a job to puzzle out the locations and SQL statements to get it.
You might consider trying to migrate your jobs into reports (if possible). Reports can be redirected to e-mail recipients.
Regards
Rob
Similar Messages
-
How to get the Query output to Excel
Hi ,
Can you tell me how to get the Query output to excel with out using any third party tool?
Can you tell me how to write the code in Webservice and call it..
Please explain it Elaboartly..
Thanks in Advance!!!
Miniwhats your source system?
you can use Live office, or query as a webservice if you are getting data from universe
if you're getting data from SAP BI query and you have a java stack on your netweaver then you can get the data directly using sap bi connector in xcelsius.
good luck -
How to Get the Job, Cost center, Position description using select query
Hi all,
How to get the Job, Cost center, Position description through select query without using the Function module?
thanks,
Prasaduse adhoq query and take the report chose both text and value
-
How to get the job logs from sm35 by using the queue id and session name?
hi all,
can any one please let me know how to read the job log from sm35 by using the session name and queue id. i have the job name and job count but is it possible to download the job log by using the queue id and session name.
FYI..
i want to read this job log and i want to send it to an email id.
-> i am using the job_open and submitting the zreport via job name and job count and then i am using the function module job_close.
but this is not working in my scenario i have the queue id and session name by using this two i want to get the job log is there any function module available or code please provide me some inputs.
thanks in advance,
koushikHi Bharath,
If you want to download it to the local file then you can follow the instructions in the below link.
How to download Batch Input Session Log?
Regards,
Sachin -
How to get the PDF data which i have send to Spool
Dear Freinds,
My requirement is to display the output which iam getting from a custom report(ZSALARY) in the form of PDF . So now i wanted to display the ALV output on to my desktop (as of now) in PDF format.
i have done the below coding please correct me why iam not getting the same data which is coming out of my report in the PDF, iam passing the same internal table.
IF NOT it_final[] IS INITIAL. -
>IT_FINAL is my main internal table in the report ZSALARY
DATA : count TYPE syprcop,
days TYPE sypexpi,
params TYPE pri_params,
valid TYPE c,
pdf_table TYPE rcl_bag_tline,
spoolid TYPE rspoid,
pdf_fsize TYPE i.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'LP01'
copies = count
list_name = 'ZSALARY' -
tHIS IS MY REPORT NAME
list_text = 'ZSSPOOL'
immediately = ' '
release = 'X'
new_list_id = 'X'
expiration = days
line_size = 90
line_count = 65
layout = 'X_PAPER'
sap_cover_page = 'X'
receiver = 'SAP*'
department = 'System'
no_dialog = 'X'
IMPORTING
out_parameters = params
valid = valid.
NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.
WRITE : 'hi this is the test for spool'.
NEW-PAGE PRINT OFF.
COMMIT WORK.
WRITE : / 'The Spool no is ', sy-spono. "system variable for spool no
spoolid = sy-spono . -
At this point i can see the spool no.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = spoolid
no_dialog = 'X'
IMPORTING
pdf_bytecount = pdf_fsize
TABLES
pdf = pdf_table
EXCEPTIONS
OTHERS = 0.
CHECK sy-subrc = 0.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = pdf_fsize
filename = 'C:\Documents and Settings\Administrator\Desktop\test.pdf'
filetype = 'BIN'
TABLES
data_tab = it_final
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
OTHERS = 5.
ENDIF.
if i go and on my desktop it is saying the below error "ADOBE READER COUDNT OPEN 'test.pdf'
because it is either not supported file type or because the file has been damaged.
my aim is to get the data which is there in IT_final in the PDF .....please correct me the parameters which i have given wrong. my doubt is in GUI_download fM in the tables should i pass it_final or
the pdf_table coming from'CONVERT_ABAPSPOOLJOB_2_PDF'...... i tried this option iam able to open and it is just giving message which i kept before this FM i.e WRITE : 'hi this is the test for spool'.
what i should to get my internal table data.
Pls help.
regards
srinivas.Dear Karthik,
Thank you for giving me the link there by iam able to get the ouput download int he pdf
as below code , but now a small problem for me .......i have 10 fileds in the Report ouput ....but however in the pdf output i can see only 8 fields and the two fields got truncated . Could you please tell me what
i have to change in my below code so that i can get all the values
IF NOT it_final[] IS INITIAL.
data : it_tsp01 type standard table of tsp01,
l_wa_tsp01 type tsp01.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'LP01'
copies = count
list_name = 'ZHR_BON'
list_text = 'ZSSPOOL'
immediately = ' '
release = 'X'
new_list_id = 'X'
expiration = days
line_size = 90
line_count = 65
layout = 'X_PAPER'
sap_cover_page = 'X'
receiver = 'SAP*'
department = 'System'
no_dialog = 'X'
IMPORTING
out_parameters = params
valid = valid.
SUBMIT (sy-repid) TO SAP-SPOOL
SPOOL PARAMETERS mstr_print_parms
WITHOUT SPOOL DYNPRO
WITH pnppernr = p0001-pernr
AND RETURN.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = spoolid
no_dialog = 'X'
DST_DEVICE = params-PDEST
IMPORTING
pdf_bytecount = pdf_fsize
TABLES
pdf = pdf_table
EXCEPTIONS
OTHERS = 0.
CHECK sy-subrc = 0.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = pdf_fsize
filename = 'C:\Documents and Settings\Administrator\Desktop\test.pdf'
filetype = 'BIN'
TABLES
data_tab = pdf_table "it_final
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
OTHERS = 5.
ENDIF.
Please tell me how i can get the all the fields which are there in my normal alv output ......
Case 1) .i wanted all the 10 fields in PDF to be displayed without truncated , I have checked in Spool ........ i found all the fields are there .....but however when i check the downloaed PDF i can see some fields are getting truncated.
Case 2) However if on the ALV output if the user hides 2 fields out of 10 fields then only 8 feilds which are appearing on the output before sending the Spool should only be displayed in PDF as well -
> for this scenario what i have to do.
Thanks Once again.
regars
srini. -
How to get the value from a JavaScript and send the same to Java file?
Hi.
How to get the value from a JavaScript (this JS is called when an action invoked) and send the value from the JS to a Java file?
Thanks and regards,
Leslie VYes, I am trying with web application.
In the below code, a variable 'message' carries the needed info. I would like to send this 'message' variable with the 'request'.
How to send this 'message' with and to the 'request'?
Thanks for the help :-)
The actual JS code is:
function productdeselection()
var i=0;
var j=0;
var deselectedproduct = new Array(5);
var message = "Are you sure to delete Product ";
mvi=document.forms[0].MVI;
mei=document.forms[0].MEI;
lpi=document.forms[0].LPI;
if(null != mvi)
++i;
if(null != mei )
++i;
if(null != lpi)
++i;
if(null != mvi && mvi.checked)
deselectedproduct[++j]="MVI?";
if(null != mei && mei.checked)
deselectedproduct[++j]="GAP?";
if(null != lpi && lpi.checked)
deselectedproduct[++j]="LPI?";
if( 0!=j)
if(i!=j)
for (x=0; x<deselectedproduct.length; x++)
if(null != deselectedproduct[x])
message =message+ "-" +deselectedproduct[x];
alert(message);
else
//alert(" You cannot remove all products!");
return false;
return true;
} -
How to get the last wbs which is displayed in transaction code cj03?
Dear Experts,
I want to get the last wbs which are displayed in transaction code cj03, i have written below program,but i found it is incorrect. because the sort of wbs in cj03 is not equal to table prps. the last wbs in cj03 is not equal to table prps.
who can tell me how to get last wbs which is displayed in cj03?
SELECT
PRPS~STUFE
PRPS~POSID
PROJ~POST1
INTO CORRESPONDING FIELDS OF TABLE WA_PRPS_TEMP FROM PRPS INNER JOIN PROJ ON PROJPSPNR = PRPSPSPHI
WHERE PROJ~PSPID EQ P_PROJECT.
WA_TLINE = LINES( WA_PRPS_TEMP ).
READ TABLE WA_PRPS_TEMP INDEX WA_TLINE.
IF WA_PRPS_TEMP-POSID = P_lastWBS.
P_LAST = 1
endif.
Best Regards,
MerryHi Merry ,
The WBS elements are stored in the table PRPS , so please try using the conversion exit and use the data in internal format then use it in the IF condition.
Check the FM CONVERSION_EXIT_ABPSN_INPUT and CONVERSION_EXIT_ABPSN_OUTPUT
Regards,
Arun -
How to get the desired output in the format ...?
Hi all,
I am having data like this.
Col1 col2 col3
1 2 1
1 2 2
1 2 3
2 3 7
2 3 8
2 3 9
I want to output the data like this
1 2 1,2,3
2 3 7,8,9
How to get this.
Thanks in advance,
PalIn simple sql...
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> select * from t
2 /
COL1 COL2 COL3
1 2 1
1 2 2
1 2 3
2 3 7
2 3 8
2 3 9
6 rows selected.
SQL> select max(decode(rno,1,to_number(col1||col2||col3))) col1, max(decode(rno,2,col3)) col2, max(decode(rno,3,col3)) col3
2 from (select row_number() over(partition by col1,col2 order by col3) rno, t.*
3 from t)
4 group by col1
5 /
COL1 COL2 COL3
121 2 3
237 8 9
SQL>Thanks,
Karthick. -
How to get the given output format..
Hi,I want to write a code in ABAP in such a way that I should get the output in the right side format.
Ex:
1200 - > 1,200
12000 - > 12,000
120000 -> 120,000
1200000 -> 1,200,000
12000000 -> 12,000,000
120000000 - > 120,000,000
Thanks.HI tushar,
1. I don't know whether i understood u r question !
2. FOr writing with COMMA,
if we use simple WRITE,
then it will show just as u want !
regards,
amit m. -
How to get the job name and details in a report format - sm37 details I mea
I need to extract the Job names and the job steps that comeout of a report?
Is there a standard program for this ?
Which tables store this information for me to write a custom report?
thanks,
VenHi Venkatabby,
Check out the table:
TBTCS
Thanks,
Chidanand -
How to get the current date in standby display?
My N73 ( 3.0705.1.0.31 ) displays the current date/day only in the general profile. When I switch to any other profile, that place is taken over by the profile name.
Is it possible to get the date/day displayed in a non general profile?
If it is otherwise, the 240x320 display is of little use...
V 4.0727.2.2.1
04-07-2007, RM-133
(C) Nokia N73 (Z5.01)That's the way it goes. In addition you see the date/time on the screensaver with every/any profile.
-
How to get the desire output from sql query
Consider an Order Table: ...
Order Table:
Order Id Item Qty
O1 A1 5
O2 A2 1
O3 A3 3
Please provide SQL which will explode the above data into single unit level records as shown below
Desired Output:
Order Id Order Id Qty
O1 A1 1
O1 A1 1
O1 A1 1
O1 A1 1
O1 A1 1
O2 A2 1
O3 A3 1
O3 A3 1
O3 A3 1How do I ask a question on the forums?
SQL and PL/SQL FAQ -
How to get the following output
Table 1 Table 2
EmpCode EmpName EmpCode EmpPhone
10001 ABC 10001 12345
10002 BCD 10001 23456
10003 CDE 10001 34567
10004 EFG 10006 45678
10005 FGH 10007 56789
10006 GHI 10007 67890
10007 HIJ 10010 78901
10008 IJK 10010 89012
10009 JKL 10010 90123
10010 KLM 10011 13579
10011 LMN 10012 35791
10012 MNO 10012 57913
10013 NOP 10012 79135
10014 OPQ 10017 91357
10015 PQR 10017 12390
10016 QRS 10019 23479
10017 RST
10018 STU
10019 TUV
output
EmpCode EmpName EmpPhone
10001 ABC 12345/23456/34567
10002 BCD
10003 CDE
10004 EFG
10005 FGH
10006 GHI 45678
10007 HIJ 56789/67890
10008 IJK
10009 JKL
10010 KLM 78901/89012/90123
10011 LMN 13579
10012 MNO 35791/57913/79135
10013 NOP
10014 OPQ
10015 PQR
10016 QRS
10017 RST 91357/12390
10018 STU
10019 TUV 23479
Srimanta,
Check this:
select t1.EmpCode,t1.EmpName,STUFF((select '/'+EmpPhone from Table2 where EmpCode=t1.EmpCode for xml path('')),1,1,'') as PhoneNum
from Table1 t1
left join Table2 t2 on t1.EmpCode=t2.EmpCode
group by t1.EmpCode,t1.EmpName
Edited : small change in code(highlighted - t1 instead of t2)
Thanks,
Jay
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'> -
How to get the console output generated by a executable program?
when I am trying to use method getOutputSteam of Process to gain the outputStream,I got nothing!
I have also tried to use stream redirect,also no result!
please help me! Thank you in advance!
my main code are below:
Process ps=Runtime.getRuntime().exec("xxx.exe");/*xxx.exe is a executable program which will generate a console with the message I want to gain.*/
int exitVal= ps.waitFor();
if(exitVal==0){
BufferredReader br = new BufferedReader(new InputStreamReader(ps.getInputStream())); String st;
while((st = br.readLine()) !=null){
System.out.println("write:"+st);
}//my result show that I got nothing from the progam.
}I've seen this kind of problem with an offending xxx.exe. Generally it means that the program isn't flushing its output immediately, so your java program never sees it.
-
How to get the query output depending on the current date
i created a region of type "query",inside it created region using wizard of type "table" . in the query i filter the data depending on the current date (taken from dual table) . but still it showing no output on the page. i run the same query in the toad and its showing the 2-3 rows.
If anybody know where the problem is then do inform me.
thanks in advance.i got the answer by trying out in OAF
Maybe you are looking for
-
Can i have 2 apple products on 1 itunes account
I have an iPod nano on my laptop at current and i have just brought an iPad and i want all the music on my iPod to be synced onto my iPad, can i do that and how ?
-
Can you resize the inspector window in FCPX 10.1.3
I am using FCP X 10.1.3 the trial version to check it out. I am running it on an iMac mid 2011 2.7 GHz Intel Core i5 with a 27 in screen. When i go into the inspector the window is (of course) way to the right as you look at the monitor and what i co
-
Photos will not download to iPhoto 6.0.6 from Canon 1D Mk IV
I have iPhoto 6.0.6. Today I was unable to download RAW photo files from a Canon 1D Mk IV to iPhoto. Solution?
-
Good practice for async databinding, regarding entity-framework.
I have some issue to find a good pattern to keep my UI responsive using asynch databinding and entity framework which is not thread-safe. It would be a shame if the UI came to totaly freeze with no feedback for a connection lost. So, entity framework
-
Alternative for hssupgrade wizard
The hssupgrade wizard fails to work for me while upgrading from 11.1.1.3 to 11.1.2.2 . i have not been able to import data from the earlier release. It gives me an error , ORA-02291:integrity constraint on FK1_PROV_MEMIDEN. will a manual creation wor