Change column headers dynamically in OBIEE
hey guys.
We are working on a BI module for Finance. The data mart captures data for Actuals/Forecasts and Budgets for entire year by months (for example Jan2008 will have Actual/Forecast value and Budget value & similarly for other months of the year) .
Now while displaying on the dashboard reports the column header for the current month should read as Actual and for coming months it should read as Forecast.
Any suggestions as to where we can implement this business rule so as to make the column header dynamic.
Thanks
OBIEE_user
Seems like you don't know Venkat yet...
http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
Similar Messages
-
Change column header dynamically at report run time
how to use LOV In report column definition under column attributes for display..
If it suceeded will it dynamicaly change header name at time of running report
my requirement is actually to change column header dynamically at time of run report
is it possible with above mentioned way?
Apex 4.1, Oracle 11g, PL/SQL Gateway configuration
Please help me on this
ThanksHi,
by making use of specific report column templates and column template conditions you can change the headers dynamically.
See this http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ui_templt.htm#HTMDB25708 for more info.
regards,
Erik-jan -
How Do I cahnge lables(column headers) dynamically?
Hi,
Dynamically, how do I change column headers based on some other value is the report?
ThanksIf the value you want as the column header is in the XML use the element.
If you want different column headers based on a particular element in the XML then use conditional logic (if or when) wrapped around the column headers to do the selection at run time. See the user guide for examples of conditional processing in the template.
cheers,
Dave -
Need to display COlumn headers dynamically in ALG Grid
Hello,
I need to display column headers dynamically in alv grid Display with its corresponding value.
Column headers should be picked from a field in Final Internal table and its corresponding field will also need to pick from the same table.
T_final... Suppose Field STCTS - (To pick coulmn headers)
CCNGN - (To pick appropriate value for that column)
Can anybody explain me how i can pass these values to ALV Grid using
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = Y_I_FCAT
IMPORTING
EP_TABLE = DY_TABLE.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Any suggestions will be appreciated....
Regards,
KittuHi,
Go thru this link, and the code of Mr.Dev Parbutteea
Re: Probelm with Using Field Symbol in FM
thanks
Mahesh -
Assigning Column Headers Dynamically in ALV output
Hello Experts,
I have to create dynamic column headers based on the user input on the selection-screen. Basically users enter the period and the ALV output has to create the column headers dynamically for that along with some standard columns.
For eg, The selection screen is like this:
From: 'Q4' '2009'
To 'Q2' '2011'.
Then I have to create 12 columns for the months and rest for the Quarters.
Then the output will be like this:
Material, Description,10/09, 11/09, 12/09, 01/10, 02/10, 03/10, 04/10, 05/10, 06/10, 07/10, 08/10, 09/10, Q4/10, Q1/11, Q2/11
I have built the logic to determine the number of colums for the periods based on input.
By reading other posts, I have learnt that I have to use call method cl_alv_table_create=>create_dynamic_table to get the functionality.
I have also looked at program BCALV_TABLE_CREATE for some help. It only has column headers in increasing order. But I am not able to understand How to pass the Column Header Label (for eg 10/09 or Q1/10) to the fieldcat dynamically.
Is there any blog/sample prog close to my req? Can anybody please please help me. I grealy appreciate it.
Thanks.Hi Lope,
You need to filll column heading based on dynamic internal table column names.
In your final internal table, you will have some column names like '1009, 1109, 1209' .
While filling fieldcatalog you need to put your logic for column heading text.
If column name is 1009, concatenate '10 ' '/' '09', or calculate the quarter 10 falls into ,and display Q4/09.
Regards,
Nisha Vengal. -
Create grouped column headers dynamically
Hi all,
I want to create grouped column headers dynamically.
DATA lr_table_column TYPE REF TO cl_wd_table_column.
DATA lr_column_group TYPE REF TO cl_wd_table_column_group.
DATA lr_caption TYPE REF TO cl_wd_caption.
lr_table_column = cl_wd_table_column=>new_table_column( ).
lr_table_column->set_table_cell_editor( lr_input ).
lr_caption = cl_wd_caption=>new_caption( ).
lr_caption->set_text( 'Min' ).
lr_column_group = cl_wd_table_column_group=>NEW_TABLE_COLUMN_GROUP( ).
lr_column_group->set_header( EXPORTING the_header = lr_caption ).
CALL METHOD lr_column_group->add_column
EXPORTING
index = 1
the_column = lr_table_column.
lr_table->ADD_GROUPED_COLUMN( EXPORTING the_grouped_column = lr_column_group ).
But I don't understand how I can get the grouping of the columns.
The following structure should be realized:
FR | Headline 1 | Headline 2 |
SR | Min | Max | Min | Max |
FR = first row
SR = second row
regards
Edited by: Wolfgang Bauer on May 19, 2010 7:52 AMLOOP AT it_comp_header INTO wa_comp_header.
Minimum
counter = counter + 1.
CONDENSE counter.
CONCATENATE 'INPUT_' counter INTO id.
c_count = sy-index.
c_count = counter.
CONDENSE c_count.
CONCATENATE 'IT_BIN_COMP.MIN' c_count INTO binding.
cl_wd_input_field=>new_input_field(
EXPORTING
bind_value = binding
id = id
RECEIVING
control = lr_input ).
lr_column_group = cl_wd_table_column_group=>new_table_column_group( ).
lr_table_column = cl_wd_table_column=>new_table_column( ).
lr_table_column->set_table_cell_editor( lr_input ).
lr_caption = cl_wd_caption=>new_caption( ).
lr_caption->set_text( 'Min' ).
lr_table_column->set_header( lr_caption ).
lr_column_group->add_column( lr_table_column ).
lr_table_column = cl_wd_table_column=>new_table_column( ).
lr_table_column->set_table_cell_editor( lr_input ).
lr_caption = cl_wd_caption=>new_caption( ).
lr_caption->set_text( 'Max' ).
lr_table_column->set_header( lr_caption ).
lr_column_group->add_column( lr_table_column ).
lr_table_column = cl_wd_table_column=>new_table_column( ).
lr_table_column->set_table_cell_editor( lr_input ).
lr_caption = cl_wd_caption=>new_caption( ).
lr_caption->set_text( 'Sorting Bin' ).
lr_table_column->set_header( lr_caption ).
lr_column_group->add_column( lr_table_column ).
lr_caption = cl_wd_caption=>new_caption( ).
text = wa_comp_header-chip.
lr_caption->set_text( text ).
lr_column_group->set_header( lr_caption ).
lr_table->add_grouped_column( lr_column_group ).
ENDLOOP.
Sub product
lr_column_group = cl_wd_table_column_group=>new_table_column_group( ).
lr_table_column = cl_wd_table_column=>new_table_column( ).
lr_table_column->set_table_cell_editor( lr_input ).
lr_caption = cl_wd_caption=>new_caption( ).
lr_caption->set_text( 'Sub Product' ).
lr_table_column->set_header( lr_caption ).
lr_column_group->add_column( lr_table_column ).
lr_table->add_grouped_column( lr_column_group ).
Remarks
lr_column_group = cl_wd_table_column_group=>new_table_column_group( ).
lr_table_column = cl_wd_table_column=>new_table_column( ).
lr_table_column->set_table_cell_editor( lr_input ).
lr_caption = cl_wd_caption=>new_caption( ).
lr_caption->set_text( 'Remarks' ).
lr_table_column->set_header( lr_caption ).
lr_column_group->add_column( lr_table_column ).
lr_table->add_grouped_column( lr_column_group ). -
Change column headers in ALV report
Hi experts,
I have created a new simple ALV report (it uses only internal tables, no structures). I would like to change the names of column headers in the ALV report. Is this possible? How can I do it?
Thanks in advanced.Thanks for your reply,
I am trying to use the code mentioned in the link but I think that something
is missing, probably a CASE statement before WHEN in the LOOP.
Can you help me? What do I have to put before WHEN statement?
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = <program name>
i_structure_name = <DDIC structure>
i_bypassing_buffer = 'X'
CHANGING
ct_fieldcat = gi_fieldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3. "#EC *
LOOP AT gi_fieldcat INTO wa_fieldcat.
WHEN 'XXXX'.
wa_fieldcat-seltext_s = 'Fac'.
wa_fieldcat-seltext_m = 'Factory'.
wa_fieldcat-seltext_l = 'Factory'.
wa_fieldcat-reptext_ddic = 'Factory'.
MODIFY gi_fieldcat FROM wa_fieldcat.
ENDLOOP. -
Getting column headers dynamically from input parameters in alv.
Hi all,
I am new to abap, can any one help me in getting column header dynamically through parameters in alv ?
Eg:-
i Have parametars for days field ,
user inputs days as 10 20 30 40.
Now I want to display in alv column headers as:-
1st column- 'FROM 0 TO 10'
2nd column- 'FROM 10 TO 20 '
3rd column- 'FROM 20 TO 30'
4th column- 'FROM 30 TO 40'
5th column- 'FROM 40 TO 50'
6th column- 'FROM 50 TO 60'
thanks in advance........Check this code snippet:
Step 1: Create a dynamic table based on the input in the selection screen.
TYPE-POOLS: abap.
DATA:
lr_structdescr TYPE REF TO cl_abap_structdescr,
lr_tabledescr TYPE REF TO cl_abap_tabledescr,
lr_datadescr TYPE REF TO cl_abap_datadescr,
lt_components TYPE abap_component_tab,
ls_component TYPE abap_componentdescr,
lr_wa TYPE REF TO data,
lr_tab TYPE REF TO data.
DATA: lv_index TYPE sy-index.
DATA: lv_index_num(5) TYPE n.
DATA: lv_index_char(5) TYPE c,
lv_iter TYPE i,
lv_low TYPE numc2 VALUE 0,
lv_high TYPE numc2 VALUE 10.
DATA: lr_alv TYPE REF TO cl_salv_table.
FIELD-SYMBOLS: <fs_field> TYPE ANY.
FIELD-SYMBOLS: <fs_wa> TYPE ANY.
FIELD-SYMBOLS: <fs_tab> TYPE table.
PARAMETERS p_numcol(2) TYPE n DEFAULT 50.
START-OF-SELECTION.
lv_iter = p_numcol DIV 10.
DO lv_iter TIMES.
IF sy-index > 1.
lv_low = lv_low + 10.
lv_high = lv_high + 10.
ENDIF.
lv_index_num = sy-index.
lv_index_char = lv_index_num.
CONCATENATE 'FROM' lv_low 'TO' lv_high INTO ls_component-name
SEPARATED BY '_'.
ls_component-type =
cl_abap_elemdescr=>get_p( p_length = 10 p_decimals = 2 ).
INSERT ls_component INTO TABLE lt_components.
ENDDO.
* get structure descriptor -> lr_STRUCTDESCR
lr_structdescr
= cl_abap_structdescr=>create( p_components = lt_components
p_strict = space ).
* create work area of structure lr_STRUCTDESCR -> lr_WA
CREATE DATA lr_wa TYPE HANDLE lr_structdescr.
ASSIGN lr_wa->* TO <fs_wa>.
lr_datadescr = lr_structdescr.
lr_tabledescr
= cl_abap_tabledescr=>create( lr_datadescr ).
* Create dynamic internal table
CREATE DATA lr_tab TYPE HANDLE lr_tabledescr.
ASSIGN lr_tab->* TO <fs_tab>.
* Populate the internal table
DO 10 TIMES.
DO.
lv_index = sy-index.
ASSIGN COMPONENT lv_index OF STRUCTURE <fs_wa> TO <fs_field>.
IF sy-subrc <> 0.
EXIT.
ENDIF.
<fs_field> = sy-index.
ENDDO.
APPEND <fs_wa> TO <fs_tab>.
ENDDO. -
HTML DB Chang column name dynamically
Can I change the column name dynamically. for instance
Today run my apply it will display the title of the columns this
Column title: Wed Thu Fri
04/22/05 04/23/05 04/24/05
Data 45 34 34
54 56 23
Next week
Column title: Wed Thu Fri
05/03/05 05/04/05 05/05/05
45 34 34
54 56 23
The date Change Dynamically?Go to your report and open report atributes. There you can choose the options for column names. Click on the pl/sql function and type this in:
DECLARE v varchar2(20);
begin
v := to_char(SYSDATE, 'dd.mm.yy')||':'||to_char(SYSDATE+1, 'dd.mm.yy');
RETURN v;
END;
This will set the first two columns to the specified dates. You can use this as one option.
If the case is more complicated than you can do the following:
1. create a number of items on your page - hidden
2. compute the items with values once the page is loaded
3. use item substitute string &ITEM. in the column name, which will use the item value as a name for the column.
This way you are more flexible since you can use the item values for some columns only and have the other columns hardcoded.
Denes Kubicek -
Unable to change column width dynamically in cross tab report.
Hi,
We have developed cross tab layout using template builder v.10.1.3.2.1 in EBS.I am trying to increase column width dynamically and the width is coming xml.
i looked at document and found one command <?split-column-width:name?> for the same.i tried but it is not increasing the size of one column.
Output
column1 column2 column3 .......
Row text1 10 20 30
Row text2 40 50 60
I want to inrease the size of column for row text1 and row text2.
Need help in this.
Thanks,
MaheshIs the field that holds your width value called "name"?
Can you send me the xml and RTF template to [email protected] and I can take a look.
Thanks,
Bipuser -
Can I change column headings dynamically based on report query conditions ?
Hi All,
Is there a possibility in OBIEE to change the headings of the column dynamically depending on the conditions that i keep on the report query ?
Assume that i am showing an emp table data of one department at a time.
The column heading of employee name should be like <DEPT>_EMP, Where <DEPT> is the department on which i was reporting..
Example:
Report query : Select * from emp where dept = 'PHYSICS'
The column heading of employee name should be PHYSICS_EMP.
Thanks in advance.Hello,
did you try to create a column with the data of dept and put it in a column level of a pivot table?
In the example that you gave, the column head would show 'PHYSICS' because it's the data filtered at your query. Them, you just edit this column and concatenate the '_EMP' string. -
Change Column Heading dynamically in ABAP report
Hi,
is it possible to have the selection screen values in the column heading of the result screen in a report?
Currently list heading / column heading values are maintained in a Goto-> Text elements -> List headings
but I would like to have values there that are entered by user, is it possible?
Regards,
MindaugasHi,
User can Maintain the Column Heading's, by the way you mentioned....
Else you can use TOP-OF-PAGE event to build Dynamic Coulmn Headers. -
Automatically change column headers across drill levels.
.Hi,
I have a table in my Webi report that displays month-wise data. On drilling down, it displays day-wise data. Now, the first column of this table is 'Month', which displays the month in MM-YYYY format. The column heading for this column is also 'Month'. Next, when I drill down on month, the column displays days in DD-MM-YYYY format. However, the column heading remains as 'Month', although, the data now being displayed in the column is a day-wise data. I want this column heading to change to 'Day' automatically when I drill down to view the day-wise data.
Any help in resolving this issue will be greatly appreciated.
Regards,
Alok.Hi Gabe,
I see you're getting into drilling!
Yes, this should be possible using Alerters. Essentially, you want to say: if the contents of the cell is x, then display y. I'm not sure if you'll want to look for, say "Month" or "=NameOf([[Month]])" but I reckon one would work.
It's explained a little bit in this post, but it's more about dynamically changing the text that's show in the actual column, not the header: http://blog.davidg.com.au/2011/03/sorting-months-in-webi.html
DG -
Changing of column's Dynamically
Hi
Can any one tell me how to change column's Dynamically in Answer's..
Regard's
NandaHi,
If you are asking for changing the column in the report from the list of available columns in a drop down menu, yes that is possible. Its called column selector. Please follow the below link on how to work your way through creating a column selector in a report.
http://mithil-tech.blogspot.com/2010/06/obiee-using-column-selector-for.html
Hope question is answered.
Thanks,
-Amith. -
Change Column Header from Crosstab
Hi, can I change the column's header from a crosstab in a JSP?, by example, I have a crosstab with one column where the header said "Product", and I want to change it to "Product A".
thanks.Hi,
by making use of specific report column templates and column template conditions you can change the headers dynamically.
See this http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ui_templt.htm#HTMDB25708 for more info.
regards,
Erik-jan
Maybe you are looking for
-
Re-print Quote Smartform from Backend
Hi, How do i reprint a quote from the backend. In the action tab I am not able to re-process it .
-
BAPI which creates a PO from Shopping cart
Hello All, Irrespective of any scenario, How is that the PO is getting created out of an ordered shopping cart? Is it a BAPI, if so, where can we see this ? I mean which trans code should we use in the GUI? Thanks in advance, Nagarajan
-
Can't install iPhoto 11, currently have iPhoto 08
I am currently using iPhoto '08 version 7.1.5. I have tried to purchase the latest version of iPhoto from app store, but it won't let me. I have tried to uninstall current version but I can't do this either. I have tried to download updates from appl
-
Oracle bat scripts on windows log file generation
I want to generate logfile/recording of this .bat file, msglog file is not generating any thing , any idea or any other suggestion how i can generate logfile ? like we can do in crotab scropt>> script.log etc set ORACLE_HOME=c:\oracle\10 set ORACLE_S
-
Closing webdynpro applicaiton in Blackberry browser
Hi , We have a requirement like this : we want to close webdynpro application in Blackberry on clicking a button in the webdynpro application. for this i am interface plug method in webdynpro java.That is working fine in IE and not supporting in Blac