How to get a report split on a page
I have a situation with a report where I have 3 columns.
If I run this report I see a long list with 3 columns.
How can I get this so that that I have these 3 columns scaled horizontaly?
I want to get this so that you see more information on the screen.
col1 || col2 || col3 col1 || col2 || col3
data || data || data|| data || data || data
etc.
Please can somebody give me an advice?
Thanks,
Edward
Not claiming that it's a brilliant idea, but it does seem to get it done using only SQL:
hr@xe > with t as (
2 -- Get the column values in desired order with row numbers and a count of
3 -- the total rows retrieved
4 select
5 e.last_name
6 , row_number() over (order by e.last_name) rn
7 , count(*) over () n
8 from
9 employees e)
10 , u as (
11 -- Assign the data to the required number of columns (= buckets)
12 select
13 last_name
14 , rn
15 , width_bucket(rn, 1, n, 3 /* no of columns */) col
16 from
17 t)
18 , w as (
19 -- Find the number of rows in the longest (i.e. first) column
20 select max(count(*)) c from u group by col)
21 , x as (
22 -- "Pivot" the set into the required number of columns
23 select
24 u.last_name l1
25 , lead(u.last_name, c) over (order by u.rn) l2
26 , lead(u.last_name, 2 * c) over (order by u.rn) l3
27 from
28 u, w)
29 -- Trim off duplicate data after the required rows are displayed
30 select x.l1 , x.l2 , x.l3 from x, w where rownum <= w.c;
L1 L2 L3
Abel Gietz Olsen
Ande Grant Olson
Atkinson Grant Ozer
Austin Greenberg Partners
Baer Greene Pataballa
Baida Hall Patel
Banda Hartstein Perkins
Bates Higgins Philtanker
Bell Himuro Popp
Bernstein Hunold Rajs
Bissot Hutton Raphaely
Bloom Johnson Rogers
Bull Jones Russell
Cabrio Kaufling Sarchand
Cambrault Khoo Sciarra
Cambrault King Seo
Chen King Sewall
Chung Kochhar Smith
Colmenares Kumar Smith
Davies Ladwig Stiles
De Haan Landry Sullivan
Dellinger Lee Sully
Dilly Livingston Taylor
Doran Lorentz Taylor
Ernst Mallin Tobias
Errazuriz Markle Tucker
Everett Marlow Tuvault
Faviet Marvins Urman
Fay Matos Vargas
Feeney Mavris Vishney
Fleaur McCain Vollman
Fox McEwen Walsh
Fripp Mikkilineni Weiss
Gates Mourgos Whalen
Gee Nayer Zlotkey
Geoni OConnell
36 rows selected.Happy to see someone simplify it...
Similar Messages
-
How to get a report in pdf format.
Hi Experts,
Could any one let me know that, how to get the report in PDF format.
Once a report is generated it should be displayed in pdf format or downloaded in pdf format.
Thanks in Advance,
Regards,
Irfan HussainHi,
Check out this code:
REPORT zspooltopdf.
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_sender LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_delspl AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
* Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
* Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
* Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
* Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',
c_no(1) TYPE c VALUE ' ',
c_device(4) TYPE c VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
* Write statement to represent report output. Spool request is created
* if write statement is executed in background. This could also be an
* ALV grid which would be converted to PDF without any extra effort
WRITE 'Hello World'.
new-page.
commit work.
new-page print off.
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
*** Alternative way could be to submit another program and store spool
*** id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
* to sap-spool
* spool parameters %_print
* archive parameters %_print
* without spool dynpro
* and return.
* Get spool id from program called above
* IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
PERFORM convert_spool_to_pdf.
if p_delspl EQ 'X'.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
ELSE.
SKIP.
WRITE:/ 'Program must be executed in background in-order for spool',
'request to be created.'.
ENDIF.
* FORM obtain_spool_id *
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
* FORM get_job_details *
FORM get_job_details.
* Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
* FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_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.
CHECK sy-subrc = 0.
* Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
* FORM delete_spool *
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
Regards,
Gayathri -
How to get customised reports through Flexible Analysis available in PMIS
Dear Sir,
Please guide us how to get customised reports through Flexible Analysis available in PMIS.
Thanks & Regards,
PM Team[Sap Help|http://help.sap.com/erp2005_ehp_04/helpdata/en/c1/375e9c449a11d188fe0000e8322f96/frameset.htm].
Regards
Narasimhan -
How to get the Reports of Change Tracking Table in MDM?
Hi!
Please tell me how to get the reports of Change Tracking Table in MDM which is a System table, directly from MDM without using any interface.
Thanks in advance for the reply.
With Best Regards
Devendra PandeyHi Devendra,
MDM can track changes on tables and fields. <u>The level of change tracking, and which tables/fields to track, are configurable in the MDM Console</u>. MDM opens a new database on the same database engine as the MDM repository and writes all change records to this database.
For information of various steps you can visit
<a href="http://help.sap.com/saphelp_mdm550/helpdata/en/45/c7b20339ee570ae10000000a114a6b/content.htm">this URL</a>
Regards,
Krutarth -
Please help! How to get the report in SAP that include information of PR number, PR amount, PO number, PO amount and cost center in one report??
I try ME5A but th
ere are no information of PO amount.Thank you for your help.
I have no authorize to use SQVI as I am only the user. I will use your information and ask my SAP team to help.
Thank you again (^_^) -
Dear Friends,
I have attached my report in my .aspx file.
I am passing the condition through myCrystalReportViewer.SelectionFormula
It was showing all record's reports those are tested in CR2008.
But as soon as we have entered a new record through our web form, it is not displaying the report.
I have added "myCrystalReportViewer.RefreshReport()".
Then also it is not displaying the report for the new record entered, where as the previous records are running fine.
Can any one please tell what code should I add or steps in CR2008 to get this report after entering any record.
Thanks and regards
Edited by: Md. Mushtaque on Sep 1, 2008 5:03 PMDear The Panda,
As per your reply I have followed all steps.
Unchecked "Save Data with Report" in Sub Report
Checked the Links between Sub Report and Main Report
Now on calling the report from my web form only a blank page with TextObject's text is coming.
I Could not understand that why this is happening or what is the concept behind linking a report from Web forms.
How to get refreshed report?
Well thanks for your reply, but now God knows how to solve this problem.
Thanks again -
How to get the reporting icon in cube.
hi,
i have a successful request(with all the required data) in the cube (manage screen) but i could n't get the reporting icon next to request id in the cube manage screen how to get ithe reporting icon.This might be because of issue -- data is not ready to view in the Query level. So that it happened.
Go to the 'Manage' in the InfoCube level and verify the last updated request are ready to report.
The possible causes may be
1. If the previous request may be an error in Cube level, the other requests will not be ready to report.
2. If there is Aggregate is maintaining in the Cube level, you should perform rollup to fill aggregates and made the requests available to report.
Edited by: prashanthk on Aug 31, 2010 10:48 AM -
How to get the report server name in Forms 10g.
How to get the report server name in Forms 10g.
I'm using the Application Server 10g 10.1.2.Hello,
I do not think that you can get this value from anywhere. A solution is to put the Reports server name in an environment variable stored in the /forms/server/default.env file, then to query it at Forms runtime with the TOOL_ENV.Getvar() built-in.
Francois -
How to get a report on Installed Software Updates on client computers.
Hi, I'm working with a large company who plans to deploy mac's nationwide. ARD is what we will be using for remote management of the cient systems. My question is; how to get a report on Installed Software Updates on client computers.
Thanks in advance!Hi,
Try this.
Go to SE16 give table input as T511
and select OPKEN / Operation indicator field input as A and execute.
This will give you output of wage types wich configured for deduction. -
Itunes u public - How to get daily report
Hello,
does anybody have any suggestion about how to get daily report for iTunes U public site ?
The only information I've found is in iTunes U Administration Guide for Private Site with the following example
http://deimos.apple.com/WebObjects/Core.woa/API/GetDailyReportLogs/example.edu? StartDate=2007-09-12&EndDate=2007-09-13 &credentials=Administrator@urn:mace:itunesu.com:sites:example.edu &identity=%22Jane+Doe%22+%3Cjdoe%40example.edu%3E+%28jdoe%29+%5B42%5D &signature=38bda70d9aa6975ae8756754034feb6e3c794aca4b21665f6dc85d2ed42d4f6b
but I do not understand how I can apply that for a public site.
How to get "credentials" ? What baout identity and signature? What I've is just my iTunes U Site Manger account name and pssword.
Any help is very appreciated.
Kind Regards,
DiegoFind the solution by myself.
There are two iTunes U sites with different credentials: one is the original iTunes U Public before first activation and another created automatically by the activation process. The last is the actual iTunes U Public site
managed by iTunes U Public Site Manger. The difference is the domain name of the site: if I sign in using my domain name with "-dz" added at the the end, I can access the actual credentials (Site URL, Debug Suffix, Shared Secret, Administrator Credentials) that differs completely by the ones of the original iTunes site.
No where I found information about that, neither I've received any notification mail about the domain name change after the site activation process.
Hope that can help. -
How to get the form reference in .js page from .jsp page
hi
i have written one form in jsp page omething like:-
<html:form action="/shopping" onsubmit="return false;">
can anybody tell me,how to get the form reference in .js page from .jsp page ,
i have tried:-
var formRef = document.forms[0];
butits not working.
Thanks.Its very simple......y cant u prefer google...Bad
c this example...
function submit()
alert("textbox"+ document.forms[0].name.value);//to get textbox value in js
document.forms[0].submit();//to submit jsp page using js
<html:html>
<html:form action="/shopping" onsubmit="submit()">
<html:text property=name>
learn to search in google..
</html:form>
</html:html> -
How to get windows username printed on each page irrespective of application? we have HP CM6030F.
Hi,
Normally, you will receive a Windows Azure Pass from your local Windows Azure team. Please try to contact your local Windows Azure contact (http://support.microsoft.com/gp/customer-service-phone-numbers?wa=wsignin1.0
Also, you could see this page
http://www.windowsazurepass.com/AzureU/AcademicFAQ and apply the free trial azure via (http://www.windowsazurepass.com/AzureU/).
Q: I am a student. Can I apply for a pass?
A: Windows Azure Educator Grants are only for valid faculty. If your faculty has been awarded a Windows Azure Educator Grant, you will be able to get a pass through him/her for you coursework. If you are interested in learning more about Windows Azure,
we encourage you to share these Educator Grants with your faculty or sign up for the FREE 3-month trial offer.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
"how to get to the bottom of a page fast on the iPad Air"
how to get to the bottom of a page fast on the iPad Air"
thank you! I am admiring my three dots and considering which cat's picture I should upload as my avatar.
yes, the scrolling down in sections I have managed. I thought you were saying one set of double taps would go straight to the bottom.
here's another question for you: on my iMac by holding the command key down I can make a link open in a new tab. Do you know if there is a way to do that on the iPad? -
How to get the Report Names which use a Folder in Discoverer Administrator?
Hello All,
How could I get which Reports in discoverer Desktop are using a particular folder in Discoverer Administrator?
Or
How to know which Discoverer Desktop Reports are being derived from a folder in Discoverer Administrator?
We have Oracle 9i DS installed and have a Custom Folder Created in the Administrator, and want to know exactly which Reports/Workbooks are using that folder?
Thanks in advance :)Well Abhijit,
The eul workbooks have been created by oracle specifically to analyze your eul and make your work easier!. So, I prefer this way to view the information about my eul in a report format in the desktop. Try it! you may like it.
If you want you can follow these steps:
Run the script called eul5.sql located in <discoverer_installation_path>\discoverer\util in the user who own the eul in the database.
Then import the eul5.eex file located at <discoverer_installation_path>\discoverer\ in the discoverer administrator.
Then login into desktop and open the reports in the database, you can see a report called[b] EUL Workbook Management. Open that and goto the sheet named Workbook Dependency - Folders & Items Lookup. I think it the last but one worksheet in that workbook.
Hope it helps you! -
Subject: How to get MB5B report in excel format
Dear experts,
Please help me how I get automatically MB5B Report in excel format. In Layout there is no option to convert excel format.
regards,
rss
Edited by: rs_sharma on Jun 26, 2011 10:16 AMDear experts,
Please help me how I get automatically MB5B Report in excel format. In Layout there is no option to convert excel format.
regards,
rss
Edited by: rs_sharma on Jun 26, 2011 10:16 AM
Maybe you are looking for
-
PR has been released, but i found the plant input is error.
PR has been released, but i found the plant input is error. i want to correct the plant, and i wish the release info is saved, i.e. the manager needn't release the pr again. is it posssible?
-
Rescuing deleted emails from Outlook Express 5 mac vers
Dear Forum I would be grateful if anyone could cast some light on the following puzzle. I am trying to retrieve deleted emails from Microsoft Outlook Express 5 Macintosh edition (vers 5.02 2022) running on a G4. Using Data Recovery 2, I have uncovere
-
Just updated to iTunes 11.1.3 and now music won't sync
I have an iPhone 5 and I recently bought several CD's and wanted to sync them to my phone. When I connected my iPhone to my Mac, iTunes said there was an update, so I went ahead and updated the software and then attempted to sync my phone. It says it
-
How would SCCM treat a re-imaged machine without SCCM Client installed on it.
I would like to understand how Configuration Manager would treat a machine on which OS is rebuild if the machine is currently showing client=YES and SCCM Client is not installed after OS rebuild. Would it create a new record for this machine in SCCM
-
Cisco 3502 AP will not join 4402
Have 5 WLC 4402's in my network. I upgraded one of them to 7.0.98.0 to test the new 3502 APs. When I go to join the new 3502 it will not join to the upgraded WLC. Keep in mind all WLC's are in the same mobility group. Does it matter that the rest