ABAP List to SPOOL
Hi,
Is theer any function module that converts list output to spool and the export parameter should give the SPOOL ID ..
Thanks in advance..
-Mohan
Hi,
Please check the below link
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/submit_t.htm
Hope this helps.
Similar Messages
-
While Changing ABAP List from Spool to PDF Whole List is not displaying
Hi,
There is Z Program to convert Payslip ABAP List to PDF, when it is generating in PDF from Spool, I cannot view whole Payslip.
Previously it is dislpaying fully in PDF file, But not Now.
Please Help me...............
With Regards,
Gaurav.Hi,
Thank you very much. My problem has been solved
Thanks & Regards,
Gaurav Mittal -
ABAP list to spool and converting to pdf problem in QAS
Hi
i am converting the report output to PDF by submitting the spool. i done evrything. but my problem is
in DEV -everything is ok.when i downalod pdf is coming fine with all fields.
in QAS- pdf is coming with half page. some fields are cutting off.
in program i given the format like this.
wa_pri_params-paart = 'X_65_80'.
wa_pri_params-linsz = '185'.
can anyone suggest?? and also can i increase programatically the size becoz it is displaying with small size??Programatically you can specify the size by giving
REPORT XXXXXX NO STANDARD PAGE HEADING
LINE-SIZE 255
LINE-COUNT 90 -
Put logo in ABAP list/smallest font when sending to spool
Hi Gurus,
I have a requirement. I did a ABAP list, not ALV, classic one, I also send it to spool and then convert to pdf and download to pc.
Now our customer wants a logo for it, also as the report is long, when print it or downloading it to pdf, some of parts are missing. So they say that can't we take it in smallest fonts??
So is it possible to place logo for a classic ABAP list and is it possible to send it in smallest fonts when sending to spool or downloading to pdf??
I will be pleased for your replies.
Thanks.Hi,
ABAP lists are simple reports with just rows and columns with text only. it is not possible to put a graphic into an ABAP list. For graphics, you need to use a sapscript form or smartform to create the spool.
Regards,
Aidan -
ABAP list report wont print on Z device type with Z format
Our developer have created a report which outputs data in ABAP list format and the standard format would not fit. We have since created a custom format and copied a device type in to custom device type. So we now have a custom format and custom device type. However when we print, it spools correctly and shows as green but the report wont print. The only thing that gets printed is
"Sort criteria AscdgDescndSubtotalGRAND TOTAL : X X PROJ" "
The abap list format is Z_100_500. Basically the report has 450 columns and hence we created this format.
I am not sure what this means. I have been advised by SAP to follow instruction on note 17895 - Adapting print list formats for customers however i cant fully comprehend point 5 of the note and I believe this is why it wont print. Has anyone adapted ABAP list using this note. Can you please let me know how i should go about printer initialisation mentioned in the noted.
We have checked everything however dont seem to get around the issue. Any ideas will be appreciatedNo comments
-
Print preview in abap list format (OMLV) - Need preview in graphical format
Dear All
I am facing a problem with the print preview. (transaction code OMLV)
When i am clicking on print preview button the system is displaying the output in a ABAP list format.
and also the printout shows only the ABAP content.
Pl. advise on how to view the print preview in a graphical format and not in the ABAP list format and pl. let me know the setting to print the spool in the graphical format.
Thanks,
MaxxHi,
this problem is not only related to warehouse. even the print preview spool for GR/GI slip in t-code SP01 shows as ABAP list and not as graphical screen.
my question is why does the system shows the print preview for spool as an ABAP list instead of graphical view.
pl. advise
Thanks,
Maxx -
Trying to print ABAP List in Unix
I am new to SAP and I am trying to print using unix as my host spooler. I am printing to a Xerox machine connected to a print server. I am just trying to print the test ABAP list you get when you go into SPAD and select Utilities/ouput devices then select ABAP List. When I print this I get nothing but ABCD and a bunch of numbers. I am trying to figure if the ABAP list is supposed to be that way or if something is wrong with my driver.
Hello Rodney,
What device type did you specify in the SPAD Output Device definition? You need to make sure you select a device type which is compatible with the printer. If the printer supports postscript printer language, then you need to select the 'Post2' or 'postscpt' device types. If the printer support PCL, then test with 'hplj4' device type. Most likely the currently selected device type is not compatible with the printer and therefore creates a print file which the printer cannot interpret.
Regards,
Nathan -
ABAP List Output Printing Error
Hi All,
I am facing a problem while printing the ABAP List Output. First Page is printing fine and from the second page its not printing. Where as in Standard reports everything is printing OK.
Thanks in Advance.
Best regards,
Shahid MalayilHello Shahid,
For list printing: Add to affected reports with NEW-PAGE PRINT ON LAYOUT/ SUBMIT... TO SAP-SPOOL LAYOUT (print at list generation). For printing from list display, adjust REPORT width specification to force selection of the format and move format to SAP namespace (name "X....").
May be this can help you.
Cheers
Mudassir. -
ABAP List Faxing using BCS method ( Business communication service )
Experts,
I have a requirement where we are faxing the ABAP list as it gets generated .
I am using NEW-PRINT ON and NEW-PRINT OFF , to get the ABAP list in a spool request , and then get the spool contents using function module : 'RSPO_RETURN_SPOOLJOB'
I then use Class / methods provided by Business communication service , such as :
cl_cam_address_bcs=>create_fax_address ,to send this spool content to Fax gateway .
My fax goes , but the fax output list is in X_65_255 format, whereas i want the fax output to be in X_65_132 ..
My REPORT statement does have X_65_132 as line count / line size BUT somehow the Fax output does not take this list format .. ANY IDEA's ????
Would appreciate your reply .
AshutoshNaimesh,
I have passed page format X_65_132 in GET_PRINT_PARAMETERS , in export paramter ' Layout ' ... See code below :
write a list into spool
call function 'GET_PRINT_PARAMETERS'
exporting
line_count = sy-linct
line_size = sy-linsz
layout = 'X_65_132' <<< Page format
mode = 'BATCH'
immediately = ' '
list_text = htext_spool
list_name = 'ZV46 FAX'
no_dialog = 'X'
importing
out_parameters = print_parameters
valid = valid
exceptions
archive_info_not_found = 1 .
BUT still the fax coming out of our fax machine is compressed because i believe the outgoing fax is using page format X_65_255 .
Any idea why ????
Would appreciate your reply .
Ashutosh -
Problem converting ABAP list into PDF
Hello,
Having converted a spool request of an abap list into pdf the "intensified" attribute of the list items will disappeare. Text in the list with i.e. COL_BACKGROUND INTENSIFIED would be converted to text with blue and normal font. None of the possible combinations of colours and intenstions have produced an output in bold.
Any ideas would be appreciated.
Thank you in advance.
Best regards,
Michael WeiskatSave Report Output to a PDF File
This report takes another report as input, and captures the output of that report. The output is then converted to PDF and saved to a local file. This shows how to use some of the PDF function modules, as well as an easy way to create PDF files.
Source Code Listing
report zabap_2_pdf.
*-- Enhancements: only allow to be run with variant. Then called
*-- program will be transparent to users
*-- TABLES
tables:
tsp01.
*-- STRUCTURES
data:
mstr_print_parms like pri_params,
mc_valid(1) type c,
mi_bytecount type i,
mi_length type i,
mi_rqident like tsp01-rqident.
*-- INTERNAL TABLES
data:
mtab_pdf like tline occurs 0 with header line,
mc_filename like rlgrap-filename.
*-- SELECTION SCREEN
parameters:
p_repid like sy-repid, " Report to execute
p_linsz like sy-linsz default 132, " Line size
p_paart like sy-paart default 'X_65_132'. " Paper Format
start-of-selection.
concatenate 'c:\'
p_repid
'.pdf'
into mc_filename.
*-- Setup the Print Parmaters
call function 'GET_PRINT_PARAMETERS'
exporting
authority= space
copies = '1'
cover_page = space
data_set = space
department = space
destination = space
expiration = '1'
immediately = space
in_archive_parameters = space
in_parameters = space
layout = space
mode = space
new_list_id = 'X'
no_dialog= 'X'
user = sy-uname
importing
out_parameters = mstr_print_parms
valid = mc_valid
exceptions
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
others = 4.
*-- Make sure that a printer destination has been set up
*-- If this is not done the PDF function module ABENDS
if mstr_print_parms-pdest = space.
mstr_print_parms-pdest = 'LOCL'.
endif.
*-- Explicitly set line width, and output format so that
*-- the PDF conversion comes out OK
mstr_print_parms-linsz = p_linsz.
mstr_print_parms-paart = p_paart.
submit (p_repid) to sap-spool without spool dynpro
spool parameters mstr_print_parms
via selection-screen
and return.
*-- Find out what the spool number is that was just created
perform get_spool_number using sy-repid
sy-uname
changing mi_rqident.
*-- Convert Spool to PDF
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid= mi_rqident
no_dialog = space
dst_device = mstr_print_parms-pdest
importing
pdf_bytecount = mi_bytecount
tables
pdf = mtab_pdf
exceptions
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
others = 12.
call function 'DOWNLOAD'
exporting
bin_filesize = mi_bytecount
filename = mc_filename
filetype = 'BIN'
importing
act_filename = mc_filename
tables
data_tab = mtab_pdf.
FORM get_spool_number *
Get the most recent spool created by user/report *
--> F_REPID *
--> F_UNAME *
--> F_RQIDENT *
form get_spool_number using f_repid
f_uname
changing f_rqident.
data:
lc_rq2name like tsp01-rq2name.
concatenate f_repid+0(8)
f_uname+0(3)
into lc_rq2name separated by '_'.
select * from tsp01 where rq2name = lc_rq2name
order by rqcretime descending.
f_rqident = tsp01-rqident.
exit.
endselect.
if sy-subrc ne 0.
clear f_rqident.
endif.
endform." get_spool_number -
Problem with the ABAP List output while running program in background.
Hi ,
This is Sudhir S . I am trying to run a report in background which has 60 columns , but only 13 are displayed when we view it through the spool abap list .
But when I run in foreground all the 60 columns are displayed. Since the data which I am trying to fetch is large I am running the report as a background job .
I just need to know what can be done to get the 60 columns in spool abap list output.
waiting for your reply.
<removed by moderator>
With Regards
Sudhir S
Edited by: Thomas Zloch on Oct 6, 2010 1:51 PM - please do something else while waiting, all posts have the same priority hereHi,
Check if SAP note 1226758 resolves this problem.
Regards,
Aidan -
Hi,
I need to convert an ABAP List that is in the spool to a PDF file, but I want to separate the SPOOL in several pages so that each page is a new PDF file. Is there any way I can do this?
Thanks
PS:
I prove the function <b>CONVERT_ABAPSPOOLJOB_2_PDF</b>, but this function convert all ABAP list to a pdf file.Hi John,
interesting question, I think yes, but I'm sorry I have no time to invistigate, but I think the way to do that is :
- Find how sap is able to print only one page from a spool ? (Trans SP01)
- Use a function like CONVERT_OTF_2_PDF or SX_OBJECT_CONVERT___S_PRT.
That could be
[SPOOL x pages] -> [ 1 OTF by page] -> [1 PDF]
Good luck and gives us feedback
Fred -
SP01 - ABAP list - greyed layout
Hi Team!
I am using SP01 to display the content of an ABAP list.
Once the content is displayed, I go to "setting" --- > layout or columns
But all the options are greyed. I cannot edit neither the layout nor the columns.
Please advise. Should I check any user parameter?
Thanks!!!
AndrésHi,
I checked with my ABAP team and the layout options should be greyed at this point. This is how the standart works, there is no authorization issue since the data in the ABAP list is static information in the spool.
Thanks and regards,
Andrés -
ABAP list report, multiple selections - select-options
I have written a very simple ABAP list report, that contains a single select-option. On the selection screen, I have the option of entering multiple values, with each new value being displayed directly underneath the old, but I am only getting the first value entered on the screen displayed. Does anyone have any sample code for me?
Hi Daniel,
Select_Options consists of 4 parameters, in with the range consists in eg...
Select-options s_vbeln for vbak-vbeln.
then s_vbeln-low, s_vbeln-high are the range values...
So whne you write select query.
write vbeln in s_vbeln
instead of vbeln eq s_vbeln
Hope this solves your problem.
Thanks & Regards,
Dileep .C -
Hi Experts,
I have a requirement to print: "Page XX of XX" in my ABAP List report (this report is meant to be printed).
For Current Page, I know that the system field is SY-PAGNO. But I can't find the field for Total Page. Is there anyway to print this (Total Page) since it means that we have to predict how long the report will be before we WRITE anything?
Thanks a lot,
SamIn the first statement of ur report u'll have to reserve some lines for footer as follows:
REPORT <prg name> LINE-COUNT 25(2).
here ur list will display 23 lines of data and then 2 lines are reserved for footer.
This means that in each page u can display 23 lines of text. Now depending on number of entries in your internal table which contains data to be displayed, we can calculate the number of pages required to print the total output.
E.g: I have 62 records in my internal table, so to get the total number of pages use the following logic:
(U can find out the number of recs in internal table dynamically using DESCRIBE stmt)
62/23 = 2.69
Round the result to the next integer using CEIL , so the next interger is 3.
So ur total number of pages is 3. And u now the current page number by sy-pagno.
Hope this solves ur problem.
Maybe you are looking for
-
Can you recommend a pattern or a better apporach?
Hello, I have to map a lot of strings from one object to another. These objects are made up of smaller objects but all there member vars are still String. Some of these something like this: //Lots of mapping like this. test1.getSomeMethod().getSomeOt
-
I have Windows 7 and my iTunes mysteriously stopped working. The loading sign (little blue circle next to the mouse) came up but nothing would happen. So I uninstalled it and re-installed it. Except it's the exact same problem. I click on the iTunes
-
How do I delete an old version of card star when there is no icon on the desktop?
I received a notice at the App Store that an update for Cardstar was available. This is on my Gen 1 iPad running iOS 6.1.3. I clicked the upgrade button but the progress bar never indicated progress. Cardstar is listed in Settings, but there is n
-
InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized
Hi, We are creating a new role in ERM.We are at Approval stage. When we have clicked on APPROVAL option, it is giving error like, Unknown error occurred while performing operation (Service call exception; nested exception is: com.sap.engine.services.
-
Oracle VM 3.1.1: Open vSwitch
Is Open vSwitch used in Oracle VM 3.1.1 (or is OVM still using the Linux Bridge Utilities)? Eric Pretorious Truckee, CA