Retrieve data on last page of spool request
Hi Experts,
Is there any FM available , which I can use to fetch data on last page of a spool created by a background job running for a report.
I tried to use RSPO_L_RETURN_RAW_DATA , but dont know the various parameters value to be passed for fetching data for last page only.
Please suggest
-Thanks ,
harkamal
Hi Experts,
Is there any FM available , which I can use to fetch data on last page of a spool created by a background job running for a report.
I tried to use RSPO_L_RETURN_RAW_DATA , but dont know the various parameters value to be passed for fetching data for last page only.
Please suggest
-Thanks ,
harkamal
Similar Messages
-
Adobe PDF printer and "Start printing after last page is spooled"
Hi,
After calling the Belgian Support for Adobe Product, I'm trying to have some information here.
Hope to get some help.
We use acrobat pro XI on windows 7 client and when we print a test page with the "adobe pdf" print queue on network share, we get a printing error when the "start printing after last page is spooled" is selected in the advanced tab of the printer queue. (document is not generated, and stay in the spooler with an error).
This problem is not present if printed localy or when we use the "start printing immediately" or "print directly to the printer".
The support agent from adobe Belgium told me that the reason is generating adobe pdf on network share is not a supported operation. We have to save the document localy all the time.
Is it really an answer from Adobe ?
Do you have an other explanation ?
Thanks for your help,Thanks for your very good explanation Dov.
We use Adobe livecycle for this kind of purpose.
The situation described is diffrent, but you completely repond and I will be able to have some element to find a solution.
In fact, I'm implementing a softwate called DeviceLock, used to control connected devices (usb, network, drive). But this software, once installed, change the local printer parameters from "print directly to the printer" to ""start printing after last page is spooled".
As we use redirected folder in our environment and users cannot use local drive (for user's data backup) you will understand the problem.
Of course, we should be able to force the correct settings back, But Devicelock seem to change this settings after policy refresh.
I have contact with Devicelock about this problem of course as their software modify the settings, but was looking for a reason why we were not able to use the "start printing after last page is spooled" parameters with adobe Printer.
Thanks for your explanation,
PS:The driver's dialog won't prevent you from setting “Start printing after last page is spooled” or “Print directly to the printer” but setting either of those options will cause the operations to fail as you note.
note that only "Start printing after last page is spooled" cause an error and this, only for network share location. The "print directly to the printer" or the "start printing immediately" work fine either on a local drive and a network share -
Error :Unable to retrieve data from iHTML servlet for Request2 request
I open bqyfile to use HTML in workspace.
When I export report to excel in IR report.
Then I press "back" button I get error"Unable to retrieve data from iHTML servlet for Request2 request "
And I can not open any bqyfiles in workspace.
Anybody gat the same question? Thanks~Hi,
This link will be helpful, the changes is made in the TCP/IP parameter in the registry editor of Windwos machine. I tried the 32 bit setting for my 64 bit machine (DWORD..) and it worked fine for me..
http://timtows-hyperion-blog.blogspot.com/2007/12/essbase-api-error-fix-geeky.html
Hope this helps.. -
Automatically displaying date of last page change
I think I remember seeing this a year or so ago, but I can't find it.
Is there a way to grab the date that a page was last modified and display that on the page? It seems like there should be and easy way, since the information shows up in the developer reports.
I have the following query which works in SQL*Plus:
select max(audit_date) from flows_020000.WWV_FLOW_BUILDER_AUDIT_TRAIL
where flow_id = 130
and page_id = 306
but in a page definition I get an 'insufficient privileges' message.
I'd to avoid granting select privileges on the table, as I'd then have to remember to redo it with each new version of ApEx as well. And since I can't get the above to work yet, I'm not sure if I could substitute strings like &APP_ID. and &PAGE_ID. into the where clause, so this could just be a Page 0 item instead of hard coding it onto each page.
Any ideas what I'm missing? (Other than when I purge my logs)
Thanks,
Bill Ferguson(Almost) a couple of small typos in the first select statement.
First, somehow I wound up with two create table lines. Not sure why, but get rid of one. Next, This bit of code didn't have the other DISTINCT in it (I guess somehow I copied the older version, dunno).
So, here's the correct version:
CREATE TABLE LAST_WEB_APP_CHANGE AS (
SELECT DISTINCT pk_field, short_name workspace, NAME app_name, app_id, page_num, last_change_date, flow_user
FROM (SELECT DISTINCT pk_field, app_id, page_num , lv last_change_date
FROM (SELECT short_name|| LPAD (NVL (flow_id, 0), 6, 0)
|| LPAD (NVL (page_id, 0), 6, 0) pk_field,
flow_id app_id, page_id page_num,
last_value(audit_date) OVER (PARTITION BY flow_id, page_id) AS lv
FROM flows_020000.wwv_flow_builder_audit_trail c,
flows_020000.wwv_flow_companies
WHERE c.flow_id = flow_id
AND c.page_id = page_id
AND security_group_id = provisioning_company_id
GROUP BY short_name, flow_id, page_id, security_group_id, audit_date) a
WHERE page_num IS NOT NULL),
flows_020000.wwv_flow_builder_audit_trail a,
flows_020000.wwv_flow_companies c,
flows_020000.wwv_flow_models m
WHERE a.flow_id = app_id
AND page_id = page_num
AND last_change_date = audit_date
AND a.security_group_id = c.provisioning_company_id
AND a.security_group_id = m.security_group_id
AND short_name = '<your workspace name>'
Just to be sure, I retested again this morning and this one does grab (and create) the last changed record in the audit trail and stores it into whatever table name you chooes (if you edit it).
As Vikas said in an earlier post, it best (probably) to do this on each parsing schema, since each parsing schema can have multiple apps associted with it, and it can become a can of works creating a generic schema accessible to all.
Anyway, after the table is created and populated for each schema, then it's easy to create a page to to handle insert/update/deletes for the future maintainability of the data.
Personally, I'm leaning towards a variation of the above code associated with a button, to update the information, maybe a drop table followed by the above code? I need to experiment some.
But, you can create a Page 0 hidden item, I called mine :P0_LAST_CHANGE_DATE, with a SQL source of :
select TO_CHAR (last_change_date, 'DD-MON-RRRR HH24:MI:SS') last_change_date
from LAST_WEB_APP_CHANGE
where app_id = &APP_ID.
and page_num = &APP_PAGE_ID.
Then, on each page's footer, I have the statement:
Page Last Changed: &P0_LAST_CHANGE_DATE.
Variations of the above can also be used to display who changed it last (the flow_user field).
Now, each page will display the date of last change (almost) painlessly). I just need to periodically go out and maintain the table. Maybe a scheduled job run each night?
Somebody want to supply an example of how to do that?
Bill Ferguson -
No Data on Last Page of Report
Hi - I have a 3 page report in Crystal Reports for Visual Studio 2005. It is being rendered via a VB .NET web page that is using the CrystalReportViewer that has the page navigation buttons. Quite often (but not all the time) when you click the navigation buttons to go to the last page it has the text objects for the page but not any of the data fields. The data is completely blank.
Sometimes when you navigate back to the second page and then go to the third page the data appears. Or some customers click the Print button and then they can see the data.
The report was working well on an old clunky web server and I believe the problem started when we switched to a new web server. Is the new web server rendering too fast for Crystal or something?
Any ideas to help view data on page 3 all of the time?Hi, Wendy;
That is pretty strange. Have you ensured that the new server has updated Video drivers? Have you installed the latest service pack for Crystal Reports for .NET 2005?
https://smpdl.sap-ag.de/~sapidp/012002523100006007872008E/crvs05sp1.exe
Regards,
Jonathan -
Failing to send and retrieve data from HTML page to BPEL
once i have the html form ready, which 'onSubmit' calls the BPEL process, i am unable to send the data to the process and thereafter i m unable to retrieve the data send by the html form... Want to know how can i use the HTML form to send data and then retrieve data back from the BPEL process
Rohit JainThere is an example showing this, it can be found under /samples/tutorials/102.InvokingProcesses/jsp/invokeCreditRatingService.html
hth clemens -
Ways to retrieve data into Jsp page on ComboBox (or any other event ) event
Hi all,
I want to retrieve records from database and display it in Text field.
Can any one tell me the ways to do it, i know i can do this by using javascript (javascript to submit the form), but i dont want to use javascript any where in my code,
what i want to know is there any other ways to implement this functionality, and which is the best one.
Kindly help me,
Thanks in advanced.With plain webapps, there is no way. In one way or another, the server needs to be invoked to be able to provide the data, so that is either a submit or through an Ajax call. Both would involve javascript. Why are you scared of Javascript anyway?
-
Hello,
My spool is full Could i delete old spool request if i deleted is there any impact on system ??/
the spool request now reached into 31,901 so what steps i have to take please guide.
Regards
Deepak
Edited by: DEEPAK Somvanshi on Jul 6, 2010 6:35 PMHi Deepak,
1. Check whether background job SAP_REORG_SPOOL with the report RSPO0041/RSPO1041 is running properly or not.
2. If running properly, Goto t-code SP01, enter from and to dates for "Date Created" and execute. Spool requests get displayed. Select any one spool request and check the request attributes(F8). If you're able to see date under "deleted on" as either 12/31/2099 or 01/01/2100, this is due to kernel problem. For this you've to apply the new kernel as per the below note.
Note 1423484 - Wrong date on cover page for spool requests
Hope this would help you.
Thanks & regards,
Mogileeswar -
Splitting the Spool Request for Form Printing
Hello,
I have a requirement where I need to print data for 1500 employees (1 Page per employee) which makes 1500 pages per spool request. Now, there is a change in the printer due to which the printer only accepts only 300 pages in the buffer. So, after printing 300 pages, it stops. Is there any way I can split the spool request and generate 5 spool requests (1 request for every 300 pages) so that all the pages are printed at once? Please let me know.
Regards,
Venkata Phani Prasad Kondurii have created a program using which you can create multiple pdf from a single spool number
first in the code below i have taken a spool number which has 2 pages in it.
second you must use the FM : RSPO_RETURN_SPOOLJOB in the program to get the content of the spool . while to perform analysis on how to build logic to split the spool otf/pdf user the FM RSPO_DISPLAY_SPOOLJOB, here by passing the spool number you will get the content in display mode and then based on the keyword you will build logic for e.g in my case i have to perform segregation based on material number so it can be used to decide how many pages are reserved by a specific material number.
another important point to kept in mind is that otf begins with "//" and a page ends with "EP" and last page ends with "//" along with "EP". It can be used to remove the number of lines to keep specific pages .
program layout as with proper documentation has been provided.
REPORT zdk_spool_split.
* DATA DECLARATION.
TYPES : tbuf LIKE tline OCCURS 1.
FIELD-SYMBOLS: <buf> TYPE tbuf.
FIELD-SYMBOLS : <lit_otf> TYPE ANY TABLE.
DATA : lit_otf TYPE STANDARD TABLE OF itcoo.
DATA : objcont LIKE soli OCCURS 0 WITH HEADER LINE.
DATA : format(5) TYPE c, dummy TYPE i.
DATA : buffer_pdf TYPE STANDARD TABLE OF tline.
DATA : p_file LIKE rlgrap-filename VALUE 'C:\temp\file1.pdf'. "#EC NOTEXT
DATA : numbytes TYPE i VALUE 255.
DATA : cancel.
DATA : otfcmd LIKE itcoo VALUE '//'.
DATA : pdfcnv_archive_index LIKE toa_dara.
DATA : bin_file TYPE xstring,
pdf_username TYPE c.
* GET THE SPOOL NUMBER FROM THE USER.
PARAMETERS : p_sid TYPE tsp01-rqident OBLIGATORY.
* GET THE CONTENT OF THE SPOOL NUMBER
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
rqident = p_sid
TABLES
buffer = objcont
EXCEPTIONS
no_such_job = 1
job_contains_no_data = 2
selection_empty = 3
no_permission = 4
can_not_access = 5
read_error = 6
type_no_match = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
* INCORPORATE YOUR LOGIC TO DELETE LINES WHICH ARE NOT REQUIRED.
* IN MY CASE I HAVE REMOVED LINES FROM 351 TO 715 TO REMOVE THE SECOND PAGE FROM MY SPOOL
* MY OBJCONT AFTER DELTED BEGINS WITH "//" AND ENDS WITH "EP" AND "//"
DELETE objcont[] FROM 351 TO 715.
* IT ONLY CONTAINS ONE PAGE OUT OF 2 PAGES FROM THE SPOOL NUMBER I HAVE PROVIDED.
* CONVERT OTF TO PDF
lit_otf = objcont[]. " GET THE OTF IN CORRECT OTF FORMAT
ASSIGN buffer_pdf TO <buf>.
format = 'PDF'. " CHOOSE THE CORRECT FORMAT IE PDF MUST FOR CONVERSION
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = format
IMPORTING
bin_filesize = dummy
TABLES
otf = lit_otf
lines = <buf>
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
IF sy-subrc IS NOT INITIAL.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
* GET THE NUMBYTES OF THE PDF CONTENT OBTAINED AFTER THE CONVERSION
* CORRECT NUMBYTE IS VERY IMPORTANT OTHERWISE IT WILL NOT GENERATE
* PDF IN CORRECT FORMAT.
PERFORM convert_otf2pdf_end(rstxcpdf) TABLES <buf>
USING otfcmd
numbytes
pdfcnv_archive_index
bin_file
pdf_username.
* NOW DOWNLOAD THE PDF TO VIEW IN ACTUAL PDF AT DESIRED PATH
PERFORM download_w_ext(rstxpdft) TABLES <buf>
USING p_file
'.pdf'
'BIN'
numbytes
cancel. -
Spool requests are being sent the the B9 printer queue(RSNAST00).
Hi gurus,
has anyone found a fix for this issue? i'm currently experiencing the same issue and would like to know how i can fix this..
Spool requests are being sent the the B9 printer queue. Most spool requests are for one page, when there are spool requests for multiple pages these spool requests take longer to create, in the meantime, other spool requests that are single pages are going to the printer queue. This creates and "out-of-vendor-order" issue during printing.
The out of vendor order sequencing creates a significant level of work effort for the business users to resort the printed copies in order to prepare the documents for mailing. A change is required to eliminate this manual effort.
Development has indicated an enhancement could be made to the RSNAST00 program where only those print jobs for application "MR" with transmission "1" (for print) would be gathered in groups of "X" number of documents to create one spool, prior to creating the spool, a check would be made to see if the next document was for the same vendor, if so the next document/s would be included in the same spool, when a new vendor was found, a new spool would be created.
To temporarily fix the issue the jobs have been placed on "no execute" and the support team is identifing the chargebacks and RTV created during the week, manually running the RSNAST00 program in groups of 500 - 800 documents, ensuring all doucments for a vendor a sent in the same spool request.Post Author: Stephen@Azzu
CA Forum: General
Nobody know the answer to this one? Stephen@Azzu:Here's a good one...I'm using Crysal Reports XI (fully service packed) and the reports I have created are being used in a VB.Net application. I have no problems whatsoever in printing the reports, everything is fine. However, when the report is sent to the printer, the printer queue displays 'document' as the, err, document name. I'd like it to say something more relevant, such as the document number the user selected.So I've tried setting the ReportDocument.Name but wait, it's read only!? How about the summary info? No change. Filename? No change either. I've browsed the internet, searched the knowledge base and found nothing. So my question is this...How do I get the printer queue to display an appropriate name for my document?Stephen -
Spool requests are being sent the the B9 printer queue.
Hi gurus!
has anyone found a fix for this issue? i'm currently experiencing the same issue and would like to know how i can fix this..
Spool requests are being sent the the B9 printer queue. Most spool requests are for one page, when there are spool requests for multiple pages these spool requests take longer to create, in the meantime, other spool requests that are single pages are going to the printer queue. This creates and "out-of-vendor-order" issue during printing.
The out of vendor order sequencing creates a significant level of work effort for the business users to resort the printed copies in order to prepare the documents for mailing. A change is required to eliminate this manual effort.
Development has indicated an enhancement could be made to the RSNAST00 program where only those print jobs for application "MR" with transmission "1" (for print) would be gathered in groups of "X" number of documents to create one spool, prior to creating the spool, a check would be made to see if the next document was for the same vendor, if so the next document/s would be included in the same spool, when a new vendor was found, a new spool would be created.
To temporarily fix the issue the jobs have been placed on "no execute" and the support team is identifing the chargebacks and RTV created during the week, manually running the RSNAST00 program in groups of 500 - 800 documents, ensuring all doucments for a vendor a sent in the same spool request.Spool requests are being sent the the B9 printer queue. Most spool requests are for one page, when there are spool requests for multiple pages these spool requests take longer to create, in the meantime, other spool requests that are single pages are going to the printer queue. This creates and "out-of-vendor-order" issue during printing.
The out of vendor order sequencing creates a significant level of work effort for the business users to resort the printed copies in order to prepare the documents for mailing. A change is required to eliminate this manual effort.
Development has indicated an enhancement could be made to the RSNAST00 program where only those print jobs for application "MR" with transmission "1" (for print) would be gathered in groups of "X" number of documents to create one spool, prior to creating the spool, a check would be made to see if the next document was for the same vendor, if so the next document/s would be included in the same spool, when a new vendor was found, a new spool would be created.
To temporarily fix the issue the jobs have been placed on "no execute" and the support team is identifing the chargebacks and RTV created during the week, manually running the RSNAST00 program in groups of 500 - 800 documents, ensuring all doucments for a vendor a sent in the same spool request. -
F.27, Duplicate Spool Request
Hi All,
While running the program - Periodic Account Statement (t-code F.27) u2013 in background(Program > Execute in background) 2 spool requests are generated.
Why 2 spool requests are generated ? Only 1 spool request should get generated.
Correspondence Type used is a customized Correspondence Type(Z).
Unwanted Spool generated is of type u2018ABAP Listu2019 and title generated is u2018F140 LOCL 20100927KORKu2019.
Because of the 2 spools 2 hard prints are printed.
Please suggest as to what could be the cause of 2 spools ?
Thanks
DevHi,
As info says:
Output
If correspondences are printed, a log with the spool requests created by
the print programs is output for each program run. If you do not specify
in the program on which printer the log is to be printed, the program
may take the printer specified in the user master of the user who
started the program or the printer specified when the job is scheduled.
If the program is carried out online, the log is displayed on the
screen. If the program is planned as a job, the spool request name of
the log is made up of the identifier F140, the printer destination, the
date of creation and the program ID KORK.
The correspondences are printed by means of the corresponding print
programs. If printing is possible on the basis of the data and the
configuration, a spool request is created for each correspondence type
and company code. Regardless of whether printing actually takes place,
the processed correspondence requests are marked as completed by means
of a print date, so that reorganization can be carried out.
ie: you have a SPOOL with the log, and you have other SPOOL with the printable document that you must send to customers.
I hope this helps you
Regards,
Eduardo -
Get dates of last week - Please Help !
Hi All,
I have to make a query for retrieving the data for the last one week from a table say "Orderdata".
So can anybody please tell me how to retrieve date of last weak from the current date. I mean if current date is 12/08/2004 (mm/dd/yyyy) then I would be needing date as :--
12/01/2004 (mm/dd/yyyy) to 12/07/2004 (mm/dd/yyyy).
To more clear, here is the query that am using :
select * from orderdata where orderdate between 12/01/2004 AND 12/07/2004
I know I would be needing java.sql.timestamp class to set date . but it is the last thing to do .
First I have to get date of last weak...........
Here is the code----------that i have just start to write ..
Calendar cal;
TimeZone tz;
String estTimezone="GMT-05:00";
tz=TimeZone.getTimeZone(estTimezone);
cal=new GregorianCalendar(tz);
cal.setTimeZone(tz);
String currentdate=String.valueOf(cal.get(Calendar.MONTH)+1);
currentdate+="/"+String.valueOf(cal.get(Calendar.DAY_OF_MONTH)-1);
currentdate+="/"+String.valueOf(cal.get(Calendar.YEAR));
out.println(currentdate);And assume if current date is 12/1/2004 (mm/dd/yyyy) then subtracting -1 form the current date will give 12/00/2004 so not getting the correct result .
Hope it is clear to all................
Please Help !
amitindiaHi All,
Thanks chirag813 for your coding. and thanks to all.
By the way I have to change time in EST and also required start date and end date of last weak. So my final coding is as:
Please have a look into the code and tell me whether the code is correct / fine or not.
Do I need to call the getInstance() method in my code as you (chirag813) have put in your code
Calendar calendar = Calendar.getInstance();
Is my code fine ?
Please Answer..................
String startdate;
String enddate;
Calendar cal;
TimeZone tz;
String estTimezone="GMT-05:00";
// is this line correct to get startdate
SimpleDateFormat sdfStartdate= new SimpleDateFormat("yyyy-MM-dd 00:00:00");
// is this line correct to get enddate
SimpleDateFormat sdfEnddate= new SimpleDateFormat("yyyy-MM-dd 23:59:59");
tz=TimeZone.getTimeZone(estTimezone);
cal=new GregorianCalendar(tz);
cal.setTimeZone(tz);
cal.add(Calendar.DATE,-7);
startdate=sdfStartdate.format(cal.getTime());
cal.add(Calendar.DATE,6);
enddate=sdfEnddate.format(cal.getTime());
Timestamp t1=Timestamp.valueOf(startdate);
Timestamp t2=Timestamp.valueOf(enddate);
out.println(t1);
out.println("<br>"+t2);
And finally I have used Timestamp class to change the date (String) to Timestampt.
Thanks !
amitindia
SCJP 1.2 -
How to know the spool requests generated from my program?
hi
I want to get the spool request(s) that are generated from my report that's run either in foreground or background? how to know this? i know that we can go to sm37 and see, but is there any table or fm which stores this data? if i give my program name that's run on a particular date, i should get the spool request numbers. tsp01 only has the spool no. and not the program name..pl suggest...thanks all
Sathish. RHi ,
The system field sy-spono contains the spool numbers .
If you have such requirement, you can create one custom table with fields :
spool no, program , date , time
whenever you run ur program update this table ,
with system fields . spono , sy-repid , sy-datum and sy-uzeit .
Thaks . -
How To Generate Spool request for a SAP-Script form
How To Generate Spool request for a SAP-Script form
Hai Rahaman,
After getting the print preview of the SCRIPT.
Click On PRINT.
Buttom of the page one spool request will be generated by system.
Go to SP01.
You Can Find SPOOL Reqest Number.
Regards.
Eshwar.
Maybe you are looking for
-
Subquery in a Materialized View
I have a requirement where we have to build a summary view to show a customer's latest transaction. There can be several million customers so I am thinking if a Materialized view that gets refreshed once every day is a good option here. This is a Dat
-
How to call WD program from a headerless WD screen
Hi Experts, For the MSS worklist, I have created a custom WD headerless screen. In this screen, I have created one linktoURL UI element. When the user clicks on the screen, URL is called using following code. This code is working fine in Development.
-
Creating Spot color in InDesign CS4, js
Hi, I have this code: try{ myColor = myDoc.colors.item("EMBOSS"); myName = myColor.name; catch (e){ myColor = myDoc.colors.add({name:"EMBOSS", model:ColorModel.SPOT, colorValue:[100, 0, 0, 0]}); But the color created still process. How do I change it
-
Post-processing advice for printing a photobook
Hi I'm planning on getting a photobook made using Snapfish here in the UK. My images were taken with my Canon EOS 400D, and I have Photoshop Elements. I have the majority in RAW format. I would like some advice as to the best way of going about proce
-
I am creating a website that uses a stylesheet for viewing on the web and one for print. For web viewing the link tag is link rel=stylesheet href=styleweb.css media=screen. For print the link tag is link rel=stylesheet href=styleweb.css media=screen.