Subinventory and Locator query??

Hi All,
I need to find all the locators available under a particular subinventory..
I just wrote a query and executed in vision..
I took the example of M1 inventory org..
select a.SECONDARY_INVENTORY_NAME,
b.ORGANIZATION_NAME,
c.segment1||'.'||c.segment2||'.'||c.segment3 locname
from
MTL_SECONDARY_INVENTORIES a ,
org_organization_definitions b,
MTL_ITEM_LOCATIONS c
----MTL_SECONDARY_INVENTORIES_FK_V d
where a.ORGANIZATION_ID=b.ORGANIZATION_ID
and a.ORGANIZATION_ID=c.ORGANIZATION_ID
--and a.ORGANIZATION_ID=d.ORGANIZATION_ID
and a.ORGANIZATION_ID=207
--and d.DEFAULT_LOC_STATUS_CODE='Active'
and a.SECONDARY_INVENTORY_NAME ='FGI'
From front end i went to stock locators to see..as how many records are available...I see 22 locators..
My query also returned 22 rows...but from front end only 3 locators are available for FGI..
so i also need to see 3 records only..
Can someone point me what is wrong in this query??
Thanks

HrishikeshJ wrote:
Add one more condition:
a.secondary_inventory_name = c.subinventory_code
HrishikeshExcellent Hrishikesh...It did return the 3 rows..
but how did you figure it out?..I went through etrm..dut i didn't..can you please share
Also am building a report using this..which takes 2 parameters...subinventory and locator..
but i have to restict user to select subinventory first...then only he can select locator...without selecting subinventory..he cannot chose locator....so to achieve this...should a dependent value set be used?
Thanks

Similar Messages

  • Count and location of user sessions

    Good Morning,
    We are trying to revamp several front ends and wish to identify which ones are being consistently used and the others that are not. In our mind the front end that is being used quite often is an indication that only some tweeking would be necessary while the others that are ignored or worked around need a total revamping or rebuild. I am the first to admit that I am not very fluent in writing a script such as this and am requesting some help in this matter.
    I was looking at the v$session with the userid and such and my guess is that is where I should start in the analysis or does someone out there have a better idea to attack this problem? This is a production environment and would like to get a count and location of each that is/ was being used when the query is run.
    Your help / suggestions in this matter would be much appreciated.
    Regards,
    al

    Hi damorgan,
    This was a general statement to start a discussion. What type of information would I need to enable this query to be written? Another thought I am not looking for specific components of an application but just the totals of each being used throughout the system. I am almost positive we are using an application server here. I am new here so I have to look into that. When you say what type of front-end app do you mean the name of the software such as visual basic etc or is it something else you are looking for?
    Let me know.
    regards,
    al

  • Facing problem while tieing item and locator

    Hi All,
    I am facing one problem While creating a relation between Item and locator using API INV_LOC_WMS_PUB.CREATE_LOCATOR.CREATE_LOC_ITEM_TIE.
    Error: PLS-00225: subprogram or cursor 'CREATE_LOCATOR' reference is out of scope
    Line: 16
    Below is the code which i am using
    create or replace procedure Item_loct(retcode out varchar2,errbuff out varchar2)
    is
    g_return_status VARCHAR2 (1) := fnd_api.g_ret_sts_success;
    g_msg_count NUMBER DEFAULT 0;
    g_msg_data VARCHAR2 (2000) DEFAULT NULL;
    l_msg_index_out NUMBER;
    cursor c1 is select *from item_inv_loc;-- where rownum<num_rec;
    begin
    for i in c1 loop
    FND_GLOBAL.APPS_INITIALIZE( FND_GLOBAL.USER_ID,FND_GLOBAL.RESP_ID,FND_GLOBAL.RESP_APPL_ID);
    INV_LOC_WMS_PUB.CREATE_LOCATOR.CREATE_LOC_ITEM_TIE(p_inventory_item_id => i.item_id,
    p_organization_id => i.organization_id,
    p_subinventory_code => i.subinventory_code,
    p_inventory_location_id => i.locator_id,
    p_status_id => i.loc_status,
    x_return_status => g_return_status ,
    x_msg_count=> g_msg_count,
    x_msg_data => g_msg_data);
    fnd_file.put_line(fnd_file.log,'Return Status = ' || g_return_status);
    if g_return_status='S' THEN
    FND_FILE.PUT_LINE(fnd_file.log, ' Sucess');
    elsif ( g_msg_count > 1) THEN
    FOR j IN 1 .. g_msg_count
    LOOP
    oe_msg_pub.get (p_msg_index => j,
    p_encoded => fnd_api.g_false,
    p_data => g_msg_data,
    p_msg_index_out => l_msg_index_out
    FND_FILE.PUT_LINE(fnd_file.log, l_msg_index_out || '. ' || g_msg_data);
    END LOOP;
    -- ELSif
    -- FND_FILE.PUT_LINE(fnd_file.log, g_msg_data);
    end if;
    end loop;
    end ;
    Please tell where i am doing th wrong? If you have sample program please post it

    Hi,
    Please find the corrected code pasted below, also the pasted below is the value which has to be passed as an argument to the procedure.
    ---------------Correct one----------------------------
    INV_LOC_WMS_PUB.CREATE_LOC_ITEM_TIE(
    x_return_status => g_return_status ,
    x_msg_count => g_msg_count,
    x_msg_data => g_msg_data,
    p_inventory_item_id => i.item_id,
    p_item ------------------------------------------------------------------- This one was missed out.
    p_organization_id => i.organization_id,
    p_organization_code ------------------------------------------------------------------- This one was missed out.
    p_subinventory_code => i.subinventory_code,
    p_inventory_location_id => i.locator_id,
    p_locator ------------------------------------------------------------------- This one was missed out.
    p_status_id => 1
    p_par_level ------------------------------------------------------------------- This one was missed out.
    ** procedure : create_loc_item_tie
    ** description : For a given set of organization, subinventory, item and
    ** locator, this API ties the given item to the given locator.
    ** i/p :
    ** p_inventory_item_id
    ** Identifier of item .
    ** p_item
    ** Concatenated segment string with separator of the item.
    ** Either P_inventory_item_id or the p_item MUST be passed
    ** p_organization_id
    ** Identifier of organization
    ** p_organization_code
    ** Organization code of organziation in which locator is to
    ** be updated. Either p_organization_id or p_organziation_code
    ** MUST be passed
    ** p_subinventory_code
    ** The subinventory to which the locator need to be attached to .
    ** p_inventory_location_id
    ** Identifier of locator to be attached to the specified subinventory
    ** p_locator
    ** Concatenated segment string with separator of the locator to be
    ** updated. Eg:A.1.1 either p_inventory_location_id or
    ** p_concatenated_segments MUST be passed.
    ** p_status_id
    ** Identifier of status
    ** p_par_level Indicates the the maximum quantity
    ** o/p:
    ** x_return_status
    ** return status indicating success, error, unexpected error
    ** x_msg_count
    ** number of messages in message list
    ** x_msg_data
    ** if the number of messages in message list is 1, contains
    ** message text
    * Use this procedure to assign an item to a locator in an organization.
    * For a given organization, subinventory, item and locator, this procedure ties
    * the item to the locator.
    * @param x_return_status Return status indicating success or failure
    * @paraminfo {@rep:required}
    * @param x_msg_count Returns the number of messages in message list
    * @paraminfo {@rep:required}
    * @param x_msg_data Returns the message text if the number of messages in message list is one
    * @paraminfo {@rep:required}
    * @param p_inventory_item_id Identifier of the item that is to be tied to a locator is passed as input in this variable
    * @paraminfo {@rep:required}
    * @param p_item Concatenated segment string (with separator) of the item to be tied to a locator is passed as input in this variable
    * @paraminfo {@rep:required}
    * @param p_organization_id Organization Id in which the item and locator exist, is passed as input in this variable
    * @paraminfo {@rep:required}
    * @param p_organization_code Organization code in which the item and locator exist, is passed as input in this variable
    * @paraminfo {@rep:required}
    * @param p_subinventory_code Sub inventory to which locator belongs is passed as input in this variable
    * @paraminfo {@rep:required}
    * @param p_inventory_location_id Identifier of locator to be attached to the specified item is passed as input in this variable
    * @paraminfo {@rep:required}
    * @param p_locator Concatenated segment string (with separator) of the locator is passed as input in this variable
    * @paraminfo {@rep:required}
    * @param p_status_id Material Status of the locator is passed as input in this variable
    * @paraminfo {@rep:required}
    * @param p_par_level PAR level for the Item-Locator is passed as input in this variable
    * @rep:scope public
    * @rep:lifecycle active
    * @rep:displayname Create Item-Locator Tie
    Regards,
    Yuvaraj.C

  • Verifying and parsing "query" in cm:select query="..." ...

    I'm writting a session EJB that's passed a param (String query) which is supposed
    to be any valid "query" string passed to the cm:select tag (see "http://edocs.bea.com/wlcs/docs31/p13ndev/jsptags.htm#1057716"
    for more info on this tag and the query param).
    My problem is this: I don't think I should write ALL the stuff to validate and
    parse this string because bea has already done it in: com.beasys.commerce.foundation.expression.*;
    but the only source of documentation available on those classes is the Javadoc(which
    isn't that complete). Has anyone used these classes before(Search, Expression,
    Criteria, Logical)? Does anyone know of some documents on how to use them?
    Please help if you can. I'd really appreciate it. Thanks.

    rajan please just google or search SDN. there are large number of post for this..
    to give you a head start: for using a particular index in the select query a %_HINTS ORACLE 'INDEX clause is added

  • I am trying to setup my new time capsule but it is not working. after entering the airport utility and locating the TC, after I tell the program to continue, the unit just disappear and the setup menu says there is an error. Any idea of what is happening?

    I am trying to setup my new time capsule but it is not working. after entering the airport utility and locating the TC, after I tell the program to continue, the unit just disappear from the menu and the setup menu says there is an error. I tried using the wireless connection, and also the cable, but none worked. Any idea of what could be happening?

    What are you setting it up as.. join wireless network .. the very worst setup, it will disappear.. reboot the whole network in order modem. router TC.. clients and it will likely reappear.
    Tell us what network setup you are using..
    If you setup with cable to a computer completely isolated from the network with TC also isolated.. finish the setup of everything you want. .before update.. then plug it into the network. .then restart everything in correct order.. it will work most of the time.

  • Insert and update query to calculate the opening and closing balance

    create table purchase(productid number(5) ,dateofpurchase date,
    qty number(5));
    create table inventory(invid number(5),productid number(5),
    idate date,openingqty number(5),closingqty number(5));
    Records in inventory:
    1,1,'01-jan-2009', 10, 20
    2,1,'03-jan-2009', 20, 30
    3,1,'04-jan-2009', 40, 50
    when I enter the purchase invoice for 15 qty on 02-jan-2009
    after say '15-jan-09' , a new record should get inserted
    with opening balance = (closing balance before 02-jan-2009)
    and all the opening and closing balance for that product should
    get affected.
    If the invoice for 20 qty is entered for the existing date say
    '03-jan-2009' in inventory , then the closing balance
    for 03-jan-2009 should get updated and all the following records
    should get affected.
    I need the insert for the first one and update query for the
    second one.
    Vinodh

    <strike>You can do this in one statement by using the merge statement</strike>
    Hmm, maybe I spoke too soon.
    Edited by: Boneist on 25-Sep-2009 13:56
    Thinking about it, why do you want to design your system like this?
    Why not simply have your purchases table hold the required information and then either work out the inventory on the fly, or have a job that calls a procedure to add a row for the previous day?
    If you continue with this design, you're opening yourself up to a world of pain - what happens when the data doesn't match the purchases table? Also when is the inventory cut-off to reset the opening/closing balances? Monthly? Annually? Weekly? If it's set to one of those, what happens when the business request the inventory for a particular week?
    Edited by: Boneist on 25-Sep-2009 13:59

  • Projected Stock for a given Material and Location (System: SCM-APO)

    Hello Experts,
    Appreciate, if anybody can help me in getting a time-series key-figure data (Stock-On-Hand for a given Material and Location) for a given period.
    I am working on a report to display the projected stock (Material & Location are known) for a given period (1 month).
    I am able to view the above data in my planning book.
    Thanks in advance.
    Regards,
    Prasanna
    Edited by: Prasanna Gunji on Apr 9, 2010 3:42 PM

    Hi Prasanna,
    9ASOQMQTY - Stock in quality inspection
    9ASOTRSQTY - Stock in transit
    9AAVLSTCK - Projected Stock
    Hope this helps
    Regards
    R. Senthil Mareeswaran.

  • Multiple lines of event title and location failed to show for All Day event in SharePoint 2010 Calendar

    I have a calendar with SPD workflow to display multiple lines for Title, Attendees, Location.
    1. Created a custom columne "Breaklines" and set to "Multiple lines of text"
    2. Set Monthly View to display the "Breaklines"
    3. in SPD I created a workflow like this:
    4. On the Calendar page, I used a javascript to remove the <br/>
    <script src="http://code.jquery.com/jquery-1.10.2.min.js"
    type="text/javascript"></script><script
    type="text/javascript">
    function updateCalendarWeekday()
       $('.ms-acal-title').each(function(){
        var str = $(this).html();
        str = str.replace(/&lt;/g,
    "<");
        str = str.replace(/&gt;/g,
    ">");
        $(this).html(str);
    _spBodyOnLoadFunctionNames.push('calendarEventLinkIntercept');
    // hook into the existing SharePoint calendar load function
    function calendarEventLinkIntercept()
       var OldCalendarNotify4a
    = SP.UI.ApplicationPages.CalendarNotify.$4a;
       SP.UI.ApplicationPages.CalendarNotify.$4a
    = function ()
          OldCalendarNotify4a();
          updateCalendarWeekday();
    }</script><style>
    .ms-acal-item
                    HEIGHT:
    60px !important
    .ms-acal-summary-itemrow
                    HEIGHT:
    85px !important
    }</style>
    Everything works fine, except that when the All Day event is checked, the display screwed like this:
    I guess that when the event is All Day Event, the Start Time and End Time is not filled by the user (although they show in the form as 12:00 am -11:59PM), so the top line space is now used to display Title and Location. Since the Top Space for
    Start and End Time is a single line, it displays everything on one line. Plus the script does not act on this space.
    Does anyone know a fix for this problem?
    Thanks for any tips!

    Is there a way to modify the javescript so that it also works in the "start-end time" space?

  • SRM7 grouping items in RFx despite of multiple delivery date and locations

    Hi Gurus,
    I need to know for a proposal of SRM 7 implementation, WITHOUT  the newest E-sourcing component,  how to solve the following scenario:
    We are gonna use the SRM7 classic scenario where PO is created in ERP and Shopping cart  is created in SRM.
    In Plan-Driven Scenario for Third Party Sales Order, TPO will be created in ERP, Shopping carts, RFx and contract in SRM, PO will be triggered in SRM and created in ERP.
    1.       We have 8 main customers (Sold-To Party), 50 Items, 40 Ship-To (locations) 4 delivery dates for each item to each location.
    2.       Under Each Sold-To Party, there are several Ship-To party (Locations)
    3.       For each location, there could be multiple delivery dates. 
    4.       In the Third Party Sales order (TPO), each material could be repeated several times because of the multiple delivery dates and multiple locations;
    5.       After saving TPO, the system automatically generates Purchase Requisition (PR) in background.
    6.       For each delivery date in TPO, the system creates a separate line in PR. These lines will be converted into line items in shopping carts in SRM.
    7.        Total # of lines in PR would be:
    a.       8 (main customer) X 50 (items) X 40 (locations) X 4 (delivery dates) =  64000 lines in PRs è same number of lines will be created in SRM in Shopping carts (SC)
    8.       In sourcing, we have the option to convert these SCu2019s into RFx. This means we will send 64000 lines for the vendors to give their quotes while we actually have only 50 items.
    My questions:
    1.       In standard SRM, is there a way to create RFx for the total quantities for item? i.e. can the system read all SCu2019s and sum all the qty for each item, regardless, of the locations, customers, delivery dates and create one line item in the RFx. i.e RFx should be send for 50 items only?   If so, which functionality or work-around should I proposed to meet the req.?
    Regards
    Thanks
    Livio

    Hi Ramki,
    According what you say I assume that this specific requirements in SRM7, without  E- sourcing , CANNOT  be executed in a standard way, it makes sense to me.  Can you firmly confirm it?
    My real worry is that, eventually, in this last version of SRM7 could be already covered, somehowu2026 that why my post. 
    Can you give me some more details when defining the u201CAggregator txnu201D please (u mean txn or txt? And why)? 
    I mean, If I understand good, must be a development which finally summarize the quantities for each material and create the SC/PR and related RFx.
    The PO, created from the RFx, will collect all the delivery date and location from a custom table.  The custom table is a pointer between TPO, delivery date, location and RFx. Am I correct?
    Thanks
    Livio

  • I need to map my garden.  I need to draw it to scale and locate plants ties to a list of plants.

    I need to map my garden.  I need to draw it to scale and locate plants that ties to a list of plant names.

    A quick google search for gardening apps gave a surprisingly large number of hits. I saw at least three distinct garden planner apps (from $2 to $10) without half trying. These are mostly for iOS - iPad and/or iPhone - though there may be equivalents for Mac OS.
    I suggest you hit the app store and start doing some searches. I suspect you'll find something appealing fairly quickly.

  • File to File and then Call ABAP Program and pass file name and location

    Hi
    I am new to PI and am working on the following requirement and some guidance would help:
    A file is picked up from a third party server using FTP and is put in an SAP server in a specific location. After I have put in the file successfully, I need to call an ABAP program and provide the name and location of the file for further processing by the ABAP program.
    Although I am familiar with File to File, how can I add in the ABAP call with the filename and location? I do not want to pass any other information to the ABAP program.
    Thanks for your help.
    Manoj

    I think I get what you're saying. This additional file would have the file and the path in it's content. I would then use this as a source (FCC?) for Mapping with the RFC. Right?
    Exactly and yes, FCC would be helpful
    Would you have a sample OS script to do the above?
    Actually it depends on the operating system on which your PI system is standing. For instance for Windows, you might try with the following as a start point (but I was not able to test it, so I can't guarantee it will do the job):
    cmd.exe /C "%f %F > C:\target_directory\%DATE%_%TIME%.txt"
    In case you needed more, try googling on "windows batch script" or similar.
    Hope this helps,
    Greg

  • Suppress dialog, preset destination file name and location

    In acrobat 4 I could write a registry setting that would preset the output
    filename and location, print to adobe pdf writer, not get prompted, and the
    file would be created with the name and in the location I set.
    [HKEY_CURRENT_USER\Software\Adobe\Acrobat PDFWriter]
    "PDFFileName"="X:\\Output\\myFileName.pdf"
    What is the equivalent in version 8?

    Thanks.<br /><br />I will read through it more.<br />Having only worked with the PDFWriter, this is what is new to me:<br />"PrinterJobControl"<br /><br />[HKEY_CURRENT_USER\Software\Adobe\Acrobat <br />Distiller\PrinterJobControl]"C:\Program Files\Windows <br />NT\Accessories\wordpad.exe" ="c:\MyPDFoutputFileName.pdf"<br /><br />This seems like like I am presetting my application output, correct?<br /><br />>>>><br />Programmatic control<br /><br />Prompting can be turned off programmatically by adding a key to the Windows <br />registry. This method applies to the creation of only one PDF document by a <br />specific application for the current user. To use this method, add the <br />following registry key:<br /><br />HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl<br /><br />This key takes as subkeys:<br /><br />(Default)application<br /><br />The (Default) entry is reserved for possible future use and is not to be <br />used.<br /><br />The application subkey is the full path of the application for which <br />prompting is to be turned off. The value of the application subkey is a <br />REG_SZ value that is the full path of the output file. For example, the <br />following registry script would turn off prompting for the next printing <br />performed by wordpad.exe, printing to the file c:\MyPDFoutputFileName.pdf:<br /><br />Windows Registry Editor Version 5.00<br /><br />[HKEY_CURRENT_USER\Software\Adobe\Acrobat <br />Distiller\PrinterJobControl]"C:\Program Files\Windows <br />NT\Accessories\wordpad.exe" ="c:\MyPDFoutputFileName.pdf"<br /><br />Note:Though the programming language may require that your backslashes are <br />escaped (for example, "c:\\MyPDFoutputFileName.pdf"), the value of the <br />registry entry must use single slashes. This key, once established, remains <br />until used and is removed once the Windows API function StartDoc(HDC hdc, <br />CONST DOCINFO* lpdi) has successfully completed. Also note that the output <br />folder path must already exist with read and write access for the current <br />user and the destination file must not exist.<<<<br /><br /><br /><br /><br /><Bernd Alheit> wrote in message news:[email protected]...<br />> Look at the document 'Acrobat Distiller API Reference' of the Acrobat SDK. <br />> There read the section 'Disabling prompts for output file names'.

  • Diappearing photos replaced by an exclamation point within a triangle.  Prior to loading Lion I could put the image number in finder and locate the original file for that photo.  How do I restore photos now?

    I had problems with photos disappearing and being replaced by an exclamation point within a triangle.  I can see the photo in the thumbnail summary but when you click on it, the screen goes black and the exclamation point within a triangle appears along with the info on the original image number (i.e., img_1120.jpg). Prior to loading Lion, I could go to Finder, enter the image number and locate the original file for that photo.  I could then restore it for editing, copying into Print Shop directly, etc.   That no longer works after installing Lion.   How do I restore photos now?  I have 100s of photos that I have been going back to the original files and restoring and I am frantic that I will no longer be able to get to the original files.  Please help!  Thanks

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    What version of iPhoto? Assuming 09 or later:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • How to put variable selection and the query result the same screen

    Dear all,
       how can I put the variable selection and the query result in the same screen? Please advise. Thanks.
    Jin Ming

    Not sure if you are saying you want the prompts on the same page as the results... however in 7.0 with BEx Analyzer, you can insert a text object from the design toolbar and assign it to the variable.... this way, lets say you run query for period 6, then the text object will display "6" on the same area where the query results are.

  • Verity - files and db query combo

    Is it possible to have both a search of some files and a
    query of a database table in the same cfcollection? If so, guidance
    on how to do this?

    I'm not sure if this answers your question, but it's possible
    to combine database and files while indexing.

Maybe you are looking for

  • Early 2011 Macbook Pro GPU

    I know this question has been asked before. My problem is similar to what is mentioned here but I hope someone can explain the error log attached below and hopefully I'm able to find a DIY solution without much cost. I'm using a early 2011 MBP with Y

  • No internet in Wine for WoW

    Hello everyone.  Having some trouble running World of Warcraft on my Arch system under Wine.  I run wine ./Launcher.exe, and this is what I get: [World of Warcraft]$ wine ./Launcher.exe fixme:process:GetLogicalProcessorInformation (0x33e3f8,0x33e9f8)

  • Dvt alert not showing icons on graph

    I am showing icons on the line graph with the help of dvt:alert component. Code snippet: Alert map: public Map getAlertMap() { Alert alert1=new Alert(); //alert1.setXValue("2011-10-05 10:25:34"); alert1.setXValue("20"); alert1.setYValue(48.00); alert

  • Drive Cloning

    Hello, I've just purchased a firewire external drive and would like to clone my internal drive in case it all goes horribly wrong one day. Can this be done using disk utility or do I need a specialist programme to make sure it stays bootable and main

  • APEX with HL7

    Hi actually i don't know if i am in right place but i'm trying anyway. I am working on HIS System which is developed by Apex, The problem is, i want to send message to RIS System by HL7 messages , for example i want to send message to RIS system cont