Adding 2 columns HELP

Hello Thanks for taking the time reading this everyone,
I have 1 Table with 3 Columns
Column 1 - Quantity
Column 2 - Unit Cost
Column 3 - Total Amount
I have the user entering the Quantity, and Unit Cost
is it possible to create a function that mutiplyes both on an SQL Report, that shows me a result.
I tried to use Report Attributes>Column Attributes TOTAL_AMOUNT
HTML Expression: #R_QUANTITY# * #UNIT_COST# (Am I Close?)
is there another way of doning this?
Thanks in advance.
Jo3y

If you're talking about a report, then I assume that the user has already entered the data into a form and it has been saved to the database.
In which case, it would be easiest to do this in the SQL statement that retrieves the data
SELECT QUANTITY,  UNIT_COST,  QUANTITY * UNIT_COST AS TOTAL_AMT FROM TABLE_AThe HTML EXPRESSION isn't able to do any arithmetic as it's purely an HTML string with some substitution variable ability.
Hope That Helps,
- Doug -
http://sumnertech.com/

Similar Messages

  • Stock Requirement List - MD04 - adding columns in this list

    Dear All,
    I am working on the Stock Requirement list ( transactioncode MD04) and the customer wants to add columns with the fields STPO-DATUV ,date of change of a drawing, and the drawing number with revision level STPO-YY_DZEINR.
    There is a badi MD_ADD_COL_EZPS which provides in adding columns, but according the structures MDPSX , MDEZX and MDSUX there are no fields in thoser structures, which directly match with the required fields; somebody has a clue to help me out and get it working.
    For instance: Vendor- and Customer data  can be added by using the pushbuttons and those fields are available from above mentioned structures.
    Thanks in advance and kindest regards,
    Rene.

    Hi Utpal Mishra
    You guessed correctly. I missed to inform our Strategy. We are using Strategy group  11  Make-to-stock prod./gross reqmts plnning.
    User is not able to do PGI or create delivery. He says I have enough stock in MMBE but why system is not allowing.
    Here there are some pending document like -
    1. Pending sales order
    2. Pending deliveries (picking not done)
    2. Delivery created & Picking Done but PGI not done. These things will have a commitment against the stock. But we are interested in getting these document numbers, so that we can take come action against them.
    MD04 simply shows the mrp element as order / delivery but the document number is not available. How to find these documents.
    Please help. Is there any table or a standard transaction ??
    Thanks

  • Adding Columns to the matrix in SAP B1 user form using Visual studio 2010

    Hi,
    Using Visual studio 2010, I have created a SAP B1 user form( b1f ) with one matrix.Matrix is having 5 columns. Its working properly. Later, I want to add few more columns. Then I added columns to the matrix as I have created columns initially. But, it does not saves.
    i.e, Whenever I run, In B1 I could see only old columns. Newly created columns are not showing.So, I closed the .net project and opened again. Created columns are not showing in visual studio b1f itself. So, I created again and saved. But, its not saving.I tried it many times.
    What I am missing?
    Any help is appreciated.
    Thanks in advance,
    Parvatha Solai.N

    Hi Parvatha,
    Are you using B1 Studio? Anyway try to clean the solution first then rebuild it. This would re-copy files to the output directory, that contain your changes.
    Best regards,
    Pedro Magueija

  • Discoverer 10.1.2 does not refresh new added column

    Hello,
    I need help to add a new item to EUL Business Area folder for a new added column in the database table.
    When I refresh the folder in the BA EUL, the result shows no difference between the folder and the underlying table in the database; however, when I quey the table in the database, a new column is there. The refresh of the folder in the Discoverer Admin tool cannot find the newly added column. Weird!! The first time saw this problem.
    Could someone shine some light on it? Would be really appreciate it!
    Ping

    I have a slightly different problem and can't solve it! When I refresh the EUL, the result shows the differences between the folder and the underlying tables in the database. However, it does not refresh the EUL in Discoverer Administrator 10g. Nothing happens! When I try to refresh again, the same list is shown... Does anyone know what could be happening?
    Thanks

  • Adding columns in the matrix

    Hai ,
    I am adding the columns in an existing matrix at runtime in page load.
    I can able to add but how to give the header text for the columns added?
    I tried with the following code,
    oMatrix.Columns.Item("ItemMake").Title = "Make";
    but it gives  the error as,
    "property or indexer 'SAPbouiCOM.IColumn.Title' cannot be assigned to -- it is read only"
    and also i want the added column to be displayed in the first position.
    Regards,
    Kughan.

    Hi,
    Then i recommend u to create a UDF in the marketing document section. So that in the PO matrix u can get a new col. And for creating the UDF u can do it in SAP UI using.. Tools->Customization Tools->User defined Fields management or u can also do it in code C:\Program Files\SAP\SAP Business One SDK\Samples\COM DI\VB.NET\02.MetaDataOperations Check that sample for code.
    Hope it helps,
    Vasu Natari.

  • Specify the location for any newly added column

    Hi friends,
    Is it possible in Oracle to specify the location for any newly added column. why it always goes to
    the last , I want to add a new column at first.
    If it is possible and anybody knows please tell me.
    Thanks & Regards
    Chandrakishore Bankhede

    Hi Chandrakishore,
    Not exactly a spatial question but the answer is "no" as far as I am aware.
    TOAD for Oracle has a nice feature called "Rebuild Table" that provides a GUI interface for redefining and moving columns around. Basically it generates all the required DDL for you - it saves all the constraints, indexes, triggers, etc. Then it creates a new table with your changes, renames the old table with a suffix and replaces all the constraints, indexes, triggers on the new table. Most helpful.
    However - see this makes the post spatial in nature :) - for as long as I have been around this feature of TOAD has not been able to handle SDO_GEOMETRY columns - failing with "ORA-22917: use VARRAY to define the storage clause". The good news is the new TOAD 10 now is free of this bug.
    This is not meant to be a commercial for TOAD, I just don't know of any other product with this feature. Others may know of similar things perhaps or you can write a function yourself in PL/SQL.
    Cheer,
    Paul

  • Adding column dynamically

    Hi all
    I have a requirement of adding the columns to a Classic Table at run time.. the number of columns are not fixed. the number of The data in there columns will be dispaled from the view initialized at run time.
    I tried searching out threads on adding column dynamically but didtn get one..
    pls help me out ..
    naveen

    Of course you can add columns dynamically, but this always needs to be from the same VO, a OA table cannot be based on more than one VO.
    So if it all the columns are from the same VO, why take the pain of adding and removing columns, why not just either render it or hide it.
    Thanks
    Tapash

  • How to insert data into newly added column

    Hi all,
    i am having a doubt how to insert entries into newly added column..
    i created a table with two columns and inserted the data into them then i altered the table by adding additional column.now i want to insert data into that..plz tell me how to do that..??
    thanks in advance..help me

    Small example:
    [email protected]> create table t(id int, id2 int);
    Table created.
    [email protected]> insert into t values (1,2);
    1 row created.
    [email protected]> insert into t values (2,2);
    1 row created.
    [email protected]> alter table t add id3 int;
    Table altered.
    [email protected]> select * from t;
    ID ID2 ID3
    1 2
    2 2
    [email protected]> update t
    2 set id3 = 10
    3 where id = 1;
    1 row updated.
    [email protected]> select * from t;
    ID ID2 ID3
    1 2 10
    2 2
    Best Regards
    Krystian Zieja / mob

  • When adding columns, why do I get overrides on style?

    Hi all,
    When I'm adding columns in a certain document I end up with the new columns having overrides on them. How can I avoid this?
    The columns I added are seen in the middle.
    As you can see the they all get a "shift down" by -22 pt.
    I use this shift down on some other place in the document, but the table columns are clean from that kind of override, and just by selecting a column and adding 4 new columns "to the right" of that column, I would expect the new ones to get the exact same properties as the one selected.
    Can anyone try to explain what might be wrong with my document or way of working?
    Adding info: It seems there's something in the styles - many properties on them... This has noting to do with cells specifically. Just adding a textbox results renders the text this way as well, with the baseline shift (only no override symbol).
    Best regards,
    Andreas

    Ah... now I get it. The default styles of the document were set to a specific paragraph style and another character style.
    Setting the defaults to [Basic Paragraph] and None respectively seems to put everything in order.
    (You set a default by clicking outside the document so that nothing is selected, and then you select the styles [Basic paragraph] and None)
    Case closed.

  • How to get added columns in the after DDL trigger?

    As title, I want to get information, like name/type/.., about the added columns by sql statement "alter table *** add (***)" in the after ddl trigger. But looks like dba_tab_columns view doesn't include the added columns.
    Thanks

    Hi
    Hi try other versions of the trigger like
    create or replace trigger addl_trigger
    after alter on schema
    declare
    TYPE attrs_cur IS REF CURSOR;
    m_cur attrs_cur;
    m_event varchar2(50);
    m_user varchar2(50);
    m_owner varchar2(50);
    m_user1 varchar2(50);
    m_type varchar2(50);
    m_name varchar2(50);
    m_column varchar2(50);
    m_cnt NUMBER;
    m_stmt varchar2(512);
    number_of_modified_objects BINARY_INTEGER;
    t ora_name_list_t;
    begin
    m_event:=ora_sysevent;
    m_user:=SYS_CONTEXT('USERENV','SESSION_USER');
    m_user1:=ora_login_user;
    m_owner:=ora_dict_obj_owner;
    m_type:=ora_dict_obj_type;
    m_name:=ora_dict_obj_name;
    if (m_type='TABLE' and m_event='ALTER')
    then
              execute immediate 'select count(*) from dba_tab_columns where owner=:1 and table_name=:2' into m_cnt
              using m_owner,m_name;
              insert into log values (m_cnt);
              dbms_output.put_line('->'||m_cnt);
              OPEN m_cur FOR 'select c.name from sys.col$ c, sys.obj$ o, sys.user$ u where o.obj# = c.obj# and o.owner# = u.user# and u.name=:1 and o.name=:2' using m_owner,m_name;
              LOOP
                        FETCH m_cur INTO m_stmt;
                        EXIT WHEN m_cur%NOTFOUND;
                        insert into log values (m_stmt);
                        --dbms_output.put_line(m_stmt||'**************');
                        END LOOP;
    end if;
    but all versions continue to insert only the already existing columns. I think that Oracle actualize the dictionary first after this system event.
    Bye, Aron

  • SSAS Tabular - Adding Column to a table gives error "Object reference not set to instance of object"

    If I make changes to a table in SSAS Tabular Visual Studio, the newly added column gives error as "Object
    reference not set to instance of object"

    Hi VikasJain13,
    According to your description, you get the "Object reference not set to instance of object" error when adding columns in Tabular. Right?
    Generally, it throws this error when the internal code is accessing the property of an empty object. As you mentioned it happens when you make changes on a table, mostly it means that table is already a empty object. Please re-process your tabular to see
    if this table is still existing. 
    If you have any question, please feel free to ask.
    Simon Hou
    TechNet Community Support

  • Irritating problem with adding columns

    I am adding columns to jtable. And then moving it to required postion.
    But whenever I edit those columns all the newly added columns and the first column reflects those changes. ie whatever I enter in the new columns, it appears in all newly added columns and the first column as well.
    whats wrong I am doing here.
    EditableHeaderTableColumn ncol = new EditableHeaderTableColumn();
    TableColumnModel columns = table.getColumnModel();
    int c = table.getSelectedColumn();
    columns.addColumn(ncol);
    columns.moveColumn(i-1, c+1);

    Make sure you are not sharing the TableColumn instance or adding a TableColumn that already is in the TableColumnModel.
    When resizing the table column, do the others resize too. ?

  • Newly added column not displayed in Interactive report

    Hello,
    I have a tableA with 3 columns.In the application i am displaying as Form with Report region as Interactive report(Oracle 10g Application Express 3.2).
    I added one column to tableA.Now when i am refreshing the report by adding that column in the select query,the new added column is not displayed in the application.
    How can i do this so that the added column can be displayed.I dont want to delete the whole thing and redo it again.
    Thanks
    Siya

    Hi Siya,
    The Interactive Report will not show you the newly added columns by default. You have to select those columns from the actions menu and when all the required fields are displayed then save it as the default report.
    Then you will be able to see all the columns.
    Hope this solves your problem.
    Thanks,
    Satish.

  • Does adding RAM help solve iMovie4 jerky playback

    I have been reading threads about jerky playback in iMovie4 in large projects, after adding music from iTunes etc. My wife has a monster project and playback during editing has became very eratic. I have emptied cache, repaired the hard drive, repaired permissions etc. I have not tossed iMovie preferences. I have 23 gigs of space on the HD and a 250gig external FW HD that I bought after she started the project on the internal HD. I would like to know from you experts: 1. Would it help to move the project to the larger external HD? 2. Would adding RAM help (currently iMac G5 1.8mhz with 768 megs RAM)? 3. Is there any way to tell if the project will export to iDVD smoothly if it continues to look terrible in iMovie playback? I hate to go through a few hours of rendering for nothing. Thanks so much for your help. I always find good and useful info in discussions.
    Mike Ryan

    Michael, there are some very useful applications that I highly recommend to keep your Mac running smoothly. As a defragmenter I use Allsoft's Disk Warrior that also has a very good directory repair feature. Check out also Drive Genius that has a host of useful features. Also get iMovie file fixers, invaluable tool that is free that will allow iMovie to import certain files in audio and photo formats that are greyed out and also has other features. I believe I got mine from Mr. Lennart Thelander in previous posts here. Cache Out is an excellent application to clear out cache files. I also advise you do a regular permission repair from Disk Utility in your Utilities folder that is on your Mac. These are basically my must have applications. As for copying your iMovie project to your external, just drag your entire project folder ( the blue one with the media and star folder(s) in it directly in the external hard drive. I find that iMovie is one application that requires a clean (defragmented) drive with ample space to spare. I defrag my drives if I trash files often from them, or if I notice erratic and jerky performance or slowness in response. I hope that some of my suggestions will help your in your editing.

  • Newly added column not reversed by strand  reverse engineering

    Hi Guys,
    I have reverse engg a datastore from Oracle database and later I added one new columns in the same table at database level. Now when I am doing strand reverse Engineering from the model the newly added columns are not being reflected in ODI.
    please comment/advise.
    I want to do this through strand reverse Engineering.
    Thanks,
    Giri

    Appreciate if any one share suggestion/inputs on this issue

  • Adding column headings

    I am using RAS server to create dynamic columns in my report. But the column headings are not coming.
    Isnt there any way to set the heading for the newly added columns?   
    Any idea what i am missing?   
    Here is a code i am using
        Private Sub AddTableFromDataSet(ByVal ds As System.Data.DataSet, ByVal crTable As CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable)
            ' Add the dataset as a data source to the report
            m_boReportClientDocument.DatabaseController.AddTable(crTable, DBNull.Value)
            m_boReportClientDocument.DatabaseController.SetDataSource(DataSetConverter.Convert(ds), "TEST")
            Dim ifield As Integer
            ' Add a field to the report canvas
            Dim CrField As CrystalDecisions.ReportAppServer.DataDefModel.ISCRField
            For Each dtfield In m_boReportClientDocument.Database.Tables(0).DataFields
                ifield = m_boReportClientDocument.Database.Tables(0).DataFields.Find(dtfield.Name.ToString, CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault)
                CrField = DirectCast(m_boReportClientDocument.Database.Tables(0).DataFields(ifield), Field)
                CrField.HeadingText = CrField.Name
                CrField.Description = "TEST"
                m_boReportClientDocument.DataDefController.ResultFieldController.Add(-1, CrField)
            Next
        End Sub
    Thanks in advance

    You either have to add the heading yourself, or you can use
    reportClientDoc.ReportDefController.ReportObjectController.AddByName("{Orders.OrderID}", "OrderID")
    This doesn't let you set anything about the objects, so it would probably be better to add them separately.

Maybe you are looking for