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
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 -
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. -
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 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 -
hai,
i get following dump error when tryign to print a alv list report.
'Illegal interruption of the event LOAD-OF-PROGRAM.
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLSZA12" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
During the flow of the event LOAD-OF-PROGRAM (event for the
initialization of an ABAP program), a condition occurred under which
the event was to be left early. This is not permitted as it would
result in an inconsistent status in the ABAP program.'
the problem resolves for a particular output(when i restrict the list to lesser rows) by changing FORMAT from
X_65_255 to X_90_120 in the print dialog properties option..
anycase i will have to print the output for all conditions.hi,
did check..
i am using a report program(and directly executing from se38)
it doesnt come under module pool.
however u r link suggests that,when the function module for ALV LIST DISPLAY is called,the error is triggered(LOAD OF PROGRAM)..
hmm checking further in these lines..
thanks for the inputs.. -
Alv list report-problems while printing
hai,
i get following dump error when tryign to print a alv list report.
'Illegal interruption of the event LOAD-OF-PROGRAM.
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLSZA12" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
During the flow of the event LOAD-OF-PROGRAM (event for the
initialization of an ABAP program), a condition occurred under which
the event was to be left early. This is not permitted as it would
result in an inconsistent status in the ABAP program.'
the problem resolves for a particular output(when i restrict the list to lesser rows) by changing FORMAT from
X_65_255 to X_90_120 in the print dialog properties option..
however this restricts the coloumn width..
anycase i will have to print the output for all conditions.
the problem seems to be centred around number of rows in the list output..is somethign wrong with the values in this internal table gt_comtypes_tab...
this is where the dump is pointing..at LAOD OF PROGRAM EVENT
1 FUNCTION addr_get_conversion_table.
2 *"----
3 ""Lokale Schnittstelle:
4 *" EXPORTING
5 *" VALUE(COMTYPES_TAB) TYPE ADCOMTYPES_TAB
6 *" EXCEPTIONS
7 *" INTERNAL_ERROR
8 *"----
9
10 comtypes_tab = gt_comtypes_tab.
11
12 ENDFUNCTION.
values of gt_comtypes_tab.
2 TEL ADTEL
3 FAX ADFAX
4 TTX ADTTX
5 TLX ADTLX
6 INT ADSMTP
7 RML ADRML
8 X40 ADX400
9 RFC ADRFC
10 PRT ADPRT
11 SSF ADSSF
12 URI ADURI
13 PAG ADPAG -
ALV List Output: How to avoid data statistics from printing in Background
Hi,
I am running an ALV list display in Background mode and the output is showing the data statistics first and then the actual output of the ALV...
I dont want the data statistics to be printed..
How to avoid that.. is there any to do it...Hi Neela
If you are using the good old REUSE_ALV_GRID_DISPLAY function module, you should be able to suppress the List Info if SY-BATCH is 'X' using the IS_PRINT parameter.
MOVE 'X' TO is_print-no_print_listinfos .
Presumably there is a similar parameter using classes.
Cheers
Lyal -
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.
Maybe you are looking for
-
Calling a method in BPM Object from jsp page
hi all, I try to call a method from BPM Object using <f:invokeUrl > I change server side method properties to yes. and then how can i get request and response object inside the BPM method. Thanks.
-
Internal Server error while configuring External service for CAF
Dear All, While configuring the External Service (RFC) for CAF Core project in our EP7 SP11 server we are getting error message we are getting Internal server error when we click on service registry. 500 Internal Server Error SAP NetWeaver Applic
-
Can't repair disk permissions on OSX snow leopard
Hello i have some problem with repairing the disk permissions. I tried repairing them twice but they just keep coming back and i tried to do a clean install but after i updated everything they came back again, anyone have a solution to fix this? Here
-
Pass values from report1 to report2 but without displaying the web element
Need to pass a string value from report1 to report2.This can be done by using web elements. But in that case the web element is showing up when we run report1.So what is the way to avoid display of web element but still pass the value to report 2. Th
-
Is there any function module to give absolute value of a number?
Hi, Is there any function module to give absolute value of a number? That has similar functionality to the Built in Function ABS. Please let me know. Thanks, cs