How to add a column in a report?
Hi,
I have 2 columns from my tables, now i want to add a column in the middle, is there any way i can type this column for each row? or do a conditional format for this new column. see below:
case description # of items
01 desc_1 5
02 desc_2 10
03 desc_3 25
the "description" column is the one i want to add, that is not from any table, is there any way i can add this column, and do
if case='01', display "desc_1"
if case='02', display "desc_2"
if case='03', display "desc_3"
thanx.
If this is what you are trying to achieve...
for example:
select col_1, 'dec_'||rownum txtfield, col_2
from (
select '01' col_1, '10' col_2 from dual union all
select '02' col_1, '15' col_2 from dual union all
select '03' col_1, '20' col_2 from dual union all
select '04' col_1, '25' col_2 from dual union all
select '05' col_1, '30' col_2 from dual union all
select '06' col_1, '35' col_2 from dual union all
select '07' col_1, '40' col_2 from dual union all
select '08' col_1, '45' col_2 from dual
) test
result:
COL_1 TXTFIELD COL_2
01 dec_1 10
02 dec_2 15
03 dec_3 20
04 dec_4 25
05 dec_5 30
06 dec_6 35
07 dec_7 40
08 dec_8 45Add the txtfield column in your select statement as follows:
select <columnName1>,
<columnName2>,
'dec_'||rownum txtfield
from <tablename>Then in your report layout, add a new field column between the two existing field colunms and have the source in the property palette = txtfield.
Hope this helps.
-Marilyn
Similar Messages
-
How to add two columns in OBIEE report?
Hi to All,
Can anyone tell me how to add two columns in OBIEE report and get that result in a new column?
Thanks in Advance,
ThenmozhiAssume you already have two columns SalesAmt1 and SalesAmt2, and you want to derive 3rd column say SalesAmt3 which would be the sum of SalesAmt1 and SalesAmt2.
For this, as I mentioned above pull SalesAmt1 and SalesAmt2 columns in Report. Now pull another column (say SalesAmt1) and open the fx. Clear the contents of fx. Now locate the columns button in the bottom of the fx. From Here, first select SalesAmt1 and + sign and the select SalesAmt2.
Now in this new column, the fx should look like SalesAmt1 + SalesAmt2.
Let me know if you are looking for something else.
Thanks -
How to add a column in report painter
Hello
i have a profit centre report where i have the profit centre group name in the header and i want to move it to column.
could you please let me know how to do this?
ThanksHI Pradeep,
Goto the transaction code (Change Report) GR32.
Give you library name and report name
And click on the column (application tool bar or F7) button then place the curser on the screen where you want column (please note you have to keep curser on the header section u2013Red column text) right click and insert element. Then you select formula as selection element and enter. You will get the enter formula box. Then you can type your formula and continue. This will add new column to the report.
How to enter formula: you can see the formula components in that id and description.
Id is columns that are present and description indicates explanation of that column.
Enter formula according your requirement.
Examples:
Enter formula screen:
ID : des
X001 amount
X002 pt000
X003 test
1. Enter formula as: ( X001 u2013 X002)
The above formula is for fist column u2013 second column.
2. ( ( X001 u2013 X002) / X003) * 100
First column u2013 second column and devide by third column after that multiple with 100.
Hope this will help you
Regards
Manohar -
How to add new column in Report ME2L
Dear Sir,
We are using ME2L for various purposes . In the ME2L report we need to add 2 new columns i.e Item Delivery Date and WBS Element .
Although in the standard ME2L report , after the basic list generation , there have been provided 2 icons for getting the report displayed with either WBS Element or with Delivery Date . It means we can not get both the column Delivery Date and WBS Element available simultaneously in the standard ME2L report .
We request you to kindly guide us as how can we add these column in the ME2L report pl . We are on ECC-6.0 and not having enhancement package 4.0 .
Kindly help us pl .
Regards
Sonia AgarwalHI Pradeep,
Goto the transaction code (Change Report) GR32.
Give you library name and report name
And click on the column (application tool bar or F7) button then place the curser on the screen where you want column (please note you have to keep curser on the header section u2013Red column text) right click and insert element. Then you select formula as selection element and enter. You will get the enter formula box. Then you can type your formula and continue. This will add new column to the report.
How to enter formula: you can see the formula components in that id and description.
Id is columns that are present and description indicates explanation of that column.
Enter formula according your requirement.
Examples:
Enter formula screen:
ID : des
X001 amount
X002 pt000
X003 test
1. Enter formula as: ( X001 u2013 X002)
The above formula is for fist column u2013 second column.
2. ( ( X001 u2013 X002) / X003) * 100
First column u2013 second column and devide by third column after that multiple with 100.
Hope this will help you
Regards
Manohar -
How to add new column in report painter
Hi Experts,
I want to add new column in report painter which as to calculate the previous column . value in the new column should be the precentage of previous column existing on left side...HI Pradeep,
Goto the transaction code (Change Report) GR32.
Give you library name and report name
And click on the column (application tool bar or F7) button then place the curser on the screen where you want column (please note you have to keep curser on the header section u2013Red column text) right click and insert element. Then you select formula as selection element and enter. You will get the enter formula box. Then you can type your formula and continue. This will add new column to the report.
How to enter formula: you can see the formula components in that id and description.
Id is columns that are present and description indicates explanation of that column.
Enter formula according your requirement.
Examples:
Enter formula screen:
ID : des
X001 amount
X002 pt000
X003 test
1. Enter formula as: ( X001 u2013 X002)
The above formula is for fist column u2013 second column.
2. ( ( X001 u2013 X002) / X003) * 100
First column u2013 second column and devide by third column after that multiple with 100.
Hope this will help you
Regards
Manohar -
How to add different columns in a single dashboard prompt?
Hi
I am new to this forum. I got a new requirement, my client is asking me to show multiple columns with multiple tables in a single dashboard prompt
for Ex: Column name Table name
1. Customer 1. Customer Details
2. Market 2. Region
3. Order 3. Order Status
4. Product 4. Product Type
He wants to show all these column names in a single prompt when user click on the particular column name it should appear on report. Is it Possible? if possible tell me how?See this thread...
Re: How to add new columns by using Multiselect -
Hello,
How do I add a column to a Report after it has been created? I cannot find a way to do it readily in the "Report Column Attributes" as I thought it might be the more rational place to put such a time. Nor is there any information in the PDF Manuals.
Thank you for your kind clarification and assistance.Colin,
If this is a report on a SQL query, simply augment your query with the additional column in your select clause.
Joel -
Add New Column in ALV Report of Standard SAP ME28.
Hi anybody,
I want add new column in alv report of standard SAP Program ME28 Screen.
Add Last PO Price column inside ALV Report ME28 Screen.
Can u please anybody tell me how to add new column in ME28 Screen.
Thanks
S.Muthu.Try to find any BADI for the same
Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
1) Goto se24 (Display class cl_exithandler)
2) Double click on the method GET_INSTANCE.
3) Put a break point at Line no.25 (CASE sy-subrc).
Now
4) Execute SAP standard transaction
5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
7) This way you will find all the BADIs called on click of any button in any transaction.
OR
Also one more option is to copy ME28 and, make modifications to the copied program. -
FBL1N - How I add a column in FBL1N
Hello Everybody,
I need add a column in the report of transaction FBL1N.
This new column need to be with option in layout.
Can someone help me.
Thanks.hello Rogério Mayer de Lima ,
To Solve your purpose you need to extend standard structure RFPOSX.
and impliment BTE 1650
and the when you impliment the BTE for the above even you will get the line item and the blank fields as a passing parameter inthe fm to populate your required Data
Just Check in for how to impliment a Business Transaction Event.
hope this helps...!
Thanks and regards
Edited by: Anup Deshmukh on Jul 10, 2010 8:09 AM -
FBL5N : how to add a column of the Account's name?
Hi,
the list displayed by Tcode : FBL5N contain only the number of account, please how to add a column of Account's name ?
Please advise
Regards.When you are in the FBL5N display results screen, use the menu option Settings --> Special Fields.
There are also the following notes which would explain you how to add special or new fields to the line items :
- 310886 Line items: Dynamic selections ignored
- 215798 FBL*N: Special fields are not displayed
- 373268 Line item: new display field
The special field has to exist in table T021S. -
How to add a column in table control
Hi ,
Can any one tell me how to add a column in table control? My requirement is to add two columns ( custom fields ) into table control ( It is a standard program). I have added the column in the table and also in the table control. But when I am running the standard program, The newly added column is not there. But I have added in the perticular screen. Change is not reflected.
Can anyone help me on this please.
Thanks in advance.
Regards,
Lakshmi.Hi,
Ensure the following :
1. After adjusting the database, you`ll have to use the database utility and activate the table.
2. If you have changed the standard screen, in tcode se80 -- right click on the program and click activate all. This activates all objects related to that program.
Now execute the program.
Reward if helpful.
Regards -
HOW TO: Add /manipulate columns for a GridControl
HOW TO: Add /manipulate columns for a GridControl when the columns (attributes) are from different entity objects.
This HOWTO describes the basic steps of using attributes from different entity objects for a GridControl.
One way you can create a GridControl which contain attributes from different entity objects is to create a view object and base it on the entity objects which contain
the desired attributes.
Here are the basic steps:
1.Create a new view object (or use an existing view object) by selecting File>New from the menu, clicking the Business Components tab and double-clicking
on the View Object icon.
2.In the View Object wizard change the name to something meaningful.
3.Select the entity objects you will base your view object on.
4.Nivigate to the attribute screen and select the attributes you would like to include in your view object from each entity object. At this point you can also create
a new attribute by clicking the "New" button. The new attribute can be a concatenation of other attributes, derived from a calculation etc.
5.In the query panel of the View Object wizard, click "Expert mode" and enter a query statement. You write complex queries such as decoding a set of attribute
values.
6.Add your newly to your newly created view object to the application module by double-clicking on the application module in the navigation pane and selecting
your view object from the list.
7.Create a new row set.
8.Bind row set to a query by editing their queryinfo property and selecting your view object and its attributes from the queryInfo pane.
9.Create a GridControl and bind it to the row set by editing the dataItemName property of the GridControl. Since the GridControl is bound at the row set level
all of the related attributes are automatically added.
nullMichael,
Are you intending this as a commercial solution or a work around?
To take an existing equivalent, one would build a view in the database tailored for each grid in an Oracle Forms application. Or a separate query layered over tables for each form/grid in a Delphi or Access application? Even if it is ninety nine percent the same over half a dozen forms/grids?
And now you've added a whole slew of "slightly different" rowSetInfos to maintain.
So if you wanted to add a column that needs to appear everywhere... you've just increased the workload multi-fold?
That would be a management nightmare, wouldn't it? Not to mention yet more performance cost and a slower system?
Hmmmm..... I'm not sure I like where this is headed... someone needs to do some convincing...
null -
In Advanced search Page, How to add custom column under property restrictions?
Hi,
The Navigation control can be added into your HTML page in the Snippet Gallery:
The two links below about how to create HTML master page and adding snippets needed into it for your reference:
http://borderingdotnet.blogspot.jp/2012/12/how-to-create-html-masterpage-for.html
http://msdn.microsoft.com/en-us/library/office/jj822370(v=office.15).aspx
Feel free to reply if there still any question.
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
How we add & grandtotal of sales order report in alv
hi guru how we add & grandtotal of sales order report in alv
regards
subhasishi subhasis,
since u want the grand total in ALV use the following code...
clear gs_fieldcat.
gs_fieldcat-fieldname = field.
gs_fieldcat-tabname = DB table
gs_fieldcat-seltext_m = text.
gs_fieldcat-do_sum = 'X'
gs_fieldcat-datatype = data type (Curr or Quant)
gs_fieldcat-ref_fieldname = reference field name
gs_fieldcat-ref_tabname = reference table name
append gs_fieldcat to gt_fieldcat.
hope this will work...
please reward points in case usefull
regards,
prashant -
How to add multiple columns?
Using designer API, how to add multiple columns to the repository tables? I want to add number of columns at a time instead of adding column by column.
Thanks in advance.Can you use sqlplus?
ALTER TABLE table_name ADD (column_name data_type), (Column_name datatype),...
Check the SQL Reference 11-9.
Hope this helps.
Bill Swanson
Maybe you are looking for
-
Experts, We created a PO for one single item for a particular quanity and a particular amt. However, when we received the IR, the amount on the invoice is different than the amount on PO - What are the ways to handle these exceptions. Basically, I am
-
Create process error 740 the requested operation requires elevation
Hi Friends, I'm trying to launch Virtual KeyBoard from my application. I'm using jdk1.6.0_02. (I also tried on jdk1.3 , which throws same exception as of jdk1.6.0_02) try{ Runtime.getRuntime().exec("C:\\Windows\\system32\\osk.exe");
-
CMP Entity Bean's problem with MS-SQL Server 2000
Hi everyone! I have a problem regarding CMP Entity Bean on OC4J. I made one CMP Entity Bean and deployed it to OC4J. It was successful. I used MS-SQL Server 2000 as Datasource. So, I installed MS-SQL Server's JDBC Driver and add some jar files to cla
-
Best practices for deploying forms in a 'cluster'?
Anyone know of any public docs that discuss typical best practices for - forms deployment; - forms apps management and version control; and/or - deploying (and keeping) the .frm/frx in sync when using multiple forms servers in a HA or load balancing
-
IM not working with hosted domains
My IM working with default domain within portal and from jnlp site but with my hosted domains is not signing in. I have IMS 7.1 (patched) Sun JES 2005Q4 It dont even generate any log for hosted domains. IM log set at DEBUG level. Does IM 7 support ho