Columns overflowing while printing ALV
Hi,
I have an ALV grid containing 19 columns. When the client tries to print it , some columns overflow to the next page.
I'm using the <b>factory method</b> to display my ALV.
Could this be due to the fact that im using the <b>add_sorts</b> method on the ALV where the value of the parameter <b>group</b> i pass could cause it ?
Any other possible reasons would also be appreciated.
Regards,
Navaneeth
Hi,
You can use given function module to print your
selection screen
RS_REFRESH_FROM_SELECTOPTIONS
>This will get Current contents of selection screen
RS_LIST_SELECTION_TABLE
>This will Generates list according to values in selection table(RSPARAMS)
Sample
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = p_repid
TABLES
selection_table = it_int_tab
EXCEPTIONS
not_found = 1
no_report = 2
OTHERS = 3.
IF sy-subrc EQ 0.
WRITE:1 'Selection Criteria'(i19),
/1 sy-uline(18),
/1 'Variant Name'(i21),
23 sy-slset.
*-- This function module lists the Selection Screen contents
CALL FUNCTION 'RS_LIST_SELECTION_TABLE'
EXPORTING
report = p_repid
seltext = 'X'
newpage = space
TABLES
sel_tab = it_int_tab
EXCEPTIONS
sel_tab_empty = 1
OTHERS = 2.
Mark all helpful answers
Similar Messages
-
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 -
Printing Selection-Screen while printing ALV Grid output display
Hi,
I have a requirement wherein I want to print the Selection Screen also while printing the output in simple ALV grid Display.
Currently when I print the ALV output report, only the header and the Body of the ALV is getting printed. But the requirement is that I also want to print Selection screen along with this.
If anyone has faced a similar situation, plz let me know what needs to be done in order to print the selection screen also while printing the ALV report output.
Rgds,
NitinHi,
You can use given function module to print your
selection screen
RS_REFRESH_FROM_SELECTOPTIONS
>This will get Current contents of selection screen
RS_LIST_SELECTION_TABLE
>This will Generates list according to values in selection table(RSPARAMS)
Sample
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = p_repid
TABLES
selection_table = it_int_tab
EXCEPTIONS
not_found = 1
no_report = 2
OTHERS = 3.
IF sy-subrc EQ 0.
WRITE:1 'Selection Criteria'(i19),
/1 sy-uline(18),
/1 'Variant Name'(i21),
23 sy-slset.
*-- This function module lists the Selection Screen contents
CALL FUNCTION 'RS_LIST_SELECTION_TABLE'
EXPORTING
report = p_repid
seltext = 'X'
newpage = space
TABLES
sel_tab = it_int_tab
EXCEPTIONS
sel_tab_empty = 1
OTHERS = 2.
Mark all helpful answers -
Hi,
I am having an error occuring while i am printing my alv report and it is going to short dump. But i am getting the out put.
The error message is
"GETWA_NOT_ASSIGNED"
Program: "SAPLKKBL " or "LKKBLF01 "
In the form: "CHECKBOX_OUT"
Can anyone help me with this.
Thanks...
Dump Code:
Source code extract
009740 hide g_tabname.
009750 if lflg_icon is initial.
009760 write at (rs_fieldcat-outputlen) <hf> no-gap quickinfo
009770 rs_fieldcat-seltext.
009780 else.
009790 write at (rs_fieldcat-outputlen) <hf> as icon no-gap.
009800 endif.
009810
009820 g_tabname = l_tabname.
009830
009840 format hotspot off.
009850
009860 endform. " HEADER_FIELD_OUT
009870 *& *
009880 *& Form CHECKBOX_OUT
009890 *& *
009900 * text *
009910 * *
009920 form checkbox_out using rs_layout type kkblo_layout
009930 r_tabname type stack-i_tabname
009940 r_sum type c.
009950 data: l_mark(1) type c.
009960
009970 if not rs_layout-box_tabname is initial and
009980 rs_layout-box_tabname ne r_tabname.
009990 format color off.
010000 write at (2) space no-gap.
010010 exit.
010020 endif.
010030
> if not r_sum is initial or <box> = '-'.
010050 format color off.
010060 write at (2) space no-gap.
010070 else.
010080 format color off.
010090 if <box> = ' ' or <box> = 'X'.
010100 g_mark = <box>.
010110 if rs_layout-no_input = 'X'.
010120 write g_mark as checkbox no-gap input off.
010130 else.
010140 write g_mark as checkbox no-gap.
010150 endif.
010160 write at (1) space no-gap.Looks like a coding problem, have you looked for a fix on OSS?
Regards,
Rich Heilman -
Run time error while printing ALV report
Hi,
At the time of printing a report output we get a dump GETWA_NOT_ASSIGNED.
The printer used here is LOCL.
The length of the report increases dynamically according to no. of months given in range.
In report , there are 3 static columns & no. of columns increases by 2 for each month. System is printing the report for 1 month ie. (3+2) columns . but if no. of months increased to 2 ..... no. of columns also increases by 2.... in this case system is giving dump.
Please help.
Thanks in advance,
VijetaHi
1. check the fieldcat ( ie. CURR field without WAERS field.. )
2. check if you want to use colours at calling the ALV.. but you don´t fill the deep structure for the colours...
bestreg Robert -
Reg: Suppress Print popup while printing ALV
Hi Experts,
I am using FM REUSE_ALV_LIST_DISPLAY to print the report and convert the spool to PDF and email it as attachment.
When iam calling the FM for printing by passing parameter IS_PRINT, it is asking me to enter printer details as popup. I need to suppress this popup. I tried passing the default print parameters to this IS_PRINT, but still no result.
Can anyone help me on this.
Thanks
NaveenHi
You need to pass first ALV data to spool and a PDF doc as email and then again call the FM grid display .
Clear Spool Number
CLEAR: gv_spool.
Check for presence of any recipients
IF s_reclst[] IS NOT INITIAL.
sy-batch = 'X'. "#EC WRITE_OK
gs_alv_print-print = 'X'.
gs_alv_print-prnt_info = ' '.
gs_alv_print-no_print_selinfos = 'X'.
gs_alv_print-no_print_listinfos = 'X'.
gs_alv_print-no_coverpage = 'X'.
gs_alv_print-reserve_lines = 1.
gs_alv_print-print_ctrl-pri_params-pdest = 'PRINTER'.
gs_alv_print-print_ctrl-pri_params-primm = 'X'.
CALL FUNCTION 'REUSE_ALV_list_DISPLAY'
EXPORTING
i_callback_program = gv_repid
is_layout = gs_alv_layout
is_variant = gs_alv_variant
it_fieldcat = gt_alv_fieldcat
it_sort = gt_alv_sort
it_events = gt_alv_events
is_print = gs_alv_print
TABLES
t_outtab = gt_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.
Get the Spoolnumber
gv_spool = sy-spono.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gv_spool
TABLES
pdf = gt_pdf_output
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.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
Transfer the 132-long strings to 255-long strings
LOOP AT gt_pdf_output INTO gs_pdf_output.
TRANSLATE gs_pdf_output USING ' ~'.
CONCATENATE gt_buffer gs_pdf_output INTO gt_buffer.
ENDLOOP.
TRANSLATE gt_buffer USING '~ '.
DO.
gs_objtxt = gt_buffer.
APPEND gs_objtxt TO gt_objtxt.
SHIFT gt_buffer LEFT BY 255 PLACES.
IF gt_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDIF.
ENDIF.
the above code will help you.
Thanks
kishore -
Dump while printing ALV (field symbol not assigned)
Dear experts,
I am trying to print an ALV report which gives dump- \
Field symbol has not yet been assigned.
The current ABAP program "SAPLKKBL" had to be terminated because it has
ome across a statement that unfortunately cannot be executed.
I am not using any field symbols in report. The printer is also configured on my system.
I searched the forums but didnt get a stisfactory answer.
Regards,
Sumit Nene.Hi suhas! the I ran the consistency check and it shows
The field CELLCOLOR does not exist in the output table (LAYOUT-CTAB_FNAME)
Though I havent used it.
@ neeraj--
DATA : BEGIN OF ST_MUSTER,
SNO TYPE I,
DATE TYPE SY-DATUM,
PERNR TYPE P0001-PERNR,
NACHN LIKE PA0002-NACHN,
PA TYPE PBTXT,
SECTN LIKE P1000-STEXT,
* DEPT TYPE BTRTL,
DEPTXT LIKE T001P-BTEXT,
ABSTYP TYPE AWART,
ABSDAYS LIKE PA2001-ABWTG,
VORNA LIKE PA0002-VORNA,
BEGDA LIKE PA0002-BEGDA,
LEAVETYPE(5),
" LEAVE TYPE FOR PARTICULAR DAY
LT1(10),
LT2(10),
LT3(10),
LT4(10),
LT5(10),
LT6(10),
LT7(10),
LT8(10),
LT9(10),
LT10(10),
LT11(10),
LT12(10),
LT13(10),
LT14(10),
LT15(10),
LT16(10),
LT17(10),
LT18(10),
LT19(10),
LT20(10),
LT21(10),
LT22(10),
LT23(10),
LT24(10),
LT25(10),
LT26(10),
LT27(10),
LT28(10),
LT29(10),
LT30(10),
LT31(10),
" TOTAL LEAVES OF SPECIFIC TYPE FOR A MONTH
EL_T LIKE PA2001-ABWTG, " EARNED LEAVE
CL_T LIKE PA2001-ABWTG, " CASUAL LEAVE
SL_T LIKE PA2001-ABWTG, " SICK LEAVE
ML_T LIKE PA2001-ABWTG, " MATERNITY LEAVE
OD_T LIKE PA2001-ABWTG, " OUTDOOR DUTY
CO_T LIKE PA2001-ABWTG, " COMP OFF
WO_T LIKE PA2001-ABWTG, " WEEKLY OFF
PH_T LIKE PA2001-ABWTG, " PUBLIC HOLIDAY
PRE_T LIKE PA2001-ABWTG, " PRESENT DAYS
LWP_T LIKE PA2001-ABWTG, " UNPAID LEAVE
TOT_T LIKE PA2001-ABWTG, " TOTAL PAID LEAVE
ABS_T LIKE PA2001-ABWTG, " TOTAL PAID LEAVE
V_GT LIKE PA2001-ABWTG," GRAND TOTAL OF ALL PAID LEAVES -
Dump in prodcution server while downloading ALV report to excel sheet
HI ALL,
ALV report is working fine in bother DEV and PROD servers....but in production while downloading report to excel sheet it is going to dump.
"dump is below:
Short text
Field symbol has not yet been assigned.
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLKKBL" had to be terminated because it has
come across a statement that unfortunately cannot be executed. "
But in development this problem is not there, iam able to download ALV report to EXCEL sheet.
Any help experts......
Thanks in advance
RamHi,
I had the same problem,
Run a consistency check for your ALV and you will find out. See if you havent passed any unnecessary parameter to FM.
/people/rainer.hbenthal/blog/2009/09/25/sos--my-alv-report-is-not-working
Dump while printing ALV (field symbol not assigned)
Sumit -
Re: Increasing Column Header Length While Printing in ALV Grid
Hi
For some column headers in a report, the translations in Turkey are more than 40 characters, because of which while executing the report in TR language, the column header is getting truncated.
So, I would like to know if we can increase the column header length while printing the ALV Grid(OO ALV) output.
Or else, Is there any way where we can divide the column header into 2 rows.
Please let me know.
Thanks and Regards,
Vishwa.Jose and Sivaram,
Thanks for replying.
The problem we have is with the column headers, there is a limit of 40 characters for the column header in ALV reports. So, increasing the outputlen also did not help.
Regards,
Vishwa. -
Few columns in ALV report while printing move to next page
Hi,
While printing, 14 columns are printing in first page and the next 5 cols in next page, how do u resolve this to accommodate all the 19 columns in a single page?
Regards,
Chitwanjit SinghHi Chitwanjit,
You can optimize your coloumn width in the layout like -
gd_layout-colwidth_optimize = 'X'.
May be this will help.
Thanks and Regards,
Nidhi Srivastava -
ALV Grid -- Heading in each and every page while printing
Hello!!!!
How to display heading in ALV Grid in each and every page while printing?
Thanks in Advance!!!!!!Hi nitesh,
<b>data: lt_list_commentary type slis_t_listheader.
perform build_comment using
lt_list_commentary.
form build_comment using
pt_list_commentary type slis_t_listheader.
data: ls_line type slis_listheader.
clear ls_line.
ls_line-typ = 'H'.
ls_line-info = 'SREEKANTH REDDY'.
append ls_line to pt_list_commentary.
clear ls_line.
ls_line-typ = 'H'.
ls_line-info = 'HEADER1'.
append ls_line to pt_list_commentary.
clear ls_line.
ls_line-typ = 'H'.
ls_line-info = 'HEADER2TEXT'.
append ls_line to pt_list_commentary.
clear ls_line.
endform.
</b>In Function module REUSE_ALV_COMMENTARY_WRITE , give the parameter as
<b>it_list_commentary = lt_list_commentary </b>
Here ls_line-typ = 'H'. you can use options like 'H' , 'A' , 'S'. -
Merging of same records in columns while printing
Dear All,
Kindly let me know how to merge same records in a column while printing.
I used ALV_GRID_DISPLAY and merged using sort in LIST but not able to get the same while printing.
Regards,
KarthikHi Karthik,
Check this link which deals with printing the Report while creating Report and after execution of the Report.
Path:
BC ABAP PROGRAMMING->ABAP USER DIALOGS->LISTS->PRINTING LISTS.
Link:
<a href="http://help.sap.com/saphelp_46c/helpdata/en/9f/dba54635c111d1829f0000e829fbfe/content.htm">http://help.sap.com/saphelp_46c/helpdata/en/9f/dba54635c111d1829f0000e829fbfe/content.htm</a>
Cheers,
Prashanth -
Increasing the font size of an ALV report while printing it.
The requirement is to increase the font size of an ALV report while printing it. The ALV Report is coded using the Factory method.
I could find a class called CL_SALV_ITEM with a SET_FONT method but I am not sure how to link it with the CL_SALV_TABLE class from which the display table has been created. I even tried checking the report display in SPOOL transaction SP01.But I guess the font shown there depends on the SAP GUI settings.
Do you have any suggestions?
Thanks and regards
SathyaThe status bar is a fixed fontsize which does not change. While I have no problem reading the time off the status bar you should also have the time on the lockscreen and/or glance screen with a much larger font so I do not really see the issue.
I have all my music on SkyDrive so would not know for sure, but check out THIS to see if it serves your needs.
Click on the blue Star Icon below if my advice has helped you or press the 'Accept As Solution' link if I solved your problem.. -
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 -
How to trigger New page while using ALV with classes/oops?
Hi All
I am trying to print a report which has to show the data in two pages.
I am using ALV with classes/oops.
Though I am able to print the report but a new page is not coming. Whole of the data is coming in one single page.
Please tell me as to how to trigger a NEW PAGE while using ALV with classes/oops.
Please send some code samples also if available.
Thanks in advance.
Jerryusing sort option you can do it. in case of grid/oo alv class ALV you can view that only in print mode/preview mode.
in case of list you can view that directly.
sort-fieldname = 'FIELDNAME'.
sort-group = '*' "triggers new page
sort-up = 'X'.
append sort to it_sort.
Maybe you are looking for
-
Search help exit for CSH_T003 not working in FB60
Hi. We need to restrict document types per transaction code. I know we can use authorisations but it would look nicer to actually restrict the list available, so the user can only choose a valid one, rather than choose any but then be told of authori
-
Is Bad ESN Phone can be reactive?
just want to know is the Bad Esn iPhone4 can be reactive again?
-
Hi I am on WAS 6.40. And have defined my two own RFC's to be used for GetDetail and GetList. When I am generating the SyncBo. It gives the following error <b>'Function modules from the function pool Z_MEREP_GEN_T01_ZMIDELV contain syntax errors'</b>
-
Windows authentication for SQL 2005 DB connect
Hi all, I'm trying to create a DB connect in the connection parameters when I mention a user name and password who is created as a SQL authentication then it is working fine. but in my connection parameters if I mention a user name password who have
-
When I hit the home key Firefox takes me back to my homepage (AOL) but also opens up a new Mozilla Firefox Start Page tab. I end up with a whole bunch of unwanted tabs. == This happened == Every time Firefox opened == always