Updating Physical Length of Datastore in Models

How to update, the physical length of any datastore in models.
Used Column.Setlength(length), Its updating only the Logical Length. Need to update the physical aswell
Thanks in advance

We are doing a Reverse Engineering on Models, when we are going in that way, Datatype, physical length and logical length is setting to default value. To update those details we are using ODI SDK.
Its updating only the datatype and logical length. Physical length remains the default value.
If there is no separate method to update physical length, Is there any other way of doing this ? either in reverse engineering models without setting it to default values?
Thanks

Similar Messages

  • Logical and Physical Length in Datastore

    I would like to know the differences between logical length and physical length in datastore. Can anyone teach best practices to use them properly?

    Thank you Bouch,
    So usually is it required to set "logical length + 2" for physical length?
    Also, can you show exapmles for sign and dot, which to be added on each columns?
    Regards,

  • How do I update Physical Layer

    How to I update the table in the physical layer in the OBI admin tool when:
    1. the data in the underlying database table changes (meaning the records/rows are added or deleted in the database)
    2. the fields in the underlying database table change (meaning columns are added or deleted)
    3. the size of the field changes (meaning the type or length of the columns change)
    4. only the table names/column names in the underlying database change.
    In which of the above cases do I have to import again through the connection pool. If I have to import again do I have to create physical joins in the physical layer and complex joins in the BMM layer and mapping to the new table as LTS and any expressions in the column mappings again?
    Thanks for your input.

    How to I update the table in the physical layer in
    the OBI admin tool when:1. the data in the underlying database table changes
    (meaning the records/rows are added or deleted in the
    database):
    You don't need to take any action here unless you are concerned with query caching. In that case use 'event polling table'. Lookup documentation for event polling table.
    2. the fields in the underlying database table change
    (meaning columns are added or deleted)
    You will need to manually add those in physical layer and propogate to business and presentation layer.
    3. the size of the field changes (meaning the type or
    length of the columns change)
    Go to utilities - update physical layer and select the affected presentation layer.
    4. only the table names/column names in the
    underlying database change.
    You will need to manually change those in physical layer. No need to and propogate to business and presentation layer ans its is automatically taken care of.
    In which of the above cases do I have to import again
    through the connection pool. If I have to import
    again do I have to create physical joins in the
    physical layer and complex joins in the BMM layer and
    mapping to the new table as LTS and any expressions
    in the column mappings again?
    No need in any case to import manually.
    Thanks for your input.

  • Getting the Physical Length of a Piece of Text (in mm etc.) in Javascript

    I'm trying to write a script in Indesign CS5 (Windows) that can measure the physical, 'rendered' length of two pieces of text of similar length (in mm etc.), calculate the average length of the two, and adjust the tracking/horizontal scale of one or both of the pieces of text so that the physical length of both texts are the same.
    I need a script because this task must be done thousands of time in a long document.
    I'm struggling to find a way to access the 'rendered' length of a piece of text in Javascript.
    I know among the attributes of a text box is whether the text has overrun. So I could copy the text to a special text-box, and use a for loop to reduce the dimentions of the text box, 1mm at a time, until the text box overruns, thus determining the length..
    I could also get the length of a rendered string using python with it's built in GUI toolkit Tkinter:
    http://stackoverflow.com/questions/2922295/calculating-the-pixel-size-of-a-string-with-pyt hon
    And then have an indesign script that takes some data from the python script and sets the tracking/horizontal in Indesign with some fudge factors.
    Both ideas seem like real kludges.
    Any other suggestions?
    Many thanks
    David

    You can simply iterate through each line in text to get the widest line. Something like this:
    Main();
    function Main() {
        var text = app.selection[0],
        minLength, maxLength, start, end;
        for (var i = 0; i < text.lines.length; i++) {
            start = text.lines[i].characters[0].horizontalOffset,
            end = text.lines[i].characters[text.lines[i].characters.length-1].horizontalOffset;
            if (minLength == undefined || start < minLength) {
                minLength = start;
            if (maxLength == undefined || end > maxLength) {
                maxLength = end;
        var length = maxLength - minLength;
        $.writeln(length);
    But this approach seems to be a little less precise than creating outlines since (I guess) it measures up to the beginning of the last character; discretionary hyphens, line brakes, etc. are not included into the measurement.

  • HT4972 I can't update my Apple iphone. Its model firmware is 4.2.1. What can I do to update my iphone.

    I can't update my Apple iphone. Its model firmware is 4.2.1. What can I do to update my iphone.

    Probably because you have an iPhone 3G and 4.2.1 is the latest update that you can get for that phone - it is too old to support anything further.
    If you have an iPhone 4, then connect the phone to iTunes to update it and ensure that you have the latest version of iTunes too.

  • Query on Physical Architecture,Logical Architecture and Model

    Hi Experts,
    I have a confusion regarding Physical Architecture,Logical Architecture and Model.Please tell me what type of information or data these above three hold.
    Thanks

    Physical architecture contains information on the physical setup of your environment i.e. server names, jdbc connection strings, usernames, Passwords etc.
    The logical architecture provides a layer of abstraction that allows you to group via contexts similar Physical architecture components which reside in different locations/environments.
    Models are the reversed representations of the objects in your physical architecture i.e. tables, flat files etc. Models are used as sources and targets in your interface design

  • HT4623 I AM FACING PROBLEM AFTER UPDATING (7.0.4) MY PHONE MODEL 5C,AFTER THIS UPDATE SOME TIMES I CANT MAKE CALLS & SOME TIMES WHEN ANY BODY ELSE WANTS TO CALL ME BACK THE MESSAGE COME THAT THE USER IS NOT REACHABLE.PLS HELP

    I AM FACING PROBLEM AFTER UPDATING (7.0.4) MY PHONE MODEL 5C,AFTER THIS UPDATE SOME TIMES I CANT MAKE CALLS & SOME TIMES WHEN ANY BODY ELSE WANTS TO CALL ME BACK THE MESSAGE COME THAT THE USER IS NOT REACHABLE.PLS HELP

    I am facing the same issue! I bought 5c few days back
    and everything was fine till I updated the software 7.0.4!
    Whenever am connected to wifi am unable to make a call and if someone tries
    Calling me they get the message that my number is not
    Reachable! When I go back to 3G the calls work perfectly!!
    Please help me out since I use wifi more than my network.
    Appreciate any advise on this

  • [svn:fx-trunk] 16143: Updating the length of the HierarchicalCollectionView in case of refresh event .

    Revision: 16143
    Revision: 16143
    Author:   [email protected]
    Date:     2010-05-17 04:05:14 -0700 (Mon, 17 May 2010)
    Log Message:
    Updating the length of the HierarchicalCollectionView in case of refresh event.
    QE notes: None
    Doc notes: None
    Bugs: http://bugs.adobe.com/jira/browse/FLEXDMV-2426
    Reviewer: Sreeni
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FLEXDMV-2426
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/collections/HierarchicalColle ctionView.as

  • View Table to update Physical Inventory Number Range.

    Hi,
    I am looking for the 'View Table' Name to update Physical Inventory Number Range in OMMB transaction.
    I will have to do it using SM30 as OMMB is display only.
    Thanks

    Hi,
    OMBT still cant help me because I dont have write access on this client.
    Are you aware on how to get the View Table to Maintain Number Ranges for Physical Inventory?
    Thanks,
    Rohit.

  • Failed to download updates to the WUAgent datastore (error = 0x8009000 / -2146893815)

    We have a central site (SRVSC00) and two primary child sites (SRVSC01/02) in our SCCM structure. All clients (3700) are connected to the child sites and reports to central site. All SU deployments are being deployed from central site. WSUS server (3.0 Sp2) is installed on each site (port 8530).
    I've deployed a patch (for the first time to all workstations) and over 130 clients failes.
    WUAHandler.log:
    "Failed to download updates to the WUAgent datastore (error = 0x8009000)"
    windowsupdate.log:
    2010-02-26 10:19:28:571 2304 b90 COMAPI WARNING: ISusInternal::GetEulaText failed, hr=80240033
    2010-02-26 10:19:28:571 2304 b90 COMAPI WARNING: ISusInternal::GetEulaText failed, hr=80240033
    2010-02-26 10:19:28:571 2304 b90 COMAPI WARNING: ISusInternal::GetEulaText failed, hr=80240033
    2010-02-26 10:19:28:571 2304 b90 COMAPI WARNING: ISusInternal::GetEulaText failed, hr=80240033
    2010-02-26 10:19:28:571 2304 b90 COMAPI WARNING: ISusInternal::GetEulaText failed, hr=80240033
    2010-02-26 10:19:28:571 2304 b90 COMAPI WARNING: ISusInternal::GetEulaText failed, hr=80240033
    2010-02-26 10:19:28:571 2304 b90 COMAPI WARNING: ISusInternal::GetEulaText failed, hr=80240033
    2010-02-26 10:19:28:571 2304 b90 COMAPI WARNING: ISusInternal::GetEulaText failed, hr=80240033
    2010-02-26 10:19:28:571 2304 b90 COMAPI WARNING: ISusInternal::GetEulaText failed, hr=80240033
    2010-02-26 10:19:28:586 2304 b90 COMAPI WARNING: ISusInternal::GetEulaText failed, hr=80240033
    2010-02-26 10:19:28:586 2304 b90 COMAPI WARNING: ISusInternal::GetEulaText failed, hr=80240033
    2010-02-26 10:19:30:086 1816 1494 DnldMgr ***********  DnldMgr: Copy update to cache [UpdateId = {A9E325EF-3002-4D74-9CC4-2CE1967678FB}.104]  ***********
    2010-02-26 10:19:30:086 1816 1494 DnldMgr WARNING: CryptAcquireContext failed with 0x80090009.
    2010-02-26 10:19:30:086 1816 1494 DnldMgr WARNING: GenerateHash failed with 0x80090009.
    2010-02-26 10:19:30:086 1816 1494 DnldMgr WARNING: GenerateDownloadDirName failed with 0x80090009.
    2010-02-26 10:19:30:086 1816 1494 DnldMgr   * WARNING: Copy update to cache failed with exit code = 0x80090009
    2010-02-26 10:19:30:086 2304 45c COMAPI WARNING: ISusInternal::CopyUpdateToCache2 failed, hr=80090009
    2010-02-26 10:19:30:196 2304 45c COMAPI -------------
    2010-02-26 10:19:30:196 2304 45c COMAPI -- START --  COMAPI: Search [ClientId = CcmExec]
    2010-02-26 10:19:30:196 2304 45c COMAPI ---------
    2010-02-26 10:19:30:196 1816 173c Agent *************
    2010-02-26 10:19:30:196 1816 173c Agent ** START **  Agent: Finding updates [CallerId = CcmExec]
    2010-02-26 10:19:30:196 1816 173c Agent *********
    2010-02-26 10:19:30:196 1816 173c Agent   * Include potentially superseded updates
    2010-02-26 10:19:30:196 2304 45c COMAPI <<-- SUBMITTED -- COMAPI: Search [ClientId = CcmExec]
    2010-02-26 10:19:30:196 1816 173c Agent   * Online = No; Ignore download priority = Yes
    2010-02-26 10:19:30:196 1816 173c Agent   * Criteria = "UpdateID = '0848ac63-ce07-4477-bc79-dae121d6bdda' AND DeploymentAction = *"
    2010-02-26 10:19:30:196 1816 173c Agent   * ServiceID = {3DA21691-E39D-4DA6-8A4B-B43877BCB1B7} Managed
    2010-02-26 10:19:30:196 1816 173c Agent   * Search Scope = {Machine}
    2010-02-26 10:19:33:446 1816 173c Agent   * Added update {0848AC63-CE07-4477-BC79-DAE121D6BDDA}.104 to search result
    2010-02-26 10:19:33:446 1816 173c Agent   * Found 1 updates and 48 categories in search; evaluated appl. rules of 167 out of 2088 deployed entities
    2010-02-26 10:19:33:602 1816 173c Agent *********
    I've tried wsusutil reset in case the problem was eula. But this doesn't seem to have resolved the problem - if I did it correct :)
    Can anyone help me?

    Problem solved :D
    This has nothing to do with EULA. The problem is on Windows Update Components on the clients.
    I had to reset the Windeows Update components with Microsoft Microsoft Fix it 50202 2.1.1.1.
    Since we had the problem on 100-200 machines, we deployed the Microsoft Microsoft Fix it 50202 2.1.1.1 with SCCM. Windows Update started to work on each machine after the package had run :)

  • HT4972 why can't i update the software on my ipad model MB292LL?

    Why can't I update the software for my IPad model MB292LL? The ios is 5.1.1 and I have seen newer ios versions come out. Also, many apps aren't available for my Ipad because of the ios. Is this Apple's way of forcing you to buy a new IPad? If so, that *****!

    The 1st generation iPad can not be upgraded beyond 5.1.1

  • Any update is anticipated in Ipod Classic Models? (May be to 8G or more space etc) kindly help as i am planning to buy one... if any updates are there, i can wait :)

    Any update is anticipated in Ipod Classic Models? (May be to 8G or more space etc) kindly help as i am planning to buy one... if any updates are there, i can wait

    Since all of us here are only end users like yourself, we wouldn't know of any such information and its against the terms of use of these forums to speculate. Sorry.
    B-rock

  • Gpj error - wrong initialize update response length

    Hello,
    I got a new smart card to work with, a Sm@rtcafe expert 6.0 and I can't use it with gpj. I tried it easy and just used the list command and got the following output:
    >java -jar gpj.jar -list
    Found terminals: [PC/SC terminal OMNIKEY CardMan 3821 0]
    Found card in terminal: OMNIKEY CardMan 3821 0
    ATR: 3B FE 18 00 00 80 31 FE 45 53 43 45 36 30 2D 43 44 31 34 35 2D 6E 46 A0
    DEBUG: Command  APDU: 00 A4 04 00 07 A0 00 00 01 51 00 00
    DEBUG: Response APDU: 6A 82
    Failed to select Security Domain GP211 A0 00 00 01 51 00 00 , SW: 6A 82
    DEBUG: Command  APDU: 00 A4 04 00 08 A0 00 00 00 18 43 4D 00
    DEBUG: Response APDU: 6A 82
    Failed to select Security Domain GemaltoXpressPro A0 00 00 00 18 43 4D 00 , SW: 6A 82
    DEBUG: Command  APDU: 00 A4 04 00 08 A0 00 00 00 03 00 00 00
    DEBUG: Response APDU: 6F 10 84 08 A0 00 00 00 03 00 00 00 A5 04 9F 65 01 FF 90 00
    Successfully selected Security Domain OP201a A0 00 00 00 03 00 00 00
    DEBUG: Command  APDU: 80 50 00 00 08 CB BE 6D 77 06 5F 69 F2
    DEBUG: Response APDU: 00 00 11 73 95 00 08 22 08 64 01 03 00 8B 32 D6 AD 37 C1 1
    4 F3 85 93 C0 3B 99 DF 96 72 90 00
    javax.smartcardio.CardException: Wrong initialize update response length.
             at net.sourceforge.gpj.cardservices.GlobalPlatformService.openSecureChannel(Unknown Source)
            at net.sourceforge.gpj.cardservices.GlobalPlatformService.main(Unknown Source)
    When I try this with my JCOP 4.2 everything works fine and I get a list with all installed applets. The same error I get when I try to install a *.cap file. With the JCOP 4.2 it works fine
    Can someone of you may tell why it doesn't work with the sm@rtcafe expert 6.0 or why this error is thrown? Maybe its important to mention that both cards run Global Plattform 2.1.1. The Jcop runs java 2.2.2 and the sm@rtcafe runs Java 3.1 classic.
    Thank you in advance

    Hello,
    I got a new smart card to work with, a Sm@rtcafe expert 6.0 and I can't use it with gpj. I tried it easy and just used the list command and got the following output:
    >java -jar gpj.jar -list
    Found terminals: [PC/SC terminal OMNIKEY CardMan 3821 0]
    Found card in terminal: OMNIKEY CardMan 3821 0
    ATR: 3B FE 18 00 00 80 31 FE 45 53 43 45 36 30 2D 43 44 31 34 35 2D 6E 46 A0
    DEBUG: Command  APDU: 00 A4 04 00 07 A0 00 00 01 51 00 00
    DEBUG: Response APDU: 6A 82
    Failed to select Security Domain GP211 A0 00 00 01 51 00 00 , SW: 6A 82
    DEBUG: Command  APDU: 00 A4 04 00 08 A0 00 00 00 18 43 4D 00
    DEBUG: Response APDU: 6A 82
    Failed to select Security Domain GemaltoXpressPro A0 00 00 00 18 43 4D 00 , SW: 6A 82
    DEBUG: Command  APDU: 00 A4 04 00 08 A0 00 00 00 03 00 00 00
    DEBUG: Response APDU: 6F 10 84 08 A0 00 00 00 03 00 00 00 A5 04 9F 65 01 FF 90 00
    Successfully selected Security Domain OP201a A0 00 00 00 03 00 00 00
    DEBUG: Command  APDU: 80 50 00 00 08 CB BE 6D 77 06 5F 69 F2
    DEBUG: Response APDU: 00 00 11 73 95 00 08 22 08 64 01 03 00 8B 32 D6 AD 37 C1 1
    4 F3 85 93 C0 3B 99 DF 96 72 90 00
    javax.smartcardio.CardException: Wrong initialize update response length.
             at net.sourceforge.gpj.cardservices.GlobalPlatformService.openSecureChannel(Unknown Source)
            at net.sourceforge.gpj.cardservices.GlobalPlatformService.main(Unknown Source)
    When I try this with my JCOP 4.2 everything works fine and I get a list with all installed applets. The same error I get when I try to install a *.cap file. With the JCOP 4.2 it works fine
    Can someone of you may tell why it doesn't work with the sm@rtcafe expert 6.0 or why this error is thrown? Maybe its important to mention that both cards run Global Plattform 2.1.1. The Jcop runs java 2.2.2 and the sm@rtcafe runs Java 3.1 classic.
    Thank you in advance

  • Updating Physical Cube Tables and Hierarchies OBIEE 11.1.1.7

    OBIEE 11.1.1.7
    I have imported a MSAS Cube, modeled it and created a presentation layer. I now have some new hierarchies I need to add to the phyicial layer.
    How do you import new Cube Tables and/or Hierarchies?
    When I select the Import option it creates a new OLAP database and connection pool, I am unable to successfully move those changes into the existing OLAP Connection.
    I have been through the documentation and it reccomends importing over a manual process. However I am unable to figure out how to do this with the import process.
    Oracle® Fusion Middleware Metadata Repository Builder's Guide for Oracle Business Intelligence Enterprise Edition
    11g Release 1 (11.1.1) Part Number E10540-05
    Chapter 8 Working with Physical Tables, Cubes, and Joins
    There is a section called Working with Multidimensional Sources in the Physical Layer, in this section is says
    "Each multidimensional catalog in the data source can contain multiple physical cubes. You can import the metadata for one or more of these cubes into your Oracle BI repository. Although it is possible to create a cube table manually, it is recommended that you import metadata for cube tables and their components"
    The New Utilities feature(s) is really cool, but it doesn't work for OLAP connections. 
    Any help is greatly appreciated.

    Hi Michael,
    it works, but its a bit tricky. I did it with Oracle OLAP and I think it must be similar with other OLAP Databases.
    Rename your existing Database in Physical Layer to the name Metadata Import dialog would create. With Oracle OLAP the "Data Source Name" ist used. Just try it once.
    Unfortunately you can not merge dimensions and cubes as it is with relational Objects . So you have to delete the cube and dimensions you will import from you renamed Database in Physical Layer. Of course the mapping between physical and business model will be lost
    Now you can import your modified OLAP-Cubes and Dimensions and it should be placed in your renamed Database in Physical Layer
    Open the sources of your logical tables in business model and add the Dimensions or Cubes in the "General" Tab. Move to the Tab "Column Mapping" and check if mapping is OK. If not (this will be the case, if you customized the column names), you have to do the mapping from the scratch .
    I recommend to use the original names from the data source. If you need another name for a column, just create a new logical column and use "Derive from existing columns". Now you can reimport OLAP Metadate quicker because the Mapping is done automatically.
    Hope this helps
    Regards Claus

  • API/package/procedure/function for updating physical attributes in Org/Mast

    I need some kind of procedure or function for updating the weight, volume, and dimensions in the organization and master items forms. We have almost 350,000 items and I want to update them in batch. Is there an API of some kind for this? I would do a simple update but I want to make sure there's no additional logic necessary (other tables that are updated during the process of updating those fields, etc).
    Thanks!

    here is for API's you need to check...
    You can use Decimal & UOM Quantity API
    These APIs are used to handle item decimal quantities:
    Convert from one UOM to another
    Validate quantities at input time
    Validate quantities at display/output time
    Quantity Comparison
    Get UOM information
    For your convenience, I am giving you the API as below:
    /*===========================================================================+
    | Copyright (c) 1999 Oracle Corporation |
    | Redwood Shores, California, USA |
    | All rights reserved. |
    +===========================================================================*/
    /*-----------------------------------------------------------------------+
    |This package contains procedures relevent to item decimal quantity |
    |processing. This package contains routines to: |
    |(1)validate item quantities based on UOM and decimal precision rules |
    |(2)validate whether the UOM controls and decimal precision rules |
    | themselves are correct based on functionality planned. For reviewing|
    | UOM and decimal quantity functional design details, please visit the|
    | following URL: |
    | "http//apps-us.oracle.com/inv/development/designs_120/ |
    | decimal_precision/decimal_precision.html" |
    |But here are a few basics to give background context: |
    | |
    | "Item Quantity" -- The item's quantity is described by the item |
    | identifier, the unit of measure (e.g. grams, kilos, etc), and a |
    | number value to indicate the amount in that unit of measure. |
    | |
    | "Unit of Measure" -- Units of measure belong to unit of measure |
    | classes(e.g. weight, volume, length, etc). Each unit of measure class|
    | has actual units of measure that belong to that class (e.g. the |
    | weight class may have units of measures like, "grams", "kilos", etc).|
    | |
    | "UOM Conversion" --Users can set up conversion rates between UOMs in |
    | them same UOM class, by defining conversions to the base UOM. These |
    | are standard conversions. Item-level intra-class conversions may also|
    | be defined. When doing intra-class conversions, item-level |
    | intra-class conversions are used first if defined, and then standard |
    | conversions are used. |
    | Users can define inter-class conversions. Inter-class Conversions may|
    | also be defined at the lot/sublot levels. For inter-class conversions|
    | sublot, lot, and then item inter-class conversions will be used in |
    | in order. If lot-lvel conversion is not defined, then item-level |
    | conversion is used. A strict hierarchy is imposed. |
    | |
    | "TU" -- Trasactable Unit.A UOM may have a TU. This implies |
    | that when transacting in this UOM, any item's quantities will be |
    | forced to be integer multiples of this TU quantity. The TU may also |
    | be declared at the item level. The TU quantity at the item level may |
    | be different from the UOM level TU, and if defined, item level TU |
    | takes precedance. |
    | |
    | "Decimal Precision"--Users have a choice of setting decimal precision|
    | at the base UOM for each UOM class. All other UOMs in that class get |
    | get their decimal precisions derived from the base UOM decimal |
    | precision, the converison rate, and TUs, if they are |
    | being used. |
    | |
    | |
    | "Conversion Rate Tolerance" -- This is a tolerance that may be set |
    | when conversion rate cannot be not strictly fixed. Example: |
    | 1 Chicken = 2 pounds (plus or minus 0.7 pounds). This 0.7 pounds is |
    | the conversion rate tolerance. Conversion rate tolerance is only |
    | definable at inter-class UOM conversions, at item or lot/sublot level|
    | |
    | History |
    | 04/08/99 Mansoor Jafri Created Package Spec |
    | 04/26/99 Mansoor Jafri Updated with TU at 3 levels as |
    | opposed to MTU at 2 and atomic at|
    | UOM class level. |
    | 04/29/99 Mansoor Jafri Updated document with lot/sublot |
    | conversions. Also, removed |
    | "atomic" as a separate control, |
    | since this can |
    | implemented as a TU at base UOM |
    | level with an integer quantity. |
    | 05/03/99 Mansoor Jafri Updated the package with sublot |
    | level control. Also, changed name|
    | of DTU to TU, so that it fits |
    | better in the "process" market. |
    | Also, conformed to BOI API stds. |
    +-----------------------------------------------------------------------*/
    SET VERIFY OFF
    WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
    CREATE OR REPLACE PACKAGE inv_decimals_pub AS
    /* $Header: INVDECPS.pls 118.3 99/05/03 18:12:27 mjafri noship $ */
    /*--------------------------------------------------------------------------+
    |Procedure validate_compare_quantities(..)
    |Returns the quantity converted from the first UOM in the second UOM.
    |If quantities in 2 UOMs are already available, then this procedure will
    |compare and validate these quantities based on conversion rates
    |and UOM and decimal qty controls. This procedure may be used to validate
    |scenarios where quatities are entered in dual UOMs. We want to make sure
    |quantities are valid based on conversion, TUs, and conversion
    |rate tolerances.
    |
    |Procedure validate_and_compare(
    |p_api_version_number IN NUMBER, -- version # of API
    |p_init_msg_list IN VARCHAR2, -- whether to initialize list
    |p_inventory_item_id IN NUMBER, -- inventory_item_id
    |p_organization_id IN NUMBER, -- organization_id
    |p_lot_control_code IN NUMBER, -- item's lot control code
    |p_lot_number IN VARCHAR2, -- lot number
    |p_sub_lot_control_code IN NUMBER, --sub lot control code
    |p_sublot_number IN VARCHAR2, -- sublot number
    |p_from_quantity IN NUMBER, -- qty in first UOM
    |p_from_uom_code IN VARCHAR2, -- UOM of fisrt qty
    |p_to_uom_code IN VARCHAR2, -- UOM of second qty
    |p_to_quantity_to_check IN NUMBER, -- qty in second UOM
    |x_resultant_to_quantity OUT NUMBER, -- calculated qty in second UOM
    |x_comparison OUT NUMBER,--Possible values are 1,0,-1,-99
    |x_msg_count OUT NUMBER, -- number of messages
    |x_msg_data OUT VARCHAR2, -- populated,if msg count = 1
    |x_return_status OUT VARCHAR2) -- return status
    |
    |Note: The comparisons are done in base UOM
    | of the UOM class to which the first UOM belongs. x_comparison returns:
    |-1 if from_quantity is less than to_quantity (A < B)
    | 0 if from_quantity is equal to to_quantity (A = B)
    | 1 if from_quantity is greater than to_quantity (A > B)
    | -99 if the validations for the first/second quantity failed
    | If the UOMs belong to different classes, then users can specify whether
    | they want to use the effective interclass UOM conversion tolerance, say, T.
    | CASE: p_use_interclass_tolerance = 1
    | ------
    | Q1 > Q2 if (Q1 - Q2) >= T
    | Q1 = Q2 if ABS(Q1 - Q2) < T
    | Q1 < Q2 if (Q1 - Q2 ) <= -T
    |
    |The output variable x_resultant_to_quantity will contain the converted
    |quantity
    |in the second UOM, using effective conversion rates.
    |Usage: In a dual UOM scenario, this api will confirm whether quantities in
    |the two UOMs are equal or not, based on x_comparison output variable.
    +--------------------------------------------------------------------------*/
    Procedure validate_compare_quantities(
    p_api_version_number IN NUMBER,
    p_init_msg_list IN VARCHAR2,
    p_inventory_item_id IN NUMBER,
    p_organization_id IN NUMBER,
    p_lot_control_code IN NUMBER,
    p_lot_number IN VARCHAR2,
    p_sub_lot_control_code IN NUMBER,
    p_sublot_number IN VARCHAR2,
    p_from_quantity IN NUMBER,
    p_from_uom_code IN VARCHAR2,
    p_to_uom_code IN VARCHAR2,
    p_to_quantity_to_check IN NUMBER,
    x_resultant_to_quantity OUT NUMBER,
    x_valid_conversion OUT NUMBER,
    x_msg_count OUT NUMBER,
    x_msg_data OUT VARCHAR2,
    x_return_status OUT VARCHAR2);
    /*--------------------------------------------------------------------------+
    |Function convert_UOM(..) return NUMBER ;
    |Returns the quantity converted from the first unit into the second unit.
    |If conversion is not possible, return status is failure.
    |Function convert(
    |p_api_version_number IN NUMBER,
    |p_init_msg_list IN VARCHAR2, -- whether to initialize list
    |p_inventory_item_id IN NUMBER, -- inventory_item_id
    |p_organization_id IN NUMBER, -- organization_id
    |p_lot_control_code IN NUMBER, -- item's lot control code
    |p_lot_number IN VARCHAR2, -- lot number
    |p_sub_lot_control_code IN NUMBER,
    |p_sublot_number IN VARCHAR2,
    |p_from_quantity IN NUMBER, -- qty in first UOM
    |p_from_uom_code IN VARCHAR2, -- UOM of fisrt qty
    |p_to_uom_code IN VARCHAR2, -- UOM of second qty
    |x_msg_count OUT NUMBER,
    |x_msg_data OUT VARCHAR2,
    |x_return_status OUT VARCHAR2)
    | return NUMBER ;
    |If there is an error, then -99 is returned.
    |1) From_quantity must be an absolute value.
    |2) From_quantity will be truncated to decimal precision in the from UOM, then
    | converted to base UOM in the class,
    |3) Then converted to base UOM of the
    | to_UOM class,
    |4) Then converted to the quantity in to_UOM,
    |5) Then truncated to decimal precision of the to_UOM.
    +--------------------------------------------------------------------------*/
    Function convert_UOM(
    p_api_version_number IN NUMBER,
    p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
    p_inventory_item_id IN NUMBER,
    p_organization_id IN NUMBER,
    p_lot_control_code IN NUMBER,
    p_lot_number IN VARCHAR2,
    p_sub_lot_control_code IN NUMBER,
    p_sublot_number IN VARCHAR2,
    p_from_quantity IN NUMBER,
    p_from_uom_code IN VARCHAR2,
    p_to_uom_code IN VARCHAR2,
    x_msg_count OUT NUMBER,
    x_msg_data OUT VARCHAR2,
    x_return_status OUT VARCHAR2) return NUMBER ;
    /*--------------------------------------------------------------------------+
    | get_uom_properties(..)
    | This procedure is used to interrogate the UOM.
    | It returns:
    | (1) decimal precision at the UOM level
    | (2) TU, if defined, at the UOM level
    | (3) Atomicity, if defined for the class that this UOM belongs to
    | If some of the controls are not defined, null values are returned.
    | if the UOM is not found, the return status indicates this.
    | Procedure get_uom_properties(
    | p_api_version_number IN NUMBER,
    | p_init_msg_list IN VARCHAR2,
    | p_uom_code IN VARCHAR2,
    | x_decimal_precision OUT NUMBER,
    | x_uom_TU OUT NUMBER,
    | x_uom_class OUT VARCHAR2,
    | x_msg_count OUT NUMBER,
    | x_msg_data OUT VARCHAR2,
    | x_return_status OUT VARCAHR2);
    +--------------------------------------------------------------------------*/
    Procedure get_uom_properties(
    p_api_version_number IN NUMBER,
    p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
    p_uom_code IN VARCHAR2,
    x_decimal_precision OUT NUMBER,
    x_uom_TU OUT NUMBER,
    x_uom_class OUT VARCHAR2,
    x_msg_count OUT NUMBER,
    x_msg_data OUT VARCHAR2,
    x_return_status OUT VARCAHR2);
    /*-------------------------------------------------------------------------+
    | get_item_uom_properties(..)
    | This procedure returns a specific item's primary UOM, TU, and tolerance
    | Procedure get_item_uom_properties(
    | p_api_version_number IN NUMBER,
    | p_init_msg_list IN VARCHAR2,
    | p_inventory_item_id IN NUMBER,
    | p_organization_id IN NUMBER,
    | p_lot_control_code IN NUMBER, -- item's lot control code
    | p_lot_number IN VARCHAR2,
    | p_sub_lot_control_code IN NUMBER,
    | p_sublot_number IN VARCHAR2,
    | x_primary_uom_code OUT VARCHAR2,
    | x_uom_class OUT VARCHAR2,
    | x_decimal_precision OUT NUMBER,
    | x_item_TU OUT NUMBER,
    | x_uom_TU OUT NUMBER,
    | x_effective_TU OUT NUMBER,
    | x_msg_count OUT NUMBER,
    | x_msg_data OUT VARCHAR2,
    | x_return_status OUT VARCHAR2 );
    | If the item is not a valid one, then this is reflected through the
    | return status.
    +-------------------------------------------------------------------------*/
    Procedure get_item_uom_properties(
    p_api_version_number IN NUMBER,
    p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
    p_inventory_item_id IN NUMBER,
    p_organization_id IN NUMBER,
    p_lot_control_code IN NUMBER,
    p_lot_number IN VARCHAR2,
    p_sub_lot_control_code IN NUMBER,
    p_sublot_number IN VARCHAR2,
    x_primary_uom_code OUT VARCHAR2,
    x_uom_class OUT VARCHAR2,
    x_decimal_precision OUT NUMBER,
    x_item_TU OUT NUMBER,
    x_class_TU OUT NUMBER,
    x_uom_TU OUT NUMBER,
    x_effective_TU OUT NUMBER,
    x_msg_count OUT NUMBER,
    x_msg_data OUT VARCHAR2,
    x_return_status OUT VARCHAR2 );
    /*-------------------------------------------------------------------------+
    | Procedure compare_quantities(..)
    | Procedure compare_quantities(
    | p_api_version_number IN NUMBER,
    | p_init_msg_list IN VARCHAR2,
    | p_inventory_item_id IN NUMBER,
    | p_organization_id IN NUMBER,
    | p_lot_control_code IN NUMBER,
    | p_lot_number IN VARCHAR2,
    | p_sub_lot_control_code IN NUMBER,
    | p_sublot_number IN VARCHAR2,
    | p_fisrt_qauantity IN NUMBER,
    | p_first_uom IN VARCHAR2,
    | p_second_quantity IN NUMBER,
    | p_second_uom IN VARCHAR2,
    | p_use_interclass_tolerance IN VARCHAR2, -- Yes = 1, 2 = No
    | x_comaprison_result OUT NUMBER,
    | x_msg_count OUT NUMBER,
    | x_msg_data OUT VARCHAR2,
    | x_return_status OUT VARCHAR2);
    |
    | This procedure compares the quantities A and B and returns result in the
    | output variable x_comparison_result. The comparisons are done in base UOM
    | of the UOM class to which the first UOM belongs:
    |-1 if quantity A is less than quantity B (A < B)
    | 0 if quantity A is equal to quantity B (A = B)
    | 1 if quantity A is greater than quantity B (A > B)
    | If the UOMs belong to different classes, then users can specify whether
    | they want to use interclass UOM conversion tolerance, say, T.
    | CASE: p_use_interclass_tolerance = 1
    | ------
    | Q1 > Q2 if (Q1 - Q2) >= T
    | Q1 = Q2 if ABS(Q1 - Q2) < T
    | Q1 < Q2 if (Q1 - Q2 ) <= -T
    +------------------------------------------------------------------------*/
    Procedure compare_quantities(
    p_api_version_number IN NUMBER,
    p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
    p_inventory_item_id IN NUMBER,
    p_organization_id IN NUMBER,
    p_lot_control_code IN NUMBER,
    p_lot_number IN VARCAHR2,
    p_sub_lot_control_code IN NUMBER,
    p_sublot_number IN VARCHAR2,
    p_fisrt_qauantity IN NUMBER,
    p_first_uom IN VARCHAR2,
    p_second_quantity IN NUMBER,
    p_second_uom IN VARCHAR2,
    p_use_interclass_tolerance IN VARCHAR2,
    x_comaprison_result OUT NUMBER,
    x_msg_count OUT NUMBER,
    x_msg_data OUT VARCHAR2,
    x_return_status OUT VARCHAR2);
    /*-----------------------------------------------------------------------+
    | Procedure Validate_Quantity(
    | p_api_version_number IN NUMBER,
    | p_init_msg_list IN VARCHAR2,
    | p_inventory_item_id IN NUMBER,
    | p_organization_id IN NUMBER,
    | p_lot_control_code IN NUMBER,
    | p_lot_number IN VARCHAR2,
    | p_sub_lot_control_code IN NUMBER,
    | p_sublot_number IN VARCHAR2,
    | p_input_quantity IN NUMBER,
    | p_UOM_code IN VARCHAR2,
    | x_msg_count OUT NUMBER,
    | x_msg_data OUT VARCHAR2,
    | x_return_status OUT VARCHAR2);
    |
    | Validates and returns the quantity in this manner (the caller does not need
    | to adjust the result):
    | 0. Truncate to and validate decimal precision
    | 1. Validate quantity with respect to TU controls.
    +-------------------------------------------------------------------------*/
    Procedure Validate_Quantity(
    p_api_version_number IN NUMBER,
    p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
    p_inventory_item_id IN NUMBER,
    p_organization_id IN NUMBER,
    p_lot_control_code IN NUMBER,
    p_lot_number IN VARCAHR2,
    p_sub_lot_control_code IN NUMBER,
    p_sublot_number IN VARCHAR2,
    p_input_quantity IN NUMBER,
    p_UOM_code IN VARCHAR2,
    x_msg_count OUT NUMBER,
    x_msg_data OUT VARCHAR2,
    x_return_status OUT VARCHAR2);
    /*------------------------------------------------------------------------+
    | Function Truncate_Quantity(
    | p_api_version_number IN NUMBER,
    | p_init_msg_list IN VARCHAR2,
    | p_inventory_item_id IN NUMBER,
    | p_organization_id IN NUMBER,
    | p_lot_control_code IN NUMBER,
    | p_lot_number IN VARCHAR2,
    | p_sub_lot_control_code IN NUMBER,
    | p_sublot_number IN VARCHAR2,
    | p_input_quantity IN NUMBER,
    | p_UOM_code IN VARCHAR2,
    | x_msg_count OUT NUMBER,
    | x_msg_data OUT VARCHAR2,
    | x_return_status OUT VARCHAR2) return NUMBER;
    |
    | Truncates the quantity to decimal precision of the UOM.
    | In case of error conditions, -99 is returned.
    +------------------------------------------------------------------------*/
    Function Truncate_Quantity(
    p_api_version_number IN NUMBER,
    p_init_msg_list IN VARCHAR2 := fnd_api.g_false,
    p_inventory_item_id IN NUMBER,
    p_organization_id IN NUMBER,
    p_lot_control_code IN NUMBER,
    p_lot_number IN VARCHAR2,
    p_sub_lot_control_code IN NUMBER,
    p_sublot_number IN VARCHAR2,
    p_input_quantity IN NUMBER,
    p_UOM_code IN VARCHAR2,
    x_msg_count OUT NUMBER,
    x_msg_data OUT VARCHAR2,
    x_return_status OUT VARCHAR2) return NUMBER;
    * show errors package INV_DECIMALS_PUB
    * SELECT to_date('SQLERROR') FROM user_errors
    * WHERE name = 'INV_DECIMALS_PUB'
    * AND type = 'PACKAGE';
    commit;
    exit;

Maybe you are looking for

  • MAIL APP will NOT OPEN- NOT RESPONDING/FORCE QUIT

    Macbook Pro 2011 Using Mavericks OS X 10.95 I don't really use the Mac Mail very often because have always had problems with it so I will tend to use Gmail, Yahoo or whatever service it is.  I cannot even get mail to open at this point.  It just says

  • Upgraded to yosemite and cant get computers to share files

    Got a iMac and MacBook Air.  Upgraded both to Yosemite and can not get them to share their hard drives.  Have done this for years but no more.  Every time I tell them to connect it fails.  I am using the exact same accounts on both machines.  Same fu

  • My Itunes songs are not syncing manually from my computer?

    Ever since I updated my phone to iOS 7, none of my itunes songs sync onto my iphone 4s when i plug my phone into my computer and hit sync. My new books/videos etc DO cross over onto the iphone, but my itunes songs do not, much less do my playlists up

  • Non-hex character in hex string after upgrade to Yosemite

    Hi, When I try to open some of my files I get an error: "Acrobat PDF File Format is having difficulties. Non-hex character in a hex string". I could open the files before. The only thing I've done since I opened the file last was to upgrade to Yosemi

  • Error in executing mappings "could not find program unit being called"

    I am trying to deploy a mapping from the control center in Oracle WareHouse Builder usign Oracle 11g . Here is what i exactly do , first I generate the mapping it goes okay with an insignificant warning .. After that I right click the mapping and cli