UoM convertion

Hi all,
I have one scenario,Where the UoM changes to one to other with the following code takes place in BW cube start routine.
select  /BIC/UPRODCODE /BIC/UCONFREG
                      from /BIC/PUPRODCODE
                      into corresponding fields of table it_prodmaster
                     where /BIC/UPRODCODE like 'JP%'.
    sort it_prodmaster by /bic/uprodcode.
    delete adjacent duplicates from it_prodmaster.
  endif.
LOOP AT DATA_PACKAGE.
    DATA_PACKAGE-fiscyear = DATA_PACKAGE-calweek+0(4).
    clear it_prodmaster.
    read table it_prodmaster
               with key /bic/uprodcode = DATA_PACKAGE-/BIC/UPRODCODE
               binary search.
    if sy-subrc ne 0 or it_prodmaster-/BIC/UCONFREG = 0.
DATA_PACKAGE-/BIC/UIOFFCSLQ  = DATA_PACKAGE-/BIC/UIOFFCSLQ * 1000 /
                                   it_prodmaster-/BIC/UCONFREG.
The problem is, UIOFFCSLQ value is converting but the UoM is not changeing.
How do we change UoM?

may be u require a CONVERSION EXIT for it.
To find the conversion exit for that particular data element, do as follows.
double click on data element -> it will display its domain, again double click on domain ->
domain screen open, under 'DEFINITION' tab, on 'Convers. Routine' field, it will display its routine. ust double click in that routine. It will take you to possible Conversion routines for that data element.
If you find any problem, revert back.
regards,
Padma
Edited by: Padmashree RamMaghenthar on Feb 4, 2009 12:07 PM

Similar Messages

  • UOM Convertion in GR Issue

    Hello Gurus,
    I have a material that have the next UOM:
    1 PC (BUM) = 3 BAG
    When I make a GR (mov. 261) for this material in 1 BAG (UOM at the BOM) the system makes the convertion to PC and discounts 0.333. See the next example:
    Initial Stock:         1        PC = 3 BAG
    GR ( - 1 BAG):    0.667 PC = 2.001 BAG
    So, at the end I have a little surplus that obviously doesn't exists.
    Is there any possibility for fix this? Can the system discounts 1/3 instead of 0.333?
    Thanks in advance.

    Hi
    I once had this issue in one of my projects. I'm afraid, as far as I know, this is the standard SAP, UoM can only accomodate 3 digits of decimals.
    Thus, when you define the Base UoM not with the smallest unit, you will face this kind of case where SAP will round the qty, resulting in an excess in stock (when physically it doesn't exist).
    My advice is, you should define the smallest unit as the base UoM, so this problem will not arise.
    Or, for material which already have this problem, you should do adjustment at least every month for this qty rounding problem.

  • Derive method of characteristic relationship with exit class BI IP

    Hi All,
    We have below four fileds in real time planning cube.
    Quantity
    Unit of measure
    Converted Quantity
    Converted UOM
    We have implemented characteristic relationship of type exit between UOM and converted UOM. We need to populate values of converted UOM using characteristic relationship.
    do we need to implement derive method to fulfil this requirement ?
    if yes, when derive method of exit class is getting called ?
    Awaiting for your reply.
    Regards,
    Mitesh.

    Hi Andrey,
    Thanks for your reply.
    I have tried approach suggested by you however break-point did not stop yet to derive method.
    I will give little more details on what i have implemented, probably it may help you.
    I implemented CREATE method and generated below combinations. No other method has been implemented yet.
    UOM            Converted UOM
    G                 KG
    KG              G
    clear ls_unit.
      ls_unit-unit = 'G'.
      ls_unit-unit1 = 'KG'.
      APPEND ls_unit to lt_unit.
      clear ls_unit.
      ls_unit-unit = 'KG'.
      ls_unit-unit1 = 'G'.
      APPEND ls_unit to lt_unit.
    E_TH_CHAS = lt_unit[] .
    Kindly suggest,
    1. any specific configuration at query level is required to call derive method
    2. what code should i need to write if i want to derive above combination using derive method
    Thanks,
    Mitesh.

  • 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 .

  • Multiples of MOQ

    Dear Experts
                    I need to create a sale order in which the materials quantity should be picked only by the multiples of MOQ (i.e. multiples of 5 say 5,10,15,20....like wise ) could any one please suggest the solution .
    +Note:+ Usage of "BOX" UOM convertion method is familiar to me but it is really impossible for me to implement in our company since the UOM of all the materials cannot be changed suddenly ....
    Regards
    Deva.M.Mahiban

    In the material master record (Master data) in the Sales Org 1 under quantity stipulations, we can provide the minimum order qyantity and Minumim delivry quantity based on the value maintained. Order can be placed in the multiples of value maintained and order an be deliveried as well.

  • Function to convert PO quantity and cancelled quantity into Primary UOM

    Hello,
    I am looking for a function to convert PO quantity and cancelled quantity into its Primary UOM from the unit of measure the line order was placed.
    Thank you

    hi
    In case if you are already working in production remember that decimal places should not change. It will affect all previous data.
    For your problem best solution is make order unit as 1000. So that your problem will solve
    e.g. instead of 2.009 inr for 1 Unit use 2009 inr for 1000 unit.

  • Rounding profile: convert ordered qty to another UoM

    Hi all,
    I would like to convert the ordered qty on the sales order into a different unit of measure. This can be done with rounding profile. However, I don't want it to round if it is not exact.
    For example: 1 case = 100 EA. If a customer orders 100 EA, it will automatically convert it to 1 case. This should work.
    However, if customer orders 75 EA, I don't want it to auto round to 100EA (and convert to 1 case). Instead I want an error to occur, or atleast give the user the option to round or not round.
    How can this be done?
    Thanks

    Rounding profile is used to adjust the order proposal quantity to deliverable units.
    Sales unit will default the order item to cases (As entered in material master).
    Now, if you want to give an options to the user
    1st thing to check at order item level is
    1. Is the Sales order UOM = Sales UOM of material (VBAP-VRKME = MVKE-VRKME)
    If not then
    Check if the sales order unit satisfies the conversion factor (if VBAP - VRKME can be converted to MVKE-VRKME)
    If yes then change the sales order unit and make it equal to material sales unit
    If not then
    switch off round up, have a pop up asking user for pop-up
    You will have to utilize
    1. Rounding,
    2. Sales unit of Material
    3. Exit to change VBAP.
    4. Screen changes for pop up.
    << Moderator message - Point begging removed >>
    Edited by: Rob Burbank on Dec 13, 2011 8:57 AM

  • Dynamically Convert  to Sales UOM in Sales Order

    Hello,
    Our customers sometimes send us purchase orders in a Unit of Measure that is different than our Sales Unit of Measure for a material. 
    Custoemr service would like the system to convert from the Customers UOM on the Purchase order to the Sales UOM of the material.
    For example, they will request 500 lbs of material 555123. We sell this material in bags that weight 55lbs each.  So in reality we need to sell them 10 bags of material which is actually 550lbs.  What they would like is if they entered 500 lbs in the Standard Order, the system would convert this to 10 bags.
    I was looking in MM Basic Data > Additional Data > Alternate UOM to see if this could be setup there.  But I still cannot determine if this is possible.
    Can someone please let me know if this concept is possible in Customizing and if so, where should I investigate.  Thanks very much.

    Thank you for your replies.  I have been investigating the rounding profile prior to this post and though they may be a possible solution.
    Does anyone know for sure though if a Customer Service agent enters 500lbs in the Sales order if this will convert this to the Sales UOM?
    The reason I ask is that I found an SAP Note 453347 that states "In the sales order, the system always uses the quantity entered on the item overview even if alternative units of measure exist."

  • FM TO Get the Convert UOM

    Hi Experts
    IN QP03 Inspection Plan Charcterstics there is filed called UOM (MASSEINHSW) actually in Screen it is KG\cm2 but in table it is stored as +KGC+.
    In Program it is displying as KGC but i need to display kg\cm2 any FM to Convert this.
    Rgards
    Jagadish

    Hi,
    Check these below FM's
    CIF_GEN_CONVERT_BASE_UOM
    ISA_CONVERT_UOM
    CONVERSION_EXIT_SUOM_OUTPUT    HU number output conversion exit
    OIG_F_CONVERT_UOM_FOR_SCD      TD-F convert UOM for scd-calculation to different UOM        
    OIU_QCI_CONVERT_UOM            Convert units of measurement
    Regards,
    Jyothi CH.

  • Unable to determine factor for converting from UoM DR to UoM L

    Hi gurus,
    I ran into an GTS block for inbound delivery which states 'Unable to determine factor for converting from UoM DR to UoM L.'  Actually the PO linked to this inbound delivery was transferred succesfully.
    Per above error log, I checked product master, conversion rate for DR and L was maintained.   Could you shed lights where should I maintain for above error log?
    Thank you,
    Ryan

    Hello Ryan,
    There is one bug recently detected in the contex of IBD transfer, the problem is that the conversion factor isn't taken into account during the interface mapping in ERP side, SAP will provide a Note for this issue. To be more sure that you run into the exact same issue, please check wether cvqdp_flt in item of the inbound delivery is empty(/SAPSLL/CUIT-CVQDP_FLT).
    Thanks,
    Derek

  • Convert Dimensionless UOM

    Is it possible to convert a dimensionless UOM from the shopping cart to the RFX and PO? Example, EA in shopping cart, then ST in RFX and PO? I get an error when creating the PO. Error is "buffer table not up to date". We implemented sap note 1369693 but this did not solve the problem. Thanks!

    Hi
    Why you can request the item via BOX itself in the cart.
    I believe it is describe procurement right.
    If it is a product master it would have picked from UOM w.r.t material.
    Does your business allow this or not?
    is it allow the system to change the UOM in the BIDs?  i never tried.
    for eg. what we ask the supplier has to give right
    for examaple
    we need one pen but supplier is trying to give 12 pens in one box.Why? control is from our side.
    BR
    Muthu

  • Is the any FM to convert The ALterante UOM to Base UOM?

    Hi ,
    Is there any FM to convert the Ordered quantity(In alterante UOM )of a particular material in to Eqvivalant quantity interms of base UOM ?
    Thanks in advance ,
    Dharma .

    Hi Srinivas,
    You can see the sample code mentioned below. It will throw those errors which u mentioned. Even you can change the logic as u required. This is just for your information...
    parameters: P_date(6) type n  obligatory.
    DATA: p_len TYPE i.
    at selection-screen.
    if ( p_date4(2) lt '01' or  p_date4(2) gt '12' ) .
      MESSAGE e400(ZCA_GENERAL) WITH 'Date format is wrong enter only YYYYMM'.
    elseif ( p_date0(4) lt '1960' or p_date0(4) gt '2099' ).
    MESSAGE e400(ZCA_GENERAL) WITH 'Date format ( Year 1960-2099 ) is wrong enter only YYYYMM'.
    endif.
    Regards,
    Naveen Veshala

  • Convert UOM to Cases

    Hi ABAP Experts,
    Please let me know the Function Module name where in we can convert UOM (Unit of Measure) to Cases.
    u2022     Outbound Delivery will have unique Shipping Point and the u201CPIECESu201D value will be a summation of the ordered quantities per line item. Unit of Measure for all the line items needs to be converted to Cases individually. This value of ordered quantities needs to be transmitted to TMS in cases but the Unit of Measure will not be transmitted.
    How can this be achieved? Please provide your inputs. Thanks!
    -Sowmya

    FM's MD_CONVERT_MATERIAL_UNIT and MATERIAL_UNIT_CONVERSION are not working properly.
    The value was 20.00 before. After calling the FM, it is changing to 0.0
    I'm using like this:
    CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'
        EXPORTING
          I_MATNR                    = TAB_LIPS-MATNR
          I_IN_ME                    = TAB_LIPS-MEINS "Base Unit of Measure
          I_OUT_ME                   = LC_C01         "Cases
          I_MENGE                    = TAB_LIPS-LFIMG "Actual quantity delivered (in sales units)
        IMPORTING
          E_MENGE                    = LTAB_LIPS-LFIMG
        EXCEPTIONS
         ERROR_IN_APPLICATION       = 1
         ERROR                      = 2
         OTHERS                     = 3
      IF SY-SUBRC <> 0.
      ENDIF.
    Please do help. How to convert UOM to Cases?
    Thanks,
    Sowmya

  • Converting UOM

    Hi,
            We have difference in UOM in for materials between R/3 and Planning area. We use CT in planning area where as we have M in material master. We don't want to change the Planning area UOM settings as there are many more materials that we are having in CT. BUt the transfer to R/3 is failing even though we maintain the conversion in material master and CIF over to APO.
    How can we convert the CT to M when we transfer data to R/3?
    Thanks.

    Actually the orders moving back from APO to R/3 should be moving in base unit of measure of the material. Base UoM gets CIFed from R/3 to APO. As long as you maintain UoM conversions from base UoM to planning area UoM in the material master, this should work. So using the APO inbound enhancement I mentioned, you can ensure that the product master captures the conversion parameters from base to planning area UoM.
    I would advise maintaining the design discussed above, instead of forcing product master to have base UoM same as planning area UoM, which i think is the solution you have. In this case you would need to manage many R/3 inbound enhancements (you can check in SMOD transaction by search term CIF*)

  • UOM is getting rounded-off while converting the PR into PO

    Dear all,
        We have created a PR with the UOM - EA for the qty 2.256 but the same was changed as 2 while converting the PR into Purchase order (If the PR qty is 2.564, then PO qty is changed to 3).
        I have checked in "CUNI". In this, for "EA", decimal pl rounding is maintained as 3.
       (If we create the PO directly for decimal qty w/o referring the PR, qty is getting rounded-off in print format. We have already posted this print script issue alone and we were advised to change the print script.)
       What we have to do to get the actual PR qty in PO.
       Pl give your valuable suggestions.
    Warm regards,
    M.Selvaganesh,

    Friends,
    What is the application of decimal places under display and decimal pl. rounding under conversion in CUNI?
    (If i maintained  decimal pl. rounding as 2, system is taking the PR qty of 2.256 as 2.25 in PO. and i've maintained decimal places as 3. But where can i see this in PO?)
    Pl clarify.
    Cool regards,
    M.Selvaganesh,

Maybe you are looking for

  • Posting periods

    hi all i am doing pgi it saying that posting is only possible 2007/6 to 2007/5.after that i did mmpv and close the periods upto 11th month.now i am doing pgi its saying that posting is only possible 2007/10 to 2007/11.for the same period i am dong th

  • [SOLVED] Multiple Dynamic View Objects and View Links - ADF Tree Table

    Hi all, I've got a method that creates 3 dynamic viewobjects using this:             ViewDefImpl Level1ViewDef = new ViewDefImpl("Level1View");             Level1ViewDef.addViewAttribute("LevelDescription","LEVEL1_DESCRIPTION",String.class);         

  • Links problems... Murray or Mike can you please help?

    Can anyone tell me why the links identified below on the page at http://www.greenpwwhh.com/index.html  is not working?  the code is listed below.  thanks <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/

  • Completely new to Soundtrack Pro - need help for school project

    I've never used Soundtrack Pro before, but I need to record and modify some dialogue for a project for one of my classes, and I think that's the only audio program we have on the computers in the lab I'm using. Can I use Soundtrack Pro to record myse

  • Interface to yokogawa centum 3000

    I want to interface to yokogawa's centum 3000. I read centum 3000 support OPC server. Can i connect our device(labview operated)to centum 3000 directly or any other way to interface to it?.