Round functions in SAP

Hi Experts,
Can you help me in finding a suitable round function in SAP? I need to round off to 3 decimal places. I used the function module ROUND but it is not very much helpful.
I have 3 values ex 0.43444567 , 0.0824495 , 0.48310483. The total is 1. But wen i update in transaction Kp46 for Plan value column it takes only 3 decimal places. So if i reduce the above 3 values to 0.434,0.082,0.483 then i get total as 0.999.
But if i reduce them ( rounding off ) to 0.435,0.083,0.483 i get 1.001. Please help me get a proper solution for this.
Thanks and Regards,
Ramya S

Hi,
Thanks for your reply. But I need not calculate the sum to update it anywhere. I just want the total to be 1. I just want to reduce them to 3 decimal places and also retaining the the total as 1.
Thanks,
Ramya S

Similar Messages

  • Rounding Issue in Sap Business One 2007A

    Hi Experts:
    Could you please assit us?: We are running Sap Business One 2007A SP01 PL08, Our client is using Rounding Method "By Document". and the option "Automatic Rounding for document" is only available for sales documents. How can we achieve to use Automatic rounding in header total fields in Purchase Documents????. Can we achieve this by a Formatted searches?
    And secondly, In all marketing documents, under the "Define tax amount distribution"  we need to round the amount field. ie: if the amount is $2250.01 to be rounded in 2250 and if the amount is 2250.89 to be rounded in 2251. Can we achieve this with a formatted search as well in the Amount field in this table?.
    Thanks very much in advance
    Claudia Gutierrez

    Hi Claudia Gutierrez,
    Have you checked Round function by query?  You may check this thread first:
    Re: Rounding Tax amount in row
    Thanks,
    Gordon

  • Issue with ROUND function in RTF template

    Hi All,
    Can anyone please help me in implementing the ROUND function at the RTF template.
    Need to handle rounding of amounts at the RTF template level itself.
    The ROUND function should be implemented to the following tags:
    <?sum(current-group()/TAXABLE_AMOUNT)?> (Record level)
    <?sum(TAXABLE_AMOUNT)?> (Report level total)
    Eg. If the Sum(current-group()/TAXABLE_AMOUNT) for a particular record is 401.65 then it should round of to 402
    we try to do this using following syntax ..
    1) by declaring variable "value"
    <?xdoxslt:set_variable($_XDOCTX, value, sum(current-group()/TAXABLE_AMOUNT))?>
    2) <?xdofx:round(sum(current-group()/TAXABLE_AMOUNT))?>
    3)<?xdofx:round(xdoxslt:sum(current-group()/TAXABLE_AMOUNT))?>
    but we ding get the solution.
    A quick response on this is highly appreciable.
    Thanks,
    Praveen

    Re: Summing derived values within xdofx:
    Re: Rounding not working

  • How can I use Seeburger java functions on SAP XI's user defined functions?

    Hi All,
    As my title implies; how can I use Seeburger java functions on SAP XI's user defined functions?  I've tried searching over the net in tutorials regarding this topic but I failed to find one; can someone provide me information regarding my question? thanks very much.
    best regards,
    Mike

    Hi Mike !
    You should check your documentation about which java classes you need to reference in the "import" section of your UDF. And also deploy the java classes into the java stack or include them as a imported archive in integration repository...it should be stated in the seeburger documentation.
    What kind of functions are you trying to use?
    Regards,
    Matias.

  • Using sum function and round function in single text form field

    Hi all,
    I have a column Name - A . In the rtf template i have summed up the column A and showing it. But the output is coming as 99.9999997. I want to round it to 100.
    I tried using <?round(sum(A),2)?> but dint workout.
    I also tried using variables. It is also not working.. I used <?xdoxslt:set_variable($_XDOCTX,’ABS',sum(A)?> and then i used get variable to get it.... But it throwing error while using sum in the set variable step.
    Can anyone please help me..
    Thanks
    Sunil

    Hi Sunil,
    Calculate the sum into a Variable. and apply round function on the variable to get the desired value.
    Calculating sum:
    <?xdoxslt:set_variable($_XDOCTX,'v',xdoxslt:get_variable($_XDOCTX,'v')+DOLLARS)?> (its running sum formula,should be placed inside the table to get sum of all rows of particular column)
    here Variable 'v' holds the sum value
    apply round function:
    <?round(xdoxslt:get_variable($_XDOCTX,'v'))?>
    Thanks and Regards,
    Aravind

  • Problem with the round function using Date

    Hi,
    I have a problem with round function for Date. The input is the four digit year which was picked out from say SYSDATE.
    In these scenarios the original value should be rounded up and should get the output as shown under rounded column.
    Scenario1
    Original Rounded
    2020 ---> 2020
    2021 ---> 2020
    2022 ---> 2020
    2023 ---> 2020
    2024 ---> 2020
    2025 ---> 2025
    2026 ---> 2025
    Scenario2
    Original Rounded
    2020 ---> 2020
    2021 ---> 2025
    2022 ---> 2025
    2023 ---> 2025
    2024 ---> 2025
    2025 ---> 2030
    2026 ---> 2030
    Scenario3
    Original Rounded
    2020 ---> 2020
    2021 ---> 2020
    2022 ---> 2020
    2023 ---> 2025
    2024 ---> 2025
    2025 ---> 2025
    2026 ---> 2025
    Can anyone help with this....Urgent Please
    Thanx for your time

    1.
    SQL> select n,n-mod(n,5) rnd from test;
             N        RND
          2020       2020
          2021       2020
          2022       2020
          2023       2020
          2024       2020
          2025       2025
          2026       2025
    2.
    SQL> select n,n+(case when mod(n,10) = 0 then 0
      2                   when mod(n,10) < 5 then 5-mod(n,5)
      3                   else 10-mod(n,10)
      4              end) rnd
      5  from test;
             N        RND
          2020       2020
          2021       2025
          2022       2025
          2023       2025
          2024       2025
          2025       2030
          2026       2030
    7 rows selected.
    3.
    SQL> select n,n+(case when mod(n,10) < 3 then mod(n,10)*-1
      2                   when mod(n,10) < 8 then 5-mod(n,10)
      3                   else 10-mod(n,10)
      4              end) rnd
      5  from test;
             N        RND
          2020       2020
          2021       2020
          2022       2020
          2023       2025
          2024       2025
          2025       2025
          2026       2025
          2027       2025
          2028       2030
          2029       2030
          2030       2030
    11 rows selected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Importance of Bounce management functionality in SAP CRM

    Hi All,
    I want to discuss few interesting issues which I have come a cross while doing a setting for bounce management functionality in SAP CRM 7.0
    Before sharing my experience I want to discuss some term related to Bounce email than will discuss about types of bounce emails and cause of the bounce email.The setting of bounce functionality is describing in below link .
    http://help.sap.com/saphelp_crm700_ehp01/helpdata/en/46/3f509215835fa7e10000000a1553f7/content.htm
    In general when a website visitor sigh up they receive email from the company site, the information the site collected saved in the database but It commonly happen some of your email will be undeliever. In marketing term we say it as 'Bounce'. this is the same way happen as when a person give a bank cheque to bank and don't have sufficient money to his/her account the bank people say the cheque got bounce ..
    As we are aware emails are bounce for variety of reason such as.
         - In case the recipient email address is invalid.
         - recipient email address is inactive or closed
         - recipient mailbox is full or mail server have some technical issue etc
    In general all these bounces emails categorize in two category.
    Hard bounce- When email address is not active. example wrong email address, email address de-activated, deleted,or closed
    Soft bounce-  recipient mailbox is full, mail server have some technical issue, Out_of_office is setup .
    Now finally we come to know about the cause of bounce email and types. Now the question arises why this is so important when we have bounce management functionality active in sap crm marketing ? as described in above url.
    suppose that there is a campaigning happening for an product where 3000 person visited it. Now incase 2000 visitors shown interest so have qualified as prospect bases on the information they have provided such as name, address, salary or employment detail.
    After successfully execution of campaign now senior executives create a mailing list for all the prospects in the target group of campaign and sends email to all the users.Now if I say to how many customers really company have reached reached after campaign execution answer will be we can not have the correct fact and figure as there could be some bounce happened.
    Now incase bounce management setting is configure in your CRM system than system will receive inbound e-mails for each bounce.Suppose we have received one thousand bounce emails than we would say actual customer contacted is 1000. this is the correct fact and figure and very much useful for marketing people.
    After than executive could remove email address which were hard bounced and for soft bounce they can use some other channel to contact like telephone calls etc to reach them.
    The correct facts and figures are very much important for marketing strategy and planning and also to know success level of each campaign. Assume a scnario where in day a company launches more than 5 campaign. I feel the importace is transparent now.
    I hope you would find some interest in above blog.
    Thanks
    prem

    HI, Sreedhar
    Check this thread:
    Re: New search help on CRMD_ORDER locator
    Denis.

  • E-mail functionality in SAP BO X1 3.1

    Hi All,
    I have few questions regarding the E-mail functionality in SAP BO X1 3.1
    1)Is there a limitation on size of report in Email within the SAP BO X1 3.1? 
    2)Can you zip reports within SAP BO X1 3.1 ?file type options(?)
    3)Is there an Impact on performance front end/back end if many users are mailing the reports using SAP BO X1 3.1?
    4)How can we restrict users to only email the public folder Reports?
    5)Only people with Scheduling have access to Email Functionality - Are there any other ways we can place restrictions around this?
    Please help in this regard
    Thanks in Advance
    Regards,
    Pavithra P

    Hi Pavithra,
    We can send a report instance (after schedulling) to an email address and not the actual report.
    Adaptive Job Server (Web Intelligence Scheduling and Publishing Service) is used to generate the instance and Destination Job Server is used to deliver that instance to the email address.
    If multiple users are expected to send instances to email concurrently then we could have multiple instances of Destination Job Server.
    As far as I am aware, there is no direct way to zip reports.
    If I am not wrong, the size of attachment would depend on the limitations set at Mail Servers. Your network administrator might help you on this.
    Hope this will help.
    Regards,
    Yuvraj

  • Issues with 'Rounding' function (Word 2007 issue? Works in Word 2003...)

    My colleague (using Word 2003) and I (using Word 2007) are working on a change to a template where we include a formula that has the function called rounding.
    She (2003) is able to preview the pdf but I (2007) am getting error message: : oracle.xdo.parser.v2.XPathException: Extension function error: Method not found 'round'
    All other settings that we have appear to be the same (same config file, same java version, etc)
    Does anyone know if there are some changes to Word 2007 that are causing this? And, any ideas on how to resolve?
    Thanks for the help!
    Background:
    -The function is designed provide a total weight value: each individual weight value, multiply by a factor of .80, round up, and then added together to get a total amount.
    -Because we also show the individual weight values on the output, (also multiplied by the factor of .80 and then rounded up), we need the factor and rounding to happen before the sum).
    The entire set of functions for the total weight value is:
    <?xdoxslt:set_variable($_XDOCTX,'sum',0)?>
    <?for-each:LIST_G_CONTAINER_NAME1?><?for-each:G_CONTAINER_NAME1?>
    <?xdoxslt:set_variable($_XDOCTX,'sum', xdoxslt:get_variable($_XDOCTX,'sum')+ xdoxslt:round((GROSS_WT*0.8),2))?><?end for-each?><?end for-each?>
    <?format-number: xdoxslt:get_variable($_XDOCTX,'sum');'9G990D00'?>
    space
    <?WEIGHT_UOM_CODE?>
    Error when attempting to preview the pdf after uploading an xml file:
    : oracle.xdo.parser.v2.XPathException: Extension function error: Method not found 'round

    Hi,
    I took my original file (didn't have the round functionality) and Word 2007 and did the following:
    1) Tested with xml to ensure that there are no other issues - was able to preview successfully
    2) Added the function you suggested: <?xdoxslt:round(1000.98978,2)?> and saved the change
    3) Tried to preview using the same xml and got the same error message about rounding
    I can't test on 2003 because my colleague is not working right now (she is the one with that version installed). I will try on 2003 later today (but I am guessing it will work for her because the other rounding function works for her).
    Thanks for any other ideas about this.
    Here is the entire extract of error message:
    Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    RTFProcessor setLocale: en-us
    RTFProcessor setConfig: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdo.cfg
    FOProcessor setData: C:\Data\BI Publisher\2010_CR-102626_PL-CML_Net Weight\Net Weight Template Changes\Testing\OTST_SC-06_PL_SGS-2903194_Direct_ENG_Jul-09.xml
    FOProcessor setLocale: en-us
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
         at RTF2PDF.runRTFto(RTF2PDF.java:632)
         at RTF2PDF.runXDO(RTF2PDF.java:466)
         at RTF2PDF.main(RTF2PDF.java:254)
    Caused by: oracle.xdo.parser.v2.XPathException: Extension function error: Method not found 'round'
         at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1526)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:517)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:485)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:264)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:150)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:187)
         ... 16 more

  • Bank chain functionality in SAP

    Hi,
    If anyone has knowledge as to how to use bank chain functionality in SAP for vendor payment in SAP. Please let me know I will get in touch with more details for my query. This is required when we are making payments to a vendor and there are some intermediary banks involved between our bank and vendors bank. The tcode for setting up bank chain is FIBPU
    Regards,
    Vijay

    Hi,
    Mainly this bank chain is used for giving payments to foreign vendors. Normally house bank will finalise via which bank the payment should be made. But using this bank chain, you can specify this.
    Configuration:
    Create a scenario in IMG under bank chains.
    Here you can maintain your search criteria. If you select Gen.Search (General Search), you should use IMG activity Create General Bank Chain. After maintain this, you need to activate your chain in IMG Activity.
    Then in Easy Access, you can maintain Master data for Bank Chains under Bank accounting. Note, you can define upto 3 intermediary banks for a bank chain.
    Hope this will help you.
    Thanks,
    Krishna..

  • Combing rounding functions with other functions

    I am using hyperion reports. Is it possible to combine a rounding function with another function? Specifically, I am taking a variance of actual vs budget where actual and budget are % of total functions. The variance I am getting is off (see ex. below.) I need to keep the actual and budget at 1 decimal point. To correct this problem in excel I am able to round the numbers pulled in by essbase. The ex. below illustrates my problem. Actual .2% Budget .2% Variance .1%

    You may want to make a 'Scenario' for rounding that is rounding the input data. If you make it (variance) 2pass, it will show the difference of the rounded numbers (ie. 0%)Rich [email protected]

  • Any report or Table to see orders with BP partner functions  in SAP CRM?

    Hello All,
    Could anyone help me  in getting  the table or any report  for orders with BP partner functions in SAP CRM?
    Would appreciate replying at the earliest.
    Cheers
    Sreedhar

    Hello Bruno,
    Thanks very much.
    It is somehow helpful for my need but  not completly. This is ok when the orders are less in number.
    My requirement is how to check the first name , last name and number for  contact persons in a list of  CRM orders(simply who is the contact person for a list of orders).Let me know for any additional info.
    I would apprecaite if you could help me in getting any other way.
    Cheers
    Sreedhar
    Edited by: sreedharhazari2 on Jun 8, 2010 9:18 AM

  • IS IT POSSIBLE TO CALL FUNCTION IN sap QUERY sq01

    IS IT POSSIBLE TO CALL FUNCTION IN sap QUERY sq01

    Use enhancement project SQUE0001 for background downloads of query data.  Use the 'Private File' option with the query execution.

  • Functionality in SAP to allow you to print multiple copies of a form

    I've been asked by a SD functional team member how to: 
    This is the table and field names for  Number of Messages functionality in SAP which should allow you to print multiple copies of a form at one time.
    Program Name:SAPMV13B
    Screen #:0211
    Transparent Table: NACH
    Field Name: ANZAL
    Data Element: NA_ANZAL
    How do I go about setting up this functionalilty?
    Thanks,
    Laurie

    Hi Laurie,
       There are three possible ways -
       1. Predefined number of copies - You can define number of copies in the print parameters while creating condition record. Ask you functional team member how they are setting up condition records. You have an option to setup print parameters on condition record screen. This is the only option if you are using output determination.
       2. If you have an isolated print program then you can choose to let user enter print parameters by using parameter " DIALOG = ' ' " in "open_form".
       3. If you have an isolated print program and do not want to let user control other print parameters you can take input from user ( or hard code ) number of copies and use that in parameter " OPTIONS " in "open_form".
    Cheers,
    Sanjeev

  • Output determination functionality in SAP QM for certificates

    I did not worked on the output determination functionality in Quality certificates function of SAP. Can someone guide me thru that with a very brief on that subject.
    Thanks
    Vineeth

    hi,
    Output Determination is used to provide the output type for your certificate.
    here few of the parameters like condition type, Sold to party, ship to party , Delievery item category and apllication type against which u want the Quality certificate.
    U need to config all those things  SPRO--> Quality Management-> Quality Certificate---> Output determination and start your config according to ur requirement.
    Regards
    Shailendra Gaur
    SAP-QM

Maybe you are looking for