Dynamic Column Headings in Report Layout
I am using Report Query/Report Layout for a custom report in BI publisher. My Column Headings are stored in the database. On my pages, I am using the replacement format ' &FIELD_NAME.' to have them show up correctly. How can I do that on my Report Layout?
Hi -
1) Add Query just for column headings under Source Query (you can obviously pass in bind variables to select the correct column values if need be).
2) For layout, pull in the headers from data model (just like any other field) and use them to replace any existing "hard coded" headers.
Good luck.
Similar Messages
-
Generating dynamic columns for a report
Hi all,
Can anybody pls. tell me how to output dynamic columns in a report. my req. is that i've to generate so many columns as there are no. of unique(a particular field value) rows in my internal table. for e.g say suppose i've 5 rows in my internal table which has 2 fields, one short text & it's corresponding value. so now my report output shud have 5 columns with the short text as the column heading & the their corresponding values below each column heading. i heard it can be done thru field-symbols. can anyone pls. guide me.Hi Sushma,
This piece of code might be useful.
The following sections will help you to understand the steps required to define a Dynamic ALV.
Following symbol signifies:
Þ Important
Main Steps Required
The following are the main steps that are to be performed for defining a dynamic Alv
1. Defining a field catalog
2. Defining the dynamic table
3. Filling data into the table
4. Displaying ALV list
Defining a field catalog
The purpose of defining a field catalog first in case of Dynamic ALV is somewhat different than in case of normal ALV. In case of Dynamic ALV the field catalog is used to define the final internal table that will hold the data, and would be used to display the final output.
Þ It is very important to remember that the field catalog table be refreshed first, else it might give an error.
For example:
DATA: T_FIELDCAT TYPE LVC_T_FCAT,
L_FIELDCAT TYPE LVC_S_FCAT.
Refresh T_FIELDCAT.
CLEAR L_FIELDCAT.
L_FIELDCAT-FIELDNAME = 'LIFNR'.
L_FIELDCAT-INTTYPE = ''.
L_FIELDCAT-OUTPUTLEN = 10.
L_FIELDCAT-COLTEXT = TEXT-002.
APPEND L_FIELDCAT TO T_FIELDCAT.
Defining the dynamic table.
This table will hold the final data that needs to be displayed. To declare the table the following things need to be done.
Declare a field symbol
Displaying Alv List
This is done in the same way as we do for normal Alv. Call function REUSE_ALV_GRID_DISPLAY and pass the field catalog table in the export parameters and the dynamic table in Tables.
Reward Points if it is helpful.
Reagrds,
Kiran I -
halo fellow SAPiens,
i need to show dynamic columns for a particular material........the scenario is as follows....
1) there r 7 fixed columns describing the material...
2)when the material returns back to the plant for some reason , i need to insert a column which shows the date and reason(char) of return.
3)again after dispatching the material for some reason it comes back again a new column shld be displayed showin the date and reason(char).
4)if the material doesnt come back...the report shows only 7 columns.
any solution?try <a href="http://www.alvrobot.com.ar/home.php">here</a> ......its a useful tool for dealing with ALV
<b>reward points if useful</b> -
Hi,
In my report i have dynamic columns and i am achieving this using <?split-column-header:header?> , <?split-column-data:variable?>
I need to define width for the dynamically created columns.
How do i achieve this.
i have seen <?split-column-width:name?>,<?split-column-width:@width?>
I tried <?split-column-header:header?><?split-column-width:@200pt?><?heading?><?end split-column-data?> but didn't succeed.
Please advice.
Regards
Jeethi GeorgeHi User
Try this link
Dynamic columns in OBIEE -
Use XML stored in the DB with an Named Columns (XSL-FO) report layout
Hi Folks.
Here's my 'challenge' du jour.
I have an XML document saved in the database.
It was uploaded through APEX (form with report) into a table where the column holding the XML file is defined as "SYS"."XMLTYPE"
I have an XSD file which I am using as the report template definition.
my report query is
SELECT xml_data
FROM xml_documents
WHERE filename = 'test.xml'When I run the report in APEX stating "Use Generic Report Layout" I get a PDF stating [unsupported data type]
Does anyone have any pointers/suggestions?
I have downloaded Apache FOP 0.95 and have succesfully converted the XML into a PDF using the XSL file. Consequently I know that the XML and XSL documents I am using are 'well formed'.
Many thanks
Kind regards
Simon Gadd
Edited by: Simon Gadd on Mar 23, 2009 6:29 PMJust as a follow up, I have come to the logical conclusion that the APEX report query is expecting you to pull back a regular data set from a SQL query.
This can then be parsed with an XSL format report layout. It's not expecting you to pull complete XML out of the database.
Am I right?
Simon -
Designing Dynamic column in BI Report Template
Hi,
In one of my report i have a table grid where the columns are dynamic.How do i design dynamic column in BI rtf Template
Is it possible to hide/Show column for BI report
Please advice
Regards
JeethiHi ,
Check the below link
http://download.oracle.com/docs/cd/E10091_01/doc/bip.1013/b40017/T421739T481157.htm#4535400
search for the Column Formatting you will find the example for dynamic cloumn creation.
Thanks,
Ananth -
To increase dynamically columns in ALV report
hi everyone,
Could any one give me a sample code ,to increase columns in ALV report output dynamically as record increase, i need to increase columns so that i can keep all the years data of a particular project in one rowPlease refer to the code piece
*& Report ZTEST_DYNAMIC_ALV
REPORT ztest_dynamic_alv.
DATA: gt_fcat TYPE lvc_t_fcat,
gw_grid TYPE REF TO cl_gui_alv_grid.
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-s01.
PARAMETERS: p_number TYPE i.
SELECTION-SCREEN : END OF BLOCK b1.
** Start of Selection
START-OF-SELECTION.
*1) Create Base Catalog
PERFORM sub_create_base_catalog.
*2) Add additional fields
PERFORM sub_fill_addtional.
*3) Display output data.
PERFORM sub_display_output.
*& Form SUB_CREATE_BASE_CATALOG
* Create Base catalog for display
FORM sub_create_base_catalog .
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'ZSTRCT'
CHANGING
ct_fieldcat = gt_fcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
ENDFORM. " SUB_CREATE_BASE_CATALOG
*& Form SUB_FILL_ADDTIONAL
* text
FORM sub_fill_addtional .
DATA: lw_fcat TYPE lvc_s_fcat,
lw_from TYPE i,
lw_data TYPE REF TO data,
lw_fname TYPE stfna,
lw_index(2) TYPE n.
FIELD-SYMBOLS: <l_output> TYPE table.
DESCRIBE TABLE gt_fcat LINES lw_from.
DO p_number TIMES.
lw_from = lw_from + 1.
lw_index = sy-index.
CONCATENATE 'DYNA' lw_index INTO lw_fname SEPARATED BY '-'.
lw_fcat-col_pos = lw_from.
lw_fcat-fieldname = lw_fname.
lw_fcat-tabname = '1'.
lw_fcat-scrtext_l = lw_fcat-scrtext_m = lw_fcat-scrtext_s = lw_fname.
APPEND lw_fcat TO gt_fcat.
CLEAR lw_fcat.
ENDDO.
** Convert gt_fcat to internal table.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = gt_fcat
IMPORTING
ep_table = lw_data
EXCEPTIONS
generate_subpool_dir_full = 1
OTHERS = 2.
IF sy-subrc = 0.
** Create the internal table form field catalog.
ASSIGN lw_data->* TO <l_output>.
** display the ALV data.
CREATE OBJECT gw_grid
EXPORTING
i_parent = cl_gui_container=>screen0
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
OTHERS = 5.
IF sy-subrc = 0.
CALL METHOD gw_grid->set_table_for_first_display
CHANGING
it_outtab = <l_output>
it_fieldcatalog = gt_fcat
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc = 0.
MESSAGE s000(zrak) WITH p_number 'DISPLAYED DYNAMICALLY'.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. " SUB_FILL_ADDTIONAL
*& Form SUB_DISPLAY_OUTPUT
* text
FORM sub_display_output .
CALL SCREEN '9001'.
ENDFORM. " SUB_DISPLAY_OUTPUT
*& Module STATUS_9001 OUTPUT
* text
MODULE status_9001 OUTPUT.
SET PF-STATUS ' '.
SET TITLEBAR 'MAIN00'.
ENDMODULE. " STATUS_9001 OUTPUT
*& Module USER_COMMAND_9001 INPUT
* text
MODULE user_command_9001 INPUT.
CASE sy-ucomm.
WHEN 'BACK' OR
'CANC' OR
'%EX'.
SET SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_9001 INPUT -
Building dynamic columns in BO Report (BO 4.0)
Hi All
To start with I am new to BO and using reporting tool
I have a requirement to create a WEBI report which contain a table with a feature to hide / remove columns based on input selection. ( dynamic columns)
I tried to do this by following concept
In my test scenario table has 3 columns. user will select which columns to show when refreshing the report.
I created 4 tables .
table 1: column 1, column 2 and colum 3
table 2: column 1, column 2
table 3: column 1, column 3
table 4: column 2, column 3
all tables were overlapped in display.
I am trying to hide the table using the property which is available in table properties "Hide when following formula is true"
to display table 1: formula is as follows
=UserResponse("Enter Column") = "column1;column2;column3"
The problem doing this way is
1. selection should happen in a given order
2. If there are mulitple columns , it doesn't make sense to create multiple tables as combination of columns increases.
Is there a better formula to set using user response to achieve the above.
Is there any better way to achieve the above generally.
any suggestion and guidance will be appreciated.
Thanks.Hello Guruprasad,
PFB link to a good explanation how to display columns dynamically.
http://blog.davidg.com.au/2011/09/dynamic-measures-in-webi-on-any-data.html
hide formula for different tables will not be easy when you have more number of columns.
another option is conditional formatting of columns based on a variable value. ie, indirectly hiding it by making background and value color white and keeping dynamic width for column.
Regards,
Nikhil Joy -
Display Dynamic Columns in Crystal Report
Hello,
We are currently using Crystal Reports XI and connecting to an ADO .NET XML file as our data source. In this data souce we have a data table called IDENTIFIERS where every column, except for the ones used for joining tables is dynamic. These column will be different for each database thats its run against.
Is there any way to display these dynamic columns without having consistent column names?
You help is much appreciated.
Thanks,
AdamThanks Carl,
We do have control over the data table and a solution like this had crossed my mind. But this might not be practical for other reports that use this data table.
I think another solution would be to create a new data tabl that has all identifiers on their own row as opposed to columns.
id
dentifier
identifier_name -
Add Columns to Adhoc Reports Layouts?
Are there any config or sql injections or translations to add additional columns to the custom layouts in the Adhoc Reports in RPT?
Specifically, would like to display Related Specs when running reports for Trade Specs.
Edited by: Trey on May 1, 2013 11:26 AMYou could probably technically add related items as a search result column in a ready report, but it isn't an out of the box available result column. So it will require some undocumented customization work. I don't think the results grid is the best location for this data due to performance implications and even UI display challenges. I think your best option would be to create a BI Publisher report. Your PLM4P license includes a free limited use license for BI Publisher. This would be a good topic to discuss during a dev to dev call.
-
I can append p_arg_names=xxx&p_arg_values=yyy to a component's URL to pass parameters to the component. I can change some of the attributes of the component in the same way e.g. for a report:
&p_arg_names=_max_rows&p_arg_values=1
...will return the data 1 row at a time. I am trying to change the column headings in the same manner but when I use:
&p_arg_names=_col_headings&p_arg_values=COL_NAME
... then there is no visible effect. Does anyone have a solution or workaround?Hi,
What is the purpose you are trying to achieve? There is not such parameter as colheadings.
Thanks,
Sharmila -
Creating Dynamic Column Headings in Interactive Reports
Hi,
any ideas how I can alter the name of a column in an interactive report.?
I have columns whose usage is defined by the end user and consequently want to have their own meaningful column header displayed whenever this column is referenced.
I can get column headers to change in standard reports by using PL/Sql to return the column headers. In Forms, I use shortcuts (these don't seem to work for reports, I wish they did) but I'm at a loss on how to achieve this with IR's.
Thanks
MikeI wrote a script(application process) that updated the table that holds column name. I changed the display name, not the column name. I cant remember the actual table, but i found it by looking at the code that create the "APEX Application Page Ir Col" View.
I dont know if this is best practice, but it works for me.
Edited by: Adrian3000 on Dec 26, 2008 9:38 AM -
Creating dynamic columns in rdlc report
Hi,
I want to generate an rdlc report where columns are not fixed and decided on the basis of user input.
So I can not design the report before and it should be done dynamically at run time. I have the data in datatable.
Can anyone help how to achieve this.Hi,
You can do this by creating a crosstab report so that the column heading is from an item in the folder.
You cannot have dynamic headings for a table report.
Rod West -
Dynamic columns in crosstab report
Hello,
I'm using CR 2008.
I've created a dynamic crosstab report. The number of columns could be any, depending on the data.
I need to replace the original column headers with the formula, so the headers would look like this:
Set1 Set2 Set3... etc., where 1, 2, 3... etc. are the column indexes (or just sequential numbers).
Could you please recommend me a formula for it? I'm not sure how to insert these sequential numbers to the column headers.
Thank you.Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551 -
Dynamic Column Headings - Function returning colon delimited column list
I created a SQL report using the report wizard.
In the report options, I chose a heading type of:
Function returning colon delimited list of columns
I then wrote a function that returns a VARCHAR2 string.
I return a string like this...
Jan-04:Jan-11:Jan-18:Jan-25:Feb-01
In the text area labeled "Function returning colon delimited list",
I simply entered the name of the function, in this case,
the name is "WeekHeader".
When I execute the report, I get this error:
unable to determine query headings:
ORA-06550: line 1, column 45:
PLS-00221: 'WEEKHEADER' is not a procedure or is undefined
ORA-06550: line 1, column 45:
PL/SQL: Statement ignored
failed to parse SQL query:
How can I get the report to use my function?all you need to do is put the word "return" in front of your function name, and you should be good to go. before you say it, i'll acknowledge that we should probably be more clear about the syntax for that field, so i'll log the enhancement request.
hope this helps,
raj
Maybe you are looking for
-
Report on Open Items along with Qty & Value for LA confirmed items
Hi, I would like to know a report of Open POs(No Goods receipt made) but LA confirmed Items along with Values(Amount) i.e List of confirmed,unsent items along with Values for plant wise or vendor wise or PO Number wise. Regards, Vengat
-
I am unable to open Calendar on my iMac - this occurred after installing Security Update 2015-002. I don't know if related. A message pops up after several minutes saying Calendar quit unexpectedly (but it never really opens). How do get Calendar b
-
Firefox crashes as soon as I move away from my homepage.
Firefox crashes as soon as I move away from my homepage. This start right after I tried to load the 3.6.8 update == User Agent == Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6.5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .
-
Fix found: Illustrator CS3 (PC) crashes when opening file or starting new file
Issue: -Running Windows XP, tried installing CS3 Web premium on a new machine. -All programs worked well except Illustrator; when opening a file or creating a new one, illustrator would crash and give a message of "Microsoft has experienced an error"
-
html:select Struts tag problems
hello I've a bean "Profile" in my sessionScope under name "myProfile" This bean is defined as public class Profile implements java.io.Serializable { private User user; private List<Groups> groups; private List<Function> function;