Query to join po, pr, receipts, serial numbers

Dear All
I need to make report for po, pr, receipts and serial numbers. I have the two queries seperate but i have to join the both in single query.
can any one have the query kindly post it.
Regards
xyz
Edited by: user11309801 on Jan 28, 2012 4:01 AM

Use outer join:
select  code,
        requester
  from  test1,
        test2
  where serial between startno(+) and endno(+)
  order by code
C REQUESTER
A TATA
B TATA
C TOTO
D
E
SQL> SY.

Similar Messages

  • Serial Numbers in A Storage Bin

    Dear all,
    In warehouse management we have serial numbers attached to each item in the warehouse and these items are batch managed. During goods receipt serial numbers are scanned using RF scanner and a transfer order is created for each item. We have a customer table to store the details like storage location and storage bin etc when they are first scanned in. There is no problem here.
    If items are transferred from one storage bin to another using a transfer order, system is picking the serial numbers required for the transfer order posting. When corresposing material document is displayed using MB51, there is a tab for serial numbers that are included in this material document.
    Is there any way to get all the serial numbers of the items stored at Storage Bin level?
    Thanks and regards
    Raj

    Hi Christian,
    Thanks for the reply.
    In the mean time I was talking some more people here regarding this problem. Looks like there is no one obvious place where equipment serial numbers are stored.
    Further digging in to SAP I could make out that the serial numbers get distributed to tables SER01 to SER07 based on the activity performed with key in OBJK. I think I will be able to get there.
    I appreciate your time and reply.
    Regards
    Raj

  • Goods Receipt with serial numbers

    Hello everyone
    I'm having problems when i try to add a goods receipt with serial numbers
    Code:
            OReceipt = oCompany.GetBusinessObject(BoObjectTypes.oInventoryGenEntry)
            OReceipt.Series = 18
            OReceipt.DocDate = Date.Now
            OReceipt.TaxDate = Date.Now
            OReceipt.Lines.ItemCode = "MP.PP.241"
            OReceipt.Lines.Quantity = 1
            OReceipt.Lines.SerialNumbers.InternalSerialNumber = "SN-01"
            OReceipt.Lines.SerialNumbers.ManufacturerSerialNumber = "SN-01"
            OReceipt.Lines.AccountCode = "_SYS00000000109"
            OReceipt.Lines.WarehouseCode = "MPfabrik"
            OReceipt.Comments = ".NET"
            res = OReceipt.Add()
    Any help will be greatly appreciated!

    Hi Nestor
    All forums on SCN contain a description of what the forums is for. This forum's  Overview page:
    Looking at the overview, I suspect you want to post your query elsewhere? Perhaps one of  Microsoft's forums?
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Serial numbers via sql query

    Hi,
    I'm having trouble getting the correct serial numbers via SQL.
    From PHP I run the following query to get the Delivery Notes:
    select ODLN.DocEntry,ODLN.CardCode,ODLN.CardName,ODLN.DocDueDate,ODLN.DocDate,ODLN.NumAtCard,NNM1.SeriesName,ODLN.DocNum,ODLN.SlpCode,ODLN.CANCELED,ODLN.DocStatus,DLN1.ItemCode,DLN1.Dscription,DLN1.Quantity,DLN1.ShipDate,DLN1.LineStatus,ODLN.NumAtCard,ODLN.U_CodSit,ODLN.DocTotal,ODLN.DocCur,ODLN.CreateDate,ODLN.TrackNo,DLN1.SerialNum from ODLN INNER JOIN NNM1 ON (ODLN.Series = NNM1.Series) INNER JOIN OCRD ON (ODLN.CardCode = OCRD.CardCode AND OCRD.CardCode = '".$_POST["sapcode"]."' AND OCRD.Password = '".$_POST["sappwd"]."') INNER JOIN DLN1 ON ODLN.DocEntry = DLN1.DocEntry ORDER BY ODLN.CreateDate DESC,ODLN.DocEntry ASC
    While I loop through the results I then try to grab the serial numbers. I tried this:
    SELECT OSRI.IntrSerial FROM OSRI INNER JOIN SRI1 ON ( (SRI1.SysSerial = OSRI.SysSerial) AND (SRI1.BaseNum = ".$row['DocNum'].") ) INNER JOIN DLN1 ON (DLN1.DocEntry = SRI1.BaseEntry) WHERE ( (DLN1.DocEntry = ".$row['DocEntry'].") AND (DLN1.ItemCode = OSRI.ItemCode) AND (DLN1.ItemCode = '".$row['ItemCode']."') ) ORDER BY OSRI.IntrSerial
    but it gives me incoherent results compared to what appears in the SAP b1 client. For ex., some serial numbers are fine but in other cases I get more serial numbers than accounted for (article quantity = 1 but get 2 serial numbers; in SAP B1 client only one of the two serial numbers appears, as expected).
    So I then modified the query and added a check for the CardCode:
    SELECT OSRI.IntrSerial FROM OSRI INNER JOIN SRI1 ON ( (SRI1.SysSerial = OSRI.SysSerial) AND (SRI1.BaseNum = ".$row['DocNum'].") AND (SRI1.CardCode = '".$_POST["sapcode"]."') ) INNER JOIN DLN1 ON (DLN1.DocEntry = SRI1.BaseEntry) WHERE ( (OSRI.CardCode = '".$_POST["sapcode"]."') AND (DLN1.DocEntry = ".$row['DocEntry'].") AND (DLN1.ItemCode = OSRI.ItemCode) AND (DLN1.ItemCode = '".$row['ItemCode']."') ) ORDER BY OSRI.IntrSerial
    This query is slightly better in the sense that at least I don't get serial numbers that are not supposed to be there (eg. if quantity=1 I will not get 2 serial numbers as in the previous query). However, in some cases it works as expected and in other delivery notes it doesn't because it simply doesn't list the serial numbers (which where found in the first query).
    It might be because the CardCode field isn't always thoroughly set?
    If so, is it just a "user problem" so I should tell my company to review the way they fill SAP data?
    Or am I doing the wrong query?
    (The SDK doc regarding OSRI is confusing as it doesn't even point to SRI1 and I don't fully understand the relationships)
    Regards,
    Vieri

    Vieri,
    you can catch (using MS SQL Profiler) the query which is executed by SBO once you click on serial nambers report from Delivery Note form.
    this is one of the ways to get a solution quickly.

  • Goods Receipt and Serial Numbers

    I'm getting the following error "[IGN1.WhsCode][line: 1] , 'This entry already exists in the following tables (ODBC -2035)'" when trying to add a goods receipt document containing a single item that is serial number managed via the DI API.  We are running against Business One version 2005A SP01 PL9.  The Goods Receipt PO transaction is reporting the same error.  The Goods Issue and Delivery transaction appeared to work correctly. The Goods Receipt transaction posted correctly when created in the B1 Client (GUI) application.  So it is an issue with the DI API.  We are using the SBODemo_US company database but we added a new item and configured it for serial number management.  This same code works with B1 2004A.  Our application is suppose to work with both versions of B1, so our application is built with version 2004A DI API.  Should this work, or do I need to use the 2005A version of the DI API when communicating with a 2005A system?  Would this version of the DI API work correctly with a 2004A system?
    Thanks,
    Jason Eiler

    I remembered encountering the same problem working with B1 2004A.  For the Goods Receipt and Goods Receipt PO documents, when receiving items that are serial managed I would fill in the InternalSerialNumber data member of the Document Lines Serial Numbers object.  The fix was I also had to provide some value for the SystemSerialNumber field.  I just always set it to a value of 1.  In B1 2005A, this issue must have been resolved, because when I commented out this line of code, the document was added successfully.  I don't have to provide a SystemSerialNumber, the system must generate one, as I would expect.

  • Goods Receipt of material with serial numbers

    Hi all,
    Does SRM 7 supports the functionality of serial numbers at goods receipt? If a material in ECC has Serial number profile, then at the time of goods receipt in SRM, the system will ask to enter the serial number of each material?
    Thanks,
    Ezequiel

    Hi Ezequiel,
    serial numbers are not supported in SRM - not even in 7.0.
    Regards,
    Peter

  • Import of bulk serial numbers with Goods Receipt

    Hello
    I need to create an Add-On that automates the creation of Goods Receipt PO documents with linked serial numbers. Using the DI API I manage to create the Goods Receipt and link about 1000 serial numbers to one document without any problems. When the item qty (and linked serial number qty) goes beyond 10,000 it crashes (probably runs out of memory).
    I know an alternative would be possibly using the DI Server. Has anyone ever done this with such big volumes? Not sure if the DI Server would be able to handle say 100,000 serial numbers, at a time.
    Any advice is appreciated.
    Thanks,
    Jéan

    Thanks Gordon.
    This is not good news. I am just concerned as the SDK help on DI Server specifically states:
    "Business partners can use the DI Server for the following main scenarios:
    ==>> Heavy duty operations, such as batch"
    I assume this is the same type of "heavy duty operation" as a data take-on would be? Or does it mean that B1's serial number management is limited to small quantities at a time.
    Jéan

  • How to Query serial numbers on VXI smip modules.

    I'm trying to write a program in C# that will query the VXI SMIP Switch Modules for their serial numbers.  Right now I am able to view all the serial numbers through the soft front panel provided with the drivers but I need to automate this process and extract the serial numbers for further processing so I need to access the modules directly and read the data.
    My current  Setup:
    [Computer with PCI-MXI-2 Board] ------> [ Racal Chassis  with  "SM1000E double wide Carrier" that can hold 6 VXI SMIP switch module plugin cards]
    I'm able to see all resources in NI MAX.
    The VXI resource is shown in NI MAX as : VXI0::26::INSTR
    The VXI SM1000E Carrier that holds the 6 plugin module has logical address 26
    and there are 6 modules in there carrier that is 0 based, module 1 is 0, module 2, is 1, module 3, is 2 and so on...
    To my understanding, Visual Studio can automatically create wrapper code using the "Driver Wrapper Wizard" included with the T&M ToolKit.  And by doing this I was able to access some of the functions of the drivers associated with this module.
    I'm trying to use the vtvmSmip_QuerySmip function, which will return the NonVol data for up to six plug-in cards at once according to the documentation in the driver header file.  The definition of the SMiP NonVol structure can be found in the vtvmSmip.h file. But I'm still unsure how to use it.
    Using Visual Studio 2003, the function is available but it requires some arguments.
    Below is the wrapper code generated.
    [code]
    private void button1_Click(object sender, System.EventArgs e)
     // This code creates and initializes an instance of the VXIplug&play wrapper class
     // TODO:  Insert your appropriate values for address, idQuery etc.
     Agilent.TMFramework.InstrumentDriverInterop.Vxipn​pWrappers.VtvmSmip myVtvmSmip;
     myVtvmSmip = new Agilent.TMFramework.InstrumentDriverInterop.Vxipnp​Wrappers.VtvmSmip("GPIB0::7::INSTR", true, true);
     // TODO:  Add your code here.  For example:
     // myVtvmSmip.Reset();
    [code end]
    I was wondering if, I want to use myvtvmSmip.QuerySmip();  What should I pass in as the arguments?  This fuction suppose to return all 6 modules information. not sure how...
    Its definition is as follows:
    void VtvmSmip.QuerySmip(int smipStruct)
    "smipStruct points to the locaton where the data is to be sotred.  The Structure is of type vtvmSmip_SMIP_TYPE.  Look in vtSmipDefs.h for the definition of vtvmSmip_SMIP_TYPE.  Note:  The Plug&Play spec prohibits exporting data structures, so the structure is not exported."
    s
    I get and exception when I use this as:
    myVtvmSmip.QuerySmip(1);
    didnt work gave me exception..
    Another fuction I coulduse was this one.
    myVtvmSmip.ReadNonvol();
    I guess this returns 1 module at a time.
    Definition:
    voidVtvmSmip.ReadNonvol(short smodNmbr, System.Text.StringBuilder nvData)
    I suppose smodnmbr responds to each module, 0, 1, 2, 3, 4, and 5.
    I hope this isnt too much information.. I just want to be able to read the serial numbers of of these switch modules so I can process them.  If anyone can help, that would be great.  Thanks.
    Chan

    Hi Matt,
    Thanks for your replay. Right now im trying to query the VXI Tech SMP1200 double slot carrier that holds 6 SMP5004 modules.  But I have other SMP switches as well after I figure this one out, I belive if I can do this one, they should be the same for the other switches.
    SMP1200 Product Link:
    http://www.vxitech.com/ProductDescription.aspx?PID​=218
    SMP5004 Product Link:
    http://www.vxitech.com/ProductDescription.aspx?PID​=242
    I belive I have the drivers from the manufacturer.  When I try to implement the code below, I get an exception error.
    The logical address of the SMP1200 Carrier is 26. And it has a resource name of "VXI0::26::INSTR" as should in NIMAX.
    The SMP1200 holds 6 switch modules and I think its zero based ( Module 1 is 0, Module 2 is 1, Module 3 is 2 etc..up to 5)
    reading through the vtSmipDefs.h file included with the drivers, It says QuerySmip() returns information about 6 modules at once.
    ReadNonvol() reads one module at a time I belive.  Not sure how this works because using these functions, they dont return a value.  I don't know If I have to somehow read it back.
    [CODE]
    private void button1_Click(object sender, System.EventArgs e)
     // This code creates and initializes an instance of the VXIplug&play wrapper class
     // TODO:  Insert your appropriate values for address, idQuery etc.
     Agilent.TMFramework.InstrumentDriverInterop.Vxipn​pWrappers.VtvmSmip myVtvmSmip;
     myVtvmSmip = new Agilent.TMFramework.InstrumentDriverInterop.Vxipnp​Wrappers.VtvmSmip("VXI0::26::INSTR", true, true);
     // TODO:  Add your code here.  For example:
     // myVtvmSmip.Reset();
    myVtvmSmip.QuerySmip(1);
    [CODE}
    The code above is automatically generated using the built in Agilent T&M Toolkit driver wrapper wizard in the menu in Visual Studio 2003.  using this code, the intellisense menu does appear to show all the class members functions from the driver.
    When I run the program, I get an exception error.
    Ill post the exact data as soon as im back at work.
    I can also send you a link to the drivers and the help files that have some information about it. 
    Im kinda a newbie here with programming in C# and also VXI/MXI.  This is just part of my whole application im writing.  So far I've been able to query all the instruments(meters, scopes, etc) through the GPIB using IDN query so far.  Just the VXI left and its killing me.  Appreciate you help.  Look forward to your reply.
    Thanks Chan

  • My free trail for $29.99 as run out. want to join but i can't find serial numbers. help!

    my free trail for $29.99 as run out. want to join but i can't find serial numbers. help!

    Cloud programs do not use serial numbers... you download & install & activate by logging in to your paid Cloud account
    http://www.adobe.com/products/creativecloud/faq.html
    http://helpx.adobe.com/creative-cloud/help/install-apps.html
    http://forums.adobe.com/community/download_install_setup/creative_cloud_faq
    what is http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
    Cloud Getting Started https://helpx.adobe.com/creative-cloud/topics/getting-started.html

  • Get Serial numbers when saving a good receipt in MIGO

    Hello,
    I am working on a requirement to get the serial numbers entered manually or automatically while posting a goods receipt in tcode MIGO.
    I have tried to use the some of the steps suggested in earlier threads..ie, using the FM GET_SERNOS_OF_DOCUMENT' within the BADI MB_DOCUMENT_BADI~MB_DOCUMENT_BEFORE_UPDATE. But the FM returns NO_DATA_FOUND exception. The BADI MB_MIGO_BADI is not trieggered during the save..
    Can you suggest a way to get the serial numbers entered on the screen or generated automatically..
    Thanks

    We are facing the same problem now... Did you finally accomplished this?
    Regards,
    Idoia

  • R12 - API to Create Serial Numbers for Ordered Item in Receipt

    Hello All,
    I got a requirement to create PO Receipt using PL/SQL code. For that i have created PL/SQL code to insert data in following Interface tables,
    a) rcv_headers_interface
    b) rcv_transactions_interface
    After inserting data in Interface table executed Concurrent Program "Receiving Transaction Processor" to process data from Interface table to Base Table. This process is working perfectly fine for "Non-Catalog" requests. But if i try to process any PO having Inventory Item whose Serial Control is set to "At Receipt" then i got following error at Interface table,
    "Fail to validate serials".
    To resolve this issue i need to create and process serial number for Ordered Item selected to Receive. Can anyone guide me regarding how can I generate Serial Numbers using API for PO Receipts.
    Regards,
    Priyanka

    Hi,
    Just populate mtl_serial_numbers_temp table correctly (by specifying transaction_temp_id = RTI.interface_transaction_id)
    and serial number range in fm_serial_number - to_serial_number respectively.
    You may entermultiple MSNT records with same transaction_temp_id.
    You may need to populate PRODUCT_TRANSACTION_ID = RTI.interface_transaction_id and PRODUCT_CODE = 'RCV'.
    Oracle will create all the serial numbers for you when the records get processed.
    Thanks,
    Hrishi

  • Need help in query to display lot and serial numbers for a Wip Job Component

    Hi ALL,
    I have a requirement as below.
    I need to display lot and serial numbers for a Wip Job Component, i have a xml report in that for each wip job component i need to check whether it is a lot control item or serial control item based on that i need to display some data. so can you please help me to get the query to indentify the lot and serial number for a wip job component.
    Thanks

    Thank you for replying Gordon.  I did not remember I had asked this before.  I no longer have access to the other account. 
    What I need on the query is that I want  a list of items with the on order quantity and when we are expecting this order to be received.  The receiving date is based on the PO delivery date.  The trick here is that  I need to Master sku to show the delivery date of the component sku.  In my scenario all components have the same delivery date for the Master sku.  If there are mulitple delivery dates because each warehouse is getting them on a different date then I want to get the delivery date for that warehouse.
    Let me know if this is possible and if yes please guide towards a query for it.
    Thank you.

  • Unable to allocate the Serial Numbers for PO receipts?

    Hi,
    I want to allocate the serial numbers for the PO receipts for this i have done the following steps. (we are using the 11.5.10.2 version)
    Serial Control at Organization Parameter Level is
    Uniqueness With in Inventory items
    Generation At Item level
    Case 1: Items > Inventory Tab
    Serial
    Generation at Receipt
    Prefix xxx
    Serial 001
    Now, i have created the PO While performing the receipts the Lot/Serial tab is not enabled
    Note: I have generated the serial numbers from the On-Hand quantity > Generate Serial Numbers. then raised the PO and then performed the PO receipt.
    Important: Under Items >Inventory Tab here the Material status for Serials is disabled and Material Status is not found under Setup > Transactions, is this feature is new in R12, please clarify this dount also.
    Pleae advice.
    Regards,
    Kevin.

    Hi Kevin,
    I'm not sure whether you already got the answer for your issue.
    If you are still looking for answer then, can you check the following:
    - The INV org in which you have entered the serial number generation details (Prefix, starting serial no etc) for the item is same as the receiving org for PO receipt
    - While doing PO receipt the "Destination Type" is Inventory
    Material status control functionality for Lot and Serial is not new in R12. It is also available in 11.5.10. However your issue is not linked to Material Status for Serial.
    The default Serial status is 'Active' To define additional material statuses to be used in INV you need to use WMS responsibility even if you are not using WMS.
    Thanks
    -Supro

  • Are serial numbers tied to order/receipt

    I ordered an ipad 3G on July 3rd and have finally been rewarded today with a shipment confirmation. . . The wait is still killing me.
    I also just got a call from a friend that had a reservation at an Apple Store for an ipad 3G of the same exact capacity. This iPad is a gift for someone who will be way for several weeks. . . so (you probably see where this question is going) If I traded iPads with my friend -- meaning that I would take the one he has just picked up, and when mine is finally delivered I would drop off my unopened box for him to give as a present -- would there ever be any issues going forward with the serial numbers?
    Would the person receiving my friend's gift of the iPad that I ordered ever have trouble getting support? Would I be able to register the iPad that my friend just bought without any issues?
    I assume that it would be totally fine, but I know that there are weird rules implemented to keep people from buying more than three iPads so I thought that there might be restrictions that applied to this sort of swap.
    TIA for any information.

    Fernando.Gaglianese wrote:
    I ordered an ipad 3G on July 3rd and have finally been rewarded today with a shipment confirmation. . . The wait is still killing me.
    I also just got a call from a friend that had a reservation at an Apple Store for an ipad 3G of the same exact capacity. This iPad is a gift for someone who will be way for several weeks. . . so (you probably see where this question is going) If I traded iPads with my friend -- meaning that I would take the one he has just picked up, and when mine is finally delivered I would drop off my unopened box for him to give as a present -- would there ever be any issues going forward with the serial numbers?
    Would the person receiving my friend's gift of the iPad that I ordered ever have trouble getting support? Would I be able to register the iPad that my friend just bought without any issues?
    I assume that it would be totally fine, but I know that there are weird rules implemented to keep people from buying more than three iPads so I thought that there might be restrictions that applied to this sort of swap.
    TIA for any information.
    It would be like receiving a gift. Apple doesn't care! But keep the receipt from your friend, just in case, though I've never been asked for one. Once you register the iPad, it's linked to you, until such time that you do a full wipe of the memory, maybe to sell it to someone else.

  • How to block wrong serial numbers for goods receipt.

    "while doing grn via migo t code serial numberes are entered wrongly.
    means current serial number is 4 digits 2000,2001,2002,,, but  8 digit serial numbers(20002001) are entered wrongly in migo  ,101m type. when i am going to do grn for that materiall it is taking 8 digit serial number
    how to block those 8 digit serial numbers? How to continue current serial number series as(2000)"
    how to initialize serial numbers for a particular material

    This means that you are not mapped as a worker in the system
    Go to HRMS resp..create employment...then go to sysadmin user form and query the user for which u want to associate..
    then in the person field map the user which u created employment
    Then you should be able to access the all the purchasing forms
    Mahendra

Maybe you are looking for

  • Files inexplicably in Trash?

    I've noticed over the past week or two that a lot of files are winding up in my Trash Bin and I didn't put them there. A lot of Final Cut Pro auto saves in particular as well as some photo's and Garage Band recordings. I'm baffled. I've also got the

  • At the mercy of iTunes - the horror of random annihilation.

    I'm furious. Has anyone else found that iTunes periodically 'forgets' your entire library? "What? Music? No, no, I'm empty", iTunes insists. "What!? What about that 13gb that I've spend years compiling!?", I stammer. "H-have we met...?" It seems that

  • Urgent, BAD_OPERATION

    I have a Server and a client both written in Java & using Sun's ORB, the java version being J2SE1.4.0-b92 .I could bind an object to the NamingService(INS) on the Server Side. On my Client side ,I am able to retrieve the same object perfectly. But wh

  • HELP on SubMenu & Forms from XML

    I have loaded the Sub-Menu using XML   <?xml version="1.0" encoding="UTF-16" ?> - <Application> - <Menus> - <action type="add">   <Menu Checked="0" Enabled="1" FatherUID="4352" Position="0" String="Form1" Type="1" UniqueID="4355" />   <Menu Checked="

  • No sound using stereo mixer with speaker balance s...

    No sound using stereo mixer with speaker balance set between approx 95-100% of max to the right Setup: good quality functional soundcard, fine when audio not routed via Skype, mixer enabled, Skype mic / audio auto disabled, issue present when tested