Weight Conversion

Hi All,
I am developing a report to display the weight of delivery items in KG.
I have Gross Weight and Net Weight, which may or may not be in KG in the table.
But I need to display the output in terms of KG.
Please help me on how to go with it.
There is a function module MATERIAL_UNIT_CONVERSION but I dont know what exact parameters to pass.
Please help me with an example.
Thanks.

Please try this FM.
MD_CONVERT_MATERIAL_UNIT
MATERIAL_UNIT_CONVERSION
MC_UNIT_CONVERSION
UNIT_CONVERSION_SIMPLE
using MATERIAL_UNIT_CONVERSION is as shown
report zrich_0002.
data: input type p decimals 3 value '10.000'.
data: begin of xtmp,
menge type mseg-menge,
meins type mseg-meins,
end of xtmp.
data: imara like mara.
Get base UOM
select single * from mara into imara
where matnr = '000000000040006541'.
The uoms must be of the internal format, check against T006a
do conversion
call function 'MATERIAL_UNIT_CONVERSION'
exporting
input = input
matnr = imara-matnr
meins = 'GLL' " Must be internal
meinh = 'OZA' " Must be internal
importing
meins = xtmp-meins
output = xtmp-menge
exceptions
conversion_not_found = 01
input_invalid = 02
material_not_found = 03
meinh_not_found = 04
meins_missing = 05
no_meinh = 06
output_invalid = 07
overflow = 08.
check sy-subrc = 0.
regards
navjot

Similar Messages

  • Unit weight conversion LB to KG

    Hi Guys,
    I need to convert the LB to KG, i came to know this  the FM "UNIT_CONVERSION_SIMPLE" will support,
    I am pssing the  INPUT    = 100000
                            UNIT_IN  = LB
                          UNIT_OUT = KG
      But function module not giving any ouptut, Can any one suggest, what values i  need to pass to the FM or any other way to do the conversion.
    Thanks in advacne.

    Make sure that your INPUT and OUTPUT parameters are typed correctly. This works for me.
    data: lv_input type p DECIMALS 3 value '10000.000'.
    data: lv_output type p DECIMALS 3.
    CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
      EXPORTING
        input                      = lv_input
       UNIT_IN                    = 'LB'
       UNIT_OUT                   = 'KG'
    IMPORTING
       OUTPUT                     = lv_output
      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.
    write:/ sy-subrc.
    write:/ lv_output.
    Regards,
    Rich Heilman

  • Function module for weight conversion

    Hi all,
    Is there any standard function module available which converts weight of format 59,250 into 59 kg 250 g.

    Hi Deep,
    check following code
      DATA :  LV_VALUE  TYPE I.
      DATA :  LV_KGS    TYPE I.
      DATA :  LV_GRMS   TYPE I.
      DATA :  LV_WEGT   TYPE STRING.
      DATA :  LV_K      TYPE STRING.
      DATA :  LV_G      TYPE STRING.
      BREAK-POINT.
      LV_VALUE = '59250'.
      LV_KGS   = LV_VALUE / 1000.
      LV_GRMS  = LV_VALUE - ( LV_KGS * 1000 ).
      LV_K = LV_KGS.
      LV_G = LV_GRMS.
      CONCATENATE LV_K 'kg '  LV_G 'g' INTO LV_WEGT SEPARATED BY SPACE.
      WRITE : LV_WEGT.
      BREAK-POINT.

  • Maximum paper weight for printing with a photosmart 5520 printer needed. Table gives sizes only

    Hi,
    I am trying to find out if my printer can print 350 gsm  canvas style A4 photopaper. There is an older post with a link but the links only give the paper size .
    There is also a 320 gsm version of this paper.
    What is the maximum paper weight?

    Hi Tony,
    On the right side:
    HP Brochure Paper and HP Professional Paper
    180gsm
    HP Premium Presentation120gsm Paper and HP
    Professional Paper 120gsm
    ================================================
    Google is our friend for this sort of conversion / measurement.
    Most American made paper is sold by Pound measurement which might be shown on the front of the package.
    A chart might be useful to determine what the average home printer uses.
    Pounds to GSM Paper Weight Conversion Chart
    I am unsure the extent of what you require for this -- the printer may be able to handle the extra weight paper or not.  If the job is one for which you may not need to use the printer again, you might consider using a professional service and not risk your home equipment that may not be suited to this heavy duty service.
    Good Luck!
    Click the Kudos Thumbs-Up to show you appreciate the help and time from our Experts.
    Although I strive to reflect HP's best practices, I do not work for HP. 
    Click Accept as Solution when the Answer is a good Fix or Workaround!
    Kind Regards,
    Dragon-Fur

  • Conversions on Sales Document

    Dear all,
    I am trying to use the factor functionality on the item master to do my conversions on my sales document i.e. delivery note. Factor 1 is the quantity i want to convert, factor 2 is the factor i am using and the quantity is the deducted stock unit as in the stock keeping unit. For instance i have an item which can be sold both in litres and kg. So when i am selling in litres i have to use the conversion i.e. factor to deduct the exact kgs from my stock. e.g i want to sell 30 litres of sulphur but my stock is in kgs, so i input the factor 1 i.e. 30 litres and say the weight conversion is 0.8 so 0.8 of 30 litres = 24kgs. So 24 kgs will be deducted from the system. Now i come to my pricing i wanted to display the total price of litres, the system calculates QuantityPrice i.e. 24unitprice thats the standard. But if i wanted the totals to be Factor1unitprice i.e. 30unitprice it pops up a discount which affects my gross profit. I am looking for a solution where i will be able to display Factor1*unitprice as my total without giving me a discount.
    Rgds
    Antony

    You may try to add UDF for display purpose.  The actual quantity for the sales document has to be agreed with the unit you defined without any factors.
    Thanks,
    Gordon

  • Conversion of Eth to LB

    Hi Experts,
    Can any one pls tell me how can i convert the Value in Eth Units to LB(Pounds).
    Thanks,
    Prem

    Hi Some,
         Try These Links
    U can find weight conversions in this
    <a href="http://www.onlineconversion.com/weight_common.ht">Link</a>
    <a href="http://www.onlineconversion.com/weight.htm">Link2</a>
    Reward Points If Helpful.
    Regards
    Avi...

  • Fedex can only be used with dreamweaver using metric, not pounds (lbs)

    Fedex can only be used with dreamweaver using metric, not pounds (lbs), evidently?
    This as per their tier 2 tech suport.
    They say I should just convert to metric, no joke!
    Any ideas would be greatly appreaciated?
    Also a warning to anyone thinking of using business catalyst for their site, sorry, their business.
    Their note to me:
    Your request (# 82816) has been solved. To reopen this request, reply to this email or go to the Help & Support page.
                  Silviu Ghimposanu (Adobe Business Catalyst Support)           
                  Apr 14 15:23           
        Thanks for contacting us Michael  
    Our engineering team has detected some problems when doing weight conversions (from the quantities entered in the interface to what’s used when making the API calls to FedEx) -
      He have added this to our internal bug tracker to be fixed for one of the future releases. 
        I realise that this might not be what you wanted to hear,but at this moment we do't have a workaround in order to send the
      dimensions in pounds and not in KG 
        Sorry for this inconvenience!
      Kind regards, 

    If you're in US it will be in pounds. If your site is set any other country
    in the rest of the world it will be metric. So BC or as you call it
    Dreamweaver will look at the site country, which you set when creating the
    site

  • Establish HTTP SOAP Connection

    Hi,
    How do I configure to access http connection so that file can be retrieve dynamically?
    Eg: Remotely I have Xml application, with some services (length conversion, space conversion, weight conversion etc etc).
    Total number of services must be retrieve to create GUI using swing - 3 services in this case = 3 button and labelled as length conversion, space conversion, weight conversion?
    How can I do that ? Anyone interested to provide some guide ?
    Regards & God Bless, Edison

    Dear Samta,
    Please note that the ADSUser has to be assigned to the ADSCaller role.
    Please start the visual administrator and go to:
    Security Provider >> com.adobe/AdobeDocumentServices*AdobeDocumentServicesAssembly.jar >> Tab Security Roles
    The ADSUser has to be mapped to the ADSCaller security role.
    Also note that "ADSCaller" is case sensitive.
    Also did you configured the communication between ADS and Web Dynpro to use SOAP only?
    Use Visual Administrator to maintain propertysheet default:
    go to Server -> Services -> Configuration Adapter -> webdynpro -> sap.com -> tcwddispwda
    Please edit the entry "sap.ADSCallingMode", change that value from "http" to "soap", save the changes and restart the cluster.
    Also review the documentation at the following link:
    http://help.sap.com/saphelp_nw70/helpdata/en/fa/0b700d6cfd4e03a8ec2186ba6ff4af/frameset.htm
    Regards,
    Abhishek

  • Access http connection

    Hi,
    How do I configure to access http connection so that file can be retrieve dynamically?
    Eg: Remotely I have Xml application, with some services (length conversion, space conversion, weight conversion etc etc).
    Total number of services must be retrieve to create GUI using swing - 3 services in this case = 3 button and labelled as length conversion, space conversion, weight conversion?
    How can I do that ? Anyone interested to provide some guide ?
    Regards & God Bless, Edison

    Hi,
    Will the external image will be fetched by the user browser or by the SAP application server ICM ?
    If you want to use an SM59 HTTP destination, the image will be fetched by the SAP server and you SAP server needs internet access which is usually not allowed in most companies...
    Regards,
    Olivier

  • Traded items and packaging "units" or "count"

    When adding packaging items (printed or base packaging material) to a traded item spec in Agile 6.1.1 I have noted that I cannot seem to use "units" or "cnt" as a unit of measure.  These UOM's are available at the material level, however.  Typically, we add packaging to a traded item as units or counts, so lacking this UOM at the traded item level when adding packaging to it is an issue.  Is this a config issue on our end or is this typical

    We discovered the solution here.  If we add a tare weight conversion to the packaging spec to a unit / count then we have the option at the traded level when adding packaging to the traded item.  Thanks for getting us on the right track.

  • Hi conversion of volume UOM and weight UOM

    Hii 
    i am searching for a FM which do conversion fomr let's say CD3 to M3
    or G to KG
    I have found a FM ME_CONVERSION_MEINS but the problem is that it accept as output only a 3 decimal place
    and i will need something with more decimal place.
    There is also the UNIT_CONVERSION_SIMPLE but i am trying to check it and i am not able to get the desire input.
    I have as input a value of type menge. and i want to convert it let's say something to 5 decimal place or 9 or it can be more

    Try like below     
    CALL FUNCTION 'CF_UT_UNIT_CONVERSION'
            EXPORTING
    *         MATNR_IMP           = ' '
    *         MEINS_IMP           = ' '
              unit_new_imp      = wa_final-erfme
              unit_old_imp      = wa_final2-gmein
              value_old_imp     = wa_final2-erfmg
           IMPORTING
             value_new_exp       = var3
           EXCEPTIONS
             overflow            = 1
             OTHERS              = 2
          IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    Regards
    Lalit

  • Conversion of  weight from KG to Pounds

    hello experts,
               I am retreiving the details from LIPS table based on the delivery number, I want to chage the weight unit from KGs to Pounds and vice versa based on  the country.how to convert it.
                    thanks in advance,

    Hi,
    You can try this function module
    'UNIT_CONVERSION_SIMPLE'
    "OR
    CIF_GEN_CONVERT_BASE_UOM
    Thanks
    Arun
    Edited by: Arun Kayal on Feb 6, 2009 12:48 PM

  • Historical rates & conversion of balances based on weighted  average in GL

    Hi all,
    Can anyone explain the process of loading historical rates and conversion of balances in GL?
    what are the interface tables mainly used for this ?
    Please help me out .

    >
    Dinakar A wrote:
    > Can any one please help me how to convert FISCPER3(Posting period) to date.
    >
    > Thanks & Regards,
    > Dinakar.A
    Isn't posting date available in cube ??
    0FISCPER3 to date is not possible.Instead use posting date in your query.

  • Maintaining variable conversion weight by LOT-wise

    The client is in Textile business where the Cotton is purchased in KGS and stored/issued in BALES.
    Business Need: The conversion factor of a Bale of cotton cannot be fixed, since it is a natural commodity and the wieght may vary from Bale to Bale.
    Item Code:     FV-00001
    Item Desc:     Cotton Fibre
    UOM (Pri):     KGS
    UOM (Sec):     BALES
    Conversion:     Inter-class conversion factor: 1 Bale = 10 KGs
    Deviation:     +/- 10%
    Purchasing UOM:     KGS
    Issuance UOM:     BALES
    Required calculation of Balance on Hand in Pri/Sec UOM:
    + FV-00001     LOT-1 1000kg 100Bales 1000Kg 100B
    + FV-00001     LOT-2 1080kg 100Bales 2080Kg 200B
    - FV-00001     LOT-1 800kg 80Bales 1280Kg 120B
    - FV-00001     LOT-2 756kg 70Bales 524Kg 50B
    - FV-00001     LOT-1 200kg 20Bales 324Kg 30B
    - FV-00001     LOT-2 324kg 30Bales 0Kg 0B
    Whereas the Oracle is calculating as:
    + FV-00001     LOT-1 1000kg 100Bales 1000Kg 100B
    + FV-00001     LOT-2 1080kg 100Bales 2080Kg 200B
    - FV-00001     LOT-1 800kg 80Bales 1280Kg 120B
    - FV-00001     LOT-2 700kg 70Bales 580Kg 50B
    - FV-00001     LOT-1 200kg 20Bales 380Kg 30B
    - FV-00001     LOT-2 300kg 30Bales 80Kg 0B
    At the time of Issuance the system is picking the Standard Conversion rate instead of the Actual conversion factor by Lot.

    Hi,
    I could not try this thing as I do not have any 10g set up at the moment, but hope this works. I am assuming that you are using Oracle DB at the moment.
    1. Create an initialization block that initializes the variable XX_PROD_LINE.
    2. Create another variable that can store the length of this variable.
    3. Create another initialization block that fires a query like
    select length(:XX_PROD_LINE) from dual
    4. Set this initialization block to execute only after the initialization block in step1 (You can use initialization block precedence for this). This step ensures that the length of the variable is calculated only after it has been initialized.
    5. Now you can use this variable in your reports.
    Hope this helps.
    Thank you,
    Dhar

  • .NEF to .DNG conversion - why the weight loss?

    What info is tossed when converting from .Nef > .DNG?
    For example, I just converted a file and the Info says:
    .NEF (15.6MB) > .DNG (10.9)
    Is that one third drop in MB just Nikon encoding? Or is the image affected? 

    Try posting in the DNG forum.  There are separate forums for DNG and for ACR.
    http://forums.adobe.com/community/dng#
    http://forums.adobe.com/community/cameraraw
    (The answer is probably DNG compression; but let the pros there tell you.)

Maybe you are looking for