Alv report Print out Problem
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 M
while 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
Similar Messages
-
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 -
ALV Report with Logo .. Print Out Problem
Hello Guys..
I am facing and differerent problem , I have created one Report in ALV contain logo of my company and some other details as per selection screen.
At the time of taking printoput the logo is not coming in print out only report data is coming.
How I take logo and ALV report in one print out .
Please do the needful.
Regards
Swati....We Can't take logo of ALV in print out.
-
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 -
ALV Report performance & export problem
Hi,
We have developed an complex ALV report which accesses the data from FI Tables like BKPF, BSEG, BSAK etc., There are almost 100 lac records in BSEG and every day around 20000 records are getting added to that. Eventhough I have used specific search criteria, system is taking lot of time. Due to this I forced to run the report in background. In background also it is taking around 4 - 6 hours.
1) How can I improve the performance of the report. Especially to access data from huge database table like BSEG with lot of conditions. Any best practices
2) I want to have an option (at selection screen) to get the report directly saved in a Excel file at desired path.
Please help me.
Thanks in advance,
MallikHi Mallik,
Already i faced this problem before. At that time i follow some precuations:
1) Check the estimation cost for that report with the basis people.
2) The selection fields mentionedin the select statement and fields order in the internal; table should match with order of Data base fields order.
3) Define type statements and then refer internal table to that types.
4) Define secondary indexes in the where condition properly.
5) Add BINARY SEARCH to read table statement.
6) if possible attach package size n to the select statement.
7) Avoid nested loops and nested selects.
8) After populating the final internal table free all the internal tables.
9) check how much time taking for each select statemnt through SY05.
Hope this helps you. reply for queries.
Regards,
Kumar. -
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. -
Hi all,
We are facing the problem while taking the print out from VF02.
We are using ZFORM designed by our ABAPer.
While using standard form (LB_BIL_INVOICE) its working and while using ZFORM, we are able to see the print preview but not able to take the print out.
Error message is shown as given below
"Output could not be issued"
Message no. VF304
Diagnosis
An error occurred while output was being issued. It is possible, for example, that the form to be issued has not been activated or has an error. An error may also have arisen while the data to be issued was being edited.
Procedure
Check possible causes of the problem.
Thanks in advance,
BabsHi babs
Go to VV32 and check wheather the condition record has been maintained or not.In VV32 .
check the access sequence , wheather it is billing type / payer in your output type RD00 .so only for that particular payer only that ouput may be generating . .But also see in the V/40 wheather for the billng type the ZFORM which you have created has been assigned or not .
Regards
Srinath -
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 -
Report Printing Height Problem
Hello All
The furthur detail to my previous problem is given as follows:
I am getting problem
with the Oracle reports. I have a dot matrix printer (Epson LQ-300, which is a
tractor feed printer). While printing a report which is always not more than half a
page, the printer does not stop after printing the report(the half page). It stops at
the end of the page. I mean that half the page is printed and the rest half is blank.
I want that the printer should print only at half a page. On the blank half it should
print another copy of same report.
Regards,
Qaiser Qayyum Malik.hello,
you need to set your printer to the correct page height. reports prints paginated, meaning it issues a page feed comand after each page to ensure the next page really starts at the correct position, the start of the next page.
if your pritner is set to full page height,then the page feed command forces the pritner to skip the remaining free space on the page. the page size in reports and on your printer need to be the same. so if your report layout is based on a half page (e.g. US letter, 8.5"x11 ... half would be only 5.5" high) then your printer needs to be set the same, meaning with every page feed it only advances 5.5" if that's not the case. you will have to change your report layout to fit the printers page size.
thanks,
ph. -
hi!
I have a little problem with print out.
I want to print out like this:
about two cm space between each number.
I have 4 columns and 4 rows
for(){
System.out.println(a+" "+b+" "+ d+" "+e);
}How do I write?I think that you mean *\t*. :)
So the code would become:
System.out.println(a + "\t\t" + b + "\t\t" + d + "\t\t" + e);{code}
OR
{code}System.out.printf("%d\t\t%d\t\t%d\t\t%d", a, b, d, e);{code}
Maybe you are looking for
-
I have verified my new email address as my Apple ID but my IOS devices keep asking me to sign in to my previous email/Apple ID but have no access to it. How can I stop or change this?
-
ITunes 9.2 Not Responding
I recently updated my iTunes to 9.2 and iPod Touch to iOS4. Here is a list of instances where iTunes stops responding and freezes: - When I "Check For Available Downloads" - When I click on TV Shows menu option "Mark As Watched" - When I try to "Impo
-
Automatic clearing not happend for Rebate Accruals
Hi SAP Experts, The rebate agreements are settled and payment is made for all rebate accrual posting for the previous quarter but automatic clearing has not happened. Can anybody give me some input where to check for the automatic clearing for the re
-
ScrollBar HELP Needed!!!
Hello, I am developing a swing front end, however the size of the screen has grown quite large and at low resolutions I cant see some areas of the JFrame. I need to be able to add a JScrollBar to the JFrame so that I will be able to scroll down to th
-
Does anyone know of a way to edit caf files? I got some caf files from the web and I want to change it to make the volume louder. Are caf files like mp3 files where I can just run it through some encoder and change it's properties (like volume etc)