How to see the spool request number
hi experts,
how to see the spool request number of any object......
may be form or report........
U can go to SP01/SP02.
For generating spool u can look into this code.
FORM write_to_spool.
DATA : l_f_list_name LIKE pri_params-plist,
l_f_destination LIKE pri_params-pdest,
l_f_spld LIKE usr01-spld,
l_f_layout LIKE pri_params-paart,
l_f_line_count LIKE pri_params-linct,
l_f_line_size LIKE pri_params-linsz,
l_f_out_parameters LIKE pri_params,
l_f_valid.
l_f_line_size = 255.
l_f_line_count = 65.
l_f_layout = 'X_65_255'.
l_f_list_name = sy-repid.
to get defult spool device for the user
SELECT SINGLE spld INTO l_f_spld FROM usr01 WHERE bname = sy-uname.
IF sy-subrc = 0.
MOVE l_f_spld TO l_f_destination.
ENDIF.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
ARCHIVE_ID = C_CHAR_UNKNOWN
ARCHIVE_INFO = C_CHAR_UNKNOWN
ARCHIVE_MODE = C_CHAR_UNKNOWN
ARCHIVE_TEXT = C_CHAR_UNKNOWN
AR_OBJECT = C_CHAR_UNKNOWN
ARCHIVE_REPORT = C_CHAR_UNKNOWN
AUTHORITY = C_CHAR_UNKNOWN
COPIES = C_NUM3_UNKNOWN
COVER_PAGE = C_CHAR_UNKNOWN
DATA_SET = C_CHAR_UNKNOWN
DEPARTMENT = C_CHAR_UNKNOWN
destination = l_f_destination
EXPIRATION = C_NUM1_UNKNOWN
immediately = 'X'
IN_ARCHIVE_PARAMETERS = ' '
IN_PARAMETERS = ' '
layout = l_f_layout
line_count = l_f_line_count
line_size = l_f_line_size
list_name = l_f_list_name
LIST_TEXT = C_CHAR_UNKNOWN
MODE = ' '
NEW_LIST_ID = C_CHAR_UNKNOWN
NO_DIALOG = C_FALSE
RECEIVER = C_CHAR_UNKNOWN
RELEASE = C_CHAR_UNKNOWN
REPORT = C_CHAR_UNKNOWN
SAP_COVER_PAGE = C_CHAR_UNKNOWN
HOST_COVER_PAGE = C_CHAR_UNKNOWN
PRIORITY = C_NUM1_UNKNOWN
SAP_OBJECT = C_CHAR_UNKNOWN
TYPE = C_CHAR_UNKNOWN
USER = SY-UNAME
IMPORTING
OUT_ARCHIVE_PARAMETERS =
out_parameters = l_f_out_parameters
valid = l_f_valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
IF l_f_valid NE space.
NEW-PAGE PRINT ON PARAMETERS l_f_out_parameters.
WRITE : /5 'Material No.',
25 'Message Type',
40 'Message Issued'.
ULINE.
LOOP AT g_t_message_table WHERE type = 'E'.
WRITE : / g_t_message_table-matnr UNDER 'Material No.',
g_t_message_table-type UNDER 'Message Type',
g_t_message_table-message UNDER 'Message Issued'.
ENDLOOP.
NEW-PAGE PRINT OFF.
ENDIF.
ENDFORM. " WRITE_TO_SPOOL
Regards
Similar Messages
-
How to get the spool request number ?
Hi All,
I am working on a smart-forms. I am using a custom transaction to print these smartforms. When I execute
the transaction the print screen comes where I can do
print preview or print.
Now to convert this Smart Form to PDF I need to know the spool request number to use in the report called RSTXPDFT5.
How do I get the spool request number ?
Do I need to do some changes in spool control options of print screens to get the spool request number or something else ?
Please let me know.
Answers will be awarded...
TusharHi,
You will get the spool no. in the parameter "job_output_info" after calling the smartform function module in print program. The spool ids of the prints is stored in table job_output_info-SPOOLIDS.
Regards,
Gagan -
How to delete the spool request number
HI Masters,
My program creates a spool request. And i want to delete that spool request number? How to delete that??
Thanks in advance.hi
good
The program are RSPO0041 or RSPO1041.
This is handy whenever you encounter a user who managed to create a lot of spool requests which are choking your system.
Deleting them with SP01 will be too slow and you will get time out if it exceed the online time limit specify by your basis people.
<b><REMOVED BY MODERATOR></b>
thanks
mrutyun^
Message was edited by:
Alvaro Tejada Galindo -
How can i find the spool request number in script
Hi Experts,
I need solution that how can i see the spool request number, bcoz i need to covert my script into pdf format.
Thanks and Regards.
Venkat NThere isn't any correspondence. I seem to recall that Amazon added that feature to the Kindle app but I haven't checked lately.
-
How to track the transport request number for the Role/Composit Role
Hi,
How to track the transport request number for the Role/Composit Role.
Thanks,
RaviUse transaction SE03 Transport Organizer Tools
Execute "Search for Objects in Requests/Tasks" with objects of types:
R3TR ACGR Role
R3TR ACGT Role - User assignment
Regards -
How to print the spool request with a given file name.
Dear Experts;
I used FM RSPO_OUTPUT_SPOOL_REQUEST to print spool request. And the device type is a local pdf printer. By default, the download file name will be the spool id. How can I change the download file name? Thanks!
Convert 'CutePrinter' to qualify the format.
CALL FUNCTION 'CONVERSION_EXIT_SPDEV_INPUT'
EXPORTING
input = 'CutePrinter'
IMPORTING
output = lv_device.
Downloading as pdf by printer
CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
EXPORTING
device = lv_device
spool_request_id = pa_spool
EXCEPTIONS
archive_dest_invalid = 1
archive_dest_not_found = 2
archive_dest_no_right = 3
cannot_archive = 4
change_archdest_no_right = 5
change_copies_no_right = 6
change_dest_no_right = 7
change_devtype_no_right = 8
change_prio_no_right = 9
change_telenum_no_right = 10
change_title_no_right = 11
dest_invalid = 12
dest_not_found = 13
dest_no_right = 14
internal_problem = 15
invalid_fax_attribute = 16
invalid_parameters = 17
non_owner_no_right = 18
no_layout = 19
no_spool_request = 20
out_again_no_right = 21
spooler_problem = 22
OTHERS = 23SELECT SINGLE * FROM tsp01 into rq WHERE rqident = p_spool .
* To get attributes of spool request
CALL FUNCTION 'RSPO_GET_ATTRIBUTES_SPOOLJOB'
EXPORTING
rqident = p_spool "Spool Request Number
IMPORTING
rq = rq "Consists the Spool Document Type Details
TABLES
attributes = dummy
EXCEPTIONS
no_such_job = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
*Convert spool request into PDF, dependent on document type
IF rq-rqdoctype = 'OTF' OR rq-rqdoctype = 'SMART'. "Doc Type is of Sap Script or Smart form
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = p_spool "Spool Request Number
no_dialog = 'X'
pdf_destination = 'X'
no_background = 'X'
IMPORTING
pdf_bytecount = bin_size
bin_file = pdf_xstring "This fm will convert the spool data into
TABLES
pdf = it_pdf . "PDF Format in this importing string
ELSEIF rq-rqdoctype = 'LIST'. "Doc Type of List
* Convert spool to PDF
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = p_spool "Spool Request Number
no_dialog = ' '
dst_device = 'LOCL'
pdf_destination = 'X'
no_background = 'X'
IMPORTING
pdf_bytecount = bin_size
bin_file = pdf_xstring "This fm will convert the spool data into
"PDF Format in this importing string
TABLES
pdf = it_pdf.
ENDIF.
* Downloading file to p_file loation in PDF foramt
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = bin_size
filename = w_filename "Custom File name
filetype = 'BIN'
TABLES
data_tab = it_pdf
Prabhudas -
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 genrate the spool request for the smart form.
Hi Friends,
I have a page to FAX to vendor for which i have made a smartform for the page to be send. For this purpose i have to genrate the spool request without displaying the output of the smartform. The program should give the spool number genrated.
can you please suggest somthing.
Regards,
Vidya.hi
for this when u r callin the form write some code in u r program
IF RADIOBUTTON = 'X' . "GET THE SPOOL
CONTROL_PARAMETERS-NO_DIALOG = 'X'.
ELSE.
CONTROL_PARAMETERS-NO_DIALOG = ' '.
ENDIF.
and pass this to the calling form.
Please Close this thread.. when u r problem is solved. Reward if Helpful
Regards
Naresh Reddy K -
WHSCON or SHPCON : how to transfer the picking request number ?
Hello,
I want to pick & pack an outbound delivery using the idoc WHSCON.
Using the WE19 transaction I have simulated an inbound idoc with qualif. PIC in segment E1EDL18. It works fine.
My problem is that a new picking request is created for the delivery. It has the same number as the delivery. Because of this, the picking quantity is added to the delivery quantity.
So my question is quite simple : in order WHSCON (or SHPCON), in which segment and field must i put the picking request number ?
Subsidiary question : Is it a difference between messages SHPCON and SHPCON ?
Regards.Hello there, Off the top of my head, I used WHSCON as opposed to SHPCOn for shiiping confirmations ( picking and PGI).
But for returns and refusals I used SHPCON.
Now they both can be used but obviously the Func. modules are different. Other than that there must be some subtle differences, which you might notice if you test both thoroughly for the same condition.
also in my case there was no picking request # so I cannot help you there.
I do recollect that the PIC indicator was in both the header and the line item, and there was another indicator used by another team in the 19 segment, think it was "QUA". never understood its purpose.
If you do figure it out outside of this forum, please post the resolution here.
Regards -
How to get the transport request number of ABAP query.
I want to find out last Transport Request number used of a transporting changes Abap query from development to quality system.
Also is it possible to do some comparison on version existing in development and quality for abap query.goto SE03 ..
In Object Directory -> Double click on
Change Object Directory Entries
Enter AQQU(This is for ABAP Query) in the modifiable box ..
press enter ...
Check this check box ... Enter the ABAP query and press F8.
Double click on the Query and in the popup click on the
Lock Overview ...
U'll find the request number ...
Edited by: Srinivas Gurram Reddy on Apr 2, 2008 6:53 PM -
How to provide the transport request number?
Hi,
When im trying in deactivate the Datasource "2LIS_03_BF" of Inventory Controlling, a screen prompts for a Customizing request number.
Why this Pop up screen for Customizing request is displayed?
What should i do in such cases?
Is there any naming conventions to be followed?
Please help
Regards
Santhosh kumar.N
Edited by: Santhosh Nehru on Nov 14, 2008 11:49 AMHi,
This will happen when have transported any object from Dev to QA and after transporting you want to change it...
Then in that cases you have to create a new request and if you want same changes in your QA or Prd system then move the request ...
So create a new request .. and there is no naming convension .
Regards,
Viren. -
How to see the DMS document number in PO / PR?
Dear experts,
I am using DMS. I have created a document in DMS and I have linked it to the PR & PO line items. Till it is fine.
But I am not able to find out this document in PR / PO. Can some one help me how can I find the document number in PR / PO??
Thanks in advance.
Regards,
PraveenIn the ME23N screen , there is icon which likes a pin on paper between the Item over screen and the Item screen . If you click this icon , a new window with all the DMS documents linked to the PO would appear.
This is in the same line of the delete , lock , copy etc ..sequence .
-Hari. -
How do you preview using a spool request number
How do you preview using a spool request number?
I have an application in which I have accumulated the results from several smartforms into one spool request. I have the spool request number, and am printing it using function RSPO_RPRINT_SPOOLREQ.
I need to be able to preview the contents of the spool request before printing. I can not preview when generating the smartforms, as that involves several previews, and I need to preview once only per spool request.
I have been trying to use RSPO_RDISPLAY_OUTREQ but it dumps immediately (line 47) with field symbol <FTSP01> not assigned.
Suggestions?*With no faction module "COM_SE_SPOOL_DISPLAY", try this simple code, you can display the form *type spool (you also can put the code in a function module):
REPORT ypl_test_display_spool MESSAGE-ID zm_print.
PARAMETERS: rqident LIKE tsp01-rqident,
rqdocty LIKE tsp01-rqdoctype.
*--- there may be more types need to separate..., so use case...
CASE rqdocty.
WHEN 'OTF' OR 'SMART'.
PERFORM display_form.
WHEN OTHERS.
PERFORM display_others.
ENDCASE.
*& Form DISPLAY_FORM
display form type spool...
FORM display_form.
DATA: wstr_otf_control TYPE itcpp.
DATA: wtbl_buffer TYPE TABLE OF soli WITH HEADER LINE.
DATA: wtbl_otf TYPE TABLE OF itcoo WITH HEADER LINE.
DATA: wstr_retcode LIKE itcpp.
*--- return spool raw data
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
rqident = rqident
TABLES
buffer = wtbl_buffer
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 s013 WITH text-001.
EXIT.
ENDIF.
LOOP AT wtbl_buffer .
wtbl_otf-tdprintcom = wtbl_buffer(2).
wtbl_otf-tdprintpar = wtbl_buffer+2.
APPEND wtbl_otf.
ENDLOOP.
*--- some data to pass to this parameter, may not need...from SP01...
wstr_otf_control-tdcopies = 1.
wstr_otf_control-tdappl = 'TX'.
wstr_otf_control-tddest = 'LOCL'.
wstr_otf_control-tdpages = 0.
wstr_otf_control-tdnoprint = 'X'.
CALL FUNCTION 'DISPLAY_OTF'
EXPORTING
control = wstr_otf_control
IMPORTING
RESULT = wstr_retcode
TABLES
otf = wtbl_otf.
IF wstr_retcode IS INITIAL.
*--- message...
ENDIF.
ENDFORM. "DISPLAY_FORM
*& Form display_others
display other types, may more types needed to separate...
you can refer current version of SAP report RSPOLST2
FORM display_others.
CALL FUNCTION 'RSPO_DISPLAY_SPOOLJOB'
EXPORTING
rqident = rqident
EXCEPTIONS
no_such_job = 1
job_contains_no_data = 2
selection_empty = 3
no_permission = 4
can_not_access = 5
read_error = 6
OTHERS = 7.
IF sy-subrc <> 0.
MESSAGE s013 WITH text-001.
ENDIF.
ENDFORM. "display_others -
How to get data from OTF spool request number
Hi all,
How to get OTF Data from the spool request number (OTF)?
How to create spool request from the OTF Data?
Regards,
Sunil KumarHi,
Check this links:
http://www.sapdev.co.uk/reporting/rep_spooltopdf.htm
Sending Mail from SAP
https://wiki.sdn.sap.com/wiki/display/sandbox/SendMailwithPDFAttachment?showChildren=false#children -
How to find the transport request which was released to Quality
Hi Friends,
Could anyone please let me know, how to find the transport request that was already released from Development to Quality?
there was some change in customization took place. I could find the user (through change log) who made these changes, however I could not find the transport request number he has already released. I did give his user name in SE10 and checked the released checkbox and did click transports to see them, however I found nothing. A message got displayed on the screen: Cross-system information for user xxx. I can't ask the Basis people about it, as its not yet been trasnported to Productive.
Is this the correct way to see the transport request number? Is there any other way to find the number. I can give the tentative dates when the change was released.
This post might already posted before, I did some search, could not find the exact info what I am looking for. Would appreaciate if anyone could give the step by step method to find it.
Thanks in advance.
BR,
Sats.Ram,
let me tell you the the situation in a better way.
When I see se10 with my user id I could see all the transport requests that I have released. However, now when I enter my colleague user id who did these changes (he is on vacation, otherwise I could simply ask him the transport number), nothing is shown on the page. in simple words the page is completely blank. Initially I thought it is because of some authorizations, but I can get the transport request numbers that are released by another user.
the info what I have right now are:
1. I knew the user name who did these chages
2. I knew the date when it was changed.
I just need the Transport Request number I mean which starts with DEVXXXXXXX.
As per your solution --> If you have any idea when the reques was relase you can select the request and click on goto-transport logs. This way you can find out the request. --> I knew the date when it was released, but didnt understand, the bold and underlined sentense in your answer.. select on which request? as I said, the page was blank after I enter his user id and activate it.. May be I did not understnd your solution properly. Could you please simplify it.
Thanks a bunch in advance
Sats.
Maybe you are looking for
-
IPad 2 headset no sound from one side
Only one side of the earphone (right) has sound when headset is plugged into my iPad 2 running OS 8. I've tried several other headsets as well, but it's still not working. The headset works perfectly on other devices though. The problem have been the
-
Text for Fiscal year/period - Urgent
Hi, In few of my report i have to display output like this: Oct Nov Dec Jan Feb Mar Apr May Jun Jul Aug Sep 2006-07 Qty Value 2005-06 Qty Value Where 2006-07 - Field i
-
Test System (BQ1) Objects showing up wrong Source System after Transport.
Hi Experts, We are working on IS-U BI7.0 Project. We have finished with our Development and have transported the DataSources, Transformations and DTPs from Development (BD1) into Test (BQ1) Systems. We have entered values in the Conversion of Logical
-
I down loaded firefox from your site and all of a sudden all this adware popped up on my computer. I thought I visited a bad site for a minute and tried figuring it out from there. I was wrong. It came with your down load for firefox. Did you intenti
-
Hi all, i am using JDeveloper latest version. i have 2 applications, one is JSF and another one is WebService. i need to call that webservice from jsf webapp. But in jdeveloper how to run two applications simultaneously. i tried with oc4j standalone