Displaying query columns in page header
I have a 6i report, breaking on department, which shows the current department code and name in the page header, using a page-level summary column.
Problem: there are department-level summary data (e.g. totals) that are printed after the detail lines, which sometimes spill over onto a new page; when this happens, the department code on the header of the continuing page is blank.
Many thanks in advance.
Andrew Hunter
You can always use a PL/SQL package variable to store the last name and use srw.set_field() in the format trigger to display the value in the margin. When you execute srw.set_field() you use the PL/SQL package variable if the page summary is null and update the package variable if the page summary contains a value.
Similar Messages
-
How to stop to display the main report page header in the subreport!
Hello all,
I have an existed report that display the CR page header on every page of the report. Now I added another subreport into report footer without using link. How do I stop to display the main report page header and display the subreport in the new page with subreport header only? I really appreciate your time to help me out on this issue. Thanks.Hi,
I tried to supress the page header with (onlastrecord and TotalpageCount > 1) condition, but the last page of main report without page header. I still like the page header display on last record, but not on the subreport only. How do I get it? Thanks in advance. -
Display query columns in horizontal
Hi all
I'm creating a report using sql commands only(no report builder). I'd like to have my columns to be displayed in horizontal followed by its value. So far I've made it, however I can't get them to be displayed well where all the columns are in the same position as well as the results.
HECS:Higher Education Cafetaria Service
Restaurant and Bar
Membership Report
Date:DateVar
Member ID: 11
Member Name:Donald Anatidae Position:Senior Lecturer
Institution Name:UVan Department:Department of Computers
Phone:03-6355-9876 Employment:Tenured
Annual Fee: $225.25 Monthly Fee: $1.88
GST: $22.53 GST: $20.65
Annual Fee|(including GST): $247.Monthly Fee|(including GST): $20.65
-- Declaring variables
COLUMN Date NOPRINT NEW_VALUE DateVar
COLUMN ID NOPRINT NEW_VALUE IDVar
COLUMN Name NOPRINT NEW_VALUE NameVar
COLUMN Department NOPRINT NEW_VALUE DepartVar
COLUMN Phone NOPRINT NEW_VALUE PhoneVar
COLUMN Institution NOPRINT NEW_VALUE InstiVar
COLUMN Position NOPRINT NEW_VALUE PosVar
COLUMN Employment NOPRINT NEW_VALUE EmployVar
COLUMN Annual_Fee NOPRINT NEW_VALUE AnnualVar
COLUMN GST NOPRINT NEW_VALUE AGSTVar
COLUMN Annual_GST NOPRINT NEW_VALUE AnnuaGSTVar
COLUMN M_GST NOPRINT NEW_VALUE MgstVar
COLUMN Month_Fee NOPRINT NEW_VALUE MonthFeeVar
COLUMN Monthy_Gst NOPRINT NEW_VALUE MonthGstVar
BREAK ON ID SKIP Page
TTITLE CENTER 'HECS:Higher Education Cafetaria Service' SKIP 1 -
CENTER 'Restaurant and Bar' SKIP 2 -
LEFT 'Membership Report' SKIP 2 -
LEFT 'Date:'DateVar SKIP 2 -
LEFT COL 6 'Member ID:'IDVar SKIP 1 -
LEFT ------------------------------------------------------------------------------ SKIP 1 -
LEFT COL 6 'Member Name:' NameVar RIGHT 'Position:' PosVar SKIP 1-
LEFT COL 6 'Institution Name:'InstiVar COL 15 RIGHT 'Department:'DepartVar SKIP 1 -
LEFT COL 6 'Phone:'PhoneVar COL 15 RIGHT 'Employment:' EmployVar SKIP 1 -
LEFT COL 6 'Annual Fee:'FORMAT $9,990.99 AnnualVar -
RIGHT 'Monthly Fee:'FORMAT $9,990.99 MonthFeeVar SKIP 1 -
LEFT COL 6 'GST:'FORMAT $9,990.99 AGSTVar -
RIGHT 'GST:'FORMAT $9,990.99 MonthGstVar SKIP 1 -
LEFT ------------------------------------------------------------------------------ SKIP 1 -
LEFT COL 6 'Annual Fee|(including GST):'FORMAT $9,990.99 AnnuaGSTVar -
RIGHT 'Monthly Fee|(including GST):'FORMAT $9,990.99 MonthGstVar SKIP 1 -
LEFT -------------------------------------------------------------------------------
[\pre]
I'd like to know is whether there is another way to display the columns in horizontal.
ThanxHe gave you the general idea. The following takes it a step further.
scott@ORA92> CLEAR COLUMNS
scott@ORA92> TTITLE OFF
scott@ORA92> COLUMN today NEW_VALUE DateVar
scott@ORA92> SELECT SYSDATE AS today FROM DUAL
2 /
TODAY
17-APR-2006
scott@ORA92> TTITLE CENTER 'HECS: Higher Education Cafetaria Service' SKIP 1 -
CENTER 'Restaurant and Bar' SKIP 2scott@ORA92> COLUMN membership_report HEADING 'Membership Report||Date: &DateVar|'
scott@ORA92> SELECT 'Member ID: ' || e.empno
2 || CHR(10)
3 || '-------------------------------------------------------------'
4 || CHR(10)
5 || 'Member Name: ' || RPAD (e.ename, 20) || 'Position: ' || e.job
6 || CHR(10)
7 || 'Institution: ' || RPAD (d.deptno, 20) || 'Department: ' || d.dname
8 || CHR(10)
9 || 'Salary: ' || RPAD (TO_CHAR (e.sal, '$9,990.99'), 20)
10 || 'Commission: ' || TO_CHAR (e.comm, '$9,990.99')
11 || CHR(10)
12 || '-------------------------------------------------------------'
13 || CHR(10)
14 || 'Annual Fee: ' || RPAD (TO_CHAR (e.sal, '$9,990.99'), 20)
15 || 'Monthly Fee: ' || (TO_CHAR (e.sal/12, '$9,990.99'))
16 || CHR(10)
17 || '-------------------------------------------------------------'
18 || CHR(10)
19 || CHR(10)
20 AS membership_report
21 FROM emp e, dept d
22 WHERE e.deptno = d.deptno
23 /
HECS: Higher Education Cafetaria Service
Restaurant and Bar
Membership Report
Date: 17-APR-2006
Member ID: 7369
Member Name: SMITH Position: CLERK
Institution: 20 Department: RESEARCH
Salary: $800.00 Commission:
Annual Fee: $800.00 Monthly Fee: $66.67
Member ID: 7499
Member Name: ALLEN Position: SALESMAN
Institution: 30 Department: SALES
Salary: $1,600.00 Commission: $300.00
Annual Fee: $1,600.00 Monthly Fee: $133.33
Member ID: 7521
Member Name: WARD Position: SALESMAN
Institution: 30 Department: SALES
Salary: $1,250.00 Commission: $500.00
Annual Fee: $1,250.00 Monthly Fee: $104.17
Member ID: 7566
Member Name: JONES Position: MANAGER
Institution: 20 Department: RESEARCH
Salary: $2,975.00 Commission:
Annual Fee: $2,975.00 Monthly Fee: $247.92
Member ID: 7654
Member Name: MARTIN Position: SALESMAN
Institution: 30 Department: SALES
Salary: $1,250.00 Commission: $1,400.00
Annual Fee: $1,250.00 Monthly Fee: $104.17
Member ID: 7698
Member Name: BLAKE Position: MANAGER
Institution: 30 Department: SALES
Salary: $2,850.00 Commission:
Annual Fee: $2,850.00 Monthly Fee: $237.50
Member ID: 7782
Member Name: CLARK Position: MANAGER
Institution: 10 Department: ACCOUNTING
Salary: $2,450.00 Commission:
Annual Fee: $2,450.00 Monthly Fee: $204.17
Member ID: 7788
Member Name: SCOTT Position: ANALYST
Institution: 20 Department: RESEARCH
Salary: $3,000.00 Commission:
Annual Fee: $3,000.00 Monthly Fee: $250.00
Member ID: 7839
Member Name: KING Position: PRESIDENT
Institution: 10 Department: ACCOUNTING
Salary: $5,000.00 Commission:
Annual Fee: $5,000.00 Monthly Fee: $416.67
Member ID: 7844
Member Name: TURNER Position: SALESMAN
Institution: 30 Department: SALES
Salary: $1,500.00 Commission: $0.00
Annual Fee: $1,500.00 Monthly Fee: $125.00
Member ID: 7876
Member Name: ADAMS Position: CLERK
Institution: 20 Department: RESEARCH
Salary: $1,100.00 Commission:
Annual Fee: $1,100.00 Monthly Fee: $91.67
Member ID: 7900
Member Name: JAMES Position: CLERK
Institution: 30 Department: SALES
Salary: $950.00 Commission:
Annual Fee: $950.00 Monthly Fee: $79.17
Member ID: 7902
Member Name: FORD Position: ANALYST
Institution: 20 Department: RESEARCH
Salary: $3,000.00 Commission:
Annual Fee: $3,000.00 Monthly Fee: $250.00
Member ID: 7934
Member Name: MILLER Position: CLERK
Institution: 10 Department: ACCOUNTING
Salary: $1,300.00 Commission:
Annual Fee: $1,300.00 Monthly Fee: $108.33
14 rows selected.null -
ALV Display dynamic column with multiline header
Hi All.
I need to create alv display with dynamic number of columns. Also, it contains two header line. Kindly help me in coding.
The required format is this format.
Product | Week1 | Week2 |.......| WeekN
|--||---|--
| Sales | Sales |.......| Sales
|--| |---|--
PRD1 | value | Value |.......| Value
PRD2 | value | Value |.......| Value
PRD3 | value | Value |.......| Value
Thanks.
SadhnaHi Sadhana,
You mean to say that your internal Table contains
ABCDEF are the fields in your Internal table.
A--BCD---E-----F
1--12---13---a11----1
2--11---01---b9-----0
3--01---00---c32----0
4--14---01---d21----0
Now using Dynamic Internal Table it should display the output as follow :
A--BCF---a---b-c----d
1--12---13---111-9-32--21
Here you want to display the the fields of D as header and E as its corresponding values...?
Please let me knwo if you mean the same..
Regards,
Kittu -
SAP Query: Display Selection Fields in the header page of Basic list
Hello,
I have to display the selection fields in the header page of the basic list and statistics
in a SAP Query.
I know the usage of short names for fields in the header page, but this doesn't work
for the selection fields.
How can I display the selection fields in header pages?
Kind regards
ThomasTry using:
DATA: wa_lstab TYPE line
READ LINE sy-index line value INTO wa_lstab
Thanks,
SKJ -
Hi All,
I want to display some column values like Company_Name, Company_Address etc in the Page Header of the report. I am fetching these values from table in the query of my report. Can somebody tell me how I can do that?
I tried placing a repeating frame in upper area of margin in 'Main Section' of report. Source of the frame was Query group. It printed multiple headers on one page.
Waiting for your replies. Thanks in advance.
Regards
MonaI think your query is return more then one record or u create query as child .
Create a query company name, address etc. as parent and other information as a child query, and link them with link tool.
Example
Q1. Select customer_no,name,address from customer (Parent)
Q2. Select customer_no, invoice_no, amount from invoices (Child)
If u created query like this
Select c.customer_no,c.name,c.address, i.invoice_no, i.amount
from customer c, invoices i
where c.customer_no=i.customer_no;
its return name and address for every record of invoices table.
Qadeer -
Header not getting displayed in the next page in the second table
Dear Experts ,
I have a query regarding Header not getting displayed in the next page in the second table of the main window. .Let me elobrate the issue.
I have a smartform in which there are 2 tables TABLE 1 and TABLE 2 in the smartform MAIN window. TABLE 1 is for pending PO and TABLE 2 is for future delivery date P O separated by text in between.
Now the header for both the tables and the data are getting displayed properly if the total output is in only one page. But If there are more entries in the TABLE 1 the Header for the TABLE 2 is not getting displayed. Header for TABLE 1 yet gets displayed properly in the next page in case of more entries.
Only issue is that Header for TABLE 2 is not getting displayed in second page but it gets displayed if the entries are less in TABLE 1 and the total output is in one page .
Please provide a elobrate solution on this problem as the requirement is urgent.
Thanks,
Regards,
Sachin HadaHi Sachin,
you need to cteate two pages FIRST and NEXT.
in first page --> FIRST
next --> NEXT
in next page
page---> NEXT
next ---> NEXT.
you copy the first page main window is the same in next page
aslo
I think help ful for you
thanks & Regards
BHUPAL. -
SSRS 2008 R2 report does not print the page header for a html content displaying on multiple pages
Hi
I need to display the html content from the database. The html content are quite long and can have content of 3-5 pages. Issue I am facing is f the record has html content of 3-5 pages, then it does not print the page header (which is a separate tablix) on
second page onwards.
Nikesh Shah
Nikesh ShahHi Nikesh,
According to your description, I’m not sure the meaning of Page header in your scenario. In Reporting Services, a page header that run along the top of each page, respectively. Headers can contain static text, images, lines, rectangles, borders, background
color, background images, and expressions. But we couldn’t add tablix in the page header.
If you are saying report header, a report header consists of the report items that are placed at the top of the report body on the report design surface. They appear only once as the first content in the report. So it cannot repeat in other pages.
If you are saying tablix header, freezing column headers are different in table and matrix. For more details, please refer to the following thread:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/c8ddc1af-1bdf-4e72-8aab-0353c7cc848a/ssrs-report-freezing-row-and-column-while-scrolling-issue?forum=sqlreportingservices
If there are any misunderstanding, please elaborate the issue for further investigation.
Regards,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Display Query Description in Header in PDF Print
Hi all,
When using PDF Print option I would like to print the Query Description in the Header. From the dialog box I only see options for Data, Time, Pages and custom text. Can you please let me know how can I print the Query Description in the Header while using PDF Print.
Thank you,
RamYes I understand but that is not what I mean.
1. I have assigned a document to a certain query element in the BW metadata repository. This document contains a short report description and the purpose with it.
2. Now I want to display this information within a "information field" under the information tab when running a report.
Is it possible to display this information with a standard sap text element web item? -
SQL expression field is not displayed on the page header if no records
Hello
I'm creating a quite simple report. In this report I've got a SQL expression field which returns a DateTime
I display this field on the page header section.
Everything is working fine except when my principal query doesn't return any records my SQL expression field is not displayed. It doesn't seem to be evaluated.
So, I would display this field even if my Details Section doesn't contains any record.
I hope you understand what I mean.
Can someone help me?
thanksHello,
I thought about creating a formula but the value I need is stored in a database.
So i created a simple SQL expression field.
SELECT CONVERT(DATE,j_1) FROM VW_STD_DATEFIXING
And this expression doesn't have any dependencies. -
In internal table having 30 columns of data.
i have to display like
first 10 columns in first page with page no :1
second 10 columns in second page with page no :2
third 10 columns in second page with page no :3
how to develop this.
please how develop this in smartforms .
please help .Hi,
You dont have to divide the data.
You must be using TABLE node in your smartform to display the table.
Copy the node 2 times more so that the total table nodes become 3.
Now, change the headings in each table according to the column you want to display.
Change the fields of the workarea in the ITEM lines accordingly.
Add a COMMAND node after each table and set it to go to next page.
E.G :
Suppose I have a table with 6 columns and I need to display 2 columns in a table then page break.
Work area name is WA.
Then first table will have headings : FIELD1 FIELD2
Items will have field : WA-FIELD1 WA_FIELD2
COMMAND NODE : Go to Next Page
Second table will have heading : FIELD3 FIELD4
Items will have field : WA-FIELD3 WA_FIELD4
COMMAND NODE : Go to Next Page
Third table will have heading : FIELD5 FIELD6
Items will have field : WA-FIELD5 WA_FIELD6
So, same table with same work area will be used 3 times, displaying different set of columns in each TABLE node.
Regards,
Ashish -
Problem with Page header width when column is hidded
Hi All,
am using SSRS-2008 R2 version.
i had an issue width Page header width when am hiding column. Please find the below screen shoot for reference.
Here , there is an audit parameter which contains a and b values respectively.
If Audit= a then i need to hide the State and City column . So, for that i have written following expression[ =Parameters!Audit.Label="a" ] and its working fine.
But, if see the screen shoot when columns are hiding then some space is coming in that column which is deviating from Page header width.
Is there any option to increase the remaining column width when these 2 columns are hidden or is there any way to reduce the page header width according to report columns width. Can you please guide me any one.
Thanks in advance.
bala krishnaHi bala,
According to your description, you have a report with a textbox in its page header. You have set some column visibility in tablix based on the parameter selection. Your problem is, when you hide columns, the textbox remains top right in the page header.
Now you want to make it aligned with the tablix. Right?
In Reporting Service, we can’t reduce the page header width or increase those remaining columns width based on the parameter selection (or columns visibility). And we can’t keep the tablix always top right because we only have top and left to determine the
location of a tablix/textbox. For your requirement, it doesn’t have a complete solution to achieve either of your two options. However, we find a workaround for you. In this scenario, we can use two textboxes in page header. Put one in top right. Put the other
textbox at an appropriate position when columns are hidden. Then put conditional expression into textbox for text displaying based on parameter selection.
Ps: We don’t set the visibility of textbox because the space of textbox will be removed if it’s hidden, that may make one textbox float moving when the other is hidden.
We have tested this case with sample data in our local environment. Here are steps and screenshots for you reference:
1. In our sample report, we set Amt1 column hidden when selecting “a” in parameter. Put expression into textbox.
A: =IIF(Parameters!ReportParameter1.Value="a","header info","")
B: =IIF(Parameters!ReportParameter1.Value="b","header info","")
2. Save and preview. It looks like below:
If you have any question, please feel free to ask.
Best Regards,
Simon Hou
-
Query Report - To display additional column in list selection box.
Hi,
There is query report where i want to display the additional column in list selection.
Below is the system query report, where parameter passed is card code.
When the cardcode - list selection is clicked system displays 2 columns i.e. Customer Code & No. of Records.
Now in the same list selection; is it possible to display the customer name along with cardcode only for reference.
SELECT T0.DocDate, T1.SlpName, T2.Name, T0.DocDueDate, T0.DocNum, (CASE WHEN T0.DocStatus = 'O' THEN 'Open' ELSE 'Closed' END) AS Status, T0.DocTotal FROM OQUT T0 LEFT JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode LEFT JOIN OCPR T2 ON T0.CntctCode = T2.CntctCode WHERE T0.CardCode = N'[%0]' ORDER BY T0.DocNum DESC
Kindly let me know the details.
Thanks & Regards,
Yogesh JadavHi Yogesh Jadav,
The answer is NO. You may only display either code or name but not both.
Thanks,
Gordon -
Page Header Not Displaying at Top of Page
Report Builder 3
We have a number of reports that include navigation links in the page header. The links use the Bookmarks Action to move the user to a different page. The pages are separated using Page Breaks. Below is an example:
> Top row is the Page Header.
> Second section is the Resource Listing & Alerts page.
> After the first page a rectangle is placed which has Page Break set to Start.
> After the rectangle comes the start of the "Data Extract" page. The title is in a rectangle with a Bookmark called Page2.
> Click the link to be forwarded to the Data Extract.
> Page displays, but the Page Header is not visible because the screen is scrolled down slightly.
I have not been able to fix this or find a workaround that forces the Page Header to always display at the top. It has been suggested that putting the page break before the bookmark would force this to work, but that is not working.
Any ideas? Thank you! NaamkeekHi Naamkeek,
Based on my understanding, you add a bookmark link for “Data Extract” in page header, however, when clicking this fields, other page displays without visible page header.
In Reporting Service, when setting page header in a report, the page header will display in each report page. In your scenario, since you set BreakLocation as Start in PageBreak property, the rectangle could make the page header upper and screen scroll down
lightly. So please change this property to End. As we tested in our environment, we set BreakLocation as End in PageBreak property for the blank rectangle. Then adding a bookmark link in page header, when we click “Data Extract”, the page header will appear
on a new page. Please refer to screenshots below:
Reference:
Page Headers and Footers (Report Builder and SSRS)
Best regards,
Qiuyun Yu -
How can I edit the number of columns in a header in Pages?
I'm trying to set up headers in an APA style document and the middle field in the header is cutting off my copy. How can I make the header only two columns? Or is there a way to hide the middle one so it doesn't cut anything off?
Help please!!!As far as I know, the three header columns in Pages v5+ are not changeable. If you had Pages installed prior to version 5, it was moved into /Applications/iWork, and is your best bet for Pages productivity.
Maybe you are looking for
-
String concat PROBLEM??? Please Help
I have this strange Question regarding String concat If I say: String str = "Welcome"; str.concat(" to Java"); System.out.println(str); The output is: Welcome. How do I get the output to Welcome to Java??
-
J2ME And JSP...
Hi there Experts... i am new to J2ME and i need to connect my MIDP forms to jsp.. i dont have any idea about that. Is it possible to pass values those been selected by an user from mobile device to the jsp and again answer from jsp to he mobile devic
-
Hi All, The report links in EPM and the webi report in EPM give lot of errors.It never worked smoothly for me. Error like "report does't contain any report". what could be the permanant fix to this error. Now i edit the reports which are throughing e
-
I am a current Lightroom 5.7 user - I have purchased and installed Lightroom 6, but have not launched the program yet - will LR 6 make changes to my LR 5 catalog, such that it cannot be used in LR5? Also, can LR6 and LR CC 2015 share the same catalog
-
PAYPAL agrees I deserve a refund and PAYPAL gives me the address for the seller. When package arrives, no address known! Package is sent back to me unopened. I send them(PAYPAL) confirmation and where I paid USPS for label WITH the address they gi