How can i multiply 2 columns of an infoset

Hi Gurrus,
I am creating an ABAP Query for doing that i have created an infoset which has two Exchange Rate and Net Value, i want to multiply Exchange Rate * Net Value to get the net value in local currency, Gurrus help me out that how can i do it.

There are two ways to do it. First as others have mentioned to create a custom field in your infoset. This will be useful if many users are going to use that field in their queries. For it you have to do a change in your infoset and create a custom field.
Other way is local field, which do not require any coding. Also, no change in infoset, it is created directly in your query. But other queries will not be able to access it and every user has to create this local field in their queries if many people want to access this field.
I have a blog where I have discussed step by step about both above methods. In your case there is no logical database, so dont worry just add your tables in infoset and then create a custom field for your table same as I have discussed for logical databases.
Here is the blog link /people/shafiq.rehman3/blog/2008/06/16/sap-adhoc-query-sq01-sq02-sq03
Edited by: Shafiq Rehman on Feb 3, 2009 10:09 PM

Similar Messages

  • How can i suppress columns in ALV ?? Will reward points.

    Hello Gurus, how can i suppress column in ALV when i`m using the transparent table:
    CALL METHOD grid->set_table_for_first_display
          EXPORTING
            i_structure_name = 'ZIANEXE'
            is_layout        = wa_layout
            is_variant       = wa_variant
            i_save           = 'U'
            IT_TOOLBAR_EXCLUDING = LT_EXCLUDE
          CHANGING
            it_outtab        = itab[]
            it_fieldcatalog  = fieldcat.
    Please help.

    in the fieldcatalog you are providing there is a field NO_OUT use this.
    Loop over internal table and check fieldname. If fieldname = column you want to hide, NO_OUT = 'X'.
    Edited by: Micky Oestreich on May 8, 2008 12:06 PM

  • How can I move columns in Numbers without distorting the formula in other cells?  In Excel I can cut and paste entire columns and the formula in other cells adjusts accordingly.  When I do it in Numbers, the formula messes up.  How can I do this?

    How can I move columns in Numbers without distorting the formula in other cells?  In Excel I can cut and paste entire columns and the formula in other cells adjusts accordingly.  When I do it in Numbers, the formula messes up.  How can I do this?
    For example: I have formulas in columns D and F that relate to columns C to CU
    If I want to move one column from one position to another (say S to T), the formula loses the colums that was moved, i.e. it doesn't recognize it has moved, rather sees it as deleted...  How can I do this without distorting the formula?

    Thanks for the feedback.
    If I often urge askers to look at the available resources, it's because  a large range of questions asked in the forums are already answered in these documents.
    As they are PDFs, they are easy to search in.
    CAUTION
    Download them while they are available.
    Given what is delivered with iBooks Author, I'm afraid that we will not get such easy to use documents.
    Searching infos in the  iBooks Author documentation available on line is awfully cumbersome and a lot of embedded links are wrongly flagged this way. In the Help files they aren't links but underlined strings.
    It seems that the tool used to generate the web pages was wrongly configured.
    Yvan KOENIG (VALLAURIS, France) dimanche 22 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan

  • How can I select columns from a table EMP, using Select statement?.

    Hi Friends,
    How can I select columns from a table EMP?.
    I want to select columns of EMP table, using select statement.
    Please reply me urgently.
    Shahzad

    Something like this:
    scott@DBA> select empno,ename,job from emp;
         EMPNO ENAME      JOB
          7369 SMITH      CLERK
          7499 ALLEN      SALESMAN
          7521 WARD       SALESMAN
          7566 JONES      MANAGER
          7654 MARTIN     SALESMAN
          7698 BLAKE      MANAGER
          7782 CLARK      MANAGER
          7788 SCOTT      ANALYST
          7839 KING       PRESIDENT
          7844 TURNER     SALESMAN
          7876 ADAMS      CLERK
          7900 JAMES      CLERK
          7902 FORD       ANALYST
          7934 MILLER     CLERK
    14 rows selected.Check the documentation:
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#sthref9697
    Message was edited by:
    Delfino Nunez

  • How can i register column with in the query

    hi all
    how can i register column with in the query?

    Thanks.
    In my business one, the column width was registed.
    But I don't know how can I do it.
    So I try to save the query again after change column width.
    Then the query was opend with changed column width.
    Is it right function?
    Is there any way to register the column width?
    It's very troublesome to change column width every time.
    seiichi

  • How can we restrict Column length in ALV using POWL.

    Hello,
    I have a new assignment o ABAP Web Dynpro, data displaying ALV by using POWL is a part of that assignment. Everything went fine and at last moment I was stuck with a small issue. In my application I am displaying first ALV by using POWL concept and on the basis of selected row I am displaying second level LAV by using normal ALV procedure (SALV_WD_TABLE). Here the issue is as soon as second ALV is displaying columns in first level ALV are getting expanded. How can I restrict Column length in first level ALV using POWL. I browsed a lot for getting the solution for this, Can any one help me out from this issue.
    Regards,
    Kumar

    Done, in field catalog method...

  • How can I set column width in JTable?

    How can I set column width in JTable?

    Also, read the JTable API before posting questions. You will find a link to the Swing tutorial on "How to Use Tables", which contains an example of doing exactly this.

  • How can i multiply two column in collection .

    hi
    how can i use onBlur="javascript:amtItems()" in collection .
    <script>
    function amtItems(){
    function getVal(item){
    if($x(item).value != "")
    return parseFloat($x(item).value);
    else
    return 0;
    $x('c010').value = getVal('c008') * getVal('c009');
    </script>
    Manoj Kaushik

    Is this related to a tabular form? You can get some help here:
    http://apex.oracle.com/pls/otn/f?p=31517:213
    Ths syntax of your javascript would be:
    $x('f03_0001').value = getVal('f03_0002') * getVal('f03_0003');
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • How can i change column header value dynamically in IR report

    HI,
    I have created report with the help of collections. Report query has been changing dynamically but i got problem with report header names and headers names has not been changing dynamically it is always showing like c001,c002....etc so, i have created global item(G_ITEM) in shared components--->Applications items after that
    I have created process(before headers) and assigning some value to G_ITEM and used &G_ITEM to column headres in IR Report but here &G_ITEM is not showing any value.
    How can i achieve dynamic headers names by using *&G_ITEM(global items)* Please guide me to achieve this.
    Thanks in advance.
    Regards
    Narender B

    Narender wrote:
    HI,
    I have created report with the help of collections. Report query has been changing dynamically but i got problem with report header names and headers names has not been changing dynamically it is always showing like c001,c002....etc so, i have created global item(G_ITEM) in shared components--->Applications items after thatWhy didn't you answer the questions in the other thread to see if there was a better approach than this?
    I have created process(before headers) and assigning some value to G_ITEM and used &G_ITEM to column headres in IR Report but here &G_ITEM is not showing any value.
    How can i achieve dynamic headers names by using *&G_ITEM(global items)* Please guide me to achieve this.The static text exact substitution method of referencing the value of an APEX item requires a terminating dot ("."):
    &G_ITEM.

  • How can I change column name in ALV table in WebDynpro ABAP?

    Hi Everyone,
    I have created an ALV table in WebDynpro ABAP. I have created a context node and added the required attributes there - for the ALV display.
    Now I want to change one columnn name of the ALV table.... Currently it is showing the description of the data element, which I don't want to show. I cannot create a new DE only for this purpose.
    Please let me know how can I change the name of the column.
    Regards

    Hi,
    This may help you to define your own column text in the ALV Table of webdynpro.
    see the below code.
    Here 'STATUS_ICON' is the column of the the output display of the ALV Table of webdynpro.
    "change the label of the report.
    DATA: lr_weeknum TYPE REF TO cl_salv_wd_column.
    CALL METHOD l_value->if_salv_wd_column_settings~get_column
    EXPORTING
    id = 'STATUS_ICON'
    RECEIVING
    value = lr_weeknum.
    SET THE LABEL OF THE COLUMN
    DATA: hr_weeknum TYPE REF TO cl_salv_wd_column_header.
    CALL METHOD lr_weeknum->get_header
    RECEIVING
    value = hr_weeknum.
    CALL METHOD lr_weeknum->set_resizable
    EXPORTING
    value = abap_false.
    hr_weeknum->set_prop_ddic_binding_field(
    property = if_salv_wd_c_ddic_binding=>bind_prop_text
    value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
    set the text of the column
    CALL METHOD hr_weeknum->set_text
    EXPORTING
    value = 'C Form'.
    regarads,
    balu

  • How can I replace column value with a particular value in SQL

    Hi All,
    Can anyone please tell me how can I format my output with replacing a column value with a specific value which actually depends on the present value of the column
    I am executing the following SQL statement
    select state,count(id) from <table_name> where composite_dn= <composite_dn_name> group by state;
    My Present output is:
    State No.Of Instance
    1 3
    3 28
    I want to replace the value in the column state as follows
    State No.OfInstances
    Completed 3
    Faulted 28
    I want "1" to be reppaced by "Completed" and "3" to be replaced by "Faulted"
    Is is possible with SQL or PL/SQL , if it is then how can I achieve this required result. Please help!!
    Thanks in Advance!!
    Edited by: Roshni Shankar on Oct 27, 2012 12:38 AM

    Hi Roshni,
    I guess this CASE clause can be simulated by a DECODE and also it is very easy to use.
    Refer -- http://www.techonthenet.com/oracle/functions/decode.php
    select decode(t1.state,t2.state_id,t2.state_name), t1.count_id
    from <table_2> t2, (select state,count(id) count_id
    from <table_name>
    where composite_dn= <composite_dn_name>
    group by state) t1
    where t1.state = t2.state_id;HTH
    Ranit B.
    Edited by: ranit B on Oct 27, 2012 2:02 PM
    -- link added
    Edited by: ranit B on Oct 27, 2012 2:19 PM
    -- sample code added

  • Creating table in MS Word document via OLE: how can I specify column width

    What method and properties do I need to use in order to specify the width of each column in a MSWord table created via ABAP using OLE ?  Or, better yet, how can I create a table where the columns are sized using the Autofit feature?
    I am already familiar with the standard sample code for creating a word document that contains a table (found in ZOLE_WORD_DOC_CREATE).
    Tom Eshelman

    I found a solution - although I would still be interested if anyone knows how to turn on autofit when creating a table,  The following code can be used to specify the width of one cell at the same time it is filled with data.  I found this in an old SDN posting.
    FORM write_cell_in_table  USING    p_row
                                       p_col
                                       p_text
                                       p_font
                                       p_size
                                       p_bold
                                       p_color
                                       p_width
                                       p_underline.
                                      P_ALIGNMENT.
      DATA: l_len TYPE i.
      l_len = STRLEN( p_text ).
      IF l_len IS INITIAL.
        l_len = 1.
      ENDIF.
    *--Getting cell coordinates
      CALL METHOD OF gs_table 'Cell' = gs_cell
      EXPORTING : #1 = p_row "first row
                  #2 = p_col. "first column
    *--Getting the range handle to write the text
      GET PROPERTY OF gs_cell 'Range' = gs_range .
      IF p_width > 0 AND l_len > 1.
        SET PROPERTY OF gs_cell 'PreferredWidth' = p_width.
      ENDIF.
    *--Filling the cell
      GET PROPERTY OF gs_range 'Font' = gs_font .
      SET PROPERTY OF gs_font 'Name' = p_font .
      SET PROPERTY OF gs_font 'Size' = p_size .
      SET PROPERTY OF gs_font 'Bold' = p_bold . "Not bold
      SET PROPERTY OF gs_font 'Underline' = p_underline . "Double line
      GET PROPERTY OF gs_cell 'Shading' = gs_shading .
      SET PROPERTY OF gs_shading 'BackgroundPatternColorIndex' = p_color.
      SET PROPERTY OF gs_range 'Text' = p_text(l_len) .
    ENDFORM.                    " write_cell_in_table

  • How can I edit column name/heading in Column Attributes?

    Hi All,
    In the link "*Home>Application Builder>Application 1000>Page 2>Report Attributes>Column Attributes*", can someone help me how to edit/modify 'Column Name' and 'Column Heading' ?
    Thanks in advance.
    Regards
    Sharath

    Hi,
    There is Headings Type radio buttons above report column attributes.
    Select Headings Type "Custom" and then you can change Headings.
    Column names (Alias) you need change to report query.
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • How can i change column name in FR

    Hi There
    created a report in the columns i have Children of Q1: JAN FEB MAR
    Problem is i need to change JAN as Jan,FEB as Feb.
    How can i do this.Please suggest me.
    Thanks
    Hv.

    Hi
    I think that the best way to do this would be to add an alias in the database as this can then be consistently applied in any report. However, you could use conditional formatting to do this:
    If MemberName in dimension Period = JAN click the format cells button and then on the REPLACE tab select the check box and type Jan in the field. You will then need to add a second and third format (not a conditions) and repeat for FEB and MAR.
    Hope this helps
    Stuart

  • APEX Report - how can i create column with serial numbers in a report

    Need help
    I have created a report with displaying no of rows resticted to 43, every time i genarate this report i would like to add serial numbers from 6 to 48
    apear in additional column. How can i do this?

    This is not really an APEX question, and would have been better posted on the {forum:id=75} forum.
    Note also that the best way to get fast, effective answer to questions is to provide sufficient information for people to fully understand them:
    http://tkyte.blogspot.com/2005/06/how-to-ask-questions.html
    You should also ensure that your forum profile is updated with a better handle than "user8308442".
    Getting back to the question, one way to do this is using the analytic function ROW_NUMBER():
    with t as (
    -- Test data. Replace with actual query. ---------------------------------------
      select
                dbms_random.string('a', 10) query_data
      from
                dual
      connect
                by rownum <= 43)
    select
              5 + row_number() over (order by query_data) sn -- use required ordering here
            , t.query_data
    from
              t
    order by
              sn
    SN                     QUERY_DATA
    6                      CApoRenlch
    7                      CDiUiSYdMo
    8                      FsjsWFpTMT
    9                      KbbzXvYmQv
    10                     MrjEPqAzFs
    11                     QKOPSdVWpr
    12                     REIXjjdLtD
    13                     RijqpNTzmv
    14                     RngzthgaFv
    15                     SKcPxsdlBE
    16                     SuqFKzMqbB
    17                     TxlglIYENC
    18                     TyWlxKbDIg
    19                     VdRbUOUOPz
    20                     XIQxzkBuKY
    21                     YVcWUJrswt
    22                     aVoYNlMkfx
    23                     cHZPsOlzYM
    24                     cTUEztIOae
    25                     etdNGqQasP
    26                     fVGoGWmdLL
    27                     gHANXpbvMW
    28                     gRNBnwtEhO
    29                     iyefgszgLT
    30                     jRaliUJjKS
    31                     jpzAvQXBwY
    32                     kJifAaetUN
    33                     kfbTWGGCpR
    34                     mTPtqYGvrG
    35                     mhAPgdzezZ
    36                     pdXidmikRX
    37                     pwNdAsqpIV
    38                     rPTBTObdKg
    39                     sFoNLHLeMH
    40                     squTbOYVUM
    41                     tPxSMqPpnQ
    42                     uJtqCybjXB
    43                     vEvrwnGnyJ
    44                     xOOseicRRy
    45                     xqqXBKURog
    46                     ydOPurqyvo
    47                     yqEZvoNsbg
    48                     zsWFLHjVLK
    43 rows selected

Maybe you are looking for

  • Imovie cant import HD footage.

    I bought a HV20 canon camcorder. iMovie cant even detect a camera conected when I shot in HD mode. Only Standard mode can import without problems. Also, when I create a new proyect, the HDV 1080i and HDV 720p format options appears disabled (grey col

  • In the last 1-2 months, the signal strength in my home area has dropped dramatically.

    Signal strength in my home neighborhood has dropped dramatically. This is for all three phones we have here. A Samsung Note 3, Samsung 4 mini and an iPhone 4. Additionally, all who visit need to go to the front of the house to make calls. The dead zo

  • Open previously viewed Tabbed Panel when using browser back button

    I have a page containing SPRY tabbed panels, and was wondering if there was a way that if a user navigates back to this page using the browser back button, the last panel viewed could remain open. Using hash tags in the URL works for Mozilla but not

  • Sender file truncated

    Hello, We have a file to Idoc interface. On several occasions the incoming file appears to have been truncated, in that the total amount in the file header is greater than the total for all the records in the file. The suppliers of the application th

  • Batch process for setting document (language) and page (structure) properties

    I'm looking for a batch process or script that will take a folder of PDFs and add some basic properties required by Section 508 (for accessibility) automagically--such as Document Properties where language=EnglishUS, and Page Properties Tab Order=Use