Query to get receipt number from serial or lot num

Purchasing & Inventory forum can be used to discuss all features/issues related to Oracle Purchasing & Inventory.
Post Reply
anandsoni
Posts: 25
Joined: Thu Dec 28, 2006 3:12 am
Location: India

Query to get receipt number from serial or lot num

Post by anandsoni »

Dear All ,

I have some serial numbers & Lot numbes of some items for which i need to get receipt number in our Inventory from backend . Kindly give me sql query for the same .

Regards,

Anand Soni
kamlesh3659
Posts: 2
Joined: Thu Mar 19, 2009 2:34 am
Location: India

Post by kamlesh3659 »

Hi Anand ,

You can try the following querry :-

select c.receipt_num from
mtl_serial_numbers am,
rcv_transactions b,
rcv_shipment_headers c
where am.LAST_TRANSACTION_ID=b.TRANSACTION_ID and
b.SHIPMENT_HEADER_ID=c.SHIPMENT_HEADER_ID

Regards,
Kamlesh Nikhade
anandsoni
Posts: 25
Joined: Thu Dec 28, 2006 3:12 am
Location: India

Post by anandsoni »

Hi Kamlesh ,

above query not working .

Regards,

Anand
divakerp
Posts: 20
Joined: Sun Oct 29, 2006 11:15 am
Location: India

Post by divakerp »

Hi Anand,

The SQL provided by kamlesh should work.. Hope you might be working on the tool (SQL Plus or Toad) with userid other than APPS.

Try the below query with very small changes in Kamlesh Script.

select c.receipt_num from
apps.mtl_serial_numbers am,
apps.rcv_transactions b,
apps.rcv_shipment_headers c
where am.LAST_TRANSACTION_ID=b.TRANSACTION_ID and
b.SHIPMENT_HEADER_ID=c.SHIPMENT_HEADER_ID


Thanks
Diwaker Babu
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests