Anda di halaman 1dari 4

3/5/13

Document Display

How To Check Inventory Out And Inventory In Columns In IDSM Indirect Inventory Table [ID 557809.1]
Modified: Jun 5, 2009 Type: HOWTO Status: PUBLISHED Priority: 3

In this Document Goal Solution References

Applies to:
Oracle Trade Management - Version: 12.0 Information in this document applies to any platform. "Checked for relevance on 12-MAR-2009"

Goal
Indirect Sales Management How to check the Inventory Out column value for a customer in Indirect Inventory sub tab ? Oracle Trade Management Super User responisbility > Indirect Sales Management > Indirect Inventory

Solution
Neighbouring notes about this screen are : Note Note Note Note 310014.1 834495.1 300196.1 557229.1 What Is Recomended For Setting Ozf: Global Start Date Before Using Inventory Tracking? What is the select behind Inventory Tracking Tab In Trade Management How To Populate Inventory Items Into Inventory Tracking Tab In Trade Management? How Is Filled The Inventory Out Column In Indirect Inventory Screen

A) Example for Oberoi Hotel customer : To get the party_id value of the customer :

s e l e c tp a r t y _ i d ,p a r t y _ n a m e f r o mh z _ p a r t i e s w h e r eu p p e r ( p a r t y _ n a m e )l i k eu p p e r ( ' % O b e r o i % H o t e l % ' ) ;

You can adatp for any other customer to check B) To get the start value of the report (start date is coming from Time structure setup) : Profile Name --"OZF: Global Start Date (mm/dd/yyyy)"

( s e l e c ta . p a r t y _ i dp a r t y _ i d , a . i n v e n t o r y _ i t e m _ i di n v e n t o r y _ i t e m _ i d , T O _ D a t e ( n v l ( ' 0 4 0 1 2 0 0 7 ' ,' 0 1 / 0 1 / 1 9 7 0 ' ) ,' m m d d y y y y ' )b e g i n _ d a t e , T O _ D A T E ( n v l ( ' 0 3 0 6 2 0 0 8 ' ,t o _ c h a r ( s y s d a t e , ' M M d d y y y y ' ) ) , ' M M d d y y y y ' )e n d _ d a t e ,
https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=ny2wa85uo_135 1/4

3/5/13

Document Display

' B E G I N 'd a t e _ t y p e , s u m ( n v l ( a . c o m m o n _ q u a n t i t y _ i n ,0 ) )* 1i n _ i n v e n t o r y , s u m ( n v l ( a . c o m m o n _ q u a n t i t y _ o u t ,0 ) )* 1o u t _ i n v e n t o r y , s u m ( n v l ( a . c o m m o n _ q u a n t i t y _ m a n u a l ,0 ) )* 1m a n u a l _ a d j u s t m e n t f r o mo z f _ i n v e n t o r y _ s u m m a r y _ m va , ( S E L E C Tt i m e _ i d F R O MO Z F _ T I M E _ R P T _ S T R U C T W H E R Er e p o r t _ d a t e =T O _ D a t e ( n v l ( ' 0 4 0 1 2 0 0 7 ' ,' 0 1 / 0 1 / 1 9 7 0 ' ) ,' m m d d y y y y ' ) A N DB I T A N D ( r e c o r d _ t y p e _ i d , 1 1 4 3 ) = r e c o r d _ t y p e _ i d )b w h e r ea . t i m e _ i d=b . t i m e _ i d a n dp a r t y _ i d=& p a r t y _ i d _ f r o m _ A g r o u pb ya . p a r t y _ i d , a . i n v e n t o r y _ i t e m _ i d , n v l ( ' 0 4 0 1 2 0 0 7 ' ,T O _ D a t e (' 0 1 / 0 1 / 1 9 7 0 ' ,' m m d d y y y y ' ) ) , n v l ( ' 0 3 1 4 2 0 0 8 ' ,s y s d a t e ) , ' B E G I N ' )

C) To get the end value of the report (end date is current date (systade by default)

( s e l e c ta . p a r t y _ i dp a r t y _ i d , a . i n v e n t o r y _ i t e m _ i di n v e n t o r y _ i t e m _ i d , T O _ D a t e ( n v l ( ' 0 4 0 1 2 0 0 7 ' , ' 0 1 / 0 1 / 1 9 7 0 ' ) ,' m m d d y y y y ' )b e g i n _ d a t e , T O _ D A T E ( n v l ( ' 0 3 0 6 2 0 0 8 ' ,t o _ c h a r ( s y s d a t e , ' M M d d y y y y ' ) ) , ' M M d d y y y y ' )e n d _ d a t e , ' E N D 'd a t e _ t y p e , s u m ( n v l ( a . c o m m o n _ q u a n t i t y _ i n ,0 ) )i n _ i n v e n t o r y , s u m ( n v l ( a . c o m m o n _ q u a n t i t y _ o u t ,0 ) )o u t _ i n v e n t o r y , s u m ( n v l ( a . c o m m o n _ q u a n t i t y _ m a n u a l ,0 ) )m a n u a l _ a d j u s t m e n t f r o mo z f _ i n v e n t o r y _ s u m m a r y _ m va , ( S E L E C Tt i m e _ i d F R O MO Z F _ T I M E _ R P T _ S T R U C T W H E R Er e p o r t _ d a t e =t o _ d a t e ( n v l ( ' 0 3 0 6 2 0 0 8 ' ,t o _ c h a r ( s y s d a t e , ' m m d d y y y y ' ) ),' m m d d y y y y ' ) A N DB I T A N D ( r e c o r d _ t y p e _ i d , 1 1 4 3 ) = r e c o r d _ t y p e _ i d )b w h e r ea . t i m e _ i d=b . t i m e _ i d a n dp a r t y _ i d=& p a r t y _ i d _ f r o m _ A g r o u pb ya . p a r t y _ i d , a . i n v e n t o r y _ i t e m _ i d , n v l ( ' 0 4 0 1 2 0 0 7 ' ,T O _ D a t e (' 0 1 / 0 1 / 1 9 7 0 ' ,' m m d d y y y y ' ) ) , n v l ( ' 0 3 1 4 2 0 0 8 ' ,s y s d a t e ) , ' E N D ' )
The report do the difference between End Dates Values and Start Date value (Inventory Tracking) D) The base tables of any transaction which will be present on this screen is : ozf_sales_transactions_all
https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=ny2wa85uo_135 2/4

3/5/13

Document Display

To check Inventory Out column of Inventory tracking tab do

s e l e c t* f r o mo z f _ s a l e s _ t r a n s a c t i o n s _ a l l w h e r es o l d _ t o _ p a r t y _ i d=& p a r t y _ i d _ f r o m _ a a n dt r a n s f e r _ t y p e=' O U T ' a n dt r a n s a c t i o n _ d a t eb e t w e e nT O _ D A T E ( ' 0 4 0 1 2 0 0 7 ' , ' M M D D Y Y Y Y ' )A N DT O _ D A T E ( ' 0 3 1 4 2 0 0 8 ' , ' M M D D Y Y Y Y ' )

To Explain the Inventory_int column of Inventory tracking tab

s e l e c t* f r o mo z f _ s a l e s _ t r a n s a c t i o n s _ a l l w h e r es o l d _ t o _ p a r t y _ i d=& p a r t y _ i d _ f r o m _ a a n dt r a n s f e r _ t y p e=' O U T ' a n dt r a n s a c t i o n _ d a t eb e t w e e nT O _ D A T E ( ' 0 4 0 1 2 0 0 7 ' , ' M M D D Y Y Y Y ' )A N DT O _ D A T E ( ' 0 3 1 4 2 0 0 8 ' , ' M M D D Y Y Y Y ' )

For now we will manage case of source code = 'OM' ie Sales Order In case the involved transactions have ozf_sales_transactions_all.source_code = 'OM' Please check as below : Check header_id in the output of this script D in this table ozf_sales_transactions_all

Then run belwo queries E) anf F) with these Header_id as a criteria E) select * from oe_order_lines_all where header_id in (&header_id1,&header_id2, &header_id3 , &header_id4, &header_id5);

From this table you will retrieve order_number which will allow you to check manually in Order Management > Sales Orders > Organizer and retrive orders to check if there are RMA or not

F) select * from apps.oe_order_headers_all where header_id in (&header_id1,&header_id2, &header_id3 , &header_id4, &header_id5);

https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=ny2wa85uo_135

3/4

3/5/13

Document Display

The fields return_context and return_attributeX will indicate you transaction type and transaction_id on which the retrun action is done : e.g. RETURN_CONTEXT ORDER RETURN_ATTRIBUTE1 1314 RETURN_ATTRIBUTE2 1105

One example of Inventory Out imput with 'OM' source code is RMA orders which is above example is done on order with header_id = 1314 and order_line_id = 1105

References
BUG:6881055 - HOW IS FILLED THE INVENTORY OUT COLUMN IN INDIRECT INVENTORY TAB NOTE:557229.1 - How Is Filled The Inventory Out Column In Indirect Inventory Screen NOTE:834495.1 - What is the select behind Inventory Tracking Tab In Trade Management

https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_adf.ctrl-state=ny2wa85uo_135

4/4

Anda mungkin juga menyukai