Row break + column header Question
I've got two question i can't find out by myself.
Question 1:
I use a row break on the first column of my report. That workd correctly. But how do i get a line or a empety row after the break? I prefer a line...
Question 2:
I want to have an extra header above some columns. how to create that. A example:
extra header 1 extra header 2
column1 column2 column3 column4 column5 column6 column7
hope someone can help me with this... tnx in advanced
Hi,
For your second question, you could create a custom template and put in the additional headers in there, under the 'Before Column Heading' section. I have done this with one of my reports where I simply copied the standard template and changed it to include the header information. This is an example of what I have in the Before Column Heading section for my custom template.
<tr><th class="t18ReportHeader"#ALIGNMENT# colspan="4" style="font-weight:bold;text-align:center;">Progress Data </th></tr>
<tr><th class="t18ReportHeader"#ALIGNMENT#> </th>
<th class="t18ReportHeader"#ALIGNMENT# style="font-weight:bold;text-align:center;" colspan="4"> Header 1 </th>
<th class="t18ReportHeader"#ALIGNMENT# colspan="5" style="font-weight:bold;text-align:center"> Header 2 </th>
<th class="t18ReportHeader"#ALIGNMENT# colspan="4" style="font-weight:bold; text-align:center"> Header 3</th>
HTH,
Chandini
Similar Messages
-
Row and column heading in cross tab report
Hi Gurus,
Is it possible to leave column headings and row headings in a crosstab report blank?
PoojaHi,
You could either suppress the Column Headings by unchecking
Tools-->Options-->Column Heading or Making the background color and the font color of the cell to be same ( gray ), thereby making it invisible, though it is actually there. -
Post Author: blofrese
CA Forum: Exporting
I am using Crystal XI and need to output several columns worth of data. Do to so I attempted to have the data presented in 2 rows within the same section.
Example:Page Header b contains: 7 columns 5 columns
Details a contains: 7 columns 5 columns
When exporting to excel data only I only see the bottom 5 column header info and all the detail data in the correct order. How do I get all the Headers to display on the export file?
Thank you for your time.Post Author: jw1234
CA Forum: Exporting
I have the same problem. Have you find the solution yet??
I'm trying to export as Excel data only and have 2 page header band. It only display the 2nd band with the bottom label. None of the 1st band shows up.
Page Header a contains:Report TitleDate Range
Page Header b contains:Dept Name4 columns
Please help. Thanks! -
How to transpose Row to Column heading
Hi,
I have a table with following data.
ID COLUMN_NAME COLUMN_DATA
198 LAST_NAME OConnell
198 HIRE_DATE 6/21/1999
198 JOB_ID SH_CLERK
198 FIRST_NAME Donald
198 DEPARTMENT_ID 50
199 FIRST_NAME Jennifer
199 LAST_NAME Whalen
199 HIRE_DATE 9/17/1987
199 JOB_ID AD_ASST
199 DEPARTMENT_ID 10
I want to transpose the data in the field column_name as column heading and corresponding data in the field column_data as row under it.
Thanks $ Regards
ManishaIf you have 11g, you can do this...
With T As (
select '198' ID ,'LAST_NAME' COLUMN_NAME ,'OConnell' COLUMN_DATA from dual union all
select '198','HIRE_DATE','6/21/1999' from dual union all
select '198','JOB_ID','SH_CLERK' from dual union all
select '198','FIRST_NAME','Donald' from dual union all
select '198','DEPARTMENT_ID','50' from dual union all
select '199','FIRST_NAME','Jennifer' from dual union all
select '199','LAST_NAME','Whalen' from dual union all
select '199','HIRE_DATE','9/17/1987' from dual union all
select '199','JOB_ID','AD_ASST' from dual union all
select '199','DEPARTMENT_ID','10' from dual
--End of sample data
select ID,LAST_NAME,HIRE_DATE,JOB_ID,FIRST_NAME,DEPARTMENT_ID from T
pivot (max(column_data) for
column_name in ('LAST_NAME' as LAST_NAME,'HIRE_DATE' as HIRE_DATE,'JOB_ID' as JOB_ID,'FIRST_NAME' as FIRST_NAME,'DEPARTMENT_ID' as DEPARTMENT_ID))
ID LAST_NAME HIRE_DATE JOB_ID FIRST_NAM DEPARTMEN
198 OConnell 6/21/1999 SH_CLERK Donald 50
199 Whalen 9/17/1987 AD_ASST Jennifer 10
Elapsed: 00:00:00.00or if 10g or older
With T As (
select '198' ID ,'LAST_NAME' COLUMN_NAME ,'OConnell' COLUMN_DATA from dual union all
select '198','HIRE_DATE','6/21/1999' from dual union all
select '198','JOB_ID','SH_CLERK' from dual union all
select '198','FIRST_NAME','Donald' from dual union all
select '198','DEPARTMENT_ID','50' from dual union all
select '199','FIRST_NAME','Jennifer' from dual union all
select '199','LAST_NAME','Whalen' from dual union all
select '199','HIRE_DATE','9/17/1987' from dual union all
select '199','JOB_ID','AD_ASST' from dual union all
select '199','DEPARTMENT_ID','10' from dual
--End of sample data
select * from (
select id,
max(decode(column_name,'LAST_NAME', COLUMN_DATA)) LAST_NAME,
max(decode(column_name,'HIRE_DATE', COLUMN_DATA)) HIRE_DATE,
max(decode(column_name,'JOB_ID', COLUMN_DATA)) JOB_ID,
max(decode(column_name,'FIRST_NAME', COLUMN_DATA)) FIRST_NAME,
max(decode(column_name,'DEPARTMENT_ID', COLUMN_DATA)) DEPARTMENT_ID
from T group by id)
order by ID
PRAZY@11gR1> /
ID LAST_NAME HIRE_DATE JOB_ID FIRST_NAM DEPARTMEN
198 OConnell 6/21/1999 SH_CLERK Donald 50
199 Whalen 9/17/1987 AD_ASST Jennifer 10
Elapsed: 00:00:00.01Regards,
Prazy
Edited by: Prazy on Apr 5, 2010 3:32 PM
Added sql for older versions -
Selecting multiple rows using column header with checkbox in it.
Dear All.,
I am trying to select multiple rows with checkbox in column header but it doesnot works...
Following is my codel
<af:table value="#{bindings.xx.collectionModel}"
var="row"
rows="#{bindings.xx.rangeSize}"
emptyText="#{bindings.xx.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.xx.rangeSize}"
rowBandingInterval="1"
filterModel="#{bindings.xx.queryDescriptor}"
queryListener="#{bindings.xx.processQuery}"
varStatus="vs" partialTriggers="sbcSelectAll sbcChkFlag"
selectedRowKeys="#{bindings.xx.collectionModel.selectedRow}"
selectionListener="#{bindings.xx.collectionModel.makeCurrent}"
rowSelection="none" id="tCdMast" width="400"
columnStretching="column:c4" inlineStyle="height:200px;">
<af:column sortProperty="ChkFlag" filterable="true"
sortable="true"
headerText="#{bindings.xx.hints.ChkFlag.label}"
id="c2" width="55"
inlineStyle="#{row.ChkFlag ? 'background-color:#9CACC9;' : ''}">
<af:selectBooleanCheckbox simple="true" value="#{row.ChkFlag}"
selected="#{row.ChkFlag}" id="sbcChkFlag"
autoSubmit="true" immediate="true"/>
<f:facet name="header">
<af:selectBooleanCheckbox simple="true"
autoSubmit="true"
valueChangeListener="#{xxBean.onTableChkAllCheckChanged}"
id="sbcSelectAll"/>
</f:facet>
</af:column>
</af:table>
Managed Bean
public void onTableChkAllCheckChanged(ValueChangeEvent valueChangeEvent) {
Boolean newValue =
Boolean.valueOf(u.nvlString(valueChangeEvent.getNewValue(),
"false"));
Boolean oldValue =
Boolean.valueOf(u.nvlString(valueChangeEvent.getOldValue(),
"false"));
if (newValue.equals(oldValue))
return;
int rowIndex=0;
ViewObject vo = u.findIterator("xxIterator").getViewObject();
vo.reset();
while(vo.hasNext()){
Row row;
if(rowIndex==0)
row=vo.first();
else
row=vo.next();
row.setAttribute("ChkFlag", newValue.booleanValue());
rowIndex=1;
u.addPartialTargets(tableDocuments);
}Please help!!.
Thanks & Regards,
Santosh.
jdeve 11.1.1.4.0Can you check this sample in the blog post?
http://sameh-nassar.blogspot.com/2009/12/use-checkbox-for-selecting-multiple.html
Thanks,
Navaneeth -
Lock rows and columns header in a table view report. It is possible?
hi,
I have a Dashboard that displays a report in "Table View" with many rows and columns.
Is it possible to set a lock on the rows and columns like Excel?
This would have blocked such headers that contain attributes and measures and to browse the report (eg with a scroll bar) had always viewed the headers.
Can you help me?
Thankshi,
please go through this discussion
Re: SCROLL BAR to FREZZ HEADERS
thanks,
saichand.v -
using oracle 10g
i need help for a report.
my table structure is as below with sample data
tbl_customer
============
customer_id | customer_title | customer_name
1 | Ms. | Nancy
2 | Mr. | Ram
3 | M/S | General Traders
4 | M/S | XYZ Traders
tbl_orders
==========
order_id | order_date | customer_id | amount
1 | 1-mar-09 | 1 | 1000
2 | 2-mar-09 | 1 | 500
3 | 3-mar-09 | 4 | 1500
4 | 3-mar-09 | 3 | 2000
5 | 4-mar-09 | 4 | 3000
6 | 5-mar-09 | 2 | 2500
i need output in the following format
date | order_id | General Traders | XYZ Traders | Direct
1-mar-09 | 1 | - | - | 1000
2-mar-09 | 2 | - | - | 500
3-mar-09 | 3 | - | 1500 | -
3-mar-09 | 4 | 2000 | - | -
4-mar-09 | 5 | - | 3000 | -
5-mar-09 | 6 | - | - | 2500
customers name with title as M/S should become heading for the columns and Ms. or Mr. comes under heading "Direct"
thank you.search the forum for PIVOT
Here is one thread with some examples Re: Help for a query to add columns -
Row and Column transpose question
Dear Support ,
I would like to transpose one internal table , for example :
Column : MATERIAL , QTY , DATE
MA1 , 100 , 2009-01-01
MA2 , 200 , 2009-01-01
MA3 , 200 , 2009-03-02
After the convertion , it should be like that :
Column : MATERIAL , 2009-01-01 , 2009-03-02
MA1 100 0
MA2 200 0
MA3 0 200
As i know , in SQL it is very easy to do that , just like :
select sum(case ' xxx ' when ' xxx ' .... ) ....
But how to do that in ABAP ?
Thanks .
Carlos ZhangHi,
Please find teh code as follows
TYPES : BEGIN OF t_itab,
mat TYPE matnr,
qty TYPE menge_d,
dat TYPE datum,
END OF t_itab.
TYPES : BEGIN OF t_datcol,
dat TYPE datum,
col TYPE i,
END OF t_datcol.
DATA : tbl_obj TYPE REF TO data,
line_obj TYPE REF TO data.
DATA : lv_field TYPE fieldname.
DATA : wa TYPE t_itab,
wa_col TYPE t_datcol.
DATA: itab TYPE STANDARD TABLE OF t_itab,
itab_dt TYPE STANDARD TABLE OF t_datcol.
DATA : fcat TYPE lvc_t_fcat.
DATA : fcat_wa TYPE lvc_s_fcat.
DATA: cntr TYPE i.
FIELD-SYMBOLS : <fs> TYPE t_datcol,
<fs_mainitab> TYPE STANDARD TABLE,
<fs_line> TYPE ANY,
<fs_field> TYPE ANY.
wa-mat = 'M1'.
wa-qty = 100.
wa-dat = '20090101'.
APPEND wa TO itab.
wa_col-dat = '20090101'.
APPEND wa_col TO itab_dt.
wa-mat = 'M2'.
wa-qty = 200.
wa-dat = '20090101'.
APPEND wa TO itab.
wa_col-dat = '20090101'.
APPEND wa_col TO itab_dt.
wa-mat = 'M3'.
wa-qty = 200.
wa-dat = '20090302'.
APPEND wa TO itab.
wa_col-dat = '20090302'.
APPEND wa_col TO itab_dt.
SORT itab_dt BY dat.
DELETE ADJACENT DUPLICATES FROM itab_dt COMPARING dat.
fcat_wa-fieldname = 'MAT'.
fcat_wa-ref_field = 'MATNR'.
fcat_wa-ref_table = 'MARA'.
APPEND fcat_wa TO fcat.
LOOP AT itab_dt assigning <fs>.
<fs>-col = sy-tabix.
CONCATENATE 'F_' <fs>-dat INTO lv_field.
fcat_wa-fieldname = lv_field.
fcat_wa-ref_field = 'MENGE'.
fcat_wa-ref_table = 'MSEG'.
APPEND fcat_wa TO fcat.
ENDLOOP.
now make your main internal table as required
dynamic table only incase if you do not know the dates
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = fcat
IMPORTING
ep_table = tbl_obj
EXCEPTIONS
generate_subpool_dir_full = 1
OTHERS = 2.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ASSIGN tbl_obj->* TO <fs_mainitab>.
CREATE DATA line_obj LIKE LINE OF <fs_mainitab>.
ASSIGN line_obj->* TO <fs_line> .
IF <fs_mainitab> IS ASSIGNED AND <fs_line> IS ASSIGNED.
LOOP AT itab INTO wa.
ASSIGN COMPONENT 'MAT' OF STRUCTURE <fs_line> TO <fs_field>.
IF <fs_field> IS ASSIGNED.
<fs_field> = wa-mat.
UNASSIGN <fs_field> .
READ TABLE itab_dt INTO wa_col
WITH KEY dat = wa-dat.
IF sy-subrc EQ 0.
cntr = wa_col-col + 1.
ASSIGN COMPONENT cntr OF STRUCTURE <fs_line> TO <fs_field>.
IF <fs_field> IS ASSIGNED.
<fs_field> = wa-qty.
COLLECT <fs_line> INTO <fs_mainitab>.
UNASSIGN <fs_field> .
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
Regards,
Ankur Parab
Edited by: Ankur Parab on Jun 24, 2009 4:04 PM -
Report sort by column header question
the column sort in a standard report (RP or Q) does sort the lower case values at the end of the alphabet; how can I integrate the lower case values in to the regular sequence of the alpha letters ?
Example of desc order: it starts with lower case :
ülog Company
swa Company
mobiler AG
freezer.net
dpa Company (*)
ZKL Company
Warner Music
Victors
United Internet
Echo
Dora Co.
Charly
Berta Co.
ABC company
- as I cannot influence the Sorting of the inbuilt sort mechanism - how can I manage to integrate e.g. dpa (*) between Echo and Dora Co. ?
TIA
BernhardBernhard,
use the INITCAP() function for that column (a). Fetch the same column once again without
using the INITCAP function and hide it (b). In the properties of the column a ==> HTML
Expression enter #b# in order to display column b. This way the column will display the text
as is (b) but sort on capital initial letters (a).
However, using a standard report doesn't allow any modification of the columns within the
query. There, you would need a view to query upon. Or you just use a "normal" report.
Denes Kubicek -
Row to Column Conversion Question
Hi All,
Could you please help on this sql query statement:
SELECT BENEFIT FROM TEST_T ;
BENEFIT
QO,1G,1U,1W
Out Put Needed like this
BENEFIT
QO
1G
1U
1W
Thanks,Hi,
As I said, it depends on your data, your requirements and your version.
REGEXP_COUNT was new in Oracle 11.1. Since you're using an earlier version, you can see how many comma-delimited sub-strings you have by seeing how much shorter the string gets if you remove all the commas:
1 + LENGTH (benefit)
- LENGTH (REPLACE (benefit, ','))
This assumes you don't have data with mutiple consecutive commas such as 'AB,,,,CD', but it might not cause any terrible results even if you do.
The way I used CONNECT BY won't work in Oracle 10, either.
Now I know everything I need to know about your Oracle version, but I don't know anything about your data or your requirements. Do you want me to spend my time writing solutions that assume things about your data and your requirments, so you can spend your time trying them only to see that they don't do what you need?
Explain what your data is like. Do you have a fixed number of comma-delimited parts (e.g., always 4 parts). If not, do you have an upper bound (e.g., never more than 10 parts)? Can you have multiple consecutive commas?
Explain what you need to get from that data. Will you always be splitting one string into parts, as in the example you posted, or will you need to split multiple stings in the same query? Will the correct results ever contain NULL?
Post a little sample data (CREATE TABLE and INSERT statements), showing all special cases you need to handle. Post the results you want from that data.
See the forum FAQ: https://forums.oracle.com/message/9362002 -
In BI Bex Query Designer output, dont want to have unit at column Heading..
Hi
I have a BI Bex Query Designer report showing output with Qty unit at Column Heading level. Even in KF's Text i didn't mention unit. I want unit to appear to column fields instead of column heading. Pls let me know how to do that.
One more thing is: i have 2 reports exactly same except due date range is different. first report showing unit for each KF at the column heading level and for 2nd report showing column fields level... Surprising. Pls let me know what is the reason and how to control it.
Thanks...Hi Harpal,
Key figures can have scaling factors and units/currencies. Normally, units/currencies are displayed for every key figure, but not the scaling factors. If you activate the Display Scaling Factors for Key Figures, an additional header row is added to the row or column header. Information about the scaling factor and currency/unit appears in this additional header row, as long as it is consistent (for example, 1,000 EURO).
For more information, You can go through
http://help.sap.com/saphelp_nw04/helpdata/en/e0/52029f961aa84d869b9b20fa7f7646/frameset.htm
Hope it helps & resolves your issue.
Regards,
Pavan -
How to Merge ADF Table Column Header in ADF Table ?
Hi All,
We need to have ADF Table Column header to be "Merged",
e.g :
There are two columns Header : | Qty (Case) | Qty (Pack) |,
can we customize it to display like this :
| ----- Qty -------|
| Case | Pack |
where there are two rows in column header, the first one is "Merged".
How can we do that ?
Thank you very much,
xtantoHi Kelly,
Thank you for your reply,
Using Column Faced, Header I can format the header of one column Only.
My requirement is to Merge header of two colums :
| ----- Qty -------|
| Case | Pack |
'Case' &'Pack' is two different column, so I need to add one row on the header of the two colums, then 'merge' them, and add the word '----Qty----'.
Is it possible ?
Thank you,
xtanto -
Localization of CrossTab row and column label Crystal Report RPT file
Dear all,
Does anyone know how to support multiple locale texts (English and French) in CrossTab Row and Column Header labels and grand total labels? Is there a way to parameterize text objects CrossTab in one single Crystal Report RPT file to use some sort of locale resource file containing text string for different languages based on the users of RPT at runtime? The idea is to use one single RPT file to generate report for different locale text for CrossTab Row and Column abels and grand total labels instead of creating RPT files per locale?Hi,
Does the database have a column that identifies the language? If it does, then you could create two separate cross-tabs and place them in different sections and conditionally suppress the section depending on the language from the database.
That's the only thing that can be done in my opinion.
-Abhilash -
Column header sort - case sensitivity issue
Hi guys,
I'm having an issue with the built in column sorting when you click the headers on a report. Basically case sensitivity is taken into account and capital letters get sorted before smaller case letters, for example:
Cats
Dogs
Zebra
ants
bears
How would I be able to fix this built in sort?
Thanks,
LuisLuis,
See if Denes's solution helps: Report sort by column header question .
Scott -
Interactive report – column heading in multiple rows
I am using interactive report. My question to the expert/guru’s is: - How do I change column heading into multiple row with text wrap.
For example:- My column heading is
Is Employee Trained ? -------> (single row display)
I want to make it display like
Is Employee
Trained ? ------> (Multi row display)
SagarHi,
What you could do is, disable the download csv function from IR (Interactive Report Attributes--> Search Bar-- Uncheck Download) and in the region header create a link and redirect it to another page which will have the csv report output.
e.g. <a href="#" onclick="javascript:redirect('f?p=&APP_ID.:3:&SESSION.::&DEBUG.:3::');"" >Download Report </a>
Here I am redirecting the link to Page 3. On Page 3 create a sql report with the same query and make report template to csv. Thanks,
Manish
Maybe you are looking for
-
How to set and resent reconcilation a/c for Assent a/c
hi how to set and resent reconcilation a/c for Assent a/c amk
-
Airport Utility 5.6 does not download on my Lion 10.7
I'm trying to set up an old airport espress and found out I had to install Airport Utility 5.6 to be able to do it. When I try to download it does not install on my MacBook Lion OS X 10.7.5, any ideas why?
-
ComboBox can't work in flashlite2.0 ?!
I'm trying to create a selection for a Nokia phone, so I tried to implement a combo box to do it. But the selection can't ne selected when it's running. What's wrong?
-
Testing of function module using secatt ,st30 st03n
Hi Gurus , i am new to sap testing , kindly let me know the complete process of testing a function module using ecatt ,st30 and st03n s kindly provide me with links for the same. thanks in advance ,
-
When I try to open the emails delivered using the BB bridge the email client on the playbook gets stuck displaying a white screen then black about every one or two seconds. Rebooting doesn't seem to help. Henry