Can we add a new column in report which is not in table.

Hi All,
Can we create a new column in report which is not in table.
I have two columns in my table completion_date, manufacture_date. If the difference between the completion_date and manufacture_date is 0, -1, 1 then the new column of the report will say on time against each record or else will display late. Any suggestion how to proceed on this
Regards
Edited by: User_Apex on May 16, 2011 5:54 AM

Standard report then, NOT an interactive report (which if you were using, you could build a computation and report on that)..
Then the adding a column in the query would be your best best...
Thank you,
Tony Miller
Webster, TX
There are two kinds of pedestrians -- the quick and the dead.
If this question is answered, please mark the thread as closed and assign points where earned..

Similar Messages

  • How can I add a new column in compress partition table.

    I have a compress partition table when I add a new column in that table it give me an error "ORA-22856: CANNOT ADD COLUMNS TO OBJECT TABLES". I had cretaed a table in this clause. How can I add a new column in compress partition table.
    CREATE TABLE Employee
    Empno Number,
    Tr_Date Date
    COMPRESS PARTITION BY RANGE (Tr_Date)
    PARTITION FIRST Values LESS THAN (To_Date('01-JUL-2006','DD-MON-YYYY')),
    PARTITION JUNK Values LESS THAN (MAXVALUE));
    Note :
    When I create table with this clause it will allow me to add a column.
    CREATE TABLE Employee
    Empno Number,
    Tr_Date Date
    PARTITION BY RANGE (Tr_Date)
    PARTITION FIRST Values LESS THAN (To_Date('01-JUL-2006','DD-MON-YYYY')),
    PARTITION JUNK Values LESS THAN (MAXVALUE));
    But for this I have to drop and recreate the table and I dont want this becaue my table is in online state i cannot take a risk. Please give me best solution.

    Hi Fahed,
    I guess, you are using Oracle 9i Database Release 9.2.0.2 and the Table which you need to alter is in OLTP environment where data is usually inserted using regular inserts. As a result, these tables generally do not get much benefit from using table compression. Table compression works best on read-only tables that are loaded once but read many times. Tables used in data warehousing applications, for example, are great candidates for table compression.
    Reference : http://www.oracle.com/technology/oramag/oracle/04-mar/o24tech_data.html
    Topic : When to Use Table Compression
    Bug
    Reference : http://dba.ipbhost.com/lofiversion/index.php/t147.html
    BUG:<2421054>
    Affects: RDBMS (9-A0)
    NB: FIXED
    Abstract: ENH: Allow ALTER TABLE to ADD/DROP columns for tables using COMPRESS feature
    Details:
    This is an enhancement to allow "ALTER TABLE" to ADD/DROP
    columns for tables using the COMPRESS feature.
    In 9i errors are reported for ADD/DROP but the text may
    be misleading:
    eg:
    ADD column fails with "ORA-22856: cannot add columns to object tables"
    DROP column fails with "ORA-12996: cannot drop system-generated virtual column"
    Note that a table which was previously marked as compress which has
    now been altered to NOCOMPRESS also signals such errors as the
    underlying table could still contain COMPRESS format datablocks.
    As of 10i ADD/SET UNUSED is allowed provided the ADD has no default value.
    Best Regards,
    Muhammad Waseem Haroon
    [email protected]

  • How can I add a new column to Grid view under Tests tab

    I understand in "ORACLE Test manager for web Applications", the Grid view under Tests tab should be customised.
    How can I add a new column to Grid view under Tests tab? Thanks Katherine

    I don't think this is possible.
    Regards,
    Jamie

  • How can I add a new column to an Attachments Table

    How can I add a new column to an Attachments Table??
    And I want to remove the usage column also!
    Thanks!

    I tried to remove the usage column doing this:
    OAAttachmentTableBean attachTable = (OAAttachmentTableBean)webBean.findChildRecursive("attachTable");
    if (attachTable != null)
    attachTable.findChildRecursive("UsageTypeColumn").setRendered(false);
    but I'm getting null pointer exception on "UsageTypeColumn"...
    :(

  • How to add a new column (Project Number) in the action items table under NPD Module?

    There are two projects with same name and created by same person in NPD.
    So when it is displayed in "Action Items" table, It looks similar.
    To avoid this, I need one more column (Project Number) to be added in the "Action Items" table and " Strategic briefs and projects" table.
    So, How to add a new column (Project Number) in the "Action Items" table and " Strategic briefs and projects" table under NPD Module?
    Please do the needful.

    There is no out of the box configuration available to add columns to NPD action items.   As always we welcome enhancement requests. 
    Thanks
    Kelly

  • Can't add a new column to LCD table? Option there, just wont add it.

    I have a LCD form with a table in it. Im trying to simply add a new column to the table. The option is there but the column just wont appear after clicking add Column to Left. I selected a column, right clicked the space > Insert > Column to left. But wont intsert. The table object properties tab shows rows and colum numbers but they are grayed out.
    See screenshots:
    http://www.emermed.net/staging/forums...
    http://www.emermed.net/staging/forums...
    This is a dynamic table where a new row can be inserted using a button. Is that dynamic nature the issue? Id hate to undo all the dynamic flow and programming just to add a column then reapply everything.
    Thanks!

    Hi,
    You don't add columns in the Object > Table palette (Screenshot 2). I suspect that the problem is that there is not enough on the page (within the content area) to actually add the column. In Screenshot 1, if you look at the width of the highlighted column versus the space available to the right of the table, you will see that a column cannot be added due to space restrictions.
    Reduce the width of the highlighted column (temporarily), then add a column. Once added, you can resize the columns to match the page width.
    Hope that helps,
    Niall

  • Want to add one new column in Report form

    Hi all,
    I have searched in forum but not able to find the answer.
    I want to add one new column in form 12KST1C. I have added one column PR commitment in left and saved the form, it is showing in form but when i am running the report again then pr commitment column which i have added in form is not coming in report.
    How to activate this form or column?
    Help me....in doing so...

    If you are copying the 12KST1C to Z12KST1C and executing the s_alr_8701333 report, you will not see the new column added to Z12KST1C
    With the new Form Z12KST1C, create a new Report Z12KST1C and assign a new TCODE. Also you have to select all rows and column of form Z12KST1C
    TCODE CJE5
    Select the form Z12KST1C
    Extras--Drildown display --Select Rows and columns
    Select the all colhmns by F9
    Hope this helps.
    Edited by: psconsultant on May 20, 2011 8:42 AM

  • Can I add a new column to a composite primary key without dropping it?

    Hi
    I need to modify the composite primary key of a table so as to include an another additional column to it?
    Can I do that without dropping the PRIMARY KEY constraint on the table?

    user13410062 wrote:
    Hi
    I need to modify the composite primary key of a table so as to include an another additional column to it?
    Can I do that without dropping the PRIMARY KEY constraint on the table?post results from ALTER TABLE command

  • Error: Can't Add a New Sales Order: -10  Exchange rate not updated,

    Hi,
    I'm trying to add several Sales Orders contained in a XML document, whose root element corresponds to the Sales Person created that XML. Anyway, after I fill a Sales Order Document Object with the info in the XML and try to add it the following error appears: "Exchange rate not updated  [RDR1.U_Desc4][line: 2] , 'USD'" Which is strange because this company handles most of its transactions in MXP Currency. I will post the piece of Code that fills the object hoping it helps:
    For Each xndSalesOrder In xmlSalesOrder.Item("SalesMan").ChildNodes
                    oSalesOrder = Me.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
                    oSalesOrder.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
                    With xndSalesOrder.Item("HEADER")
                        oSalesOrder.CardCode = .Item("Deudor").InnerText
                        oSalesOrder.DocDate = DateTime.Parse(.Item("FechaCont").InnerText, Nothing)
                        oSalesOrder.DocDueDate = DateTime.Parse(.Item("FechaEnt").InnerText, Nothing)
                        oSalesOrder.Comments = .Item("Observaciones").InnerText
                        oSalesOrder.DocRate = 11
                        oSalesOrder.DocCurrency = "MXP"
                        'oSalesOrder.ContactPersonCode = .Item("Contacto").InnerText
                        'User Fields
                        oSalesOrder.UserFields.Fields.Item("U_RefOV").Value = _
                            xndSalesOrder.Attributes.Item(0).InnerText
                        oSalesOrder.UserFields.Fields.Item("U_Referencia2").Value = .Item("Referencia").InnerText
                        oSalesOrder.UserFields.Fields.Item("U_FechaReferencia").Value = _
                            DateTime.Parse(.Item("FechaReferencia").InnerText, Nothing)
                    End With
                    With xndSalesOrder.Item("LINEAS")
                        For Each xndLinea In .ChildNodes
                            If intContLineas >= 1 Then                             oSalesOrder.Lines.Add()
                            End If
                            oSalesOrder.Lines.ItemCode = xndLinea.Item("Articulo").InnerText
                            oSalesOrder.Lines.Quantity = CDbl(xndLinea.Item("Cantidad").InnerText)
                            oSalesOrder.Lines.Price = CDbl(xndLinea.Item("Precio").InnerText)
                            oSalesOrder.Lines.TaxCode = xndLinea.Item("Impuesto").InnerText
                            oSalesOrder.Lines.DiscountPercent = CDbl(xndLinea.Item("DescuentoTotal").InnerText)
                            oSalesOrder.Lines.SalesPersonCode = xmlSalesOrder.Item("SalesMan").Attributes.Item(0).InnerText
                            oSalesOrder.Lines.Currency = "MXP"
                            'User Fields
                            oSalesOrder.Lines.UserFields.Fields.Item("U_Promocion").Value = _
                                xndLinea.Item("AplicaProm").InnerText 'Valores posibles: Si, No
                            oSalesOrder.Lines.UserFields.Fields.Item("U_Desc1").Value = _
                                CInt(xndLinea.Item("Descuento1").InnerText)
                            oSalesOrder.Lines.UserFields.Fields.Item("U_Desc2").Value = _
                                CInt(xndLinea.Item("Descuento2").InnerText)
                            oSalesOrder.Lines.UserFields.Fields.Item("U_Desc3").Value = _
                                CInt(xndLinea.Item("Descuento3").InnerText)
                            'If xndLinea.Item("AplicaProm").InnerText = "Si" Then
                            oSalesOrder.Lines.UserFields.Fields.Item("U_Desc4").Value = _
                                CInt(xndLinea.Item("Descuento4").InnerText) 'This is the UDF that's giving me problems!!!
                            'End If
                            intContLineas += 1
                        Next
                       If oSalesOrder.Add() <> 0 Then
                            Me.Company.GetLastError(intErrorAdd, sErrMsgAdd)
                            If (0 <> intErrorAdd) Then
                                FillLog("Sales Order Error: " & CStr(intErrorAdd) & "," & sErrMsgAdd)
                            End If
                            xmlLogSalesOrder.Item
                        End If
                    End With
                Next
    If you look at the code I've even tried the solution of hardcoding the DocRate and the Currency as seen in a similar post about the DTW.
    Sorry if code is in Spanglish, its quite late around here. I hope you can help me because it's kind of an urgent matter and I can't seem to find a solution for it.
    Other useful data: SAP BO 2005 Patch 4.
    Thanks in advance...
    Alfredo Gargari

    Hi Alfredo,
    Have you tried to add the same salesorder by hand, I think you wil first get a form with exchange rates.
    I think you should add a check to your program to check for an update currency rate (the sbobob function GetCurrencyRate does this for you).
    GetCurrencyRate MethodDescription
    Returns a Recordset object that contains the currency rate for a specified date and currency code.
    See Currency Bobs sample.
    Syntax
    Public Function GetCurrencyRate( _
       ByVal Currency As String, _
       ByVal Date As Date _
    ) As Recordset
    Parameters
    Currency
    Specifies the currency code.
    Date
    Specifies the date for the currency exchange rate.
    Return Type
    A Recordset object that contains one field named CurrencyRate that holds the rate value.
    SAP Business One returns 0 if the system cannot find the exchange rate.
    Regards,
    Ad

  • Add a new column in Agreement Items table control (ME31K/ME32K/ME33K)

    Hi guys,
    I have a big issue.
    How can I add a new column at Agreement Items table control (ME31K/ME32K/ME33K) level.
    Thanks a lot.

    I think i solved the problem . The single way to to that is to modify the SAP standard Screen.

  • How to add a new column to specific position

    Hi,
    How to add a new column to specified position in a existing table.
    I have using the oracle database 10g.
    This below code is not working in oracle 10 g
    example:
    ALTER TABLE EMPLOYEE ADD DEPT NUMBER FIRST:
    ALTER TABLE EMPLOYEE ADD DEPT NUMBER AFTER JOB:
    Please provide the correct syntax.

    Hi,
    When you add a column to the existing table, the column added i.e., for ex updatedon appers in the last. If you want the columns to be
    displayed in Specific order. Just give the column names in the SELECT.. statement.
    For your Information, But it is not good in Table design. Just to give something useful.
    If you want to add a column at a specified position,
    Rename the position column to the new column name
    For Ex: (OLD_COLUMN_NAME-Hiredate)
    ALTER TABLE EMP RENAME COLUMN OLD_COLUMN_NAME TO TEMP_HIREDATE;Add a New Column to Table
    ALTER TABLE EMP ADD LAST_DATE DATE;Then, Alter the Table to rename the new column that is added.
    ALTER TABLE EMP RENAME COLUMN LAST_DATE TO OLD_COLUMN_NAME;And, Rename TEMP_HIREDATE to your actual collumn.
    ALTER TABLE EMP RENAME COLUMN TEMP_HIREDATE TO LAST_DATE;In practise, this won't be a good approach but you can get something useful about renaming the
    column atleast.
    Thanks,
    Shankar

  • 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 Agarwal

    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

  • Add new column to report S_ALR_87013568

    All,
    I have given a requirement to add a new column in the sap standard report S_ALR_87013568.
    Any info how to enhance this report.
    1. one suggestion given by my collegues saying we need to new report. I don't have any info how this report is created. is this report created using report or some other tool ?
    2. Cloning of the same report into a new name and make changes.  is it right way ?

    This report is developed by using report painter.
    you will be able to add new column by changing th report layout / form. you can do this in CJE4. or else create new form by copying the form 11ERL1E and change the columns. then you create a report in CJE1 assigning the above form.

  • 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

  • Trying to add new columns to Report painter Report

    Hi Experts,
    I created a report painter report by copying an already existing report. In addition I wanted to add extra columns to this report but after adding a few and coming to the last page of the existing report when i try to add a new column the system gives me an error message
    Insufficient space on current page -> moving not possible
        Message no. KH581
    As this is the last page, I am not able to add extra columns to this report. How can I go to the next page and add columns to this existing report. Your responses are highly appreciated.
    Regards
    ASLV

    Hello,
    This is a constraint in the system.
    The solution maybe is to define narrower columns        
    because there is a hard restriction in ABAP to have at least 255 digits            
    on one page.                                                                               
    The message KH581 is processed because there is not enough space left              
    on the first horizontal page. So if you first add a new horizontal page            
    you can add the new column on the second page. Also if you decrease the            
    column width of the columns to get more space left on the first page you           
    can add the new columns.
    I hope it helps.
    REgards,
    REnan

Maybe you are looking for