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és
Hi,
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
Similar Messages
-
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 -
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 -
SAP Query: ABAP List Only
hello friends,
how do i hide the "Output format" box from the UI of my SAP query?
i would just want a query that would automatically have an ABAP List output without users having to choose other layouts (meaning the "Output format" is not seen on their end)?
thank you in advance.
best regards,
alberthello Shiva,
thanks for the input. i tried doing that and it brings me directly to the query results.
however, i would want my users to see the selection screen, but not the Output Format window (where you can select a variety of layouts).
any idea on this requirement?
best regards,
albert -
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 -
how do i convert abap list to DOC .
Rendihi,
this program to convert abap list to PDF file.
*& Report ZWARUN_TEST4
REPORT ZWARUN_TEST4.
tables:mara,bseg.
data:begin of itab occurs 2,
matnr like mara-matnr,
ernam like mara-ernam,
end of itab.
data:begin of it_bseg occurs 2,
bukrs like bseg-bukrs,
belnr like bseg-belnr,
gjahr like bseg-gjahr,
shkzg like bseg-shkzg,
dmbtr like bseg-dmbtr,
blart like bkpf-blart,
end of it_bseg.
data: lv_numbytes type i,
lv_spoolno type tsp01-rqident,
c_layout like pri_params-paart value 'X_65_132',
C_X type c value 'X',
numbers type i,
cancel.
data:it_pdf like tline occurs 10 with header line.
data:p_down like rlgrap-filename.
*at selection-screen.
selection-screen:begin of block blk with frame.
select-options:s_matnr for mara-matnr,
s_bukrs for bseg-bukrs.
parameter: download as checkbox default 'X',
p_file like rlgrap-filename default 'c:\warun.pdf'.
p_down LIKE RLGRAP-FILENAME DEFAULT 'c:\warun2.txt'.
selection-screen:end of block blk .
selection-screen pushbutton 12(20) push user-command cl1.
at selection-screen.
perform validate.
top-of-page.
write:/10 sy-repid inverse color 3.
write:/2 'Date:' , sy-datum,
40 'Time:' , sy-uzeit.
write:/2 sy-uline.
end-of-page.
write:/50 'Intelligroup Asia Pvt'.
write:/20 sy-pagno.
start-of-selection.
select matnr
ernam
into table itab
from mara
where matnr in s_matnr.
if sy-subrc = 0.
sort itab by matnr.
endif.
perform besg_data.
set pf-status 'PUSH'.
at user-command.
if sy-ucomm = 'DOWNLOAD'.
if download = space.
perform get_file.
endif.
end-of-selection.
if download = 'X'.
perform PDFfile.
ENDIF.
*& Form validate
FORM validate .
data: v_temp(40).
select single
matnr
into v_temp
from mara
where matnr in s_matnr.
if sy-subrc <> 0.
message e000(zz) with 'no data found'.
endif.
ENDFORM. " validate
at line-selection.
set parameter ID 'MAT' FIELD ITAB-MATNR.
CALL TRANSACTION 'MM03' .
WRITE:/ 'Material data displayed' .
write:/2 itab-matnr.
*& Form PDFfile
FORM PDFfile .
data:lk_params type pri_params,
lv_valid.
All the parameters passed are constants, so exceptions
doesn't get raised
call function 'GET_PRINT_PARAMETERS'
EXPORTING
immediately = ' '
layout = c_layout "'X_65_132'
no_dialog = c_x
IMPORTING
out_parameters = lk_params
valid = lv_valid.
if lv_valid <> space .
new-page print on parameters lk_params no dialog.
*--To display the final report
perform print_report.
new-page print off.
*---To convert the download to PDF
perform conv_to_pdf_download.
perform download.
endif.
endif.
*--To display the final report
perform print_report.
ENDFORM. " PDFfile
*& Form print_report
FORM print_report .
loop at itab.
write:/2 sy-vline,
4 itab-matnr color 4 HOTSPOT,
40 sy-vline ,
41 itab-ernam color 5,
55 sy-vline.
HIDE: ITAB-MATNR.
endloop.
ENDFORM. " print_report
*& Form conv_to_pdf_download
FORM conv_to_pdf_download .
wait up to 2 seconds.
lv_spoolno = sy-spono.
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = lv_spoolno
no_dialog = ''
DST_DEVICE =
PDF_DESTINATION =
importing
pdf_bytecount = lv_numbytes
PDF_SPOOLID = pdfspoolid
LIST_PAGECOUNT =
BTC_JOBNAME = jobname
BTC_JOBCOUNT = jobcount
tables
pdf = it_pdf.
ENDFORM. " conv_to_pdf_download
*& Form download
FORM download .
check download = 'X'.
call function 'DOWNLOAD'
EXPORTING
bin_filesize = lv_numbytes
filename = p_file
filetype = 'BIN'
IMPORTING
act_filename = p_file
filesize = lv_numbytes
cancel = cancel
TABLES
data_tab = it_pdf.
if cancel = space.
write: / lv_numbytes, p_file.
endif.
ENDFORM. " download
*& Form get_file
FORM get_file .
Data: s_filename like rlgrap-filename,
s_filepath like rlgrap-filename,
tm_filepath like rlgrap-filename.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = s_filename
DEF_PATH = s_filepath
MASK = ' '
MODE = ' '
TITLE = ' '
IMPORTING
FILENAME = tm_filepath
IF SY-SUBRC = 0.
p_down = tm_filepath.
perform download2.
endif.
ENDFORM. " get_file
*& Form download2
FORM download2 .
DATA: LV_STRING TYPE STRING.
LV_STRING = P_DOWN.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = LV_STRING
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = itab
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " download2
*& Form besg_data
FORM besg_data .
if itab is initial.
select bukrs
belnr
gjahr
shkzg
dmbtr
into corresponding fields of table it_bseg
from bseg
where bukrs in s_bukrs.
endif.
ENDFORM. " besg_data
regards
warun -
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 -
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
-
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. -
Inactivate the print button is the ABAP list
How can I inactivate the print button in the report program (ABAP list)?
I can inactive the print button on selection screen by using 'RS_SET_SELSCREEN_STATUS'. But can't achieve the same effect after the program jumped to the list output screen.
Thanks!hi,
To achieve this you need to create your own custom pf-status. The tcode for creating new pf-status is se41. Goto SE41, enter the program name and click create.
Enter the menu bar buttons, application tool bar button and Function key as per your requirement. Active the pf-status. Once the pf-status is created, use this in your program using the statement.
set pf-status 'ZPF'.
Regards,
Richa. -
How to get a list of Layout Sets
Hi Experts,
How do I get a list of Layout sets in Portal ?
I am using a KM Navigation IView to show a list of External Links. I have used a copy of Links IView for this. The Layout set used here is "LinkListExplorer".
The problem with this layout set is it provides an option of Organize Entries to all End users. An end user might potentially delete a link or edit it due to this.
I want to get rid of Organize Entries feature in this IView, which I feel can be achieved only by changing Layout of the IVIew.
Please guide me to list of Layout sets or a way to maintain permissions for Links IView.
Thanks,
Yomesh.System Administration -> System Configuration -> Knowledge Management -> Content Management
then,
User Interface -> Settings -> Layout Set
You will see lots of layouts sets that you can use... -
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 -
Printing a simple abap-list in panel-format (DIN A4)
Hallo Ladies and Gentlemen,
i have a simple abap-list. when i print it, the list will be printed in landscape-format. how can i change it? i have to print it in panel-format.
Thanks a lot,
MarcelHi Marcel,
I think you have to click on the "Full Administration" button t see the option for "Page Formats"...
Also go to transaction SPAD,
in Devices / Servers tab press Output devices button
Double click on the device type of your printer
Press button Formats
and here you get a list of all formats for your printer
Regards,
Abhy
Maybe you are looking for
-
Can not connect my wireless printer to the new router.
Can not connect my wireless printer to the new router.
-
Class file missing from war file deployment
I have a web application that is being deployed to a war file. I have deployed several times successfully. Then with the latest changes, there is a class file that does not get included into the war file. It does get compiled and does exist in the pr
-
PO Delivery tolerance at header level
Hello Gurus, My client wants to have delivery tolerance at header level which means while doing GR system should accept over delivery for the total qualtities of all line items of a singel PO. Please let me know how this can be achieved? Srinag
-
IMovie files increasing in size in latest version?
I opened iMovie for the first time for a couple of years and since the last upgrade (10.0.6). I opened a file and it started to convert it for some reason. I then noticed that my hard drive usage has increased by 40GB. This is a problem as my hard dr
-
Photoshop CS6 immediatly crashes after opening
Dear, (I use a laptop with Windows 7 (64-bit), 8GB Ram, all drivers and bios'es are up to date, windows is up to date) I installed Adobe Photoshop CS6 (deleted all other versions, registry cleaner, everything from previous versions is deleted). Photo