Converting Unit of Measure (not quantity)

Hello All,
I have an interesting issue that I am not sure how to address.  I have done some searching online and through the forums on how to convert unit of measure.  Nearly all of the returned entries pertained to converting FT to LB, and scenarios like that.
My issue deals with the data in the EORD table.  I created a custom program to create/update numerous source lists using a BDC for transaction ME01.  This way the user can enter numerous materials and plants into one program one time, rather than create each source list individually.  One such source list has a value in field MEINS as GAL (Gallon).  However this is the converted value, this can be viewed in SE16n.  If I use SE16, or debug the program, I can see the value in MEINS as GLL.  This is the unconverted value.  Thus when I create the source list I get an error.
I was wondering if there was a function module I could use to convert the UoM.  I know I could create logic to check the value of UoM and if it is incorrect to change it using a custom FM or even in the logic of the enhancement itself.  But this could change over time, meaning more units could be added requiring more logic changes.  If there was a standard FM I could use, I could implement it once and be done with it.
So does anyone have any advice or know of an FM I could use?  I will continue to search for an answer and if I find one I will post.  If my question is confusing please let me know and I will clear up anything I can.
Thanks for your help in advance.
Regards,
C.

There is a conversion exit on unit of measure, "CUNIT" (via table T006A) use
CONVERSION_EXIT_CUNIT_INPUT    Conversion exit for commercial (3-char) measurement unit INPUT
CONVERSION_EXIT_CUNIT_OUTPUT   Conversion exit for commercial (3-char) measurement unit OUTPUT
Regards

Similar Messages

  • System is not converting unit of measure ment while doing cost estimation.

    Hi All,
    System is not converting unit of measure ment while doing cost estimation.
    Now i am explaining system setting. based on this kindly help me.
    Our Base Unit of Measure Measuremnt in Material Master is M2 (meter square) and We have maintained Unit conversion in Master as  1 PC is <=>2.5 M2.
    We are running costing for 1 M2.
    Producion we are doing in Peaces (PC) .  and i maintained Std Value for for Machin and Labour for PC only. and we maintained charge quantity in phases also.
    While running cost estimation system is not converting std value of machin & labour into M2.instead it is showing full machin and labour time and value.
    System showing PC value for M2 Cost estimate.
    Can any one let me know where i am missing.
    Thanks in Advance.
    Regards,
    Sahil

    Hi,
    as per your explanation: 1 PC (piece) = 2,5 sqm (m2), standard values for "labour / machine" maintained per PC.
    I guess within T-code CUNI, the unit PC does not allow any decimal places (means there can be only 1 piece, 2 pieces, 2 pieces but not 1 and a half pieces, 2,63 pieces,...)
    Now if you are running plan cost estimate for quantity 1 sqm (m2) SAP picks the "labour / machine" values for 1 PC (and not for 1 / 2,5 = 0,4 pieces) as decimal places for unit pieces are not allowed so its up-rounding.
    Run cost estimate for 10 sqm (m2) which should be 4 PC and the result should be fine.
    Best regards, Christian

  • How to convert  unit of measures in bex on master data attribute values

    Hi All,
    i need to convert the unit of measure in Masterdata Attribute values... that means ) ' 0grooss_wt'. this is attribute as a keyfigure of ' 0material' .. this ' 0gross_wt' values has to convert in KGs. at Present ' 0gross_wt' values are in KG and Grams...
    I can change these values in update rules by writting Routine.. But I need to convert it in KGS at BEX Query Designer Level..
    I need calculate like this
    quantity sold * Gross Weight.
    here Gross Weight is the formula variable which replacing the values of gross weight...
    i tried by creating conversion types in RSUOM t-code. but it works on keyfigures of infocube.. not on attribute values of master data...
    is there procedure in formula variable it self to convert unit of measure before replacing the values.....
    or is there any other  solution to  this Problem...
    Thanks in advance..
    regards
    ravi.p

    Hi
    Have you tried to create a variable for ths kf with exit. I thnk it is possible here
    Assign points if useful
    Regards
    N Ganesh

  • Error  while creating PO --   Unit of measure not defined for lanuage  ZH

    Hi all,
    i  have created the PR with EA as UOM. Then while creating PO, i am getting error like
    '  Unit of measure not defined for lanuage ZH' .
    Then  I execute CUNI
    Then menu is GOTO > Translation > units of measure
    enter source language and target language . After this i am getting the below message
    --->  Language not available on server
    Please suggest what i should do. Thanks.
    Thanks
    pabi

    HI Pabi,
    Go to material master for material in purchase requisition, the Go to Additional data and maintained language as ZH in material master data.
    Also the other possibility, that if in your case purchase requisition are converted to purchase orders through background jobs,
    then check the background job execution in SM37 whether that background job has been triggered twice parellely in the background, which could have resulted in locking of same purchase requisition at same time and hence your are getting the Error.
    Br,
    Tushar

  • Unit of measure not defined for language ZH

    Hi,
    We were creating a PO when we encountered the error which states "Unit of measure not defined for language ZH".
    We executed CUNI to translate the units of measurement to our target language. System prompted "This object was segmented. Only new lines evaluated." What does this mean?
    We tried creating the PO again, however we encountered the same error that the unit of measure was not defined for the language.
    Please recommend action/s that we should take. Thank you.

    Take a look at the below threads. Your problem has the solution.
    Re: Unit of measure XX not defined for language DE
    Re: Unit of Measure Error in Purchase order

  • Convert Unit of Measure

    Hi all,
    i need a function that must change another unit of measure, not base unit of measure.
    Which function can i use ?
    Thanks a lot.

    Hello,
    AFAIK there is no such func. It's always AUoM --> BUoM --> AUoM.
    You can use the function 'MATERIAL_UNIT_CONVERSION' for these conversion.
    BR,
    Suhas
    PS: In our system we've created a custom function module to the direct conversion for AUoM --> AUoM.

  • Routing - decimal places for unit of measure conversion quantity

    Hello all,
    in the change routing screen in SAP (CA02), when going to a operation detail screen, a unit of measure conversation value can be defined. A value for header and operation can be made.
    Currently we cannot set any decimal values for operations, I get the error message: "decimal places are not permitted."
    Where in customizing can I change that?
    Thanks
    Anne

    Hello,
    thanks for the answers.
    The UoM is LB.
    I've already checked CUNI, but I can not find LB..?
    Also I've noticed other places in SAP, for example the base quantity of some operations in the routing have a numbers with 3 decimal places and the same UoM LB, so this looks like the UoM is setup fine, maybe there are just problems with this special screen?
    Thanks
    Anne

  • Maintaining Unit of Measure (not alternative)

    Dear colleagues,
    I need to maintain a unit of measure (1 BOT is equal to 45 DEG) where we are going to use it for Z programsu2019 calculations, not in standard functions.  But I don't want to maintain this ratio under additional data  units of measure because if I maintain then there is possibility of being use this new measure in sales ordersu2019 etc. Is there any other field where I can maintain this ratio without infecting standard calculations?
    Regards

    I would suggest you need to put logic in Zprogram.When ever program finds this UOM it will automatically converts and will update in sheet.
    Maintain UOM convertion in  a Z table.This will help if you want to add some more UOM  it is use ful to you.While running in Z report it will fetch the convertion from table .

  • Convert unit of measure to metric

    Does anyone know how to convert a unit of measure to metric?  Is there a function module that I can use? Thanks.

    report ychatest.
    here qty is ur quantity field in ur internal table ,
    loop at itab.
      call function 'UNIT_CONVERSION_SIMPLE'
        exporting
          input                      = itab-qty
    *   NO_TYPE_CHECK              = 'X'
    *   ROUND_SIGN                 = ' '
         unit_in                    = itab-vrkme
         unit_out                   = 'EA'
      importing
    *   ADD_CONST                  =
    *   DECIMALS                   =
    *   DENOMINATOR                =
    *   NUMERATOR                  =
         output                     = itab-qty
    * EXCEPTIONS
    *   CONVERSION_NOT_FOUND       = 1
    *   DIVISION_BY_ZERO           = 2
    *   INPUT_INVALID              = 3
    *   OUTPUT_INVALID             = 4
    *   OVERFLOW                   = 5
    *   TYPE_INVALID               = 6
    *   UNITS_MISSING              = 7
    *   UNIT_IN_NOT_FOUND          = 8
    *   UNIT_OUT_NOT_FOUND         = 9
    *   OTHERS                     = 10
    modify itab transporting qty.
    Endloop.

  • Unit of measure not craeted in EN

    There is an item in matl master (R/3)with micro liter as unit of measure . The same product has  been checked in COMMPR01 in EBP , where in microlitr is extracted from back end . I checked the language and it is in English.
    Also I checked for unit of maesure both in T006A  in R/3 and EBP with english as language .We r using SRM 5.5 with ECC 6.0.
    But while selecting that material for creating shopping cart it is giving error as
    'unit ML is not created in English language'.
    The ISO code for micro liter is 4G.
    Please help me ..
    Thanks in advance
    SK.

    ..

  • QM_Change of base unit of measure not possible

    Dear QM Experts,
    Scenario is,
    1.     Material master created with QM view activation.
    2.     The Base Unit of Measure kept as EA
    3.     Inspection plan prepared for material with usage 5 and status 4.
    4.     Material has not undergone any purchase order / production order / routing or any other transactions except inspection plan.
    5.     No movements have done and the stock is zero
    6.     The requirement is to change Base Unit of Measure from EA to KG
    When tried through MM02 system throws an error message as The base unit of measure cannot be changed; choose "Display errors" Message no. M3189
    When viewed through log another information gets displayed as Routings already exist that are assigned to the material. Task list type Q.
    I tried through trial and error method. First material assignment was deleted from task list, problem did not resolve. Thereafter deletion flag put to task list. No impact. At last entire task list deleted. Still system does not allow changing unit.
    Has anybody faced the same problem ever? Whether deletion of task list (By T-Code QSR6) from data base will server the purpose? What are the obligations that one must follow while execution QSR6?
    Or if there is any other solution to this requirement?
    Thanks in advance
    Best Regards,
    Anand Rao

    Hi
    *What are the obligations that one must follow while execution QSR6?*
    By this T code  Deletion is very much possible provided that
    If there are no stocks of the material in the current period and in the previous period
    If there are stocks in the previous period, you can clear them as follows:
    a) Post the stock in the previous period to the current period (for example, using movement type 561) so that the stock for the previous period is the same as the stock for the current period.
    b) Clear the stock with the posting date in the previous period (for example, using movement type 562).
    If no purchase requisitions, purchase orders, or scheduling agreements exist for the material
    Material Is used in any task list/Rauting.
    Now as per your schenario I hope you have checked Inspection lot & PR,PO.
    Error showing Q type of task list.
    Go to PLKO & MAPL table for this material & group & Gr counter check the entry.
    Check deletion Indicator in both the tables. If it has status "X" then this task list is very much possible to delete through QSR6.
    I hope this will add some value to your Execuation.
    Regards
    Sujit

  • BOXI 3.0 Units of Measure not coming over to universe based on Infoset

    We are noticing that the Unit of Measure for Infoset based query objects are not coming over with the base install of the SAP integration Kit. However, it does seem to work after fixpack 2. Can anyone confirm this?

    Hi Mark,
    we had a separate thread on this already - or ?
    for Universes on top of Web Intelligence it has been identified as an issue.
    For Universes on top of InfoCubes it works fine.
    Ingo

  • Numerator in Unit of Measure not big enough

    Hi,
    The numerator, field UMREZ, of the unit of measure has a maximun lenght of 5 digits ( maximum of  99999 ). But for certain conversion I need (in MM02-> aditional data->tab units of measure):
    120000 EA = 1 ROL
    How can I do this without entering something bigger than 99999?
    I have thought in three alternatives:
    1.- Modification of that data domain, so that it can be stored up to 999999.
    2.- Use decimals in the denominator , so that I have something like 12000 EA = 0,1 ROL.
    3.- With an auxiliar unit of measure EA2 ( created via CUNI, linked to EA): 10 EA2 = 1 EA :::::and then::::: 120000 EA2 = 1 ROL.
    I havent been able to complete the 2nd and the 3rd. ANd I want to avoid the first...
    Do you know if something like this can be done? if so, how????
    I have found post UOM conversion not big enough but I could not find any usefull answer in there ...
    Many thanks in advance.
    Aaron

    Hi,
    Yes, I had already read this note, thanks for the info anyways.
    They describe exactly my case:
    Example 3: Too large numerators and denominators
                           When 120000 CM3 = 0,2 tons (TO), you can no longer save numerator and denominator of conversion ratio 600000 CM3 = 1 TO as numerator and denominator may have maximally five digits.
                           Here, you must either select a larger volume unit or a smaller unit of weight: With DM3 the conversion ratio would be 600 DM3 = 1 TO, with KG the conversion ratio would be 600 CM3 = 1 KG.
                           Generally, the alternative units of measure and the base unit of measure should result in quantities that are in the same dimension since the conversion factors may not be larger than 99999/1 and not smaller than 1/99999.
    But I can not change the Basic Unit of Measure, because the Material has already movements, and I dont know how to create another unit of measure (let say EA2) linked to EA with a the value 1 EA2 = 10 EA. In this case I could use EA2 in the material with the conversion 12000 EA2 = 1 ROLL.
    Is this possible? How can I create this unit? in CUNI I can create a new UOM but I dont see how to link it with an existing one ( create a conversion between them ) .
    Thanks!!

  • Is it possible to manage 3 units of measure (not just 2) using IS CWM

    Our customer requirement is to handle the stock in 3 different units of measure.
    We have read that with the EHP7 CWM (Catch Weight Management) this is possible but we are not sure if it's possible with  3 units of measure.
    If not any other alternative?
    Many Thanks
    You can contact me at: [email protected]

    CWM supports only one parallel unit of measurement as the valuation unit of measure. It however allows adding several unit of measure as in standard ERP system.
    Hope this helps.
    Baseer

  • Material condition unit of measure not allowed

    Hello Friends,
    I am facing error of material XXXX condition ZPPL unit of measure SFT not allowed while creating the  opportunity in CRM
    Kindly note that I have defined a new UoM in ERP and for this new UoM the sales created perfectly in ERP, i have checked the netweaver settings for ISO codes and UoMs in CRM and they are fine...
    Please help me with this

    Did you ever find the solution for this?  I am getting the same warning message and have no idea why it is defaulting 'ST'.

Maybe you are looking for

  • TRansfer of data from old to new Iphone

    got an new iphone 5s and on the itune backup wrongly selected backup as a new phone instead of restore backup from old phone, so cannot transfer anything from old phone to new, can anyone help?? thank you

  • Just purchased a movie on accident, can i get my money back?

    i purchased a movie a few moments ago and i did not mean to, can i receive my money back? i don't want this movie!!

  • Need Help in the installation of p6 v7 web access on weblogic

    Hello all i have a problem and i need help .. when i installed the Web Access on web-logic the state of the deployed application is failed i've installed it several times and the state is still failed i checked the configuration on page 160 on the ad

  • Java Web Start and DNS with multiple IPs fails

    We have a number of servers that deploy a Web Start application. We have a DNS entry with the 3 IPs of the servers (e.g. nslookup webstart.mydomain.com returns 3 different IPs). This is fine for a browser (running a packet capture program e.g. Wiresh

  • Which table holds the position ID

    Hello Just a quick question. I have restricted access to PA30/PA40. I want to searc for an employee and find out the position ID Which table holds it? I want it to map the roles to positions Thanks