Print ALV List
Hi experts,
T code ME2m after executing i would like to print that sheet . with all coloms in A4 size paper.
how can Increse size of LETTERS and colom and rows.
after pressing PRINT icon we will get pop up window(Print ALV List.
then Output device - Local
number of copies1
Print from page 1 1
Then i clicked PROPERTIES
then i double clicked PARAMETER VALUE X_65_255
then i selected Format radio button then i selected X_58_170..
then i executed..
that tiem system giving message like
System cannot print the last 176 columns of the
report
but i am not getting all the fealds in the page ?
how to do configuration for this.
Regards,
Anthyodaya.
In ME2N menu List --> Export document to word processing -> Create word document-> Start MS word.
After downloading,Click F11,Save it as word document,Adjust page set up to Land Scape and also custom paper format
to accommodate all fields in print.
Similar Messages
-
Problem with printing ALV lists
Hey Guys,
I have a problem with printing ALV lists ,
I created a report with several ALV lists (not grids) on the same screen but when i attempt to print the report
it prints each alv list on a different page..so if i have 3 alv lists in the same report it will print the report on 3 pages
How can i print them all in one page?
Thanks in advance
Noha Salah.Hey Max,
I tried setting the Layout-list_append before my block_list_append function call
And setting the is_print-NO_NEW_PAGE , it printed the 3 lists on one page the only problem i have
is that the lists are truncated and the list formats has totally been messed up..how can i restore them back
to their original format? -
Printing ALV list with ADS (pdf printer) in non-english charset
Hello!
I have an issue about printing alv list with pdf printer in non-english charset. We have two printers. One for alv lists (SWINCF: Casc.Fonts SAPWIN Unicode) and one for pdf forms(adobe document service). I want to use one printer for any documents. But PDF printer prints non-english charset like ########.
What can I do ?Hi, Roman!
I want to use PDF printer for both types of output. I have a dedicated java instance for ADS.
There is a device type for our Kyocera Printer. My pdf printer prints ALV list good exept russian charset.
It prints like ##### -
Font is small while printing alv list report
Hi,
while printing ALV list report font is too small, can you tell me where i can increase the font size. I tried in GUI font ,In which i can increase the font for GUI, not for ALV priniting . Can any body help me to solve this problem?
Regards,
siva kumarHI Kushboo,
I think You are talking about header text in ALV , while printing ALV list i need to increase all the font size.. In fieldcatlog there is no option called Style...for increasing ALV font line item details. Can you tell me which style you are talking about?
Regards,
siva kumar -
Suppress "Print ALV List" dialog.
HI All,
Is there a way of suppressing the "Print ALV List" dialog that is displayed when you print an alv using REUSE_ALV_BLOCK_LIST_DISPLAY. The is_print parameters does not contain any option, though there is a supress_dynpro option before the dialog is called, not sure how to set this is_print parameters.
Rgds,
James.Hi,
<li>You can not suppress print parameters popup screen using REUSE* function module. It comes thats it. I tried for longtime to suppress, could not pass
<li>But when you print classical reports you can suppress it.
REPORT ZTEST_NOTEPAD.
DATA:G_LAY TYPE PRI_PARAMS-PAART,
G_LINES TYPE PRI_PARAMS-LINCT,
G_COLS TYPE PRI_PARAMS-LINSZ,
G_VAL TYPE C.
DATA:W_PRIPAR TYPE PRI_PARAMS,
W_ARCPAR TYPE ARC_PARAMS.
PARAMETERS:
P_DATA(10) TYPE C.
START-OF-SELECTION.
G_LAY = 'X_65_132'.
G_LINES = 65.
G_COLS = 132.
"Read, determine, change spool print parameters and archive parameters
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
IN_ARCHIVE_PARAMETERS = W_ARCPAR
IN_PARAMETERS = W_PRIPAR
LAYOUT = G_LAY
LINE_COUNT = G_LINES
LINE_SIZE = G_COLS
NO_DIALOG = 'X'
IMPORTING
OUT_ARCHIVE_PARAMETERS = W_ARCPAR
OUT_PARAMETERS = W_PRIPAR
VALID = G_VAL.
IF G_VAL NE SPACE AND SY-SUBRC = 0.
W_PRIPAR-PRREL = SPACE.
W_PRIPAR-PRIMM = SPACE.
NEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS W_PRIPAR
ARCHIVE PARAMETERS W_ARCPAR
NO DIALOG.
ENDIF.
WRITE 'Output in spool'.
NEW-PAGE PRINT OFF.
CALL FUNCTION 'ABAP4_COMMIT_WORK'.
DATA:TEXT TYPE STRING.
CONCATENATE 'Spool' SY-SPONO 'is generated' INTO TEXT SEPARATED BY SPACE.
MESSAGE TEXT TYPE 'S'.
Thanks
Venkat.O -
Skip "Print ALV list" pop up while saving ALV as PDF
Dear experts,
I am converting my ALV list into PDF.
im using
CONVERT_ABAPSPOOLJOB_2_PDF
and
GUI_DOWNLOAD
But it pops up a screen asking the default printer. What parameters do i need to pass to CONVERT_ABAPSPOOLJOB_2_PDF so that I can skip the pop up?
I have already tried passing --
NO_DIALOG = 'X'
DST_DEVICE = 'locl'
Regards,
Sumit.Hi Sumit,
first use:-
CALL FUNCTION 'RSPO_FIND_SPOOL_REQUESTS'
EXPORTING
allclients = '320'
datatype = '*'
has_output_requests = '*'
rq0name = nast-dsnam
rq1name = '*'
rq2name = '*'
rqdest = 'LOCL'
rqowner = sy-uname
TABLES
spoolrequests = it_spool
EXCEPTIONS
no_permission = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE i000 DISPLAY LIKE 'E' WITH text-002.
LEAVE LIST-PROCESSING.
ENDIF.
FORM convert_spool_to_pdf .
READ TABLE it_spool INTO wa_spool INDEX 1.
v_spoolno = wa_spool-rqident.
*Get Spool request attributes
SELECT SINGLE *
FROM tsp01
INTO tsp01
WHERE rqident EQ v_spoolno.
IF sy-subrc <> 0.
MESSAGE i000 DISPLAY LIKE 'E'
WITH text-003 v_spoolno text-034.
LEAVE LIST-PROCESSING.
ENDIF.
v_client = tsp01-rqclient.
v_name = tsp01-rqo1name.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
authority = 'SP01'
client = v_client
name = v_name
part = 1
IMPORTING
objtype = v_objtype
EXCEPTIONS
fb_error = 1
fb_rsts_other = 2
no_object = 3
no_permission = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE i000(zz) DISPLAY LIKE 'E'
WITH text-003 v_spoolno text-034.
LEAVE LIST-PROCESSING.
ENDIF.
IF v_objtype(3) EQ 'OTF'.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = v_spoolno
no_dialog = ' '
TABLES
pdf = it_pdf
EXCEPTIONS
err_no_otf_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_dstdevice = 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.
IF sy-subrc <> 0.
ENDIF.
ELSE.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = v_spoolno
no_dialog = 'X'
TABLES
pdf = it_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.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDFORM. " convert_spool_to_pdf -
Hello,
We have a custom ALV report which is very wide (more than 1000 chars).
Now, when I try to print the list the field with the number of columns is grey (for some users it is grey and for some users it is editable). The format is set to X_65_255.
When I don't change the number of columns to 255 and trigger the printout I receive the gui error "The memory could not be read blablabla" and the GUI closes. When I change the number of columns to 255 the printout is ok.
Do you know why for some users the field is grey (user profiles are the same)? What I can do not to receive the gui error while printing.
Regards,
PiotrHi,
See this thread ALV Program errors
Regards,
Flavya -
Hi all,
Currently if we print an ALV list, the font of the subtotal and total lines would be bold. But the user wants the subtotal and total lines to be shaded, to be more outstanding. Is there a way to do that?
I tried the printer inialization in the device type but it didn't work, as I am not familiar with the PCL language.
Thanks
benHi,
Are you using ALV OOPs or ordinary FM?
IF it is through OOPs, you can write some class methods for this and using simple WRITE stmts set the format of the line.
If it is Fm, I think it is difficult to have this line shaded.
Regards
Subramanian -
How to print text on container using oop on alv list
Hello Guru's,
pl guide me how to print text on container using alv list-display which have interactive events using oop classes/methods ...
I want to print hard coded text on coantainer , on double clicking it will call another screen.
Pl Help..
Message was edited by:
paresh sonavaneHi Paresh,
1. Go to the Layout and Create One custom container box and give name it.
2. Custom Container is the one type of tool and its used for Displaying the Reports
with the use of ABAP Objects.
3. Go to se38 and Write The Following Code.
tables ZTEAM_GD.
DATA : OBJ TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
OBJ1 TYPE REF TO CL_GUI_ALV_GRID.
DATA IT_TEAM LIKE TABLE OF ZPLAYER_BAT_DET .
SELECT * FROM ZPLAYER_BAT_DET INTO TABLE IT_TEAM.
CREATE OBJECT OBJ
EXPORTING
CONTAINER_NAME = 'ALV'. -
> Give ur Container Name
CREATE OBJECT OBJ1
EXPORTING
I_PARENT = OBJ.
CALL METHOD OBJ1->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_STRUCTURE_NAME = 'ZPLAYER_BAT_DET'
CHANGING
IT_OUTTAB = IT_TEAM.
*CALL METHOD OBJ1->SET_DROP_DOWN_TABLE
EXPORTING
I_STRUCTURE_NAME = 'ZTEAM_GD'
CHANGING
IT_OUTTAB = IT_TEAM.
CALL SCREEN 9000.
*& Module USER_COMMAND_9000 INPUT
text
MODULE USER_COMMAND_9000 INPUT.
CASE SY-UCOMM.
WHEN 'EXT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_9000 INPU
Thanks.
Reward If Helpful. -
How to print the top of page part along with the ALV list and generate PDF
HI all,
I have created one ALV by using oops concept .
and also am able to get the top of page where I have One standard logo on the right hand side
and some details on the left side .
Now my requirement is to while printing the list the logo and other top of page details should appear
In the PDF output but currently while am pressing the print preview button only the alv data is coming
am already using the method
handle_top_of_page
FOR EVENT print_top_of_page
OF cl_gui_alv_grid,
may be am missing something ... How to get the top of page along with the logo printed ?Hi Surya,
After generating the grid display click on print button,
a spool number is generated. capture the spool number and convert it to pdf using the fm:
CONVERT_ABAPSPOOLJOB_2_PDF and save the file
Hope this will solve your problem.
Regards,
R K. -
Down loading ALV List to local file /print
hi ,
We have a program that displays data on an ALV list. Then, when you click on the 'Print' icon, or try to download to a local file, it gives a short dump with a message 'OBJECTS_NOT_CHARLIKE'.
Any solutions on the same ....
thanksHi,
i hope you have all your data in and internal table.
If this is so use the following code,
*--- Down load the file
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
filename = lv_file
filetype = 'DAT'
TABLES
data_tab = gt_excel1
EXCEPTIONS
file_open_error = 1
file_write_error = 2
invalid_filesize = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
OTHERS = 10.
IF sy-subrc = 0.
MESSAGE i000(zf) WITH text-017.
ELSE.
MESSAGE e939(zf) WITH lv_file. "Errors while downloading.
ENDIF.
Following should be passed,
v_file --> file path with file name (provide filename with '.xls' extension)
gt_excel --> Internal table which has to be downloaded to excel.
thanks
vijay
reward points if helpful. -
Couldn't print header of ALV list
Hi All,
I couldn't print header for the alv list. Code is below.
REPORT ztest123456 .
TYPE-POOLS: slis.
DATA: wa_fieldcat TYPE slis_fieldcat_alv,
g_t_tfieldcat TYPE slis_t_fieldcat_alv,
itab1 TYPE STANDARD TABLE OF cdhdr,
g_t_event TYPE slis_t_event,
wa_event TYPE slis_alv_event,
g_pos TYPE i VALUE 1,
head TYPE slis_t_listheader,
wa_head TYPE slis_listheader.
START-OF-SELECTION.
SELECT * FROM cdhdr INTO TABLE itab1
WHERE objectclas = 'COND_A'
AND tcode = 'VK12'.
SORT itab1 BY objectclas.
wa_head-typ = 'H'.
wa_head-info = 'Records in cdhdr table'.
APPEND wa_head TO head.
PERFORM sub_fldctlg USING: 'OBJECTCLAS' 'ITAB1' 13 'Object class'.
FORM sub_fldctlg *
FORM sub_fldctlg USING u_fname TYPE slis_fieldcat_alv-fieldname
u_tname TYPE slis_fieldcat_alv-tabname
u_outlen TYPE slis_fieldcat_alv-outputlen
u_seltext TYPE slis_fieldcat_alv-seltext_l.
CLEAR wa_fieldcat.
wa_fieldcat-col_pos = g_pos. "Column Position
wa_fieldcat-fieldname = u_fname. "Field Name
wa_fieldcat-tabname = u_tname. "Table Name
wa_fieldcat-outputlen = u_outlen. "Output column Length
wa_fieldcat-seltext_l = u_seltext. "Column Header
g_pos = g_pos + 1. "Incrementing column position
APPEND wa_fieldcat TO g_t_tfieldcat. "Appending field Catalog
ENDFORM.
*& Form sub_top
FORM sub_top.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = head.
ENDFORM. " sub_top
END-OF-SELECTION.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
IMPORTING
et_events = g_t_event.
READ TABLE g_t_event INTO wa_event WITH KEY name = 'TOP_OF_PAGE'.
IF sy-subrc EQ 0.
wa_event-form = 'SUB_TOP'.
MODIFY g_t_event FROM wa_event INDEX sy-tabix.
ENDIF.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
it_fieldcat = g_t_tfieldcat
it_events = g_t_event
TABLES
t_outtab = itab1.
Thanks in advance.Hi,
The issue is resolved. I just pass the program name (SY-REPID) through a variable to the function module that displays list/grid. I came to know that these system variable behavior is UN-predictable in SAP and hence passed program name through a global variable instead of using a system variable value.
Thanks.. -
Problem in Printing the ALV list
Hi,
I have one problem with printing the ALV list. While printing the ALV list(thro Print Icon on application Tool bar) ,Fist page of my print out contains some other inforamtion.
inforamtions included two tables
first table contains Sort Criteria, Ascdg, Descnd, Subtotal columns.
And second table contains Data statistics , number of
columns.
But from Second page onwards , my alv list printed correctly .
How can i avoid the First page inforamtion and
what is the Reason of coming like this?
Thanks,
Neptune.MI assume you are using function module Reuse_alv_grid_display or reuse_alv_list_display for ALV.
If this is the case, there is a parameter called IS_PRINT that you need to supply while calling the function module.
you can for exapmle declare
data:
printstruc type SLIS_PRINT_ALV.
printstruc-NO_PRINT_LISTINFOS = 'X'.
call function 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
IS_PRINT = printstruc
There are many other flags in is_print structures that you can use to manipulate the printing.
Cheers! -
Alv List print printer information in 1st page
Hi,
At the time of alv list printing the following information is printed on 1st page. How to avoid this information when printing.
INITSTRING
Start r_3-Prolog
Drucker : Wipro EX-330+DX
System : RAP (reprdfo)
User : 11BO
End r_3-Prolog
Thanks in advance.Hi GoldMoon,
(edit) Print another basic ABAP list (print anything else) on the same printer to see if that first page is printed. If yes, it's probably either SAP, OS, or Print Server cover page. They are explained in "cover page" SDN wiki, there are explanations how the cover page can be output (and so you can deduce how to remove it).
Best regards,
Sandra
Edited by: Sandra Rossi, 5 minutes later -
How to print two alv lists in one spool request
Hello,
I have made a report which has one alv list based on CL_SALV_TABLE and a message box displayed in a splitter container based on SBAL. In dialog mode everything is fine.
If I run the report in batch mode, I have put the alv table to
list_display = abap_true.
For printing the messages I am using FM BAL_DSP_LOG_PRINT. It has this nice parameter
i_s_list_append = abap_true.
Unfortunatly the messages are not appended to the alv list, nor are they in the same spool request.
I think the system will put it only into the first spool request, when the name, the printer, the number of prints and the format are the same and of couse, if the spool request is still open for appenfing (which it is).
The name and the format are not the same in my case. So I tried to set the name to TEST using the print options of the FM
ls_print_options-print_ctrl-pri_params-plist = 'TEST'.
But unfortunately it is not working. No changes to the name, when I run the report in batch mode.
Who has experiance with that? Why are both lists not in the same spool request? Are my findings right? Why isn't the name changed?
Thank you for your help,
Peterdo 2 times
perform write_form.
end do.
for header u can give condtion in form.
use if condition in the editor...
this will help u...
Reward IF....... <= IF what? Points removed... read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]!
Regards
Anbu
Edited by: Julius Bussche on Jul 17, 2008 7:01 PM
Maybe you are looking for
-
Pf status at pa30 in 0008 infotype
Hi I need unable buttons in pf-status from 0008 infotype in pa30, pa40 transactions. It works for too many infotypes, but to 0008 don't... the pf-status tested were '2010MOD ', MOD, and the programa MP000800, but nothing worked.... any idea???? thank
-
I bought an iphone 4s from someone off of craigslist. I went to update to ios7 (it was running ios5 for some reason) and when it finally updated it said the phone needed to be unlocked by the carrier. I don't know who the original carrier of the phon
-
How to deploy Web Layout Report which is embedded in a JSP in 10.1.3 ??
Hi there, we like to create a JSP report with web and paper layout. The paper layout is for pdf and the web layout to fit the page in the whole application. The whole application will be a JSF application running on 10.1.3. The reason why we like to
-
SAP BPC 10 - Error on Refreshing Reports Input Forms
Hi all, We are working on an BPC 10 Consolidation project for the Netweaver Version. We setup the Environment, Dimensions, Models, etc. We created a few reports too using the Excel interface. These were tested and they worked well. However, then one
-
Message while data load is in progress
Hi, We are loading the data in the infocube every day twice i.e in the morning and the afternoon. Loading methodology is always delete and load. At any given point we have only one request in the cube. Data Load takes arround 20-30 minutes. When the