Removing decimal in mapping

Hi,
How do I remove decimal from float (source) to unsigned integer (target) in graphical mapping?
For eg:
Source = 1500.23
Target = 150023
Reg,
Shobhit

If you want a quick way of just letting numbers to pass, use:
return a.replaceAll([^0-9], "");
in a UDF.
Regards,
Henrique.

Similar Messages

  • How to remove namespaces in mapping when using External Definition

    Hi,
    I read in the blog (/people/sameer.shadab/blog/2005/12/05/how-to-remove-namespaces-in-mapping--xi) that you are able to remove namespaces in mapping by deleting the value from XML Namespace under the Message Type. However, is it possible to do this when you are using External Definition (xsd) ? The blog only describe how to do this if you define a Data Type.

    Hi ,
    No ..it is not possible to remove the namespace once you imported into IR of external defintion.You can remove your namesapce from external definition before importing into IR.
    Sekhar

  • To Remove decimal digit in number field

    Hi experts
    any one can tell me the function in Crystal Report for removing decimal digits in a number type field. like field value is 34.00 should be 34.
    Regards
    Gorge

    Hi,
    use "round(value,dec places)" formula that is there in  functions in crystal report.
    Rgds,
    Premraj

  • Remove an unused map ID - Does Not Work, Documentation Innacurate

    I am using TCS 3.5 on Windows XP Pro. We're linking FM books to RH for online help output. I'm listing this in the FM Integration section for that reason, but this seems like it could possibly be a standalone RH problem, too.
    I've been creating map files in RH and everything was going well until I tried cleaning out the unused map IDs. The topic alias markers I create in FM work well and do port over. However, if I edit the marker in FM and update the linked files in RH, the new marker shows up in the map file -- but so do all of the old ones.
    I thought that wouldn't be a problem when I found the "Remove an unused Map ID" function under the "Project Set-Up/Map Files." It seemed like it magically worked once and now not at all.
    I have tried every variation you can imagine with the process. I both edited and deleted the markers in FM, but I still cannot clean them out with this function. I also found that the map file must be "unlocked" and verified that in the properties setting, as well.
    Part of what I find strange is that the documentation for this function does not match up with I see in RH9. Maybe this is documentation for an older version of RH (see below)
    At any rate, this is a huge problem, because I cannot have the map files littered with unusued map IDs, nor is it realistic to do this work manually, especially given the size of our books.
    Remove an unused map ID
    Your map files must be unlocked to use this option. To remove unused map IDs:
    Expand the Context-Sensitive Help folder in the Project Set-up pod. 
    Right-click the Map Files folder. 
    Select Edit.
    Do the following:
    Map Files
    Select the map files from which to remove unused map IDs.
    Select All
    Click to remove unused map IDs from all map files.
    Clear All
    Click to deselect all map files and not remove unused map IDs

    Alright, maybe it isn't that bad if you substitute the correct text we discovered. But I think this also reveals another shortcoming with the management of those map files, which is once you open the "Edit Map IDs" dialogue box, you should be able to batch manage the entries in the same way. Ultimately, the "Remove Unused IDs should just work, but being able to select all the Map ID entries and delete them would be an acceptable workaround and/or a nice piece of enhanced functionality.
    When I tried deleting the Notepad entries, I left RH open. But I just now tried the method you suggested, closing it out and opening it again. This actually did not work and caused more problems. From that point, every time I tried to force an update, it would only pull over a single topic alias and nothing I did would restore the other original topic aliases from the FM files. This method seems to cause the integration to wig out.
    From there, I had to painfully create a new project and re-link the FM files, apply .isf settings, etc. That worked, but who wants to do that every time, not to mention the versioning management nightmare it will create, especially in an environment with multiple writers.
    After I got the files linked again, I determined that the best method seems to be deleting all the Map ID entries manually. That seems to clear out the Notepad file correctly and not cause any confusion for RH.
    I can understand why you opted for being a "FM import guy." This linking of FM>RH is fraught with lots of headaches and oftentimes application bugginess. In this case, I think I'm adhering to the philosophy of doing all the work in FM, but since the "Remove Unused IDs" functionality doesn't work in RH, there is little to do but touch things in RH with a workaround.

  • Remove decimal points

    Hi,
    how to remove decimal points from all the columns in table in obiee
    thanks

    hi
    add one decimal point
    is this the same? or any?
    Cheers

  • To remove decimal places and round

    hi all ,
    select       (sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) <> upper('Top')) then
                (((((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)*94)/2000)   )
                 when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
             (   ((nvl(H.CLASS_V_CEMENT,0)*94)/2000)   ) 
            when F.ITEM_UOM =  'Pound' then
          CEIL(  ROUND((((((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100)))/2000
           end)*(j.opn_value/2))  SUM_MAT_ACT_TON ,--------transport
                       sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) <> upper('Top')) then
                ((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)
          when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
                nvl(H.CLASS_V_CEMENT,0)
            when F.ITEM_UOM =  'Pound' then
                ROUND(((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )/P.ATTRIBUTE5)
       end) SUM_sload ,    ----sload
       sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) <> upper('Top')) then
                ((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)
         -- when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
              --  nvl(H.CLASS_V_CEMENT,0)
            when F.ITEM_UOM =  'Pound'  and F.BLEND <> 'PH'then
                ROUND(((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )/P.ATTRIBUTE5)
       end) BLENDING
      ,e.opn_job_desc
         FROM xxnp_opn_joblog_001 E,
              XXNP_OPN_JOBLOG_EST_002   F,
              XXNP_OPN_JOBLOG_STAGE_002 G,
              XXNP_OPN_JOBLOG_SLURRY_003 H,
        XXNP_OPN_JOBLOG_RES_005 J,
         MTL_SYSTEM_ITEMS_B P
          WHERE E.OPN_JOB_DESC   = 'K/D/SP158/SA399/1338/D/0510/1' AND
            E.MANUAL='N'
       and J.opn_resource_desc='4X4  PICK-UP OR LIGHT VEHICLES'
        AND E.OPN_JOBLOG_001_ID = J.OPN_JOBLOG_001_ID
         and F.INVENTORY_ITEM_ID=P.INVENTORY_ITEM_ID
           AND p.ORGANIZATION_ID='103'
          AND E.OPN_JOBLOG_001_ID = G.OPN_JOBLOG_001_ID
            AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
            AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
            AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
            AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
                                    GROUP BY E.OPN_JOB_DESC,j.opn_value
    o/p  i am getting
    SUM_MAT_ACT_TON      SUM_SLOAD                         BLENDING                                   OPN_JOB_DESC
    11587.7954154787         1957.62401925833               1454.62401925833                       K/D/SP158/SA399/1338/D/0510/1
    well can anyone guide me on  obtaining the following output (to remove decimal places and round )
    SUM_MAT_ACT_TON      SUM_SLOAD                         BLENDING                                   OPN_JOB_DESC
    11588                           1958                                      1455                                          K/D/SP158/SA399/1338/D/0510/1thanking in advance
    Edited by: makdutakdu on May 25, 2010 12:48 PM

    select      round( (sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3))  upper('Top')) then
                (((((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)*94)/2000)   )
                 when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
             (   ((nvl(H.CLASS_V_CEMENT,0)*94)/2000)   ) 
            when F.ITEM_UOM =  'Pound' then
          CEIL(  ROUND((((((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100)))/2000
           end)*(j.opn_value/2)))  SUM_MAT_ACT_TON ,--------transport
                       round(sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3))  upper('Top')) then
                ((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)
          when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
                nvl(H.CLASS_V_CEMENT,0)
            when F.ITEM_UOM =  'Pound' then
                ROUND(((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )/P.ATTRIBUTE5)
       end)) SUM_sload ,    ----sload
       round(sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3))  upper('Top')) then
                ((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)
         -- when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
              --  nvl(H.CLASS_V_CEMENT,0)
            when F.ITEM_UOM =  'Pound'  and F.BLEND  'PH'then
                ROUND(((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )/P.ATTRIBUTE5)
       end)) BLENDING,
       e.opn_job_desc
         FROM xxnp_opn_joblog_001 E,
              XXNP_OPN_JOBLOG_EST_002   F,
              XXNP_OPN_JOBLOG_STAGE_002 G,
              XXNP_OPN_JOBLOG_SLURRY_003 H,
        XXNP_OPN_JOBLOG_RES_005 J,
         MTL_SYSTEM_ITEMS_B P
          WHERE E.OPN_JOB_DESC   = E.OPN_JOB_DESC  AND
            E.MANUAL='N'
       and J.opn_resource_desc='4X4  PICK-UP OR LIGHT VEHICLES'
        AND E.OPN_JOBLOG_001_ID = J.OPN_JOBLOG_001_ID
         and F.INVENTORY_ITEM_ID=P.INVENTORY_ITEM_ID
           AND p.ORGANIZATION_ID='103'
          AND E.OPN_JOBLOG_001_ID = G.OPN_JOBLOG_001_ID
            AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
            AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
            AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
            AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
                                    GROUP BY E.OPN_JOB_DESC,j.opn_value

  • HT5973 Is there any way to remove labels within Maps app?

    Is there any way to remove labels within Maps app?

    No - just don't upgrade until Google release there maps app.  I wish I could go back to yesterday and give myself this advice.

  • How do I remove the grid map over an object when working in 3D?

    I am working through Adobe's Photoshop CS6 Classroom in a Book, Section 12 - Working with 3D Images.
    So far I have found it all fairly straight forward and very useful.
    I am at a point where I am applying textures and materials to my objects, however I cannot seem to find out how to remove the grid that has mapped itself over the objects. I have included a image to illustrate.
    Can anyone help?
    What is the command that will hide these grid maps?!
    Thanks so much in advance.

    I went into YouTube as well, and indeed: It didn't remove the white background.
    Then I went into Photoshop and was surprised: It was able to remove the white background by just playing around with the Magic Wand Tool. I also went into other programmes similar to Photoshop and was excited that there were connatural ways to remove the white background. Finally, I went into Illustrator and observed that the clipping path route worked. Even in CS6.
    Not sure why it didn't work for you.

  • Remove dulicates in mapping

    Hi gurus!
    My input structure is
    <IN_MT>
    <SHIPMENT>
             <SHIPMENT></SHIPMENT>
             <DELIVERY></DELIVERY>
    </SHIPMENT>
    </IN_MT>
    I need to remove duplicates like this.
    INPUT:
    <IN_MT>
    <SHIPMENT>
             <SHIPMENT>11</SHIPMENT>
             <DELIVERY>123</DELIVERY>
    </SHIPMENT>
    <SHIPMENT>
             <SHIPMENT>11</SHIPMENT>
             <DELIVERY>456</DELIVERY>
    </SHIPMENT>
    <SHIPMENT>
             <SHIPMENT>33</SHIPMENT>
             <DELIVERY>678</DELIVERY>
    </SHIPMENT>
    </IN_MT>
    OUTPUT:
    <OUT_MT>
    <SHIPMENT>
             <SHIPMENT>11</SHIPMENT>
             <DELIVERY>123</DELIVERY>
             <DELIVERY>456</DELIVERY>
    </SHIPMENT>
    <SHIPMENT>
             <SHIPMENT>33</SHIPMENT>
             <DELIVERY>678</DELIVERY>
    </SHIPMENT>
    </OUT_MT>
    Here is my UDF RemoveDuplicates:
    Vector vProd = new Vector();
    int i;
    for (i =0;i < var1.length;i++)
    if(!vProd.contains(var1<i>))
    vProd.add(var1<i>);
    Collections.sort(vProd);
    for(i=0;i<vProd.size();i++)
    result.addValue((String)vProd.get(i));
    Here is my mapping:
    IN_MT         -
    > OUT_MT
    SHIPMENT -
    > SHIPMENT
    SHIPMENT -
    > RemoveContext ---> RemoveDuplicates -
    > SplitByValue -
    > SHIPMENT
    DELIVERY -
    > DELIVERY
    DELIVERY -
    > DELIVERY
    I got:
    <OUT_MT>
       <SHIPMENT>
          <SHIPMENT>11</SHIPMENT>
          <DELIVERY>
             <DELIVERY>123</DELIVERY>
          </DELIVERY>
       </SHIPMENT>
       <SHIPMENT>
          <SHIPMENT>22</SHIPMENT>
          <DELIVERY>
             <DELIVERY>456</DELIVERY>
          </DELIVERY>
       </SHIPMENT>
       <SHIPMENT>
          <DELIVERY>
             <DELIVERY>678</DELIVERY>
          </DELIVERY>
       </SHIPMENT>
    </OUT_MT>
    What's wrong?

    u can achieve ur req using standard functions only..
    chk this:
    SHIPMENT--REMOVECONTEXT---sort---splitbyvalue(value change)---collapse context----SHIPMNET (node)
    SHIPMENT--REMOVECONTEXT---sort---splitbyvalue(value change)---collapse context---splitbyvalue(each value)-SHIPMNET (element)
    SHIPMENT--REMOVECONTEXT---
    -----------sortbykey----------------------------------------\
    DELIVERY--REMOVECONTEXT---                                   \    
                                                             ------formatByexample------DELIEVERY
    SHIPMENT--REMOVECONTEXT---sort---splitbyvalue(value change)--

  • How to remove an LOV Mapping in iProcurement Page..

    Hi All,
    In the iProcurement page, there is an LOV mapping for the LOV Expenditure Type. I need to remove the criteria item for one of the LOV mapping. Can any one please help me on how to remove Criteria Item in the LOV mapping.
    Regards,
    Ramakrishnan

    Hi Amit,
    Requirement:
    I have to display the LOV Expenditure Type in iProcurement screen based on the value entered by user in the LOV Task Number. I worte the following SQL statement in the VO of the expenditure type
    SELECT et.expenditure_type, et.sys_link_start_date_active, et.sys_link_end_date_active, 1 AS dummy_number FROM xxpa_exp_types_expend_v et WHERE et.system_linkage_function = 'VI' AND (SYSDATE BETWEEN et.sys_link_start_date_active AND NVL (et.sys_link_end_date_active, SYSDATE)) AND DECODE (et.billable_flag, 'No', 'N', 'Yes', 'Y', 'Both', 'Y') = (SELECT billable_flag FROM pa_tasks WHERE task_id = :2 AND project_id = :1)
    I am passing the value of parameter 1 and 2 from CO of the LOV region. But the LOV mapping 'Expenditure Type' has an criteria which gets added to the above query and does not display any row in runtime.
    SELECT * FROM (SELECT et.expenditure_type, et.sys_link_start_date_active, et.sys_link_end_date_active, 1 AS dummy_number FROM xxpa_exp_types_expend_v et WHERE et.system_linkage_function = 'VI' AND (SYSDATE BETWEEN et.sys_link_start_date_active AND NVL (et.sys_link_end_date_active, SYSDATE)) AND DECODE (et.billable_flag, 'No', 'N', 'Yes', 'Y', 'Both', 'Y') = (SELECT billable_flag FROM pa_tasks WHERE task_id = :2 AND project_id = :1)) QRSLT WHERE (( UPPER(EXPENDITURE_TYPE) like UPPER( :3) ))
    There is an similar functionality available in iSupplier-->Banking Details page where the bank branch LOV dsiplays value based on the Bank Name entered by user in Bank Name LOV.
    Now I have to use the same functionality available in isupplier page in my requirement to pass value from Task LOV to Expenditure Type LOV. Please let me know how to solve the issue.
    Regards,
    Ramakrishnan

  • How do i remove the apple maps app?

    Can this app be removed.
    With all the issues that Apple has acknowledged about the Map app,
    Is there a way to remove the app from my 4s phone?
    BTC55

    Yes get google maps BUT don't give up on Apple Maps either.  Though Google has a massive points of interest data base, Apple maps can find and navigate to a lot of places too.  I am finding I like apple maps and use it to navigate while driving all the time.  It does pick routes around my local traffic jams as my normal route home is uder massive construction but only 50% of the time.
    My Suggestion use a little of both.  And if you want a real navigation app, try Motion-x GPS Drive. It has a night mode, great search (bing maps), lane assist, a speed limit and speddometer gauge, its a real navigation app for real driving.  It's only 10/year.
    Anyhow, don't totally give up on Apple.  It's native baked in abilities will quickly grow (I used Motion-x for two years and the features have massivley grown and I enjoyed it).
    Certainly no need to ever own a seperate GPS unit ever again.
    Ah-men,

  • Remove decimal & zeros in variable

    Hi,
    How to remove zero & decimal point in variable
    for eg.
    insted 5.0000 it should priint 5
    Thanks

    Dear Imran,
    Please use this code and you can vary the difference.
    data: menge type MENGE_D,
          con type i,
          con1 type char5,
          con2 type p,
          con3 type n.
          menge = '100.00'.
          move menge to con.
          move menge to con1.
          move menge to con2.
          move menge to con3.
         con1 = menge.*
         con2 = menge.*
         con3 = menge.*
          write: 'i', con,
                 'char', con1,
                 'p', con2,
                 'n', con3.
    i think this will be help ful to you
    Regards,
    Kiran Kumar

  • Remove decimal out of an equation to send to a payment gateway

    i have a value that currently has shows a decimal
    @$amount = $_POST['amount'];
    i need the decimal to show until the variable $amount is sent to the payment gateway
    what is the best way to remove the decimal from the variable
    so a value of e.g
    250.59
    will be sent as 25059
    thanks

    would multiplying by 100 also work?
    $amount = "250.59";
    echo $amount*100;
    // 250.59*100 displays 25059
    $amount = str_replace(".","",$amount);
    echo $amount*100;
    // 25059*100 displays 2505900
    Your original question specifically asked how to remove a decimal, not how to multiply a variable by 100.
    best,
    Shocker

  • Remove decimal & padding 0

    using Oracle 9i
    I need to remove the decimal from a given number
    123.45 should show as 12345 i tried this
    create table tmpTBL
    as
    select 25.750 amt from dual
    union all
    select 12 from dual;
    select replace(amt,'.',null) from tmpTBL
    this works fine, but what if the col has amouts without decimals
    123 should show as 12300
    if decimal is there then remove it
    else pad the number with '00'
    how do i achieve this?
    Thanks

    Why not simply multiply by 100 ?Perhaps because that assumes no more than 2 decimal places?
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 25.750 as num from dual union all
      2             select 12 from dual union all
      3             select 123 from dual union all
      4             select 123.4 from dual union all
      5             select 123.45 from dual union all
      6             select 123.456 from dual)
      7  -- end of test data
      8  select num*100 as num_x_100
      9        ,replace(to_char(num, '999999.99'),'.') as num_stripped
    10* from t
    SQL> /
    NUM_X_100 NUM_STRIPP
          2575      2575
          1200      1200
         12300     12300
         12340     12340
         12345     12345
       12345.6     12346
    6 rows selected.
    SQL>

  • Remove Decimal Zeros

    Hello,
    I managed to remove the default Zeros in the "Net_Price" and "Quantity" field by using the "Set_attribute_null" method.
    But, after entering the value into the field and clicking on the button to execute the BAPI, it is inserting decimal zeros again after the values. I want to remove this decimal zeros. Is there any way of doing this? I would greatly appreciate your help.
    Regards,
    Gopal.

    Hi Gopal ,
    there is a pretty print option for this . u cn  set special formatting properties using the context editor or the methods GET_ATTRIBUTE_FORMAT_PROPS and SET_ATTRIBUTE_FORMAT_PROPS of IF_WD_CONTEXT_NODE_INFO.
    the attribute formatting can be :
    1 Display leading zeros
    2 Position of the leading sign
    3 Input Compression
    4 Time output format
    u wud like to see more on the SAP online help :
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/3a/2232666aeb45f4b759848a4caf9c8b/content.htm
    regards,
    amit

Maybe you are looking for