Pop-up with spool request no.
hi friends,
how can i get the details in pop-up box that the files has been sent to spool request successfully and the request no's for the files details on pop_up.
if it is possible can u plese guide me soon.
Advance Thanks.
Hi,
Try this FM:
SO_WIND_SPOOL_LIST
Jogdand M B
Similar Messages
-
Hello ,
Some spool requests are completed with status "Completed(Problem)". When we check the output Request Logs find below things :
Print request processing log
The host spool is reporting errors
This request may not have been printed. Status unknown
Most important attributes of spool request
Request number 43899
When we checked we are getting printouts fine but still in status we are getting completed with problem in Red mark.
Can anybody tell abt this confusing situation why we are getting status in sP01 like this.
Thanks
AnjuHi,
What is your OS?
File = /usr/sap/SID/SYS/DVEBMGS00/data.
UNIX:-
check the file system status whether it is full (100%)
Then increase file system thorugh OS level.
Windows:-
Check your hard disk of file system.
Regards,
Srini Nookala -
Relation with spool request number and invoice number
Hi ALL,
I have developed two function modules the first one generates the Invoice Number for a particular customer.
Now on passing this Invoice Number to the second function module, I should get the Spool Request Number.
I have developed the first function module.
That Spool Request Number would display the invoice of the customer in the PDF format.
So please help me how to get that Spool request number.
Thanks and regards
ramaHi,
in your case when ever invoice created you need to store the data like spool number,invoice number,user name etc..into a <b>ZTable</b>, and then when ever you enter the invoice select the data from the ZTABLE and convert the spool to PDF and show it.
Regards
vijay -
Problem with spool request generation in Dialog program
Hi,
To give the spool and print functionality in dialog program i have used the function module code like below -
call function 'GET_PRINT_PARAMETERS'
exporting
mode = ' '
in_parameters = ls_pri_params
importing
out_parameters = ls_pri_params
valid = lv_valid
exceptions
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
others = 4.
IF lv_valid <> space AND sy-subrc = 0.
SUBMIT (sy-repid)
USER SY-UNAME TO SAP-SPOOL
SPOOL PARAMETERS ls_pri_params
WITHOUT SPOOL DYNPRO.
But the problem is, if it is list then we can easily get the print function, since i am using the above code in the dialog program screen 9000, program is giving dump like....
Incorrect program type with SUBMIT.
What happened?
The current ABAP/4 program "SAPMYXXXXXX" had to be terminated because
one of the statements could not be executed.
This is probably due to an error in the ABAP/4 program.
You attempted to start a program not intended for this purpose.
I know that i should not use submit statement for dialog program, but what is the solution for this.
Thanks in advance..Did you check the F1 help of SUBMIT. if not give a try.Submit cannot be used on Module pool programs. it is used for Report(executable ) programs.
-
Hi All,
My requirement is iam displaying one alv_grid format but at the same time i would like to sent it to spool(sp01).Whenever i need print i able to take it.Can anybody give brief details.Hi,
go through the below code...
Re: REUSE_ALV_GRID_DISPLAY
Regards,
Nagaraj -
Creating dunning data with Spool request
Hi,
I am working with Smartform,which is dunning Notices for Customer.It is configured in F150 Transaction.
TO see Printout,need to have dunning data.
Can you help me how to create Dunning data for customer.
Thanks in Advance.
Regards
KBWhich line is reported for the exception?
-
Hi All ,
Can anyone guide me to how to create a spool request.
The requirement is : Before creating a spool for printing user can print preview for content and layout.
Thanks,
VivekHi All,
The requirement is:
When the report program is executed a screen should come with spool request no. and on clicking that another screen comes where we can see Print Preview or give the print program.(As while executing a standard driver program eg RFFOUS_C).
What I m getting after execution is Print Preview Optionand then Print preview.
Any demo programs or any solution will be highly obiliged.
Thanks
Vivek -
How to find out which job delete old spool requests?
Dear Experts,
We have a problem with spool requests being deleted automatically, we've checked job RSPO1041 and made sure it was not scheduled to run, but somehow spool requests are gone. We also checked all the jobs on the day requests were deleted but nothing stands out. I would really appreciate it if any of you can help us find out which job is doing this or how to avoid requests being deleted.
Thank you!
LingHi,
Please check the value of parameter 'rspo/req_lifetime' as it decides the lifetime of the spool requests which are generally stored in TemSe.Go through note 48400,this may help you understand how spool requests are stored and reorganized.
Thanks -
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 -
Pop problem while creating spool request in reuse_alv_grid_display
Hi Experts,
I am trying to create a spool request of alv
and problem is that i do not want pop-up window for asking output devices,
actually i am calling reuse alv in loop and following steps i have done:
w_print-print = 'X'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_BYPASSING_BUFFER = 'X'
I_CALLBACK_PROGRAM = SY-REPID
IT_FIELDCAT = FIELDCAT[]
I_DEFAULT = 'X'
I_SAVE = 'X'
is_print = w_print
TABLES
T_OUTTAB = T_FINAL
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Please give the solution.
Thanks
PankajHi,
Use FM GET_PRINT_PARAMETERS , and use command NEW-PAGE PRINT ON PARAMETERS <wa_params> NO DIALOG. before calling the alv FM.
ls_print-print = 'X'.
DATA: lwa_params TYPE pri_params,
lv_valid TYPE c.
CLEAR: lwa_params, lv_valid.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_parameters = lwa_params
layout = 'X_65_132'
line_count = 65
line_size = 132
no_dialog = 'X'
IMPORTING
out_parameters = lwa_params
valid = lv_valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
MOVE-CORRESPONDING lwa_params TO ls_print-print_ctrl-pri_params.
ls_print-print_ctrl-pri_params-pdest = 'LP01'. " your printr device
NEW-PAGE PRINT ON PARAMETERS lwa_params NO DIALOG.
then call FM CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'.
this will work.
refer link [ALV - print - create spool request;
Regards,
Ravi. -
Spool request with more than 255 columns
Hi,
Please let me know what formatting type has to be used to have spool output with more than 255 lines.
X_24_80_JP L ANY 00024 00080 ABAP list HR Japan: At least 24 rows by 80 columns
X_44_120 L ANY 00044 00120 ABAP/4 list: At least 44 rows by 120 columns
X_51_140_JP L ANY 00051 00140 ABAP list HR Japan: At least 51 rows by 140 columns
X_58_170 L ANY 00058 00170 ABAP/4 list: At least 58 rows by 170 columns
X_60_80_JP L ANY 00060 00080 ABAP list HR Japan: At least 60 rows by 80 columns
X_65_1024/4 L ANY 00065 01024 ABAP List: At Least 65 Lines 4*256=1024 Columns Four-Sided (Only for SAPlpd)
X_65_132 L ANY 00065 00132 ABAP list: At least 65 rows by 132 columns
X_65_132-2 L ANY 00065 00132 ABAP List: 2-column 65 characters 132 columns (only for SAPLPD from 4.15)
X_65_200 L ANY 00065 00200 ABAP list: at least 65 lines with 200 columns (not for all device types)
X_65_255 L ANY 00065 00255 ABAP/4 list: At least 65 rows with a maximum number of columns
X_65_256/2 L ANY 00065 00256 ABAP list: At least 65 lines 2*128=256 double columns (SAPLPD only)
X_65_512/2 L ANY 00065 00512 ABAP List: At least 65 Lines 2*256=512 Columns 2-sided (Only for SAPlpd)
X_65_80 L ANY 00065 00080 ABAP/4 list: At least 65 rows by 80 columns
X_65_80-2 L ANY 00065 00080 ABAP List: 2-column 65 characters 80 columns (only for SAPLPD from 4.15)
X_65_80-4 L ANY 00065 00080 ABAP List: 4-column 65 characters 80 columns (only for SAPLPD from 4.15)
X_90_120 L ANY 00090 00120 ABAP list: At least 90 rows by 120 columns
X_PAPER L ANY 00010 00010 ABAP/4 list: Default list formatting
X_PAPER_NT L ANY 00001 00001 ABAP/4 list: Obsolete (do not use)
X_POSTSCRIPT L ANY 00001 00001 Pre-prepared PostScript
X_SPOOLERR L ANY 00001 00001 ABAP list: Spooler problem report
X_TELEX L TELEX 00001 00001 Telex: 69 characters wide, only as many lines as supported by TTU
ZABC_SAP L ANY 00065 00550 LCM Report Page Type
I have created a custom Format Type with 65*550 (ZABC_SAP) , but still the output gets truncated in the spool.
In sp01 . For the spool request ... If it displayed in Graphical layoout ... Output is getting truncated but when we see in Raw format .. i can see the entire output. But it is not at all formatted.
Thanks,
Tanuj
Message was edited by:
Tanuj Kumar BolisettyHello Tanuj,
You need to use a page format greater than 255 columns for sure. However still if it does not solve the issue then you may consider using the note 186603.
PS: I guess you are on a higher release than 4.6 C . For this release this note íIt has a text attachment for a report tat allows to display such spool requests.
Regards.
Ruchit. -
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
-
Printing invoices with VF31 in only one spool request
Hello,
we want to print a number of invoices with VF31 using only one spool request, as at this time we become one spool request for each document.
The problem is that VF31 calls indirectly RSNAST00 and this program makes a call to the print program where we have OPEN_FORM and END_FORM each time, so this creates one spool request every time the program is called.
Is there a way to print in only one spool request without doing big changes to programs?
Thanks and regards.Hi,
To append to an existing spool, see the SAP Notes 85318 and 16410.
For spools to be appended the parameters 'New spool request' and 'Do not Append Print Jobs' must be set to 'No' by the application creating the spools.
For Sapscript, when the application call the function module OPEN_FORM in your print program, you can transfer a structure ITCPO to the parameter OPTIONS. Via ITCPO-TDNEWID, you can select the option 'New Spool Request'.Via ITCPO-TDFINAL, you can can select if the spool is closed.
Regards,
Aidan -
I want to print form directly with out using spool request
hi,
i want to print form directly with out using output type screen (spool request or print preview ) , i want to supress the screen and get output directly to the printer. plz help me
thanks®ards
praveenHi Praveen,
In your program, where you are calling the OPEN_FORM function.. pass the name of the printer in the 'DEVICE' parameter of the function module..
Also, there is a parameter OPTIONS of sturcture ITCPO in the same function module.. in this parameter you will find lot of options to set properties for the printing..
There will be one field for immediate printing, set that field to 'X' and other settings for print in the same structure and pass to the function module..
Thanks and Best Regards,
Vikas Bittera. -
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
Maybe you are looking for
-
Unable to release Transport request in CHARM
Hi all, After Setting up CHARM,created a Transport request,while releasing it thru CHARM gives error:"Release of system Q11 Could not be determined" rgds, rajesh Message was edited by: rajesh Rajesh M
-
How do I install windows support software without having a disk drive?
I have a brand new imac that I am trying to boot camp. We have installed windows via a usb (as this mac doesnt have a disk drive) however are unable to install the support software from the usb as it isn't being picked up in windows. Unable to access
-
GNOME 3.16: Crash after login with GDM
Hi all, I've just upgraded to GNOME 3.16, but unfortunately it wasn't completely successful. After I login with GDM, I get the "Oh no! something has gone wrong" screen, with logout the only option. Funny thing is: when I press the super-key, I have a
-
I was looking for a documentation that explains the failover reasons but the only doc I found (command guide), does not explain the reasons only the states. http://www.cisco.com/en/US/docs/security/asa/asa82/command/reference/s3.html#wp1473355 •No Er
-
Hello Everyone, I had worked in SAP NetWeaver areas like XI,Portals, BW etc. I was looking through the SOA architecture and SAP mentions that ESA is the extension of SOA concept that it creates Enterprise services rather than only services where corp