ALV report Print out.
Hi,
I have developed a ALV report .
I also want to take the print out of this report.
How can i do this.
Hi,
Refer this code
DATA : wa_variant TYPE disvariant, "Work area for variant
wa_variant1 TYPE disvariant, "Work area for variant
wa_layout TYPE slis_layout_alv, "Work area for layout
wa_print TYPE slis_print_alv, "Work area for print
*& Form sub_alv_display *
This form displays the output using REUSE_ALV_GRID_DISPLAY *
function module *
FORM sub_alv_display .
*--Local Internal Table
DATA : li_sort TYPE slis_t_sortinfo_alv.
*--Define print list
wa_print-no_print_listinfos = c_chk.
wa_print-no_coverpage = c_chk.
*--If the No zero stock lines is checked in the selection screen
IF p_sline IS NOT INITIAL.
DELETE i_final WHERE einme = c_zero.
ENDIF.
IF NOT i_final[] IS INITIAL.
*--Call the function module to display the ALV report
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = v_repid
is_layout = wa_layout
it_fieldcat = i_fieldcat
i_default = c_chk
i_save = c_save
is_variant = wa_variant
it_events = i_events
is_print = wa_print
it_sort = li_sort
TABLES
t_outtab = i_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.
ELSE.
*--No data found for the given selection criteria.
MESSAGE i001.
LEAVE LIST-PROCESSING.
ENDIF.
ENDFORM. "sub_alv_display
Regards,
Prashant
Similar Messages
-
Hi Experts,
I am having problem while taking print out of Alv report format. In that report, 1 column contains Unit Values.
Eg. Unit value - 'LE' , AFTER USING CONVERSION EXIT LOGIC it is converted into 'AU' which is finally displayed in the Alv -Report display format.
while taking Print-out of that report , that field Unit Value 'AU' is Shown in this format "****'.
Please give me your Valuable Suggestions.
Thanks and Regards
BalaNarasimman Mwhile defining filed catalog define the data type also
clear l_fieldcat.
l_fieldcat-fieldname = 'MEINS'.
l_fieldcat-datatype = 'UNIT'.
l_fieldcat-no_out = ' '.
l_fieldcat-do_sum = 'X'.
l_fieldcat-seltext_l = 'UOM'.
append l_fieldcat to p_fieldtab.
may be it would help.
anya -
Hi All,
can any one tel the solution fort me
is there any function module to print ALV report with out giving print option manually( user press print button)Hi,
execute that report and on output list GOTO LIST->PRINT.
OR
if u want to print the code itself then PROGRAM->PRINT.
In the output screen
GOTO LIST IN THE MENU
SELECT EXPORT IN IT
THEN SELECT EXPORT SPREAD SHEET
to get other basic format for the alv output.
-Thanks & Regards
Saurabh Goel -
Crystal Report Print Out Template
Hi Dear;
How can i create or from where can i Get Crystal report print out template for sales and purchasing Documents in SBO 8.8
best regards;Link for documentation of B1 8.8
https://websmp104.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000680297&_SCENARIO=01100035870000000183&_ADDINC=011000358700002837782005E&
Thanks
Krish -
Text above an ALV-Grid print-out
It is possible to set a Text above an ALV-Grid print-out?
hii
yes you can print header in ALV & it will come in print out.use following code
DATA: i_listheader TYPE slis_t_listheader WITH HEADER LINE,
w_date like sy-datum.
move:
'H' TO i_listheader-typ,
TO i_listheader-info.
* text-021 TO i_listheader-info.
APPEND i_listheader.
WRITE sy-datum TO w_date.
move:
'S' TO i_listheader-typ,
'Execution date' TO i_listheader-key,
w_date TO i_listheader-info.
APPEND i_listheader.
MOVE:
'S' TO i_listheader-typ,
'Execution user' TO i_listheader-key,
sy-uname TO i_listheader-info.
APPEND i_listheader.
Move:
'Discription' to i_listheader-key,
'Tolling Production Variance' to i_listheader-info.
APPEND i_listheader.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = i_listheader[].
<REMOVED BY MODERATOR>
thx
twinkal
Edited by: twinkal patel on Jun 12, 2008 2:51 PM
Edited by: Alvaro Tejada Galindo on Jun 12, 2008 1:33 PM -
Problem in ALV report printing
Hi,
I am facing issue while printing the ALV report. The no. of columns in output are dynamic.
System is giving the printout for 9 columns . If no. of columns are increasing than its printing only one line with garbage values.
Can anybody help to fix this issue. We need print of 27 (3 static + 24 dynamic (for 12 months)) columns in one go.
Thanks in advance,
Vijeta
Moderator message - Moved to the correct forum
Edited by: Rob Burbank on Jun 9, 2009 9:30 AMHi
The font size depends on the format you've choosen for the print.
The abap list arranges the page as grid: colunmXrow.
Every colunm of a page means a character.
If you use the standard format X_65_200, it means you're page is arranged for 65 row and 200 colunm:
that means the size of a character is optimized to can print 200 chararcter in a A4 page.
If you use the standard format X_65_132 it means you're page is arranged for 65 row and132 colunm:
that means the size of a character is optimized to can print 132 chararcter in a A4 page.
So that mean the size of format X_65_132 will be bigger than X_65_200, because in the same space (page A4) it needs to write 132 char instead of 200.
If your report print NN char, u should use the format wiith number colunm is closer to NN.
If there isn't a format or u use the first available format or u create a new one by trx SPAD.
Max -
ALV Report Print Problem.
Hi,
When I Print any ALV Report then In the First Row BackColor is white,
but in Second it is Gray,and this alternative for all remaining rows,
How Can I SET it to White For ALL Rows.
Thx,
Hitesh Jain.Hi Jain,
I'm not aware of a way to wrap the test or set break points in an ALV report. Typically I just try to reduce the number of columns to print and determine if the data is truly needed or just redundant.
To change the font, you need to change the Format setting. This setting is in the same popup box I described earlier. This time under General Properties, double click on Format. Just play around with the different Format options loaded. If you need additional formats, you should work with your BASIS team because it depends on the Output Devices that are loaded in your system.
Otherwise, you may just need to export the ALV report into Excel to make it "pretty". In Excel, you could create a macro to automate your formatting steps. Just a thought.
Good luck,
Cindy -
ALV Report Print problem after 255 character line size
Hi ABAP Gurus,
I have created one alv report where i am getting output more then 255 character line size.
so whenever i tried to print this report it print only line upto first 255 character and truncated after it in printing.
is there any way i can print this report without truncation ....
Thanks,
Jackno there is no such way because you acan print at most 99 columns and utmost 255 characters .
and alternative is take your filed in separate screen and make it appear through hotspot in another filedcatalog.then u will get more space .
reward if useful
keep rockin
vivek -
When trying to print an ALV report (Ctrl+P), printer has issues due to the shading (backgound colors) of the report.
So here is my question,
Is there a way to supress the report formatting while printing?
or
Can you convert an ALV into an unfomatted basic report?In the output screen
GOTO LIST IN THE MENU
SELECT EXPORT IN IT
THEN SELECT EXPORT SPREAD SHEET
to get other basic format for the alv output. -
ALV Report printing to A3 format
Hi
We have written an ABAP ALV report to extract information from any number of Sales Orders from a given set of criteria. A number of layouts have been created. The layouts have been defined by the business (as they wanted the same format as they were previously used to). The default layout is about 337 columns wide, thus sending it over the 255 A4 limit. I can print the layout on an A4 landscape on 2 sheets of paper, but this is not practical when you have up to 30 pages of content (thus 60 sheets of A4 paper).
As such, I am experimenting with printing to A3. This is what I have tried so far (from information gleaned from Forum posts and elsewhere):
Created a new Page Type (used template DINA3 to create ZDINA3.
Created a new Format Type (e.g. Z_65_400_A3) and use ZDINA3 with 65 rows and 400 columns.
Assigned this new Format Type to a Device Type, in this case, SWIN.
In the Device Type, I have had to change the List Handler printer driver to "Print driver for SWIN using SAPLPD/Windows", otherwise I end up with 3 lines.
I have also set the paper size on the printer to A3, but nothing else. Leaving this as A4 results in an A4 print!
I have set up a number of Escape characters in the Device Type configuration:
Printer Initialzation
SAPWIN data stream
\e%SAPWIN%
\i<::XPAGES>
\i<::XPGINIT>
\i<::XPARAM>
\i<::XLINEMOD>
\i<::XFONT>
End Of Page
\f
End of Line
\n
XLINEMOD: Line handling
##usage: Line handling
##DO NOT CHANGE the first two lines!
output complete line with one call (do not use for proportional fonts)
\eOa1
XPARAM: Local settings
##usage: Local settings
##DO NOT CHANGE the first two lines!
Schrift 5 Punkt einstellen.
\eS92X
#8,5 lpi
\el8.5;
XPGINIT: Orientation
##usage: Orientation
##DO NOT CHANGE the first two lines!
Landscape-Mode
\ePL
I have tried to use the same example as <a href="http://www.sap-img.com/basis/how-can-i-print-a3-format-in-sap.htm">http://www.sap-img.com/basis/how-can-i-print-a3-format-in-sap.htm</a> but although I am getting an A3 sheet of paper, there are still issues with it:
Portrait instead of Landscape
Text appears to be double line spaced
Font is very small (believe this can be resolved by specifying the size of a font)
Firstly, any tips or tricks on printing to A3?
Secondly, what is the List Driver checkbox used for on the Format Type (other than to show the portrait and landscape page types)?
I do tend to scan these forums before posting, but in this case I have not managed to resolve this by looking in the Forum or elsewhere.
Many thanks
NickHi
Due to getting no joy with this, I ended up creating an A3 Smartform and using a Windows printer capable of printing it. I also have the option of an A4 or A3 sheet in the Selection Screen, so this gives me the output in the format that was needed.
Defining a Printer Output definition proved too tricky and I had to find a way to do it.
Whether you can use a Smartform to print your ALV grid across several pages I do not know, but might be worth considering. I used a custom print button to trigger the correct page size (as selected on the Selection Screen).
Regards
Nick -
Sir,
I would like to take print out of selected line items ( i.e selected rows ) . Is it possible
through standard report MIR6 . And if yes please tell me how?. or any other option.
thanks.
Manoj.MIR6 is only a list of invoices (ERS ...), so what exactly do you want to print?
the document for the invoice itself? that is not possible. in order to print the document you have to use the dedicated print-transaction for the document, like for example MR90. -
Hello Experts,
I need a solution to this, am sure its been done before. I would like to print out a report, actually payslips such that instead of each payslip on a diffrent paper, it just prints on the other side of the paper, as in on the right but I don't mean behind the paper.
thereby saving paper.
How can this be done ? Please help urgently.what is the input parameter of the report
(how you want to select those two employees)
Thanks
Krish
This is duplicate thread -
Hi all
I have a problem when i print my alv grid report it first prints the title page then the revelent pages can i remove that title page.
thankshave you checked with your windows administrator??
-
Hi Experts,
I hv been used the COL_NEGATIVE and COL_TOTAL in my classical report for the SubTotal purpose. On the screen, they r looking fine.
But,
When am printing it on SAP Printer, am getting like, /////////////////////// over my totals!
So,
Is it my printer fault?
OR it is a property of theses clours? I mean, I need to change the clour to like, CLO_KEY!
thanq.Hi
No doubt it is purely a Printer problem
certain printers will behave like that for colors
I hope there is some OSS note also reg this
If you wants to take out print of the Report
better don't give colors to the fields and the data
Reward points for useful Answers
Regards
Anji -
Multiple Report print out on Check box click
Hi,
I am using version apex_3.2.
I have created Report and define check box in report. i want to give print functionality on check box. As i tick multiple invoices from report and click on print link defined below to the report, Selected Invoices should be printed. How i can do this?
Thanks & regards
VedantHello Vedant,
<li> Do you already have a report that will accept multiple invoice numbers as input and generate required "Invoice Report" for you?
<li> If Yes - Are you looking to generate URL based on user check-box selection? If so, please provide sample URL format which will accept multiple invoice numbers.
<li> If No - I think first you should create such report (I have limited knowledge on Oracle Reports though)
Regards,
Hari
Maybe you are looking for
-
Changing keyboard on the Macbook macbook pro
Hello all, I am really considering switching to Mac soon... I have a question regarding the Macbook keyboard. I was actually wondering if it is possible to change the keyboard on it easily or via an apple store. I'm in france and we have a AZERTY key
-
Problem while opening suggested links
I Can't open the links which are suggested to me when I start typing in the address bar.. I can't even open a link by pasting the URL in the address bar and clicking Enter.. the only way of opening links is now by clicking a bookmark or by writing a
-
How to reinstall apps after moving itunes files
I love my iPad. I use 100+ apps and the iPad everyday for work en privat, sync several e-mail accounts, read books, edit photo's, and so on. I synced my iPad on my PC in our netwerk. At one moment I discovered, that it was part of my roaming profile.
-
A new addition to AE CC is "Replace With Precomp" which you can access with the context menu in the project panel. Is there a method that was added to After Effects so that we can access this feature via scripting?
-
Camera raw converter epl-2 .orf to DNG
Is there a camera raw plug in for Lightroom 2 that converts epl-2 orf to a dng or raw file. I want to be able to use my epl-2 .orf files in the version I have of Lightroom which is Lightroom 2