Variable issue for Alternate Unit of Measure

Hello Experts
I have implemented the soultion for reporting data in Alternate Unit of measure using the "How to..." guide provided at https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b7b2aa90-0201-0010-a480-a755eeb82b6f
This solution involves creating a variable which prompts the user to enter the required unit of measure.
However I have a situation where I would like to create variable which is not input-ready and has a fixed value assigned to it without prompting the user. Moreover, I cannot modify the already existing input-ready variable as it is used in other Queries.
Does this involves creating a new user exit or modifying the existing user exit. If yes then can you please tell me how this can be done.
Thanks
Rishi

Hi Rishi,
You can follow any one the below procedure for solve your issue.
1. You can change the variable by removing the check box "Ready to input". But you mentioned that you used that variable in other queries also. So, I am not suggesting this.
2. You create a new variable same as the existing variable but with out selecting "Ready to Input" check box. Now when the user run the query, that variable will not be seen to the user. Now, we will see the customer exit, you assign new variable value to existing variable, before that you have to write a condition for checking the query name. If you are running the query which have the new variable then assign the variable value to old variable. This will solve your question.
I hope you understood this procedure. If you have any doubts let me know.
Regards,
Patil.

Similar Messages

  • Serial number for alternate unit of measure

    Hi,
    I have made necessary serial number configurations. But when i raise a GR/Inbound document, serial numbers are generated for the base unit of measure (pieces/each)
    Is there a possibility of generating serial number only for alternate unit of measure (cartons- 6pieces in one carton)
    Thanks
    Kiran

    Hi,
    Serial Nos will be generated based on the Base unit and not on the alternative unit,
    Regards
    Merwyn

  • Variable for Alternate Unit of Measure

    Hello Experts
    I have implemented the soultion for reporting data in Alternate Unit of measure using the "How to..." guide provided at https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b7b2aa90-0201-0010-a480-a755eeb82b6f
    This solution involves creating a variable which prompts the user to enter the required unit of measure.
    However I have a situation where I would like to create variable which is not input-ready and has a fixed value assigned to it without prompting the user. Moreover, I cannot modify the already existing input-ready variable as it is used in other Queries.
    Does this involves creating a new user exit or modifying the existing user exit. If yes then can you please tell me how this can be done.
    Thanks
    Rishi

    Hi Rishi,
    You can follow any one the below procedure for solve your issue.
    1. You can change the variable by removing the check box "Ready to input". But you mentioned that you used that variable in other queries also. So, I am not suggesting this.
    2. You create a new variable same as the existing variable but with out selecting "Ready to Input" check box. Now when the user run the query, that variable will not be seen to the user. Now, we will see the customer exit, you assign new variable value to existing variable, before that you have to write a condition for checking the query name. If you are running the query which have the new variable then assign the variable value to old variable. This will solve your question.
    I hope you understood this procedure. If you have any doubts let me know.
    Regards,
    Patil.

  • Issue with Alternate unit of measure

    Here in my production client which creating a material in April they have created with Base unit of measure = G and alternate unit of measure = EA
    ! EA = 60G....But actually they should have maintain 1 EA = 50g....Lot of docs got posted from April onwards...
    Movement types posted were 641,561, 562,101,102,601,653
    Now is there any possiblity to rectify it????

    Basically you need to correct your material master and then adjust the quantity with a physical inventory as Manoj already suggested.
    However, you should at least check each movement related to sales  like the 641, 601 and 653 movements if it was done in the alternative unit or in the base unit . MB51 can give you this info in the detailed report.
    you then have to analyze if you billed too much or too less to your customer.
    This should then be rectified before you adjust your inventory, because you may get even more problems with posting if you get a  customer complaint or a return which need to be posted with the old incorrect conversion ratio. Otherwise you may have to adjust your inventory a second time after such event ocurs.

  • How to report on Alternate Units of measure

    Hi ,
    I am trying to implement the unit conversion ..i have few basic questions..
    1)Do we need to have the 0MAT_UNIT in the cube/ODS
    2)for 0material do i specifically need the base unit of measure as unit for the attribute conversion factor..
    How do i go ahead if my conversion factor has a different unit..
    3)In my scenario i am trying to do unit conversion on a keyfigure which has unit as billing qty in SKU..Do I need to do anything different in this case in order to convert to a diff unit..
    Had changed the code given in the how to do doc..The report gave all the values as zero.
    Pl suggest.
    Appreciate ur inputs.
    Regards,
    G.V

    I am using BW 3.5 .
    Loaded/activated both 0material and omat_unit.
    0MAT_UNIT is not maintained in the ODS/CUBE.
    The keyfigure i am trying to convert to alternate unit of measure is billing qty in SKU which has billing qty in SKU
    as unit to that quantity..
    The user input variable for alternate unit of measure is defined on the unit billing qty in SKU..
    when i debug it is not processing through this loop..
    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.
    Pl advise..

  • 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

  • Alternate unit of measurement for quantity field in Report

    Hi All,
    I got a requirement like to populate alternate unit of measurement also in the report so how best i can do this when taking consideration of performance issues and all. I got few suggestions like to write a field routine in tranformations...
    So guide me how best i can do this, if any code is required let me know the code also.
    Eg. material...PP_Ingot has 2 units of measurement .....Ton & Each.
          So i need to display Qty in both Tons and Each in the report.
    Please suggest me .
    Thanks
    Srini.

    Hi Gregory,
    Thanks for the immediate reply.I was busy in some other issue so this is delayed.
    I hav a key fig YLOSMENGE  (inspection lot qty) in Base unit of Mea and mapped to r3 with losmenge and baseunit of mea.
    Next i hav created a new kf ZLOSMENGE with unit of mea so i want to know how to map this with r3 field and with which unit.
    So kindly suggest me.
    Regards
    Srini.

  • Issue: Proportion/produciton unit of measure NO is invalid for item 900001.

    Hi All,
       Issue: Proportion/produciton unit of measure NO is invalid for item 900001.
    Here we have MTO Scenario: In outbound delivery when we do batch split & batch determination we are getting the above error.
    Consider the following settings: at MM01 - Prodution/Proportion unit data is maintained with a characterstic specific to batch. Means Batch specific unit of measurement. In Work scheduling view produciton unit, unit of issue are maintained as 'NO'. All these settings  are same for all material codes.
    Please suggest us why we are getting the issue for perticular material coce.
    Info: We resolve the issue by adding one more line item in the sales order & do the transfer posting the stock from line item to line item. But this is not the permanent solution.
    Regards
    Chowdary

    I believe the error message no is VL 382 (Proportion/product unit of measure & invalid for item &)
    You need to double click on the error message flashing on the status bar to get the error number.
    I believe long text for the error message is self explainatary. Refer it and make necessary changes to resolve the issue.
    Diagnosis
    You want to use a proportion / product unit for an item.
    You are not allowed to change the unit of measure into a proportion / product unit if:
    - The following exist for a sales document item:
    Preceding documents
    Subsequent documents
    - You are processing a scheduling agreement for the component supply industry
    - You change the target unit of measure in a scheduling agreement item (and the sales unit is not a proportion / product unit)
    - You are processing a customer requirements plan
    - The following exist for a delivery item:
    Preceding documents
    Subsequent documents
    Batch split items
    - You are processing a batch split item
    Procedure
    Use a different unit of measure.
    If you want to change the target unit of measure into a proportion / product unit in a scheduling agreement item, you need to change the sales unit accordingly. The system then sets the target unit of measure to the same as the sales unit.
    Further, if you are working on older version, refer SAP Note 364206 - VLSP:indic.for proportion/product quantities deletd.
    Regards
    JP

  • Conversion of alternate unit of measurement

    Hi,
    System will not allow to enter conversions of unit of measurements in decimal points. But is there any configuration or method, we can force system to accept conversions of unit of measurements in decimal points only? (For example 2.5kg = 1pc, base unit of measurement is 'PC' and alternate unit of measurement is 'KG')
    Regards,
    Sattuj

    Hi,
    For the given example of Alternate conversion you can use the following setting :
    2.5 Kg = 1 Pc
    Put the Values as :
    25 Kg = 10 Pc
    With this the objective of Decimal is achieved.
    Please check the following posts for more info :
    [Re: variable order unit]
    [Re: Base Unit of Measure]
    [Re: Issue in unit of measure]
    Hope it helps,
    Best regards
    Amit Bakshi

  • Reporting Data in Alternate Units of Measure

    We have a requirement to report data in base unit of measure and also in pounds and kilograms. I have read the paper "How to Report Data in Alternate Units of Measure".  My problem is that in our R/3 system the conversion from base unit of measure to pounds is maintained, but no conversion from base unit of measure to kilograms is maintained.  In BW, I have 0MAT_UNIT for conversion to pounds but not to kilograms.  For the solution to work, am I correct in thinking that the conversion to kilograms must exist in 0MAT_UNIT?
    Also, the paper states that it is applicable to BW releases 2.0A to 3.1C.  Those of you on BW 3.5 - is there new functionality or a different way of handling reporting in alternate units of measure?
    Thanks for your help,
    Gail Bodner

    Gail,
    Nothing new in 3.5 for UoM conversion. It will still have to be the way described in the How To paper.
    Maintin the conversion in R/3. Also, Pounds to KG is a standard coversion - you can hard code it too. Issue in UoM conversion comes in where you cut across type of uints, i.e. from vol. to weight. Then additional information like density is needed but within the same area, it shouldn't be a problem.
    Cheers
    Aneesh

  • BOM with alternate unit of measure

    Hello team
    Is it possible to create the BOM with alternate unit of measure ?
    Thanks
    JJ

    Hi,
    Not possible to create BOM by item material with alt unit of measure.
    If you want to use other UOM in production, use issue unit in work scheduling view.
    If you want to procure use order unit in purchasing view.
    For selling use sale unit in sales view.
    Regards,
    Dharma

  • Display of Alternate Unit of Measure

    Hi there,
    We try to display alternate unit of measure <b>in BEx</b> by implementing the following Howto Doc:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/how to report data in alternate units of measure
    It works fine as long as 0MATERIAL is included <b>in the rows</b> of the report.
    In any other case (e.g. 0MATERIAL is a free characteristic or not included in the report at all) this solution won't work and we get the "red x"!
    Any suggestions??
    Thanx,
    Ofer.

    Hi Ofer,
    Virtual Char/KF behave as normal Char/KF in a sense that you create and add them in Infoproviders or Queries just like normal Char/KF. But they do not hold any data/values and their values are determined only at query run time (by writing code in user-exit for virtual kf/char.)
    The logic could be something like this (though I'm pretty sure, would need to work on it again ):
    Keep in mind that all this would be performed at query run time:
    1. For each record, read material master data.
    2. Get quantity, UoM for above record.
    2. Get UoM from selection screen variable.
    3. Convert and store in virtual KF.
    You can search this forum for more information on it. Do let us know if need any more info.
    Regards,
    Vikrant.

  • Alternate unit of measure should show in round off figures

    hi, in my material master, i have defined that 1 PAL (pallet)= 25kg.
    where base unit is kg and PAL is the alternate unit of measure.
    now in mmbe, if i view the report in "pal", the system shows in decimal values.
    i selected "Decimal Places as per unit" while running mmbe
    and in CUNI, I entered 0 in front of "decimal places" and "0" in front of "Decimal pl. rounding" but no luck. can any expert help me out plz.
    thanks

    can any1 plz tell me what is the purpose of "Decimal pl. rounding" in CUNI???
    i beleive proper use of this field could solve my issue.
    chakrapani thanks for ur input.

  • Alternate Unit of Measure of ETI

    How do you set up an alternate unit of measure to accept decimals.  We are currently using PC as a unit of measure and there are 3 decimal places.  There is a warning message that appears on the screen and we are being told this will cause issues in costing.  Any idea where I can find info on alternate unit of measures related to decimal places.  Have looked all over the net and can find nothing.
    Any help would be appreciated.  Am still a 'newbie' to the SAP world.
    Thank you.

    Decimal setting for UoM were done thru CUNI and you can maintain the relevant alternate Unit in additional Data of material master.
    Regards
    TGB

  • ALternate Unit of Measure as a Order unit in PO

    Hi everyone,
    I have a problem while ordering the Quantity in PO with alternate unit which is maintained in MMR. The problem is
    in MMR, I have maintained EA as the UOM and PAC as the Alternate unit of measure.
    while in PO, i am trying to give the 'Order Unit (OUn) as the PAC which is the alternate unit maintained. But it is not accepting and
    again reverting back to EA. i couldnt find out the solution. But some POs for that material is already ordered as PAC unit.
    Could it be problem with the MMR ?
    Regards
    Siva

    HI,
    Go to Inforecord of that material with that vender on that plant.
    Change Inforecord(me12)...here in general data...change the order unit.
    system will give the conversion factor as u defined in material master.
    Hope Help U !
    Regards,
    Pardeep Malik

Maybe you are looking for

  • Can I complain about the Customer Service here?

    I just had a very measured conversation with the Service Repair people, but there were a few things that struck me as utterly ridiculous.  So if Lenovo is interested in understanding the customer perspective, I thought it would be a good idea to shar

  • Problemas con color de archivos JPG en Fireworks

    Buenos días. Tengo el siguiente problema. Habitualmente trabajo con Adobe Fireworks CS5 para hacer pequeños retoques o cambios en imagenes. Me he dado cuenta de que al abrir cualquier JPG me cambia el color del mismo, los tonos o algo. Si abro el mis

  • Can't open Pdfs in firefox, works fine in Safari. Please help?

    Can't open Pdfs in firefox, works fine in Safari. Please help?

  • LR 1.0 not rendering photo in Loupe View

    I can work with LR fine for some time and every now and then the application stops rendering the Loupe view. It is possible to get back to the grid view but when i double click on the image to get the Loupe view it switches to the Loupe layout but do

  • To use SubRoutines and function modules and include

    Hellow Friends , Can any body suggest me at waht situations we have to use SubRoutines and function modules and include in an abap report and also i need the standards in an abap program.