MARM Conversion Result Drops Decimal?

A new Material conversion was created in MM02 for a Karton....'KAR'. The conversion is KG to KAR.
The original ABAP logic was zresult = 102 / 5. This should equal 20.4: 
The code used
marm-umrez = marm-umrez / marm-umren
the result is 20, missing decimal value.
I understand that umrez and umren are not decimals so a decimal cannot be assigned to the result so I tried this:
DATA: znew_value(5) type p DECIMALS 3.
DATA: umrez_new(5) type p DECIMALS 2.
DATA: umren_new(5) type p DECIMALS 2.
umrez_new = marm-umrez .
umren_new = marm-umren.
znew_value = umrez_new / umren_new.
I still get 20 instead of 20.4?
I have played with the syntax unpack, write to, assign to, and move to, but my syntax cold have been off.
Can anyone suggest how I can use, or define a new field, or fields to pass them into so that I will get the decimal value after the calculation? Or, possible syntax for calculating the result using the original fields that will have the decimal value.
  Thank-You

Hi,
From ur code, I written the below code.
DATA: znew_value(5) type p DECIMALS 3.
DATA: umrez_new(5) type p DECIMALS 2.
DATA: umren_new(5) type p DECIMALS 2.
DATA: marm TYPE marm.
marm-umrez = 102.
marm-umren = 5.
umrez_new = marm-umrez .
umren_new = marm-umren.
znew_value = umrez_new / umren_new.
BREAK-POINT.
Its giving the perfect result.
Can you try this one in a test program. If this one is working in SE38 program then its a arithmetic problem of any routine. :P
To overcome this one you have to write one small FM and build the logic there. Its a magic
Regards
Subhankar
Edited by: Subhankar Garani on Oct 27, 2011 7:11 PM

Similar Messages

  • How I know when divide some number the results is decimal ?

    I am new programing in java, I looking for any instruction what tell me where I divide a number and the results is a decimal number like 2.5, 4.9, etc.

    > Excuse me, Mr_Evil, but I am a new programer, I try
    to use that instruction, but I don't get it. Do you
    have some example about that instruction. I
    appreciate your efforts for me.
    Thanks
    This is what Mr_Evil meant:double originalValue = 0.0d;
    for(int i = 0; i < 10; i++) {
      originalValue += 0.1d;
    // round originalValue to the closest (mathematical) integer
    double roundedValue = Math.rint(originalValue);
    System.out.println("Is the original value "+originalValue+
              " an integer? "+(originalValue == roundedValue));; )

  • Divide Result in decimal or float

    Hi,
    Here i am doing division calculation for two int values. 
    payroll   occbeddays   result  
    2168        2969           0
    But i want the result as 0.73
    How can i got this?
    @temp_STATSCAL AVGPAYROLL is money datatype.
    INSERT INTO @temp_STATSCAL (FACILITY,AVGPAYROLL)
    SELECT r.FACILITY,
    CASE WHEN s.OCCBEDDAYS >0 THEN
    r.PAYROLL/s.OCCBEDDAYS
    ELSE
    0
    END
    FROM @temp_STATS s
    CROSS JOIN @temp_REVENUE r WHERE r.FACILITY=s.FACILITY

    You can use this code also
    Select
    Convert(decimal(10,2),(Convert(decimal,2168)/
    Convert(decimal,2969)))
    [Result]

  • Changing Node Attributes to drop decimal places on MI 7.1 table UI Element

    I have been struggling with finding a way of dropping three decimal places on a QUAN data type for a Node attribute, so that the value can be displayed as an integer instead of with three decimal places displaying when outputted within the table UI element within our MI 7.1 Mobile Client application.
    I have adjusted the column width, which is not ideally what I am trying to achieve.  The decimal places for the value are not required and should therefore not be displayed and take-up additional space on the table template view.
    Does anyone know a slick way to remove the decimal places for a data object that is outputted to a table UI element within the NWDS java application?
    If the above is not possible, what is the best approach for making a change to a data object node structure of the SWCV?  Can the node attribute for the  Decimal value be changed directly, or are there other things that should be considered when making a change to a node attribute of the data object?
    I appreciate any advice in this area.
    Kind regards,
    Rose Orovec

    Hi
    Try to create your own value attribute ( with out decimals)  in the node and pass the actual value to this
    and finally show your value attribute( as a field ) on the screen
    Hope this works....
    Regards

  • "Quicktime Conversion" quality drop

    Weird problem. When I "export as QT movie" the video in the Canvas retains it's quality and sharpness. However, when I "export as QT conversion" the quality takes a hit as soon as the export window opens up.
    Why should this matter? I need to export my videos as .wmv files (using flip4mac) and the actual conversion looks exactly like the lower quality view I see in the Canvas.
    O.K. This USED to work (I have an older file that looks very sharp). I don't believe it's a flip4mac thing, as the quality drop hits at the QT Conversion window and my export plug-in isn't even accessed yet.
    To clarify, is there a setting in FCP that I've messed with to cause this?
    Any help would be appreciated.
    And, yes, I'm posting this over at the QT forum as well.

    Instead of using Quicktime conversion. Use Quicktime Movie...Current Settings....Don't Recompress All frame. Don't Make Self-Contained. This will make a small reference. Open that in Quicktime and do your compression. Make sure your timeline in FCP is render.
    Try that......
    (Question....when you use Quicktime conversion. Is you timeline render?)

  • In Thunderbird while trying to move conversation results to an archive folder; if some of the results are already in the folder it will not move any.

    Hi. I often use the conversation search option when archiving my emails from inbox. I find this a very useful method of finding trails where I and multiple people have responded to each other. However If I have already moved one or more of these emails into the archive folder and select all to move, Thunderbird will not move any. I then need to individually select those that need to be moved.
    Although not a major issue I use this regularly and often come across the problem. a recent fix which allows location tab to remain on in search helps but does not resolve this issue. A slightly annoying problem and I was wondering if any one else has this issue. Also is anyone looking into a solution?

    FCPx answer: At least the answer that worked for me...
    I had the same problem, as I believe many others had.
    In my case the problem was with one of OSX Mavericks' new features: APP NAP.
    It looks like this is ON by DEFAULT for ALL Applications and that FCPx, or Compressor for that matter, will not work if this is enabled on them.
    I just disabled App Napp on FCPx and now it works, again, like a charm.
    This is how you disable App Nap: http://reviews.cnet.com/8301-13727_7-57612009-263/how-to-disable-app-nap-in-os-x -mavericks/
    I hope this helps,
    Mariano

  • FM for conversion of 2 decimal currency to 5 decimal currency

    I specifically require a FM, for converting a 2 decimal currency value to a 5 decimal currency value for the following format.
    I have a variable of type NETWR which is CURR 15 DEC 2
    I need to store the same in either packed, character field or even currency will work but that should be of 5 decimal places as I need to display the value for USD5 currency.
    For eg I am having a value in the variable of NETWR, 123456789.90
    For this scenario i want output as 123456.78990
    Write statement and move statement behaves correctly for this. ( we require this)
    But main problem arises when my value of NETWR variable will be like 1.09, 21.09 or 221.09
    as it stores 0.00109  0.02109 or 0.22109 which is worong and ideally that should be
    1.09000, 21.09000 or 221.09000 for such cases in USD5 variable
    I have checked By using various existing FM like BAPI_CURRENCY_CONV_TO_EXTERNAL, CURRENCY_AMOUNT_SAP_TO_BAPI , HR_NZ_ROUNDING_DECIMALS but these are not useful for this scenario
    Kindly suggest some technique so that i can convert 2 decimal currency to 5 decimal currency.

    @ JAY,
    Yes, I agree with you that this is some kind of wierd requirement.
    But when i checked something in SAP i was wondering why I was not getting the same in my object.
    In VF03 when you open any Billing document the net amount for USD5 is displayed in 5 decimals, although when i do F1 on the net amount field I get the technical details as NETWR which is CURR 15 DEC 2, now my assumption is that there must be some routine which will overwrite the currency depending upon currency key maintained for USD5.
    But in my object that is not present and hence after performing some calculations I am storing the same in a variable of type NETWR so it will covert whatever calculation is in 2 decimals. But for the customer i need to show that in 5 decimals. which should be same as displayed when i see the invoice using VF03.
    Hence I want a perfect FM which will work for my case. means for larger values and smaller values it should behave as i described.

  • IPhoto 6 conversion results in lost film rolls

    I just upgraded to iPhoto 6 from iPhoto 5.x. My iPhoto Library contains more than 5000 photos. The conversion process completed successfully and all my photos and albums appear to be there.
    However... about half way down the list of photos (at Roll 375 of 414), the Library conversion process apparently lumped dozens of my film rolls together into one gigantic roll with 1700+ photos. Then.. it continues on with rolls correctly allocated to the end of the file (roll 414).
    Anyone have any idea what is causing this flaw in the conversion process? And more importantly... is there anyway I can get my film rolls back?
    BTW... 'Film Rolls' is selected under the View menu, and toggling it on/off does not solve the problem.
    John

    Ok. after first panicking and not reading further on how to fix iphoto, i calmed down and did the reading i should have done first. Seems that holding down the option and command key at iphoto boot-up initiates a rebuild command.
    I did a complete rebuild and all the photos are back in order. Not sure why this occurred but I'm happy that it was fixable.
    Iphoto rules.

  • Busiiness Objects dropping decimal part of imported value

    I am using a csv file as the basis for several reports.  The values being imported have integer only and decimal values.  Business Objects appears to import only the integer value of every record even if the record contains a decimal value.  Is this a know response, problem, in Business Objects and is there a work around or is there a configuration value that needs to be changed?

    Which version of BOBJ do you use? Did you install any additional language packages?
    Regards,
    Stratos

  • Conversion of Packed Decimal Numbers to Java Data Types

    Hi all,
    I'm working with a mainframe file which contains datas in Packed Decimal Numbers.My requirement is to convert these datas to Java datatypes and also to convert the Java datatypes to Packed Decimal Numbers before storing them in the mainframe.
    Can anyone help me out with any code for converting Java data types to/from other data formats such as: EBCDIC, IBM370 COMP (binary numbers up to 9 digits), and COMP-16 (packed decimal numbers)?
    I would hugely appreciate any response to my query.
    Thanking you all,
    Kaushik.

    Rather than go that route, I'd instead look into providing a "service" on your mainframe to:
    1) provide a textual representation of the numbers (from native to text)
    2) read text, converting to native numeric storage
    And use that service to retrieve that information by your Java app (1)Similarly, instead of trying to write natively-formatted numbers from your Java app, I'd write it as text and make that same "service" read the text (2)
    This is the kind of thing XML is for.

  • Currency conversion due to decimal differences in entering in an alv grid

    Hello,
    i habe trouble with entering some currency values into an alv grid. We chose the alv grid to be able to enter per copy and paste out of excel, but also to enable direct entering.
    The problem:
    1. First i enter a value (111) into the value wert => by pressing enter or changing the field it changes to 111,00
    2. I enter the currency JPY in the currency field
      => i do not get a error message, that decimals are not allowed. (what happens in a table control)
    => if i press a button (f.e. save) the 111,00 is converted to 11.100.
    In the dictionary the value field is connected to the currency field as reference field.
    Do you have an idea?
    Best regards,
      Michael
    Edited by: Michael Flohs on Jan 30, 2012 4:47 PM

    Hallo Tarik,
    the fieldcatalogue for the two fields is like this:
    ROW_POS     0     0
    COL_POS     13     14
    FIELDNAME     ACC_CURR_TC_A     ACC_CURR_TC_K
    TABNAME     1     1
    CURRE          
    CFIELDNAME     ACC_CURR_TC_K     
    QUA          
    QFIELDNAME          
    IFIELDNAME          
    ROUND     0     0
    EXP          
    K          
    K          
    I          
    S          
    C          
    J          
    L          
    N          
    N          
    N          
    EDIT_MASK          
    EMPH          $
    F          
    D          
    N          
    N          
    T          
    OUTPUT     0     0
    CONVE          
    SELTEXT          
    TOOLTIP          
    ROLLNAME          
    DATATYPE     CURR     CUKY
    I     P     C
    INTLEN     21     5
    L          
    REPTEXT     Amt in TransCur     TC
    HIER_LEVEL     0     0
    R          
    DOMNAME     FINB_AMNT     WAERS
    SP_G          
    H          
    DFIELDNAME          
    COL_ID     0     0
    F          
    A          
    CHECKTABLE          
    V          
    WEB_FIELD          
    HREF_HNDL     0     0
    STYLE     0     0
    STYLE2     0     0
    STYLE3     0     0
    STYLE4     0     0
    DRDN_HNDL     0     0
    DRDN_FIELD          
    N          
    H_F          
    C          
    N          
    D          
    REF_FIELD          
    REF_TABLE     ZFS_MSK_EINZEL_BELEG_S     ZFS_MSK_EINZEL_BELEG_S
    TXT_FIELD          
    ROUNDFIELD          
    DECIMA          
    DECMLFIELD          
    DD_OUT     28     5
    DECIMA     2     0
    COLTEXT          
    SCRTEXT_L     Amount in Transaction Currency     Transaction Currency
    Best regards,
      Michael

  • Conversion issues with decimal points from v5.1.5 to XI

    Several reports which were converted from v5.1.5 full client to XI Webi have numeric differences. When comparing v5.1.5  to XI, the sums on the columns don't exactly match. The cell format on these numbers is set to eight decimal points. When we converted, I noticed the cell format changed from number 0.00000000 in 5.1.5 to custom 0.00000000 in XI. I don't know if this is the reason the sums don't match or if it's something else.

    Hello Ellen,
    as you refer to a Webi problem I recommend to post this query to the [BusinessObjects Web Intelligence|SAP BusinessObjects Web Intelligence; forum.
    This forum is dedicated to topics related to the creation and design of Web Intelligence documents using the Web Intelligence Report Panels. This includes areas such as universe connectivity, prompts, charting, formatting, filters, and formulas.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Webi queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • Unacceptable Conversion Result

    Here's a sample of what my first attempt at Adobe CreatePDF conversion to .docx brought.
    ( 3 )   The  proposa l sha11 not  merely  ot                     t.o  p( rf orrn  work.  in accordance  with  t he  PViS ,
    but.  ''fr1a11  out line  t he  acti.rn:J.  work  r.n:op<.> t> ed  ,,rn  specif ically  af.l  p:ract ica1.  'I'he  Pv S   ref lects  t he prob1t:::rns  a nd  obj ect ivc: of   t hf::   p:coq.r,arn  undr;1"  c;onr;Jde:r-;:· t ion ;  t:he:ref o.r.c;,   repc;J.t.:in9  t he  PWS   w i t:hot1t: sufficient elaboration is not acceptable.
    This just won't cut it. What is the solution for a true and accurate conversion?

    Hi,
    It seems that your PDF file is scanned images.  Please send me your PDF file if possible so that I can look into the issue.
    Please use below site and if your file is bigger than 20MB then use https://files.acrobat.com to share your file with me.
    https://adobeformscentral.com/?f=qJiclooYWGGNFtWfj8g3wg#
    To share files with others
    1. Log into https://files.acrobat.com with your Adobe ID and password
    2. Click "Upload File" icon at top right
    3. Check the box next to the upladed filename
    4. Click "Share File" from top tool bar
    5. Click "Make Public"
    6. Click "Mail Link"
    Thank you.
    Hisami

  • Buggy AAC Conversion process drops File Properties?

    Hi,
    I just decided (apparently crazily) to convert my MP3s that had been ripped from CDs over to AAC (m4a) format. After multiple passes through it finally completed.
    Now having looked at my files, they have lost all of their file summary information. Which means that I can't index them any more on windows, and worse, when I transferred them to my phone, they are all marked as "unknown".
    Does anyone have some software that I can use to restore all the file properties information. (Note: getting the CD information using iTunes doesn't seem to do anything at all).
    tx
    P

    You should always, whenever possible, rip fro the
    original CD.
    Don't convert from a lossy format to another lossy
    format.
    >> Fair enough... but nevertheless, it was a feature of iTunes to convert my Mp3s which had all their file properties in Windows, and then after being converted, they lost them.
    What did you convert them with?
    >> itunes
    Now having looked at my files, they have lost all
    of their file summary information.
    Do you mean the iD3 tag info?
    >> no. the id3 tags are there, but the file properties are missing, Summary, album info etc, which means that my phone and other devices (that don't read id3, but read file props) no longer work right :(
    getting the CD information using iTunes doesn't
    seem to do anything at all).
    You have to have RIP'd the CD in iTunes for this to
    work.
    >> ic... well.. sigh

  • Different results for decimal values between SQL and B1 RecordSet

    Hi Experts,
    This is really a strange one. I have the query below:
    SELECT Amount, TaxPrcnt FROM [@Table] WHERE ORDER# = '20246' AND ItemCode = '112488'
    The same query gives me 0.085 for TaxPrcnt if I run it in SQL Management Studio, but gives me 8.5 if I run it in B1 Query Generator, and the same if I use RecordSet object in DI. The actual value in the table is 0.085. Anyone know why B1 is multiplying the value by 100?

    Hi Ronnie,
    sp_prepexec is a system stored procedure used to generate  to prepare and execute a parameterized SQL statement. Have a look at:
    http://jtds.sourceforge.net/apiCursors.html#_sp_prepexec
    Basically, it's another way of passing a query to SQL rather than using a stored procedure. This command shouldn't be converting the data in any way, unless there's a specific cast or calculation in the query itself.
    Can you give simple details of the SQL table you created and I'll see if I can replicate the issue.
    Kind Regards,
    Owen
    P.S. Sorry about the query, I wrote that down this morning before all my brain cells were awake Referencing a field by index only works when grouping and sorting.

Maybe you are looking for

  • HT6337 HandOff feature does NOT work

    HandOff feature does NOT work on my iPhone6 and iPad Air. I have the latest updates (iOS 8.1) installed and my MBP is on Yosemite 10.10... I have my iPad Air, iPhone6, and MBP on the same network. And, I have bluetooth enabled. Yet, I don't see the h

  • HP LaserJet 1018 freezes when trying to print from Homegroup user

    1. I have recently upgraded the OS on my laptop cumputer to Windows 7 SP-1 Ultimate to make it compatible with my desktop. 2. I run a ethernet/wireless network and I have 3 printers attached to the network: (a) an HP 1018 attached to my desktop and h

  • Which audio interfaces are compatible with a Lightning to USB Camera adapter???

    Would like to use my iPad Mini with Lightning Adapter in conjunction with an audio interface. What are the requirements for a device that would accept the adapter (what type of USB input/output). Thanks!

  • Sorting issue after upgrade from 9i to 10g

    Dear all, It is found that the sorting behavior is different after upgrade from 9i to 10g. In 9i, even if the SQL statement does not specify the ORDER BY clause, the sorting order is consistent for a particular SQL statement and most likely the seque

  • Can operations continue to run when logged in as another user?

    I've logged in as myself and I have set an operation to run, its going to run for a while and I would like the ability of my wife to log in. When you do this the operation pauses while logged in as her. Can it continue to run at the same time?