Classical Report Output...
Hi Experts,
I have made one classical report whose output is coming upto 4-5 pages depending on user input. But when we will take the printout of this, user want that print to be on only single A4 size paper...Please guide me..
Thanks in advance...
Best Regards,
Vinayak
Hi,
Please go through the below link or else search for Classical report with multiple pages output.
[http://www.scribd.com/doc/7366175/02-ABAP-Book-Intelli-Reports]
[Change of Normal Classical Report to ALV Report;
Regards,
Vijaya Lakshmi.T
Similar Messages
-
Download a classical Report output to excel
Hi All,
We have a requirement to download the output of a classical report into a Excel sheet and it should be in the same format as the report output.We don't just want to dump the internal table data into excel but need to display the classical report outputas it is in the excel sheet.
Regards,
AshishHi there,
I am not sure on your requirement, but if you want to write a program that manipulates Excel, you can choose to use OLE objects. Below is some sample code.
REPORT ZTEST_EXCEL.
INCLUDE ole2incl.
DATA: application TYPE ole2_object,
workbook TYPE ole2_object,
sheet TYPE ole2_object,
cells TYPE ole2_object.
CONSTANTS: row_max TYPE i VALUE 256.
DATA index TYPE i.
DATA: BEGIN OF itab1 OCCURS 0, first_name(10), END OF itab1.
DATA: BEGIN OF itab2 OCCURS 0, last_name(10), END OF itab2.
DATA: BEGIN OF itab3 OCCURS 0, formula(50), END OF itab3.
*START-OF-SELECTION
START-OF-SELECTION.
APPEND: 'Peter' TO itab1, 'Ivanov' TO itab2,
'=Sheet1!A1 & " " & Sheet2!A1' TO itab3,
'John' TO itab1, 'Smith' TO itab2,
'=Sheet1!A2 & " " & Sheet2!A2' TO itab3.
CREATE OBJECT application 'excel.application'.
SET PROPERTY OF application 'visible' = 1.
CALL METHOD OF application 'Workbooks' = workbook.
CALL METHOD OF workbook 'Add'.
* Create first Excel Sheet
CALL METHOD OF application 'Worksheets' = sheet
EXPORTING #1 = 1.
CALL METHOD OF sheet 'Activate'.
SET PROPERTY OF sheet 'Name' = 'Sheet1'.
LOOP AT itab1.
index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
SET PROPERTY OF cells 'Value' = itab1-first_name.
ENDLOOP.
* Create second Excel sheet
CALL METHOD OF application 'Worksheets' = sheet
EXPORTING #1 = 2.
SET PROPERTY OF sheet 'Name' = 'Sheet2'.
CALL METHOD OF sheet 'Activate'.
LOOP AT itab2.
index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
SET PROPERTY OF cells 'Value' = itab2-last_name.
ENDLOOP.
* Create third Excel sheet
CALL METHOD OF application 'Worksheets' = sheet
EXPORTING #1 = 3.
SET PROPERTY OF sheet 'Name' = 'Sheet3'.
CALL METHOD OF sheet 'Activate'.
LOOP AT itab3.
index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
SET PROPERTY OF cells 'Formula' = itab3-formula.
SET PROPERTY OF cells 'Value' = itab3-formula.
ENDLOOP.
* Save excel speadsheet to particular filename
CALL METHOD OF sheet 'SaveAs'
EXPORTING #1 = 'c:\temp\exceldoc1.xls' "filename
#2 = 1. "fileFormat
* Closes excel window, data is lost if not saved
* SET PROPERTY OF application 'visible' = 0.
Edited by: Thung Yuen Yap on Aug 10, 2010 1:52 PM -
Classic report output to image format
Hi Guru's
Please Help me out.
Bussiness users want to convert Classic report output to any of the Image format(e.g. Bitmap, jpg. etc.....) and then store in MIME Repository.
Please help me in this regards
Thank you,
Arbindhi arbind,
u can follow up wd SAP NOTE 1219077 ,
OR can follow d link
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do
it will gv u idea about the similar problem
hope it helps u ...
regards,
prashanti -
Formatting problem when downloading classical report output to excel sheet.
Dear Experts,
My classical report o/p looks like:
SI Name ID
1 xyz 11
2 abc 22
3 eet 33
4 jnc 44
When I download the same to a excel sheet from List->Save->file->Spreadsheet and save it.
The formatting looks like this:
SI Name ID
1 xyz 11
2 abc 22
3 eet 33
4 inc 44
That is the heading and column entries are in different columns.
There is no GUI_Download used.
Kindly help what may be the issue.Hi,
In the report output the formatting looks fine. It is exactly below the heading. But only when I save it to excel, this alignment issue is coming. Even the columns after this column are are properly aligned and there is no issue at all. Only this column in the middle has issue. -
In SAP 4.6c In classical reports output how to change Font size and Font type
Dear Experts,
In SAP 4.6c, in classical and interactive reports output how to change font size and font type.
Regards,
Zaker.These are HTML formatting questions. Nothing to do with the Oracle SQL and PL/SQL languages.
With old-style HTML, the font size and family are set using the font tag.
With modern style HTML, that is done using cascading style sheets (CSS).
Your favourite search engine will turn up tons of information on both. -
Displaying pages in classical report output
Hi all,
I am developing a report. In the report output I am displaying 4 lines. When I click on 1st line then list will display but on the second page after the intial output page and when I click on 2nd line then list will display on the third page after the second page.
My requirement is when I click on each line it will display the related page.
I can get the page and page line by the syntax:
read line 1 of page sy-index.
But how to display this one.
Suggest.
Thanks
Sanket sethihiii
for selecting lines like you gave in example..you can use
AT LINE-SELECTION.
CASE sy-lilli.
WHEN '5'.
logic for display page 2nd.
WHEN '6'.
logic for display page 3rd.
WHEN '7'.
logic for display page 4th.
WHEN '8'.
logic for display page 5th.
ENDCASE.
regards
twinkal -
Generate Spoool from classical report output
Hi ,
I have created a report with classical output.
for that i want to generate spool.
is there any FM or other way of generating spool from the outputHi,
Declaration of local constants
CONSTANTS : lc_paart LIKE sy-paart VALUE 'X_65_132', " Paper Format
lc_locl TYPE sypdest VALUE 'LOCL'. " Destination
If print option is selected.
IF p_print IS NOT INITIAL.
MOVE c_x TO v_print.
ELSE.
CLEAR v_print.
ENDIF.
Setup the Print Parmaters
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
authority = space
immediately = v_print
new_list_id = c_x
no_dialog = c_x
user = sy-uname
IMPORTING
out_parameters = v_print_parms
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc NE 0.
CLEAR : v_print_parms.
ENDIF.
The printer destination has to be set up
IF v_print_parms-pdest = space.
v_print_parms-pdest = lc_locl.
ENDIF.
Explicitly set line width, and output format so that
the PDF conversion comes out OK
v_print_parms-linsz = c_linsz.
v_print_parms-paart = lc_paart.
Then u need write like this..
NEW-PAGE PRINT ON PARAMETERS v_print_parms NO DIALOG.
Perform output_display.
NEW-PAGE PRINT OFF.
Regards,
Nagaraj -
Display a text as blinking in classical report
Hi experts,
I've to display a text as blinking in classical report output.
Is this possible? If possible, how to do this? Need your help.
With regards,
Goutamhi goutam
I am assuming that you want the text as Static and not data from some sap table
For that
what you can do is add a png image which is blinking through OAER and call that in your report ..
Also did you try the Tcode DWDM .. ?
OR you could use RSDEMO_HTML_VIEWER ...
Hope this helps
Regards
Manthan. -
Hi Experts,
I need to develope a report whose outout is a file and need to send that file as SMS to blackberry mobile. Is there any facility SAP R/3 provides for direct sending the output as SMS to mobile phone. Pls help mehi,
try this link for sample code
How to convert classical report output to PDF -
Classic Report CSV output failed to parse SQL query
Hi,
I'm trying to get a CSV output from a classic report. I'm generating the report based on a PL/SQL block that will return an SQL query. But when i download the CSV excel just gives me a:
failed to parse SQL query:
ORA-00936: Missing expression
and shows me the query that the application is trying to parse. I'm also using bind variables (page items) in the PL/SQL block that is returning me the SQL query. I think that the reason that it fails to parse the query is that the query that is shown in excel has no bind variable values.
Anyone got any ideas?Hi Arif,
run your page in debug mode and check out the SQL statement which is actually executed for the report. That might help to diagnose what is going wrong.
If you wish you can also post the report SQL statement which is getting executed.
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
In classical report list output checkbox is value is not changed
Hi Abapers,
I am developing one classical report program, out put list hast one check box.
I need to read wheather checkbox is checked or not dynamically .
but the check box value is not changed if I check or uncheck How can I
solve this problem.
Regards.
Shashikumar.GHi Abapers,
I codded as.
DATA: CHKBOX TYPE C.
WRITE: CHKBOX AS CHECKBOX INPUT ON.
it will be displayd on output list if click on it It will be ticked or unticked it is fine.
but the value of chkbox is not changed.
but I need to change the value of chkbox regarding to clicking on it(check, uncheck).
Regards,
Shashikumar.G -
Getting the classical report's output automatically to local disk
hi gurus,
i need to save the classical report's output into my local disk as soon as the user executes the report or press F8. Mind well, it should not be manual. I know the manual way system->list->save.
GauravCheck this function module.
"SO_NEW_DOCUMENT_SEND_API1"
Check this link for ,Download a report to excel with format .
http://www.sap-img.com/abap/download-to-excel-with-format-border-color-cell-etc.htm
Check this link for sample program.
How to download a ABAP report to text file
Regards,
Maha -
Print LOGO in classical report printout
Hi GURUS,
Is it possible to take print of logo in classical report.refer this link:[click|http://tinyurl.com/5s22vp]
the code is copied from that link.
Make the changes in the code as given below.
REPORT zgb_prog06.
* START OF DO NOT CHANGE***********************************
DATA: docking TYPE REF TO cl_gui_docking_container,
picture_control_1 TYPE REF TO cl_gui_picture,
url(256) TYPE c .
DATA: query_table LIKE w3query OCCURS 1 WITH HEADER LINE,
html_table LIKE w3html OCCURS 1,
return_code LIKE w3param-ret_code,
content_type LIKE w3param-cont_type,
content_length LIKE w3param-cont_len,
pic_data LIKE w3mime OCCURS 0,
pic_size TYPE i.
* END OF DO NOT CHANGE*************************************
DATA : sum(4) , num1(4) , num2(4).
PARAMETERS: p_dummy(4) DEFAULT '4' .
PARAMETERS: p_dummy1(4) DEFAULT '5' .
AT SELECTION-SCREEN OUTPUT. "Remove this event
START-OF-SELECTION.
write 'Testing picture printing in classic report'.
PERFORM show_pic. "Add it here
end-of-selection.
*& Form show_pic
FORM show_pic.
DATA: repid LIKE sy-repid.
repid = sy-repid.
CREATE OBJECT picture_control_1 EXPORTING parent = docking.
CHECK sy-subrc = 0.
CALL METHOD picture_control_1->set_3d_border
EXPORTING
border = 5.
CALL METHOD picture_control_1->set_display_mode
EXPORTING
display_mode = cl_gui_picture=>DISPLAY_MODE_FIT.
CALL METHOD picture_control_1->set_position "change positions
EXPORTING
height = 70
left = 800
top = 20
width = 190.
*CHANGE POSITION AND SIZE ABOVE***************************
IF url IS INITIAL.
REFRESH query_table.
query_table-name = '_OBJECT_ID'.
*CHANGE IMAGE NAME BELOW UPLOADED IN SWO0******************
query_table-value = 'ZLOGO'.
APPEND query_table.
CALL FUNCTION 'WWW_GET_MIME_OBJECT'
TABLES
query_string = query_table
html = html_table
mime = pic_data
CHANGING
return_code = return_code
content_type = content_type
content_length = content_length
EXCEPTIONS
object_not_found = 1
parameter_not_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
type = 'image'
subtype = cndp_sap_tab_unknown
size = pic_size
lifetime = cndp_lifetime_transaction
TABLES
data = pic_data
CHANGING
url = url
EXCEPTIONS
OTHERS = 1.
ENDIF.
CALL METHOD picture_control_1->load_picture_from_url
EXPORTING
url = url.
*Syntax for URL
*url = 'file://D:\corp-gbanerji\pickut\cartoon_184.gif'.
*url = 'http://l.yimg.com/a/i/ww/beta/y3.gif'.
ENDFORM. "show_pic -
Triggering END_OF_PAGE IN CLASSIC REPORT
Hi Experts,
I have one classical reporting in that END_OF_PAGE is not Triggered At last Page due to Less No of Records in last Page,can anyone
tell me how to trigger END_OF_PAGE . i want to display the page total for every page but for last page i cant display Page total Due To Less
No Of Records can any one suggest how to solve this problem.
Thanks in advance.Hello,
If you read F1 help, it is mention as below.
Effect
This statement defines an event block that is raised by the ABAP-runtime during creation of a basic list, if there is a line reservation in the addition LINE-COUNT of the initiating statement for a page footer, which was reached while writing to this page. A list output that takes place in the event block, is placed in this area. Output statements that exceed the reserved area will be ignored. -
How to display the text in a classical report before top-of-page?
Hi all,
I am developing a classical report with top-of-page because i want to display the texts of cloumns even users scroll down the output.
But here the problem is i have to display a text and selection screen values in the ouput ,Before this top-of-page. But i couldn't find the way to do it.
Please help me on solving this problem?
Thanks,
Vamshi.Hi Vamsi,
whenever there is write statement and you are going to display some thing the system checks for the TOP-OF-PAGE and we are helpless here
so declare your heading in the TOP-OF-PAGE only
THIS is SAP provided way of the SYSTEM bahaviour
Regards
ramchander Rao.k
Maybe you are looking for
-
ITunes not opening when device connected
About a week ago, iTunes stopped opening when I connected my iPhone. If I then open iTunes manually, the device will be recognized and will sync. I checked in the system preferences and my Login Items had iTuneshelper checked, but the icon was a bl
-
Scratch Folder issue in APP-V 5.0
Hi, My application required two times reboot while seq'g, 1. cafter omplete installation and 2. configuration. So here i am facing issue after 2nd restart machine while seq'g. 1. i have changed scratch folder "C:\Users\<UserName>\AppData\Local\Temp\1
-
I need to replace my keyboard about once per year. What gives?
I purchase an Apple brand keyboard and it works fine for what I think is about one year, perhaps a bit less. Eventually, one or more keys fail. Right now I have to trigger the caps lock in order to get caps on specific letter keys; the shift key does
-
8330 Restarts after 20 min of media player
As the Subject says, I have the Curve 8330 on Telus network, and while I listen to my music (media card) my phone reboots after 20 minutes. I always close any windows and apps that are running besides the "now playing" and any essential ones. Any hel
-
How do I restore usual typing speed to Pages files?
In the last few days my keystrokes in Pages files have become slower than usual. I experimented with the settings in Apple Preferences > Keyboard, but that has not solved the problem. I checked a few Numbers files and the response time of my keystrok