Numerator in Unit of Measure

Hi All,
We are updating the Unit of meaure using Function Module CRMXIF_PRODUCT_MATERIAL_SAVE. It is creation material successfullly & changing all attributes of products except the Numerator or Denominator of alternative Unit of Measure..
How to change Numerator or Denominatior of existing products...
Thanks in Advance
Regards
Sushil

I have this report which does the same..code is given below.
REPORT  ZCRM_PRODUCT_UOM_ALTERNATIVE                                     .
                              PARAMETER                              *
parameter: p_pr_gr type CRMM_PR_SALESG-PROD_PR_GROUP value check.
                              D A T A                                *
data: ls_unit type COMM_PR_UNIT.
data: ls_product type comm_product.
data: ls_zmodelinfo type zmodelinfo.
data: lt_product type table of comm_product with header line.
Get all the Product which have UNIT as Category
select * into corresponding fields of ls_product
                         from comm_product as prd
                         inner join COMM_PRPRDCATR as cat
                         on prdproduct_guid = catPRODUCT_GUID
                         where CATEGORY_ID = 'UNIT'.
****************29.06.2006******************
*For Product Price Group
      data: ls_pr_group type CRMM_PR_SALESG.
      clear ls_pr_group .
      SELECT single *
          INTO corresponding fields of ls_pr_group
          FROM COMM_PR_FRG_Rod AS M INNER JOIN CRMM_PR_SALESG AS P
                 ON MFRAGMENT_GUID = PFRG_GUID
          WHERE M~PRODUCT_GUID = ls_product-PRODUCT_GUID.
check ls_pr_group-PROD_PR_GROUP = p_pr_gr.
**********End*29.06.2006******************
Get SALEABLE AREA for the Product and put it in table COMM_PR_UNIT
  select single ZZ0012 into corresponding fields of ls_zmodelinfo
                       from comm_pr_frg_rel as frg
                       inner join zmodelinfo as zmod
                       on frgFRAGMENT_GUID = zmodFRG_GUID
                       where PRODUCT_GUID = ls_product-PRODUCT_GUID.
  clear ls_unit.
  ls_unit-PRODUCT_GUID = ls_product-PRODUCT_GUID.
  ls_unit-UNIT = 'FT2'.
  ls_unit-NUMERATOR = 1.
  ls_unit-DENOMINATOR = ls_zmodelinfo-ZZ0012.
  ls_unit-LOGSYS = 'PCRCLNT300'.
  modify COMM_PR_UNIT from ls_unit.
insert COMM_PR_UNIT from ls_unit.
  append ls_product to lt_product.
  clear ls_unit.
  clear ls_product.
endselect.
Print all the products that have been changed
loop at lt_product into ls_product.
  write:/ ls_product-product_id.
  clear ls_product.
endloop.
Julius

Similar Messages

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

  • Material master-additonal unit of measurement

    HI, I have three questions
    a) we have the follwoing data defined in material master (additonal data)
    X UOM Y UOM EAN
    1 LITRES 1 LITRES NIL
    1 IGB (inner packg) 20 LITRES 345922222222
    1 GBE (packg) 20 LITRES 345922222222
    I need to know what is EAN no and in our case the EAN no is same for both inner packg and pack. . what does this mean. Sometimes we also see the EAN no is different. why... what it signifies ?
    2) We have outbound idoc trigerred from delivery. message type is WHSOD. in one of the segments (E1EDL24), the system shows the delivery qty and material no. This segment also shows the EAN NO AS 345922222222. In segment E1EDL26, the filed UMVKZ shows as 1 which is ok (numerator as shown above) but the numerator field shows 1 only (it does not show 20 litres,, i think the field name is UB something ).
    I need to know why the system is not showing 20 litres in numerator in the filed for segment E1EDL26.
    3) Had we have two different EAN in material master as above, did our standard message type would have shown the conversion factors (numerator and denomi ) as per the EAN nos.....If yes, then in which segments ,the WHSORD shows the Conversion factors based on different EAN nos in material master-UOM tab (for instance if 1 GBE (packg) = 30 LITRES and EAN IS 345911111111.... I think there will be as many segments in idoc as there are entries in Additonal data-UOM tab )
    rgds
    pamela

    Hi Jurgen,
    I think you did not understand. My questions is as follows.
    a) why we maintain alternative UOM in material  mastr (additional data) ? an example ould be good.
    b) We have in our system base unit of masuement as  litres and sales unit as blank. that means system will take sales unit of measurementt as litres only.
    now we make sales order and make delivery and a outbound whsord idoc is sent to third party warehouse. the third party warehouse undertsands only IGB(pack ) unit of measure wherase our idoc i think will carry LT (litres ) as UOM...
    we do maintain the conversion factor between litres and IGB in our material master (additional data tab).That is our idoc shud carry conevrsion factor as maintained in ur material maste ( 20litres =1 igb ). so our idoc shud carry .05 as conversion factor
    so that our third party warehouse understands that and dispatch 1 IGB of qty (2 litres as per our delivery )
    rgds
    Pamela
    Edited by: Pamela79 on Aug 11, 2011 4:49 AM

  • Unit of Measurement in Material Master

    Hello Experts...
    I have an intresting issue on Unit of Measurement. I would like to maintain alternative unit of measurement as per below..
    1 EA = 1 EA
    1 ROLL = 5000 EA
    1 CT = 150,000 EA
    However the field UMREZ length in the material master allows me to enter upto 5 digits...and also it is not possible to enter decimal digits here.
    Have any one of you faced this kind of issue, if any one faced what would be the solution for this...?
    Look forward to hearing from you..
    Cheers
    Umakanth..

    Hi Umakanth,
    For increasing the numerator for conversion of base unit of measure, UMREZ  would be  appending the structure SMEINH by requesting Access Key from SAP.
    Even though its not a suggestible decision to append standard SAP structure , if the requirement demands we may need to do that.
    Cheers!
    Sudhakar Reddy

  • Unit of measure EA allows transactions in decimals ? Is EA indivisible?

    Unit of measure EA allows transactions in decimals ? Is EA indivisible?
    There are two scenarios. While creating a Bill of material - based on the configuration (see below) if you enter a quantity with decimals for a part number for which the Basic UOM is EA the system displays a message "Unit of measure EA does not support decimal places" THIS IS GOOD AS EXPECTED
    While transacting using MB1B, MB1C, MB1A, MFBF, MIGO or other transactions the system DOES NOT check and it is currently allowing us to post with decimals (1.25, 1.312) for part number for which the unit of measure is EA.
    Was not EA supposed to be an indivisible unit of measure? why is the warning message getting activated while creating or changing a BOM and why not while transacting stock?
    We have configured EA in the CUNI transaction as follows:
    Int. meas. unit      EA                                                  
    Commercial           EA              each                               
    Technical            EA              each                               
    Decimal places                                                          
    float. point exp.                                                                               
    ISO code             EA            
                                          Primary code                       
    Numerator            1                                                  
    Denominator          1                                                  
    Exponent             0                                                  
    Additive constant    0.000000       X Commercial meas.unit               
    Decimal pl. rounding                 Value-based commt                  
    Unit of meas.family

    you cannot restrict this behaviour with CUNI customizing, you can only check and stop this in a user exit.
    SAP inventory managment allows and stores 3 decimals for any unit of measure. You can only define how it will show the value to the users and how it will round the decimals if it calculates the conversion. But if you enter manually with decimals, then SAP will not round this.
    please read OSS Note 931971 - Decimal places in stocks and stock postings
    and
    Note 77525 - Quantity unit conversion in inventory management

  • BEx Query:  Attribute not display Unit of Measure (UOM)

    In a BEx I am trying to create a query that displays attributes to 0EMPLOYEE.  One of the custom attributes is the employee's rate of pay.  We have the hourly rate, nightly rate, etc.  This attribute is a numeric attribute with currency assigned as the Unit of Measure.  I am trying to create a query displaying the pay rates from the attributes of 0EMPLOYEE but remove the unit of measure in the output.  I am aware this can be done on key figures using the NODIM formula.  How can I remove on an attribute?
    Example:  Output is $10.25 UOM.  I want it to display as $10.25.
    Thanks.

    Hi,
    Create a Formula Variable with Replacement Path for this Attribute.
    Use NODIM function for the Formula Variable.
    Let me know if it works according to your requirement.
    Regards,
    Geeta

  • Conversion Problem in Unit of measure 1PAC=100,000 EA

    Hi Experts,
    I am facing the problem in conversion of Unit of Measures.
    If some material has the conversion unit when we order to Vendor.
    The Unit of measure is EA, the Order unit is PAC.
    The conversion is 1PAC=100,000 EA
    But the System is allowing as 1PAC=10,000 EA only and it is not allowing to enter 100,000 EA and throughing the error
    Entry too long (enter in the format __,___)
    Message no. 00089
    How can we increase the characters of the Unit of measure. Like this we have some 50 Materials, I need to increase the length of the conversion spaces. How to do it, Please guide me.
    rgds
    Swamy

    Hi
    you can check this out the denominator factor is Stored in structure - SMEINH - field UMREN.
    Best option is to maintain decimal place for the UOM , which is more easier to mainatin.
    Even if you go through the note the same is explained. Please read below for 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.
    Thanks & Regards
    KK
    Edited by: Kishore Kumar Chiluka on Apr 22, 2008 8:25 AM

  • Statistical Key - Unit of Measure Percentage

    Hi SAP Expert,
    In our setup we are uploading plan values in controlling.
    After uploading we run plan assessment cycles. In assessment cycle setup we are using statistical key for allocation percentages.
    The issue which we facing is that the allocation percentages has decimal values also like e.g. 8.98%, 8.09% .... Total 100%
    When user is posting allocation percentage in stat key we are getting value 9%, 8%..... due to that by product we are getting differences in SAP plan values.
    I checked below settings in STAT KEY Master and UOM master data which is as below:
    T-Code: KK01
    Stat Key: YKAEA1
    Controlling Area: 1000
    Name:Cost Allocations %
    UOM: % Percentage
    Category: Fixed Values
    T-Code: CUNI
    Unit of Measure: Proportion
    Int. Measure Unit: %
    Display
    -Commercial: %
    -Technical: %
    -Decimal Place: 2
    -Float point exp: BLANK
    Conversion
    -Numerator: 1
    -Denominator: 100
    -Exponent: BLANK
    -Decimal pl. rounding: BLANK
    ALE/EDI
    -ISO Code: P1
    any suggestion or idea?
    Thanks in Advance,
    Prashant Rane

    Hi
    Instead of uploading 8.98 and 8.09 - Upload 898 and 809
    i.e. Upload the values per 10000 instead of per 100
    br, Ajay M

  • 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

  • Alternate units of measure

    Hi,
    In order to implement the Alternate units of measure -
    I need to implement user exit and activate enhancement RSR0001. In the description below is listed what to implement of includes. In the function group XRSR - I have added the code to the includes ZXRSRTOP and ZXRSRU01. These are both a part of the group. But the last one ZXRSRF01 is not in the include folder. I tried to create an include by right click on the include folder and choose create - I named it ZXRSRF01 and copied the code into it. But it is still not to be found in the XRSR function group and when I check the program the get_form call raises and error in the code of the include ZXRSRU01. How to get the include in the function group or is there another solution?
    From SAP - How to...report data in alternate units of measure.
    3.7 User Exit for Variables
    Implement user exit for variables and activate enhancement RSR00001.
    ***INCLUDE ZXRSRTOP.
    Enhancement: Alternate U.o.M.
    DATA: g_aunit TYPE /bi0/oimat_unit.
    ***INCLUDE ZXRSRU01.
    Enhancement: Alternate U.o.M.
    DATA:
    l_s_range TYPE rsr_s_rangesid,
    l_s_var TYPE rrs0_s_var_range.
    l_dummy(72) TYPE c. "delete
    DATA:
    l_factor TYPE f,
    l_factor1 TYPE f,
    l_factor2 TYPE f,
    l_msgv1 LIKE sy-msgv1, "insert
    l_msgv2 LIKE sy-msgv2, "insert
    l_msgv3 LIKE sy-msgv3, "insert
    l_material LIKE /bi0/pmaterial-material,
    l_base_uom LIKE /bi0/pmaterial-base_uom.
    Called after user input
    IF i_step = 3.
    Get variable for alternative unit entered by user
    Validate entry and store as global variable
    READ TABLE i_t_var_range WITH KEY vnam = 'YTAUNIT' INTO l_s_var.
    IF sy-subrc = 0.
    TRANSLATE l_s_var-low TO UPPER CASE. "#EC TRANSLANG
    CALL FUNCTION 'CONVERSION_EXIT_CUNIT_INPUT'
    EXPORTING
    input = l_s_var-low
    language = sy-langu
    IMPORTING
    output = g_aunit
    EXCEPTIONS
    unit_not_found = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    Error: Please enter a valid unit of measure
    l_msgv1 = 'Unknown unit of measure:'.
    l_msgv2 = l_s_var-low. "insert
    l_msgv3 = '. Please enter a valid unit of measure.'.
    CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
    EXPORTING
    i_class = 'R9'
    i_type = 'E'
    i_number = '000'
    i_msgv1 = l_msgv1
    i_msgv2 = l_msgv2 "change
    i_msgv3 = l_msgv3
    EXCEPTIONS
    dummy = 0
    OTHERS = 0.
    CALL FUNCTION 'RRMS_MESSAGES_SHOW'.
    CALL FUNCTION 'RRMS_MESSAGES_DELETE'.
    sy-subrc = 4.
    RAISE again. "#EC *
    ENDIF.
    ENDIF.
    ENDIF.
    Called from "Get Attribute" Function (Modification)
    I_VNAM Attribute (not the name of the formula variable)
    I_IOBJNM InfoObject
    I_T_VAR_RANGE Contains characteristic value, attribute value,
    unit of measure, query key date
    IF i_step = 0 AND i_vnam = 'YUOMCNVF' AND i_iobjnm = '0MATERIAL'.
    read material and base uom from variables
    LOOP AT i_t_var_range INTO l_s_var.
    CASE l_s_var-iobjnm.
    WHEN '0MATERIAL'. l_material = l_s_var-low.
    WHEN '0BASE_UOM'. l_base_uom = l_s_var-low.
    ENDCASE.
    ENDLOOP.
    get factor for base UoM
    PERFORM get_factor USING l_material l_base_uom l_factor1.
    get factor for alternate UoM
    PERFORM get_factor USING l_material g_aunit l_factor2.
    return conversion factor for variable
    IF l_factor2 <> '0.0'.
    l_factor = l_factor1 / l_factor2.
    e_meeht = g_aunit. "insert
    ELSE.
    When the UoM conversion is not maintained, instead of showing 0, the
    base UoM with a factor of 1 is used. Therefore, the user sees MIXED
    VALUES in the total line and knows right away that there is something
    wrong. That way it’s easier to track inexistent conversion factors.
    l_factor = 0. "delete
    l_factor = 1. "insert
    e_meeht = l_base_uom. "insert
    ENDIF.
    CLEAR l_s_range.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    l_s_range-low = l_factor.
    APPEND l_s_range TO e_t_range.
    e_meeht = g_aunit. "delete
    ENDIF.
    ***INCLUDE ZXRSRF01.
    *& Form get_factor
    Get conversion factor from /bi0/pmat_unit
    FORM get_factor USING i_material TYPE /bi0/oimaterial
    i_mat_unit TYPE /bi0/oimat_unit
    e_factor.
    TYPES:
    BEGIN OF ys_mat_unit,
    material TYPE /bi0/oimaterial,
    mat_unit TYPE /bi0/oimat_unit,
    numerator TYPE /bi0/oinumerator,
    denomintr TYPE /bi0/oidenomintr,
    END OF ys_mat_unit.
    DATA:
    l_s_mat_unit TYPE ys_mat_unit.
    STATICS:
    s_t_mat_unit TYPE SORTED TABLE OF ys_mat_unit
    WITH UNIQUE DEFAULT KEY.
    CLEAR: l_s_mat_unit, e_factor.
    READ TABLE s_t_mat_unit INTO l_s_mat_unit WITH KEY
    material = i_material
    mat_unit = i_mat_unit.
    IF sy-subrc <> 0.
    SELECT SINGLE * FROM /bi0/pmat_unit
    INTO CORRESPONDING FIELDS OF l_s_mat_unit
    WHERE material = i_material
    AND mat_unit = i_mat_unit
    AND objvers = 'A'.
    IF sy-subrc = 0.
    INSERT l_s_mat_unit INTO TABLE s_t_mat_unit.
    ENDIF.
    ENDIF.
    IF l_s_mat_unit-denomintr <> 0.
    e_factor = l_s_mat_unit-numerator / l_s_mat_unit-denomintr.
    ENDIF.
    ENDFORM. " get_factor
    Hope someone can help.
    Thanks

    Hi Karin,
    I am also facing the same problem for alternate units of measure...i tried to access the path
    websmp201.sap-ag.de/~sapdownload/011000358700000488512003E/Howto_alternate_uom5.pdf
    but it is not found...can u please give me this document if u have it with you.?
    Thanks,
    Vijaya

  • Report Data in to two alternate Unit of Measures

    Hi
    We Implemented "How to Report Data in to two alternate Unit of Measure". I have a question
    1 Could we maintain Two alternate Unit of Measures for one Base Unit of Measure?
    For example if Base unit is EA ( Each) we need to maintain this as CAR( Carton) and PAL ( Pallet).
    Thanks
    Naga

    Hi Naga,
    Are you talking about Qty Unit conversion. We can surely maintain CAR,EA,PAL and all. The Numerator and Denoms are maintained in T006. And accordingly the conversion happens.
    Apart from that you can have your own customized Qty conversion using Transaction 'RSUOM'.
    Lemme me know if this helps.
    -Bikas

  • Alternative Unit of Measurement Problem

    Dear Gurus,
    My problem is once I activate altyernative UOM in material master, while issuing materials it is accepting any UOM along with the UOM which is mentioned .
    For example my Base unit of measure is TO and my alternative UOM is FT3 . But while i am issuing material using HL or CD3 it is accepting and post the entry without any message.
    Kindly help me out to restrict alternative UOM which i am defined in Material Master.
    Thanks in advance
    Best regards
    Soumen

    I am not getting what u are saying. We are using ECC 6.0.
    In bottom left under conversion block
    Numerator
    Denominator
    Exponent
    Additive Constant
    Decimal Pl rounding
    Unit of meas family
    And one more block Convert unit of measuremnt
    Value entry                        1.00 TO
    Conversion to target unit    1000.00000 KG
    Conversion to SI unit          1000.00000 KG
    Apart from this anything is ther kindly describe me the path how to find out.
    Regards
    Soumen

  • Routing unit of measure conversion

    Dear guru ,
    I have a different unit of measure for one operation of my routing.
    Which is the problem if I maintain relation 1 to 1 in the routing unit of measure conversion ?
    Thanks.

    Dear  ,
    One operation of my routing have a different unit of measure (EA for operation , KG for routing).
    I don't know the exact conversion factor between operation and routing.
    This factor is only known after the confermation of the production order.
    Which problem occurs if i maintain relation 1 to 1 (numerator and denominator) in the routing unit of measure conversion.
    Thanks.

  • Unit of measurements with no dimensions

    Hi,
    CUNI has 'No Dimensions' for Unit of measurements Case and Each. Is there any way to create a dimension for these or add to some other existing dimension in order to use the FM UNIT_CONVERSION_SIMPLE? Are these changeable or are they supposed to be in the dimension AAAADL? No luck searching the forum.
    Thanks

    What would be the best method to convert something to EAches? FM UNIT_CONVERSION_SIMPLE is throwing a dimensionless error message.
    Would copying the CS and EA definitions to another dimension cause an overlapping of dimensions? Asking before actually doing the work to ensure time spent is productive in doing the copy?
    How accurate are the Denominator and Numerator fields from the Line Items? How are these fields populated? Are they manually populated by the data entry person or are they read off from the master data tables?
    I would think these fields are not manually entered by the data entry persons who are posting the documents. The VA01, for example, only allows users to enter the quantities. Why would someone configured the VA01 to have the end users post a document and have to enter these fields  manually.

  • How to Report on Alternate Unit of Measure

    Hi All,
        We recently implemented SAP for our Canadian operations. The Canadians want to see all our custom and standard reports in Alternate units of measure ( KG's & Ltr's ) but our reports only display in Lbs & Gal's. We were able to change our custom reports but is there any setting that SAP provides for the standard reports/transactions to display Alt UoM. We don't want to rush in and start changing standard reports. I'm sure, lot of you faced this situation before.
    Regards,
    Srini

    hi,
    use the FM UNIT_CONERSION_SIMPLE
    hope this helps
    check this code
    unit_in = itab-meins
    unit_out = 'GLL'.
        CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
             EXPORTING
                  input                = itab-meins
              NO_TYPE_CHECK        = 'X'
              round_sign           = ' '
                  unit_in              = unit_in
                  unit_out             = unit_out
             IMPORTING
              ADD_CONST            =
              DECIMALS             =
              DENOMINATOR          =
              NUMERATOR            =
                  output               = factor
             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.
        IF sy-subrc <> 0.
          e_error = 1.
          EXIT.
        ENDIF.
    Message was edited by: srinu k

Maybe you are looking for