Material unit conversion - rounding up with EA

I need to always round up when doing a conversion to EA.  Is this possible in a FM?  I currently use FM 'MATERIAL_UNIT_CONVERSION' but it will round up, or down, when converting to EA; I need it to ALWAYS round up.
Regards,
Aaron

Aaron.
As you want always ROUND UP, build your logic for that. FM will not serve your requirement.
Regards,
Kiran

Similar Messages

  • Material unit conversion problem

    Hi,
    I am using transaction mm03 to read a material
    In the DisplayBasicData1 view i can see the BAse unit of measurement
    and also the alternae UOM in the dimensions box.
    I need bapi/function module to convert between these material Units
    I tried using
    MD_CONVERT_MATERIAL_UNIT but it is not giving result
    eg for material 1424 chocolate -
    basic unit of meaurement - PC
    alternate
    weight kg 28
    net weight 27.9 kg
    volume 0.750 M3
    it is showing error in result
    How can i achieve this conversion - using some bapi
    or func module ?
    please help me with the input fields also as i do not have much knowledge about the input fields in ABAP.
    Thanks
    Points assured for help
    Message was edited by:
            shobhendra srivastava

    Hi
    Use the fun module
    UNIT_CONVERSION_SIMPLE
    CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
             EXPORTING
                  input                = p_act_in
                  unit_in              = p_uom_in
                  unit_out             = w_unit_out
             IMPORTING
                  output               = w_act_out
             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.
    reward points if useful
    Regards
    Anji

  • Fn Mod needed for Material Unit Conversion

    Hi All.
    I was trying to get the value of a material from EA to KG using a function module MATERIAL_CONVERSION_UNIT with which the data is not correcting properly.
    After this I tried with the other Fn Mod MD_CONVERT_MATERIAL_UNIT. But this is calculating the Net Wt of the material where as I need to have the value for the Gross Wt of a Material.
    Please hel on this.
    Thanks.
    Ashok

    Try this FM .It works for me so far
            CALL FUNCTION 'EHSWA_490_MAT_UNIT_CONVERSION'
              EXPORTING
                i_matnr        = <l_outtab>-matnr
                i_source_value = wl_weight
                i_source_unit  = wl_ergei
                i_target_unit  = c_lb
              IMPORTING
                e_target_value = wl_weight.
          ENDIF.
    Thanks & Regards,
    Vivek Gaur

  • "Settings for material number conversion not found" occurs when ...

    After I run an initial load data into the InfoCube 0PUR_C01, I want to check the InfoCube Content by the following path:
    RSA1 -> pick up the InfoCube 0PUR_C01, right click it and select Manage -> Get to Content tab -> Click InfoCube Content button -> Deselect all selection, only tick the 1st column checkbox next to 0Material, then hit enter, get a small window titled as "Cancel" with a red STOP msg sysing "Settings for material number conversion not found" with an "Exit" button and a question mark button, click Exit button leads to SAP Easy Access screen, if clicking the question mark button, another window pops up with the msg showed above, click Technical Information button causes the original window short dump and the short dump msg shows below in between two dashed lines:
    Runtime Errors         RPERF_ILLEGAL_STATEMENT
    Date and Time          11/28/2005 14:43:13
    ShrtText
        Statement "CALL SCREEN" is not allowed in this form.
    What happened?
        Error in ABAP application program.
        The current ABAP program "SAPLSHL2" had to be terminated because on
        statements could not be executed.
        This is probably due to an error in the ABAP program.
    Error analysis
        There is probably an error in the program
        "SAPLSHL2".
        The program was probably called in a conversion exit
        or in a field exit. These are implemented by
        function modules called CONVERSION_EXIT_xxxxx_INPUT/OUTPUT or
        USER_EXIT_xxxxx_INPUT.
        Conversion exits are triggered during screen field transports or
        WRITE statements, field exits during field transports from the
        screen to the ABAP/4 program.
        In this connection, the following ABAP/4 statements are not allowed:
        -  CALL SCREEN
        -  CALL DIALOG
        -  CALL TRANSACTION
        -  SUBMIT
        -  MESSAGE W... and MESSAGE I...
        -  COMMIT WORK, ROLLBACK WORK
        -  COMMUNICATION RECEIVE
        -  STOP
        -  REJECT
        -  EXIT FROM STEP-LOOP
        Moreover, conversion exits for output conversion
        (implemented by function modules called
        CONVERSION_EXIT_xxxxx_OUTPUT) do not allow
        -  MESSAGE E...
        to be used.
    Trigger Location of Runtime Error
    Program                                 SAPLSHL2
    Include                                 LSHL2F19
    Row                                     3
    Module type                             (FORM)
    Module Name                             TECHNISCHE_INFO5
    rce Code Extract
    e  SourceCde
    1 ***INCLUDE LSHL2F19 .
    2 form technische_info5.
    >>   call screen 1900 starting at 5  8.
    4 endform.
    5
    6 &----
    7 *&      Form  SHRINK_VALUES
    8 &----
    9 *       text                                                           *
    10 ----
    11 *  -->  p1        text
    12 *  <--  p2        text
    13 ----
    14 form shrink_values.
    15
    16   loop at dynpselect.
    17     clear checktable.
    18     if dynpvaluetab-lowvalue ne space and dynpvaluetab-lowvalue na '*'.
    19       move 'EQ' to checktable-op.
    20       move dynpvaluetab-lowvalue to checktable-low_value.
    21       append checktable.
    22     endif.
    What could cause the problem by selecting only 0Material when checking the InfoCube 0PUR_C01 content?  What does that mean by this STOP msg "Settings for material number conversion not found"?
    Thanks

    Hi Kevin,
    Set the length of 0MATERIAL and change conversion to alpha:
    Re: Error Installing 0MATERIAL from Business Content
    Best regards,
    Eugene

  • How to create unit conversions and translation type

    hi,
        i need to create translation typre for unit conversion, plese provide with tcode for translation creation and table for seeing the unit conversion rates

    TCode for Unit Conversion : RSUOM
    Table: T006
    Hope this helps

  • Unit Conversion issue for same material with Diff KPI

    Hi,
    i have a report with multiple key figures which form a structure.
    Unit conversion for this report and all the key figures are defined at report level.
    Below are the settings in place
    Source currency:    Data record from target
    Target Currency:    From variable ( Input variable in BeX report)
    Conversion  factor: Dyanamic Determination of conversion factor
                                   Using Reference Infobject if available otherwise use T006
                                   Reference Infobject: 0Material
    Issue: For 1 Key figure conversion to TO is happening, however for other Key figure conversion is not happening for the same material.
    Note: Conversion to TO is defined in BEX settings for Info object 0material and stored in DSO UOM0MATE.
    Why for same material some key figures convert to target unit correctly and not the others?
    See the attached screenshot. Sales Quantity is convertin to "TO" while Volume third party shows figue in"ERR" for same material.
    Thanks
    Nayab

    Hi,
    Following reasons cause to your issue,
    1. Unit Conversion is not maintained for that particular material  in source system Material itself, so that  conversion data data may not updated in DSO (UOM0MATE).
    2. For particular transnational data record key figure value don't have any base unit or units measures, that case also  you may get that error.
    Request check the transnational data in your InfoProvider and 0Material Master data and DSO data (UOM0MATE) . Correct the data based on that.
    Check the Master data test in RSRV for 0Material, if any SID generations was missed or not.
    I hope this can be help to find the cause of error , based on that you can resolve problem.
    Thanks & Regards,
    Leela Krishna.

  • Query Performance with Unit Conversion

    Hi Experts,
    Right now my Customer ask to me to do a improve in the runtime of some queries.
    I detect a problem in one related to unit conversion. I execute a workbook statistics and found that the time is focusing in step conversion data.
    I'm consulting all the year and is taking around 20 minuts to give us a result. I too much time. The only thing in the query is the conversion data.
    How can I to improve the performance? what is the check list in this case?
    thanks for you help.
    Jose

    Hi Jose,
    You might not be able to reduce the unit conversion time here and try to apply the general query performance improvement techniques, e.g. caching the query results etc.
    But there is one thing which can help you, if end user is using only one of the unit for e.g. User always execute the report in USD but the source currency is different from USD. In such cases you can create another data source and do the data conversion at the time of data loading so that in the new data source all data will be available in required currency and no conversion will happen at runtime and will improve the query performance drastically.
    But above solution is not feasible if there are many currencies and report needs to be run in multiple currency frequently.
    Regards,
    Durgesh.

  • Function modules for unit conversion

    hai gurus.
    what is the function module to make one qty to the same unit as other qty.
    if one is in kg and other in pounds
    i want to make both in pounds.
    pls help me with this

    Hi
    chk UNIT_CONVERSION_SAMPLE
    also chk this
    CF_UT_UNIT_CONVERSION
    Some Insights-
    Unit conversions
    with NW2004s the HOW-TO GUIDE for qty conversion is obsolete.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/27/b65c42b4e05542e10000000a1550b0/content.htm
    As of SAP NetWeaver 2004s you can create quantity conversion types using transaction RSUOM.
    The business transaction rules of the conversion are established in the quantity conversion type. The conversion type is a combination of different parameters (conversion factors, source and target units of measure) that determine how the
    conversion is performed.
    In terms of functionality, quantity conversion is structured similarly to currency translation.
    Quantity conversion allows you to convert key figures with units that have different units of measure in the source system into a uniform unit of measure in the BI system when you update them into InfoCubes
    http://help.sap.com/saphelp_nw04s/helpdata/en/27/b38c4284a8c353e10000000a1550b0/content.htm
    It is entered in ODS table linked to info object (0material)
    What you need to do basically is-
    1 ) Goto your infoobject for eg- 0material
    2 ) In Info object Maintenance- Tab page- Bex Explorer
    3 ) Enter 0BASE_UOM in Base unit of measure
    4 ) Generate UOM ODS (System generates it with prefix UOM)
    It is made of 4 fields (1 more in case of compounding) with SID for them. This is the place where you enter numerator and
    denominator to calculate conversion factor
    5 ) Load the UOM ODS with conversion from 0MAT_UNIT_ATTR or flat file
    6 ) Define conversion type
    7 ) In the conversion type, then you can select 0Material in the dynamic determination of conversion factor
    8 ) Select source unit and target unit
    For more help refer SAP help file on NW2004s. It is comprehensive and even explain - How to do unit conversion in
    transformation rule?
    http://help.sap.com/saphelp_nw04s/helpdata/en/4f/707242df019c60e10000000a1550b0/content.htm
    Check this sample code,
      CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
        EXPORTING
    *     CLIENT                  = SY-MANDT
          DATE                    = pdate
          FOREIGN_AMOUNT          = p_amt1
          FOREIGN_CURRENCY        = p_curr1
          LOCAL_CURRENCY          = p_curr2
    *     RATE                    = 0
    *     TYPE_OF_RATE            = 'M'
    *     READ_TCURR              = 'X'
        IMPORTING
          EXCHANGE_RATE           = w_rate
          FOREIGN_FACTOR          = w_fact1
          LOCAL_AMOUNT            = w_amt
          LOCAL_FACTOR            = w_fact2
    *     EXCHANGE_RATEX          =
    *     FIXED_RATE              =
    *     DERIVED_RATE_TYPE       =
        EXCEPTIONS
          NO_RATE_FOUND           = 1
          OVERFLOW                = 2
          NO_FACTORS_FOUND        = 3
          NO_SPREAD_FOUND         = 4
          DERIVED_2_TIMES         = 5
          OTHERS                  = 6.
      IF SY-SUBRC <> 0.
        write: / 'Conversion to loc.curr. failed:',
                 p_curr1, '->', p_curr2, 'err.code=', sy-subrc.
      ELSE.
        write: / 'to Loc.curr:', p_amt1 currency p_curr1, p_curr1, '->',
               w_amt currency p_curr2, p_curr2,
               '(', w_rate, ')', w_fact1, w_fact2.
      ENDIF.
    http://www.geocities.com/victorav15/sapr3/examples/currconv.txt
    Check this
    CONVERSION_FACTOR_GET
    Measurement unit conversion: Get measurement unit conversion factor Not for Dimensionless Units of Measure
    UNIT_CONVERSION_SIMPLE Measurement unit conversion by table T006, with rounding
    UNIT_OF_MEASURE_SAP_TO_ISO 
    UNIT_OF_MEASURE_ISO_TO_SAP
    MATERIAL_UNIT_CONVERSION Material quantity conversion from Base Unit of Measure to Alternative Unit of Measure and vice versa. For Dimensionless Units of Measure (Each, Piece, Box etc.) conversion depends on the given Material (see table MARM). For other Units of Measure (Length, Weigth etc.) conversion can be calculated from the T006 table or via CONVERSION_FACTOR_GET.
    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
    CONVERSION_EXIT_LUNIT_INPUT Conversion exit for technical (6-char) measurement unit INPUT
    CONVERSION_EXIT_LUNIT_OUTPUT Conversion exit for technical (6-char) measurement unit OUTPUT
    UNIT_OF_MEASUREMENT_HELP Input help for measurement units of a predefined dimension
    http://www.geocities.com/victorav15/sapr3/abapfun.html
    Reward all helpfull answers
    Regards
    Pavan

  • Problem in 2 level Unit conversion using ref IO

    Hi All,
    I am doing UoM conversion using conversion types - dynamic conversion using reference info object.
    Now in the UoM DSO, which stores the conversion factors, I have relation between 2 units say PC (pieces, dimensionless) and KG (kilogram, dimension = MASS) for some material.
    For e.g I have  1 Pc of material A = 2 KG.
    So if the existing qty key figure has unit PC in IC and the reporting unit given by me is KG, successful conversion takes place using the UoM DSO.
    E.g. 4 PC of Mat A is displayed as 8 KGs.
    Also if existing unit in IC is KG, and RU is 'g' conversion is taking place usion tghe system CUoM table T006.
    E.g. 2 KG is displayed as 2000 g.
    I selected the third option when creating Conv Type, i.e. first look in ref IO then T006. Hence the above results.
    But if the existing qty key figure has unit PC and if the reporting unit given is 'g' or some other MASS unit, conversion is not taking place. Ideally it should first look into the DSO table to convert 'PC' to 'KG', then look the T006 table to convert 'KG' to 'g', but this is not happening.
    E.g. 4 PC of mat A isn't shown as 8000 g. It is still shoeing as 4 PC.

    Hi Shai,
    It sometimes show without all the screens, I guess u should refresh.
    Anyway,
    Try running the query thorugh RSRT with Debug, with a breakpoint on currency/quantity conversion. I would suggest to restrict the test query to show only one record that should be converted so the debugging would be easier.
    Anyway, Have fun.

  • Unit Conversion in Query Designer

    Hi All,
    In one of my report, i have to show the gross weight in column against material which i am reading from material master.
    Now the weight is stored in two different unit's KG & G.
    But i have to show the weight finally in KG.
    Does any body has any idea of performing unit conversion at Query level i.e. in Query Designer.
    Thanks.

    Rakesh the same i am doing, that is reading the weight value from material master through formula variable using replacement path.
    Now when i create a key figure like this, there is a tab of 'Conversion' in that there is mentioned the 'Unit conversion'
    In there, there are 2 options
    1. Conversion type - this is a drop down but with no vlaue
    2. Target Unit - Where i selected KG.
    But output remains the same, i.e. in KG.
    M I missing something ?

  • Unit Conversion to KM

    Hello Experts!
    I have a requirement in reporting to display a quantity values in KM(Kilo Meter), NOs(Number).
    There is already conversion done into KG for the same quantity field.
    could any 1 explain me step wise on how to convert the the quantity values into KM and NOs?
    i have gone through below link. will be very helpful if u can provide me steps with screen shots.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00944f2f-c3e8-2c10-ccb5-a6e4cc882db4?quicklink=index&overridelayout=true
    should I create 2 info objects for conversion into KM and NOs.
    regards
    vijay
    Edited by: biuser123 on Feb 7, 2011 10:44 AM

    Hi ,
      This requirement can be attained by creating two new info-objects for KM and NO.
      map it to the same source fields to which the info-object with unit KG is mapped .
      Use the same step done for converting base unit to KG conversion just instead of using KG use KM and NO resp.
      In our project for unit conversions, we refer to mm03 in R/3 table for finding the conversion units for a particular material .
      A dso is maintained in BW which gets data from the datasource created on this table.
      this dso is looked up for every conversion based a particular material .

  • Unit Conversion Using RSUOM

    Hi, this i have already posted but i didn’t got helpful suggestions...
    plz help me to resolve this...
    I am using BW7.0's feature - Quantity Conversion (TCode: RSUOM).
    I am Traying to Convert all the Quentity Units to one Unit , I have followed the following Steps.
    Steps :-
    1)     In the BEx Tab page of Characteristic 0MATERIAL, maintained the field "Base Unit of Measure" as 0BASE_UOM
    2)     In the BEx Tab page of Characteristic 0MATERIAL, maintained the field "Unit of Measure for Char." by click on the New button, it will generate a DataStore Object, which will store information for calculating the conversion factor.
    3)     I have created Transformation from 0MAT_UNIT_ATTR to Generated DSO
    4)     The Mapping is
    MATNR ---> 0MATERIAL. ( Material )
    MEINH ---> 0UNIT ( Unit of Measure )
    UMREZ --- >0UOMZ1D ( Counter )
    UMREN ---> 0UOMN1D ( Denominator )
    MATNR  -
    > 0BASE_UOM ( This is Lodead through Master Data )
    5)     Fill in the DataStore generated with data, using the DataSource 0MAT_UNIT_ATTR Using Transfermation and DTP.
    6)     Data is Loaded Successfully AND the Data is in Active.
    7)     Then I Created the Quantity Conversion Type through TCode RSUOM ( Eg: ZUOM ),
    In the Conversion factor Tab , The Dynemick Determinetion of Convertion Factor Option 3 I have selected with reference to 0MATERIAL InfoObject.
    8)     In UoM Tab, I have selected radio button
    Source : Info Object for Determining the Unit of Measure  ( 0MATERIAL  and Quantity Attribute 0BASE_UOM )
    Target : Fixed Unit of Measure ( CAR )
    9)     Then in Query Designer , Quantity Key Figure Properties ( Eg: 0QUANT_B ) --- > In Unit
          Conversion I have selected Conversion Type ZUOM
    When I execute the Query , it is not Converting the Units.
    I am Trying to Convery all the units in to CAR ( Cartons )
    Eg : 10 Kg = 1CAR
         1000 kg = 1 MT
    Where I am missing ? what are the Radio Buttons I have to select in RSUOM
    Thanks
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bi/define%2bunit%2bof%2bmeasure%2bconversions%2bin%2b0material%2bdefinition
    I check this link , i didnot find all the screens..
    Regards,
    SHAIK
    Message was edited by:
            shaik

    Hi Shai,
    It sometimes show without all the screens, I guess u should refresh.
    Anyway,
    Try running the query thorugh RSRT with Debug, with a breakpoint on currency/quantity conversion. I would suggest to restrict the test query to show only one record that should be converted so the debugging would be easier.
    Anyway, Have fun.

  • Activating batch-specific material unit of measure

    Hi all,
    my client has a SAP ECC 5.0 system with over 30 plants, which are currently using batch management. For a new plant we have the need to work with the batch-specific material unit of measure to have KG as base UOM and to calculate the quantity of bags regarding the batch specific conversion factor.
    Does anybody now which impact will follow on the current batch management and stock in the other plants after activating the batch-specific material unit of measure in the Customizing?
    Thanks in advance,
    Robert

    Hey all,
    I found something in standard SAP... You can use a dependency on the level of the batch class and in there it is possible to write some calculation code.
    Thanks for the input,
    Philippe

  • Units conversion about variant configuration?

    my company is doing vc.we will change the material and batch.the width and length of product will be the character of batch in future,so the unit weight can not be in the material data,will be calculated in the batch.But there is the problem,the unit will only use the sale unit (such as pal)and the base unit(such as kg) in sale order and other .if we want to use the other unit such as pak,how can we do?we can not set the unit conversion,about  10 pak = 1 pal.
    we must create the another material ?
    Edited by: Philip Eller on Jun 11, 2008 10:08 AM
    Edited by: Philip Eller on Jun 26, 2008 10:56 AM*
    Edited by: Rui Pereira on Aug 6, 2008 4:24 PM

    hi ,anna:
    the detail is:
    we set the unit weight in material master data on addition data now,such as 1 pal=100 kg and 1 pak=10 kg.Every material has different value in width and length character.
    so we can use the PAL or PAK as the unit of sale order.
    In future,the width and the length will be not the character of material ,they will be the character of the batch.So the unit weight is setted in the batch.But the consultants say that we only can use one unit(PAL or PAK) and can not maintain the unit conversion.In the batch,they say only one unit can be use
    and can not convert.
    i think there will be some problem for our users in order operation,and want to find some way to deal with it.
    Edited by: Rui Pereira on Jul 8, 2008 4:22 PM

  • Unit Conversion in Info Set Query

    Hello Experts
    I have create a query on infoset in which I want to show the qty field with the unit conversion factor . but I am not able to do so.
    It is giving an error message while saving the query
    0Material is not a valid characteristics for Info provider ZINFOSET
    Diagnosis
    Customer enhancement RSR00002 or the implementation of BAdI RSR_OLAB_BADI delivers 0MATERIAL as the characteristic to be calculated. 1. is, however, not a valid key figure for InfoProvider ZIS_BILL.
    System Response
    The information from 0MATERIAL is ignored.
    Procedure
    Check the exit.
    Procedure for System Administration
    Please help me out
    Thanks
    Neha

    Hi,
    You can try unit conversion planning function,create planning function and add it at the back of button.
    Can refer to link below:-
    Not sure if it can solve your problem.As it also depends upon source and target keyfigure used.
    http://help.sap.com/saphelp_nw70/helpdata/en/44/21643cedf8648ee10000000a1553f7/content.htm

Maybe you are looking for

  • Where to install Thunderbird on Mac OSX for multiple users.

    Hello, I would like to install the email program Mozilla Thunderbird on my Mac OSX (10.4.6) computer which is set up with several different user accounts. I am not sure where to install it so that everyone may be able to use it. I would like to insta

  • Creation of settlement documents, how to influence

    Hi  team ABAP, i have a requirement to influence creation of settlement documents which get created via TA MEB1 using the pushbutton "Settlement". There is a SMOD/CMOD project which we use as userexit. we use SMOD lwbon003, component EXIT_SAPLWN01_00

  • Upgrade path

    we are upgrading from ACS 2.6 to 4.1 should we order the upgrade software (CSACS-4.1-WINUP-K9) or should we order the regular package (CSACS-4.1-WIN-K9)since 2.6 is so out of date?

  • Track opacity issues

    I am using 2 lines of video. When I want to fade out from a clip on the bottom line into the one on the top line, I use the pen tool to create keyframes in the timeline for opacity by simply dragging the opacity line to a diagonal shape. Most of the

  • Using online numbers

    I want to use my Verizon phone in Germany to make business calls back to the US. If I get a US online number, will Verizon treat my calls as local US calls?  Or will I be charged Verizon's international rate for being in Germany when I make the calls