Displaying spool requests
Dear experts ,
My requirement is ,displaying the spool requests according to user name ,date created ,and Title.for that i am using the following two function modules.
RSPO_RINIT_SPOOL_SP01
RSPO_RDISPLAY_SPOOLREQ
i appended the title of spool request to the internal table and passed that interanal table to RSPO_RINIT_SPOOL_SP01 ,up to now its working fine .but what my requirement is ,i should pass the username and date through selection screen.in the same way i have appended data from the selection screen to respective internal tables and passed through the internal table.if i give wrong 'username ' in selection screen it should not display any spool job.even though its showing spool requests based on title.what was wrong?please help me out.
Thanks and regards
naresh bammidi
Hi Naresh,
Use below report for your porpose.
TABLES : RQIDEN_T,RQOWNE_T,RQCRED_T,RQTITL_T.
SELECT-OPTIONS : s_spool for RQIDEN_T.
SELECT-OPTIONS : s_owner for RQOWNE_T.
SELECT-OPTIONS :s_date for RQCRED_T.
SELECT-OPTIONS : s_rqtitl for RQTITL_T.
type-POOLs : slis.
data : lt_SPORQ TYPE TABLE OF tsp01sys,
ws_SPORQ TYPE tsp01sys,
goto_sel.
data : lw_sel TYPE SLIS_SELFIELD.
data: lt_sysid type TABLE OF ALSYSID,
ws_sysid type ALSYSID.
ws_sysid-SYSID = SY-SYSID.
append ws_sysid to lt_sysid.
CALL FUNCTION 'RSPO_RINIT_SPOOL_SP01'
EXPORTING
SAVEFLAG = 'A'
SUMMARY = 'X'
LOCAL = 'X'
OWNER = ' '
CLIENT = ' '
RQNONE = 'X'
RQPROC = 'X'
RQSUCC = 'X'
RQERR = 'X'
PJPROC = 'X'
PJSUCC = 'X'
PJPROB = 'X'
PJERR = 'X'
TABLES
SYSLIST = lt_sysid
S_RQIDEN = s_spool
S_RQOWNE = s_owner
s_rqcred = s_date
s_rqtitl = s_rqtitl.
call function 'RSPO_RDISPLAY_SPOOLREQ'
exporting
use = ' '
importing
goto_sel = goto_sel
TABLES
SPORQ = lt_SPORQ
OUTRQ =
changing
rs_selfield = lw_sel
exceptions
others = 1.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
Thanks,
Vijay
Similar Messages
-
SP01 - display spool request, buffer too short
Dear all,
when trying to display spool request in transaction SP01, we are getting the error: internal error 0000000040/ 32 in spooler (buffer too short)
But the same request could be displayed via transaction SPO10.
R/3 4.6C.
Any idea ?
Thank you for the answer.
Pavol Simko
Edited by: Pavol Simko on Nov 3, 2009 3:18 AMIn SM37:
Goto>Display Requests>Settings...
Then in "Display area"-->"From page"
Set it to from page 1 - "no of pages" then try to display
the spool again. -
Hi All,
Here i have one issue with Spool requests. One of our user wants to display all teh spool requests belonging to his site. Please let me know how can we provide access to group of users.
Thnaks in Advance.One option has already been discussed u Julius i.e changing the attribute of the field SPOAUTH to Organization Level field.
But I hope it would be better to create a Custom TCode (say ZP01) for this purpose.
Also create a Custom Auth. Object (say.. ZSPO_AUTH) with Fields SPOAUTH, SPOACTION, SPODEVICE (optional - this will help you to select Site Specific device if any and also if the users are bound to use them as Local printer... you will know what is the access type).
While creating this, make SPOAUTH Organization Level.
Ask Developers to use this object in AUTHORITY-CHECK statement for enforcing a check against this.
Add this Object to ZP01 in SU24 as C/M.
Create a role (preferable and easy for maintenance to use ref-derive design if your SOP permits) and make copy for all site and assign to the Site Owners.
Remove SP01 from their user master.
Regards,
Dipanjan -
Calling Transaction SP01 (Display spool requests) with parameters via URL
Hi,
I would like to be able to list all spool requests of a certain title via a URL.
Unfortunately ITS does not seem to work. A URL constructed like this
http://host:port/sap/bc/gui/sap/its/webgui/!?sap-system-login-basic_auth=X&sap-client=500&sap-language=EN&transaction=SP01&S_RQTITL-LOW=Testing123&okcode=CRET
causes a short dump that SP01 (Program RSOSP01NR) is a Module Pool.
I am therefore considering the following options:
1. BSP Program
2. Java WebDynpro
3. ABAP WebDynpro
Ideally, I want to be able to enter in my browser something like
http://host:port/<BSP_or_WebDynPro_stuff>&~title=Testing123
and for this to show in the browser a list of all spool requests that are named "Testing123".
Can someone advise whether any of the above options are preferable?
Also, whether such a program should call transaction SP01 with parameters (skipping first screen) or look to using the associated function modules.
Many thanks for any assistance.
Regards
AdrianSolved myself. Thanks
-
Sending spool request through email
Hi
I am executing ransaction SP01. then i am displaying spool requests of a particular user. next screen shows spool reuqests of that user. now when i click on a spool request , on next screen in meny send mail option is not appearing. How can i send contents of my output via emai.
Thanks in advanceAlfonsus
Thanks for your reply. I tried that. I am getting a document in mail box with following error
Error log
E0332 EDI: Partner profile not available
F0251 In form F110_US_AVIS / window MAIN , the element 610-H (Text-H) is missing
F0253 Output of the relevant forms is defective
Can you help on this.
Thanks -
SM37 - Graphical display of spool request in Hebrew
Hello,
I'm running a report in background. When I look at the spool request display
the header display in hebrew from left to right instead right to left.
when I'm running online I don't have a problem. I enter the session in hebrew.
does anyone have any idea ?
thanks,
MichalUseful for background
http://www.sappoint.com/basis/bckprsng.pdf
http://help.sap.com/saphelp_nw04/helpdata/en/6f/08703713bf277ee10000009b38f8cf/frameset.htm
http://publib.boulder.ibm.com/infocenter/wbihelp/index.jsp?topic=/com.ibm.wbix_adapters.doc/doc/mysap4/sap4x41.htm -
Hello,
Pleasure to be part of this community and ask the first question.
I have created a report and probably, that report is going to be scheduled to run weekly.
I want to understand how I can create a job and spool request display report for this program. I have found some information from this forum about SM36/SM37 T-Code and spool request display. However, I think I am not able to get the whole scenario of how it is going to work.
If someone can give me an idea, that would be great. Practical examples will be appreciated.
Regards,
UditI am assuming you will be scheduling this job manually and not programmatically.. The process is as follows..
Goto SM36
Enter a Job Name
click on START Condition butto and click Date and Time button
you will see a button PERIODIC VALUES appeared below.
Click and select WEEKLY as you have indicated, SAVE it.
Enter date and time so that it starts on that time and is scheduled everywk at that time
You can enter NO START AFTER in case you want to restrict this.
Then Click STEP
You can enter program name variant and also select Printer specification
And that should do the trick..
Hope this helps -
Users Authorized to Display Other Users Spool Request
Hi experts,
I got the yellow alert in EWA report from solman like "Users Authorized to Display Other Users Spool Request"
I just want to know how to restrict the users seeing their spool request alone.
I also checked the object S_SPO_ACT but am not able to get the things done.
Pls suggest some ideas.
Regards,
Raja. GTake a look in the FAQ thread at the top of the forum. There is a note about this toward the bottom.
The note is rather long and complicated. Also search here for discussions about transaction SP02.
Cheers,
Julius -
Track/Audi the graphical display of a spool request
Hello all,
I have the following question: Is it possible to track/audit which user ID is accessing/opening the "type" of a spool request?
I thought it would be a rspo parameter but I haven't found anything related. If it is not possible then the only thing that can be tracked is who is running tcod SP01?
Thanks in advance.
LoukasI have to give it to you that a user with the correct authorizations and no additional access (highly unlikely) will experience almost identical system behaviour in the transactions SP01 and SP02.
- 3 differences are that the screens and PAI (Process After Input) modules are different, so there are more menu options in SP01 even although the program is the exact same one.
- You can display an overview of spool locks, so if you could provoke an entry in the overview to appear then other S_SPO_ACT actions could be used on them (e.g. redirect to a local printer).
- The SU24 proposals will tempt many folks into granting much more than just SPAR admi action. This also plays a role in the choice of transaction, and I often create "dummy" transactions for the identical programs or ones which do nothing to achieve the same.
We can write a PhD about this.... but perhaps if you explain why you want SP01 with enhanced options in the stead of SP02 then it will be clearer, despite all urban legends being in your disfavour..
Cheers,
Julius
ps: Yes, thank you. I had a very adventurous vacation -
Graphical Display of spool Request Errors
HI,
Can someone help me where I can find the more details for the following processing Category when we graphical display of spool request in SM37
1) Not Relevant
2) Inappropiate Status
3) ErrorUseful for background
http://www.sappoint.com/basis/bckprsng.pdf
http://help.sap.com/saphelp_nw04/helpdata/en/6f/08703713bf277ee10000009b38f8cf/frameset.htm
http://publib.boulder.ibm.com/infocenter/wbihelp/index.jsp?topic=/com.ibm.wbix_adapters.doc/doc/mysap4/sap4x41.htm -
Display all sales order's smartform output in one spool request
Hi,
If suppose user has given sales order number from 01 to 14 then the output of all sales order should come in one print priview of spool request. How to do it?
Please help.
Thanks in advance,
Rgds,
MadhuriHi Madhuri,
Call open form write form and close form in loop so that till sales order remains in the loop the form will continue to print. In this way all sales order in internal table will print in the same spool.
Hope this will help you.
Regards,
Vijay -
Is it possible to have Multiple Spool requests in one batch job overview?
Hi,
While running one of my z program in back ground, there are two spools generated (one by write statement and one by OPEN_FORM statement and both the spools are available in SP01 Transaction), but when i see the job overview in transaction SM37, I only see one spool request (that of the last spool request). Can any body in the group please tell me is it possible to see multiple spool requests in the job overview of one Abap program and if yes, how?
Thank you.
AbinashHi Jayanthi,
Thank you for the link. But probably that discussion was also an unsolved one.
Anyway, does any one in the group think that display of multiple spools per one step job is dependent on client / SAP Server setting? Because as evident from the chain of mails in the link provided by Jayanthi, some people say that they see multiple spool requests for one program in batch mode job overview (SM37)? If yes, can some body tell me the required configuration? -
Write the Error log from background Job to the Spool request
Hi ,
I have a situation where in i need to capture the error log of a Z program which runs as a background job and write that log into the spool request. My Z program calls runs RSEINB00 program using the SUBMIT statement. When this Job fails the error log can be seen in SM37. But i need this error log to be sent in to a spool.
I can read the error log using the BP_JOBLOG_READ FM and can also create a spool using the RSPO_SPOOL_OPEN FM.
The problem is, when the Submit statement executes, due to internal valdation in the RSEINB00 program the program terminates. Due to this it is not able to perform the SY-SUBRC Check and thus doesn't read the log.
Can anybody suggest me how to overcome this problem. I am attaching the code for your refernece.
SUBMIT RSEINB00
USING SELECTION-SET 'TEST2'
TO SAP-SPOOL
LIST NAME 'LOCL'
IMMEDIATELY space
KEEP IN SPOOL 'X'
AND RETURN.
<b>If sy-subrc <> 0.</b>
CALL FUNCTION 'BP_JOBLOG_READ'
EXPORTING
CLIENT = SY-MANDT
JOBCOUNT = i_tbtco-jobcount
JOBLOG = i_tbtco-joblog
JOBNAME = i_tbtco-jobname
TABLES
JOBLOGTBL = l_joblog
IF SY-SUBRC <> 0.
else.
message i002 with l_joblog-msgv1.
ENDIF.
<b>
ENDIF.</b>
Rgds,
Kewal
P.S. : any other approach to solve this problem will be appreciated too and the points will be rewarded suitably.If I select a job in SM37 and I click on "spool" I get a list with separate spool entries for each of the steps, e. g.
Programmname/Kommand Programmtyp Spoolliste
Z_MM_STAT_UPDATE_WERK ABAP 1707445
ZSLEEP Ext. Kommando
Z_MM_STAT_UPDATE_WERK ABAP 1707459
ZSLEEP Ext. Kommando
Z_MM_STAT_UPDATE_MARA ABAP 1721423
ZSLEEP Ext. Kommando
Z_MM_STAT_UPDATE_WERK ABAP 1721437
Z_MM_STAT_UPDATE_MARA ABAP 1721446
Z_MM_STAT_UPDATE_WERK ABAP 1721447
Z_MM_STAT_UPDATE_VKORG ABAP 1721471
ZSLEEP Ext. Kommando
Z_MM_STAT_UPDATE_VKORG ABAP 1721521
ZSLEEP Ext. Kommando
Z_MM_STAT_UPDATE_VKORG ABAP 1721816
It's in German but I'm sure you get the idea. For each Z_MM_STAT_UPDATE and variant I have a separate spool list that I can display.
Markus -
How to display Spool title in custom format.
Hi
When SForm goes to Spool by default it display the title based on <PrinterName> <Report> <UserName>, i need a solution where i can customize the title before it goes to spool. So that i can make difference this spool with others while compare to titles. Well i tried with FM GET_PRINT_PARAMETERS, but not sure how far it can help in my case.
Please let me know the possible ways.
Thanx.Hi,
The associated function module for the smart form contains an import paramter called OUTPUT_OPTIONS.
OUTPUT_OPTIONS-TDDATASET : Spool request: Name
OUTPUT_OPTIONS-TDSUFFIX1 : Spool request: Suffix 1
OUTPUT_OPTIONS-TDSUFFIX2 : Spool request: Suffix 2
Just assign the value to the structure field OUTPUT_OPTIONS-TDDATASET .
Thanks,
Ramakrishna -
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
Maybe you are looking for
-
Someone please settle this problem once and for all! (Duplicate Tracks)
I had an iPod about two years ago and ended up getting a different mp3 player. I now have a new 5G iPod and am having the same issue I had 2 years ago for the short time I had my old iPod. Duplicate tracks showing up in my iPod's library. I searched
-
Why is my ipad application udates not updating
Why have the application updates stopped working. They are all showing waiting and have done so for a week or more
-
Maximum File Size of .dv Import File to Premiere Pro CS5?
Hello Community: I searched this forum and Google in general, but could not find an absolute limit on the media file size I can import into a Premiere Pro CS5 project. I'm scheduled to process the ".DV" recording from a conference, which could go on
-
Spaces not working correctly, Help!
Hi all, I've just changed to a new mac (not actually new, just new to me) and I'm having problems with Spaces in Snow Leopard 10.6.8. I've set various apps - email, web browser etc along with Adobe Creative Suite to open in various spaces so i can ea
-
My music is in my library but no artist pictures . How can I make the pics come back?
Help me get pics in my music library ? Thanks