UOM Conversion to be used in transformation

Hi Experts,
I am trying to make use of the BI 7.0 UOM conversion feature in one of our InfoCubes where the source quantity which is in Base UOM needs to be converted to cases.
I went through all the steps which are as follows:
1. I have 0BASE_UOM as the base unit of measure for 0MATERIAL
2. A DSO was automatically generated with the name Z_OUOM I gave in 0MATERIAL configuration
3. I created a transformation for this DSO with source as 0MAT_UNIT
4. Created a DTP and loaded the DSO
5. Created a Conversion type with settings 'Dynamic Determination of conversion factor as Using Reference InfoObject = 0MATERIAL
Source Unit of Measure: Unit of Measure from Data Records
6. Target Unit of Measure: Fixed Unit of Measure = 'CS'.
In InfoCube transformation I have the following mapping:
Rule type: Direct Assignment
Target Unit: 0UNIT
Unit: From Conversion
Conversion Type: ZCASES
Source Unit: 0BASE_UOM
Source Fields of Rule:
0MATERIAL
0REQ_QTY
0BASE_UOM
Target Fields of Rule:
ZREQ_QTY
0UNIT
When I load the InfoCube, the quantities are indeed getting converted to cases provided there are conversion factors available for that material in the UOM generated DSO
Here is my question: How can I handle records where the material does not have conversion factors in the UOM generated DSO?
I get an error when loading using a DTP as 'No quantity conversion possible'. There is one record in the source DSO that has a material number with no unit conversions in UOM generated DSO
I am aware there is an option of using routine, but I do not want to use it unless I am sure this method won't work

Hi Aditi,
There is no way you can check if UOM is present or not in UOM DSO and then do the conversion via using conversion type.
What you can do is write the routine rather than conversion type, to fetch the data from the UOM DSO.
If conversion factor exist then you can convert it simple by multiplying with the value, if not then you can  easily skip the record by putting IF condition.
IF factor <> 0.
ENDIF.
Hope this helps.Let me know if you need more info.
Regards,
Viren

Similar Messages

  • How can i determine if a UOM conversion is being used in a query?

    I need to find all the queries that are using a QTY UOM conversion.  i tried to do a where used and it didn't return anything.

    Hi,
    Check function module RSZ_I_BASIC_CHA_WHERE_USED
    also check this (try the program)
    Where-used list of an attribute (either display or navigational)
    From AHP
    Hope it would help.
    Regards,
    Satya

  • How to use own UOM conversion for PO creation...

    Hello Experts,
    We have a requirement wherein we need to use our OWN UOM conversion(UMREN and UMREZ)
    instead of getting it in the inforecord or the material master. Currently we are using BAPI
    BAPI_PO_CREATE1 to create PO.
    Is there anything that I can do to make the PO creation bypass the inforecord and
    the material master UOM conversion. For example in ECC we have 1 CV = 10 EA. We want it to be 1 CV = 15 EA.

    Hi Guys,
    Any help? Any exits/BADIs/enhancement spots that I can use?

  • UOM Conversion changes where conversion is only used for reporting

    I think this is a different situation than I've seen in other posts.
    We have a UOM conversion from CS to POUND (i.e. 1 case = 30 pounds), and at some point may want to change it so that 1 case = 28 pounds. In our situation, all transactions are done at the CS (primary UOM) and the weight is only used in calculations to print on shipping documents. Is there any harm in just changing the 30 to 28 when that time comes? Again, there are no transactions that reference the weight, no PO's, no SO's, no financials, etc.
    We also have a similar situation where a PALLET may contain 100 cases now, but in the future be reconfigured to contain 90 cases. Same idea, nothing is transacted in Pallets, and the conversion is only used in reporting. Seems like it would be OK to change that conversion without causing problems. Any thoughts?
    Thanks for your insights!
    Bill
    (Running r12.1.3 with OPM)

    I think this is low risk - just make absolutely sure that the uom was not used for customer pricing, internal pricing, boms, on ASL, on price breaks, on quotes, on POs, on material transactions, wip moves etc.
    As long as it was truly used just for reporting, you should be ok.
    Sandeep Gandhi

  • UOM Conversion? Which fields I hv to use for UOM value in Order, Delivery?

    Hi Experts,
    Pls. clarify some of my doubts, reg. UOM
    1- In our system, 1 Box = 6 EA(CH)
    So, I need to compare Order, Delivery, PGI quatities for some report purpose.......So, Is there any SAP Function Module, that I can use for CONVERSION?
    Scenario: actually, am looking to convert quatities......i mean, if Order UOM is BX of qty 1.........where as the delivery UOM is EA of quatity 6..........so, both r same and varinace is 0.
    2 - Wht is the field I hv to use for UOMs in Order, Delivery, PGI/Material doc?
    thanq
    Edited by: Srinivas on Feb 5, 2008 11:59 AM

    Hello,
      You can use the function CF_UT_UNIT_CONVERSION to UOM conversion.
        call function 'CF_UT_UNIT_CONVERSION'
             exporting
                  matnr_imp     = itab_pot-matnr
                  unit_new_imp  = ztb_vend_min-min_uom
                  unit_old_imp  = itab_pot-meins
                  value_old_imp = w_conv_qty
             importing
                  value_new_exp = w_conv_qty.
    Thanks,
    Venu

  • Question about UoM conversion

    I'm trying to implement the UoM conversion that is now standard in BI 7.0.  I think I have all the backend work done, but I'm having trouble converting the UoM on the front end when running a query.
    Here's what I did on the backend to set it up.
    1- I went to 0MATERIAL (BEx Explorer tab) and entered 0BASE_UOM as the Unit field. 
    2 - I then generated the conversion ODS.
    3 - I created transformation to the ODS using 0MAT_UNIT_ATTR.  I did have to use a master data lookup for the BASE_UOM field (using the values in 0MATERIAL) since the 0MAT_UNIT_ATTR didn't have the Base Unit of Measure, just the conversion one.
    4 - Loaded the ODS for 1 material (test material 1 EA = 1 EA and 1 KIT = 20 EA)
    5 - Defined a Converstion type (trans RSUOM).  I used Dynamic Option 3 (InfoObject, then T006 tables).  I set the Source UoM = DataRecord, and Target is set to "Selection during Conversion"
    Here's what I did on the query:
    1. For my key figure, I went to the conversions tab.  I selected my Conversion type.
    2. I created a user entry variable with a default value of "EA".
    When I run my report, I enter KITS on the selection screen, but the report still shows eaches.  I can navigate to the Currency conversion on the report via the menus, but I can't find anywhere for Units.
    Any ideas?
    Thanks,
    Rudy

    First, is there any particular reason why you used:
    Integer a = Integer.valueOf(1);while I used
    Integer a = 1; //boxing
    Just to get rid of boxing conversion as a possible issue--which it shouldn't be, but might as well keep it simple.
    Integer a = Integer.valueOf(1);
    Comparable<String> cs1 = a; // errorbecause we are assigning to a Comparable<String> an
    Integer value, and that's illegal, since String and
    Integer are not in a subtype relation (?)Something like that, yes. I'm not sure of the exact clause of the JLS that forbids it.
    >
    Comparable<Integer> ci = a; // ok
    Comparable<String> cs2 = ci; // errorbecause we are assigning to a Comparable<String> a
    Comparable<Integer>, and again, String and Integer
    are not in a subtype relation (?)Yep.
    Comparable<String> cs3 = c1; // warning
    Comparable<String> cs4 = c2; // warningit's what I believe is called 'heap pollution' I forget what that term means, and am too lazy to look it up, so I'll take your word for it.
    and I
    believe that on first use a ClassCastException will
    be thrown Sounds right. Run it and see for yourself.
    (although the compiler behaves correctly by
    flagging an unchecked warning, for compatibility with
    legacy systems, etc)Right.

  • Could you help me regarding UOM conversion ???

    Dear All,
    I have a requirement like this ..
    I have key-figure quantity A with various UOM, and i want to convert it into quantity B that has UOM is MT.
    To fulfill it, i create Quantity Conversion Unit using tcode: RSUOM.
    In the conversion factors tab:
    1. Choosing Dynamic Determination of Conversion Factor
        - Using Central Unit of Measure (T006) => Option 2.
    In the UOM tab:
    1. Source
      - Choosing: UOM from DataRecord
    2. Target of UOM
      - Choosing: Fixed UOM => MT
    Then i save it.
    In the query Designer.
    - I put KF Quantity A
    - I create calculated KF Quantity B.
    => But i don't see the option in Qty B property regarding conversion that i've setup in RSUOM.
    My Questions are:
    1. Is my way right for my requirement ??
    2. If i want to use this way (using RSUOM), how can i see the setting for My RSUOM Conversion in qty b.
    Really need your guidance all.
    Regards,
    Niel.

    Hi Neil
    Regarding Unit conversion, there are some FM's avaiable,
    May be these thread will help u
    Quantity Conversion Function Module
    "UNIT" in Transformation
    Thanks,
    Reward if helpd

  • Error using Message Transform Bean in SimplePlain2XML in file sender

    Hi guys.
    Im using  Message Transform Bean to convert from file to xml in file sender.
    My structure look like this:
    ROW (1..n)
    >TRANSPORTES (1)
    >ENTREGAS (1..n)
    And I have configured the module like this:
    AF_Modules/MessageTransformBean - transform
    transform - Transform.Class - com.sap.aii.messaging.adapter.Conversion
    transform - xml.ENTREGAS.endSeparator - 'nl'
    transform - xml.ENTREGAS.fieldFixedLengths - 1,30
    transform - xml.ENTREGAS.fieldNames - TIPO,NUM_ENTREGA
    transform - xml.ENTREGAS.keyFieldValue - E
    transform - xml.TRANSPORTES.endSeparator - 'nl'
    transform - xml.TRANSPORTES.fieldFixedLengths - 1,30
    transform - xml.TRANSPORTES.fieldNames - TIPO,NUM_TRANSPORTE
    transform - xml.TRANSPORTES.keyFieldValue - T
    transform - xml.conversionType - SimplePlain2XML
    transform - xml.documentName - MPrueba_Zip
    transform - xml.documentNamespace - http:/XXXXXX.es/XXXX/sap/prueba
    transform - xml.keyFieldName - TIPO
    transform - xml.processFieldNames - fromConfiguration
    transform - xml.recordsetName - row
    transform - xml.recordsetStructure - TRANSPORTES,1,ENTREGAS,*
    Im getting this error and I don´t know why:
    Error: com.sap.aii.messaging.adapter.trans.TransformException: Transformer Conversion3.0.5227 Error initializing Class: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: (4408) Parameter 'xml.fieldFixedLengths' or 'xml.fieldSeparator' is missing (4409) Parameter 'xml.fieldNames' is missing (4403) ; nested exception caused by: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: (4408) Parameter 'xml.fieldFixedLengths' or 'xml.fieldSeparator' is missing (4409) Parameter 'xml.fieldNames' is missing (4403)
    Why am i doing wrong?????
    Thanks a lot!!!

    Hi
    For Complex conversion you have to use xml.conversionType as "StructPlain2XML"
    http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/content.htm
    Regards
    Ramg

  • How to use the transformation file

    Hello there!
    This message is to ask a question that maybe it could be familiar to you. I want to load data using a .txt file and a transformation file using the import package. Suppose  that the structure of my txt file is:
    Entity,Category,Time,Account1,Account2,Account3
    Ent1,Actual,2010.JAN,289.23,32.43,123.34
    Ent1,Actual,2010.JAN,289.23,32.43,123.34
    Ent1,Actual,2010.JAN,289.23,32.43,123.34
    How could I load this values using a transformation? I know that there exists an option named *MVAL(), but if I use the following syntax in mapping section it doesnu2019t work:
    Account=*MVAL(4:6)
    I read something about accountval, does some boddy knows how to use it?
    Thanks in advance
    regards

    Hi,
    If you are using MVAL statement, then you need to maintain a conversion file also. Its compulsory. Please make sure that you have maintained a conversion file.
    If you are on 7.5 MS, then the statement will work. Please refer to the MVAL statement in the mapping section of the below link
    http://help.sap.com/saphelp_bpc75/helpdata/en/a2/e722bc58404335ada8592cdc8feaca/content.htm
    However, in 7.0 MS, the MVAL works only if the multiple key figures are corresponding to the time dimension. In your case, they correspond to the account dimension. You need to create separate transformation file for each of the key figures and then upload the flat file separately using each of the transformation files.
    Hope this helps.

  • How to retrieve UoM-conversion Numerator and Denominator with 5 digits?

    Hi,
    in pricing i am using condition base formula to fill the condition amount and condition base value.
    Condition amount might be a price per UoM which is different from the order uom.
    konv-kbetr konv-waers / konv-kpein konv-kmein (e.g. 1.200 USD / 1 LB )
    Thus i also convert my base quantity to konv-kmein.
    Using UNIT_CONVERSION_SIMPLE i retrieve the used DENOMINATOR and NUMERATOR which i want to pass over to
    KONV-KUMNE and KONV-KUMZA.
    Problem is that KONV-KUMNE and KONV-KUMZA are DEC5_0, while the Conversion factors defined in customizing (T006-ZAEHL and T006-NENNR) have 10 decimals, and these are the values passed back by UNIT_CONVERSION_SIMPLE.
    Standard pricing somehow manages to derive 5 digits denominator and numerator even if the conversion is customized using larger numbers.
    Anyone an idea how to do that??
    Thanks for any help! Kind Regards,
    Guido
    Edited by: Guido76 on May 25, 2010 3:42 PM

    Hi,
    in pricing i am using condition base formula to fill the condition amount and condition base value.
    Condition amount might be a price per UoM which is different from the order uom.
    konv-kbetr konv-waers / konv-kpein konv-kmein (e.g. 1.200 USD / 1 LB )
    Thus i also convert my base quantity to konv-kmein.
    Using UNIT_CONVERSION_SIMPLE i retrieve the used DENOMINATOR and NUMERATOR which i want to pass over to
    KONV-KUMNE and KONV-KUMZA.
    Problem is that KONV-KUMNE and KONV-KUMZA are DEC5_0, while the Conversion factors defined in customizing (T006-ZAEHL and T006-NENNR) have 10 decimals, and these are the values passed back by UNIT_CONVERSION_SIMPLE.
    Standard pricing somehow manages to derive 5 digits denominator and numerator even if the conversion is customized using larger numbers.
    Anyone an idea how to do that??
    Thanks for any help! Kind Regards,
    Guido
    Edited by: Guido76 on May 25, 2010 3:42 PM

  • Convertion of XML node to string using Xquery transformation in OSB

    How to convert XML node to string using a built in function using Xquery transformation in OSB? In BPEL we have the Xpath extension function ora:getContentAsString() to do the same.

    fn:bea-serialize() function converts xml node to string. but it assigns namespace prefix in every xml node during the conversion. So is there any function to remove the namespace prefix from XML node using Xquery built in function?

  • How to calculate UOM conversion rate

    Hi All,
    Whether there is any Standard API available to calculate the UOM Conversion rate.
    There can be interclass intraclass or standard conversion.
    Please help.
    Thanks,
    Arun

    Hi,
    If the Business no longer uses the 500 pcs conversion, one could Inactivate the conversion and define a new one.
    If Business wants to have a choice of using 500 or 450 pcs, then a new Case UOM needs to be defined.
    I hope this helps.
    Regards
    Adarsh Krishna

  • Delivered Function Module to perform UOM conversions??

    Hi Gurus,
    Is there any SAP delivered function module that I can use to perform any UOM conversions at all. For eg, Gallons to liters etc.
    Appreciate your inputs.
    Thanks,
    Reddy

    Dinesh and Anil,
    Thanks for your inputs. I ended up using UNIT_CONVERSION_SIMPLE. It met my requirement.
    Regards,
    Reddy

  • UOM conversion not big enough

    Hey All,
            I have a strange requirement. The numerator field UMREZ for UOM conversion is of 5 digits, which means the max value can be 99999. We have a need to do a Alterante UOM conversion which is greater than 5 digits.
    Example: 1 PAL = 200000 EA.
    How do I acheive this?
    We are looking into all possible options.
    First is thru config to create an intermediate UOM so that we can do two UOM conversions and acheive our result, but this is also going to be a big change.
    Is there any other option through code to increase the length of this field, or any other alternative.
    I tried searching and looking for OSS notes, but no luck.
    Any input is highly appreciated.

    Thank you for your replies. For a moment I thought this might be an option, but the problem here is not that the quantity is too large. but that the conversion factor is too large.
    Let me explain again.
    I have one unit which has the following conversion.
    1 Pallet = 3000000 Eaches.
    Numerator = 3000000  "here is the problem, numerator field is only 5 digits
    Denominator = 1
    which means if i get say even 100 pallets as input it have to convert
    100 X 3000000/1 = 300000000.          "the problem is UMREZ (3000000) is too big for that field
    So here i cannot use any preconversion or post conversion.
    BUT if i do think in the same line i can try to use a multiplication factor for that particlar unit of measure which i can just multiply at the end. I can maybe look to incorporate this in an enhancement when the UOM conversion is done. But I still have to figure out how to display it in the material master. Let me investigate more into this option.
    Any other suggestion as welcome.
    Edited by: Aparna Shekhar on Aug 8, 2008 9:23 AM

  • Change in Material UOM conversion

    Hi gurus.
    good day..
    please help.
    we are using a material with uom conversion.
    example
    1 PAK = 5 PCS
    we have been using this since the material was created. it has been used also for PO PR anf Contract creation.
    Now user wants to change the conversion into 1 PAK = 7PCS. is this possible? what is the effect on the previously made PO and GR?
    Thank you

    Hi,
    The change only affects the new PO created, as to the previous POs, there is not impact on those. But don't forget to change the purchasing price to the correct value!
    By the way, which unit is the base unit in the material master data, I hope it's PCS.
    Regards
    Z.T

Maybe you are looking for

  • OIM: Error while deploying Custom Approval Process for Self-Register

    While deploying the Custom Approval Process for Self-Register, i am getting the following error in scac.log file Nov 16, 2011 2:48:58 PM oracle.fabric.common.wsdl.SchemaManager isIncrementalBuildSupported INFO: XMLSchema incremental build enabled. No

  • PO history update for advance payment requests.

    Hi , We are generating advance payment requests through F-47 based on the Purchase order. The generated F-47 requests are not updating my PO history though i am generating the requests with refernce to the PO numbere and the line item. The PO history

  • X3-1 problem..pls help me :(

    how can i reset my nokia x3 in off mode???? i cannot start using my x3 because of the security code.. i enter my right code,, but still " security code error"" i also already try to enter 12345 code,,,but it still same.. some1 pls help me...ASAP!! TQ

  • Preview monitor is white

    Whenever I jog through a clip in preview, the whole screen is white. I hear the audio being scrubbed through, but I can't see the video. I feel like this is a simple preferences thing to uncheck, but how do I fix this?

  • JDev 1013, Webservice as Data Control in JSF page returns error

    Hello, For a client we are starting a project with Java Server Faces in combination with web services. In order to do some testing we created a web service in PLSQL (with a empno input field and a record output) and deployed this web service on an OC