PO GRPO lead time
Hi,
If anyone can help me with a query it would be greatly appreciated.
What I'm trying to get to is the average lead time from PO to GRPO at a number of levels.
Here's an example of the code I've got for the first step:
SELECT T0.[ItemCode] 'Item Code',
AVG(DATEDIFF(DD,T1.[DocDate],T3.[ActDelDate])) 'Avg Lead Time SKU'
FROM [dbo].[OITM] T0
INNER JOIN [dbo].[POR1] T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN OPOR T2 ON T1.DocEntry = T2.DocEntry
INNER JOIN PDN1 T3 ON T0.ItemCode = T3.ItemCode
INNER JOIN OPDN T4 ON T3.DocEntry = T4.DocEntry
WHERE T1.DocEntry = T3.BaseRef and T1.DocDate > cast(getdate()-180 as date)
GROUP BY T0.[ItemCode]
HAVING (COUNT(T1.[DocEntry]) > 10)
So this calculates the average lead time from PO > GRPO for each Item where there has been at least 10 PO's made in the last 6 months.
However, if there's not 10 PO's made in the last 6 months at Item level I want to extend the calculation to brand and then category, for instance.
So, if less than 10 PO's made in the last 6 months at item level then calculate average lead time from PO > GRPO at brand level. If less than 10 PO's made in the last 6 months at brand level then calculate average lead time from PO > GRPO at category level.
My question is what is the best way to achieve this? Is it a union between separate sub queries? can it be done within a case statement containing separate sub queries? I'm not sure of the best way to progress. If anyone can provide an example of how it might look it would be greatly appreciated.
Thanks.
Hello,
What do you mean with brand level and category level?
Which fields in SBO?
Are you capable to make each query separated?
in you query use this:
WHERE T2.DocEntry = T3.BaseRef and T2.Linenum = T3.baseline and T3.basetype = 22 and T1.DocDate > DATEADD(mm, -6, GETDATE())
instead of this
WHERE T1.DocEntry = T3.BaseRef and T1.DocDate > cast(getdate()-180 as date)
because documents are linked on rows not on header.
Hope you can make a begin with this.
Regards Teun
Similar Messages
-
MM Report for Reorder and lead time
Hi,
Can anyone suggest me a report that can show information by materail such as min./max. quantity, re-order or safety stock, and replensihment lead time.
Thanks
Atifyou can create the query using MARC or just go se16 adn enter the MARC table and pull the data.\
Displayed Fields: 8 of 8 Fixed Columns: 2 List Width 0900
Material Plant Reorder Point Safety stock Min. lot size Max. lot size Total RL time Min SafetyStock
MATERIAL Z001 0.000 0.000 5,000.000 350,000.000 0 0.000 -
Lead time values are not appearing in the report for current year.
Hi friends,
Iam checking a report in production. where lead time values are displayed as 0 for 1 key figure lead time3 (w/0 dim) . i found there is a formula for this it shows like NODIM ( 'Lead Time 3' ).and there is a value for cal.lead time
how can i get values in the report.
Thanks ,
VRV.Hi,
Although your question is not clear, I understood that the formula built on that KF is NODIM. Basically it means, units of measurement is not considered when calculating.
Eg: 5 Minutes + 5 Kilograms = 10
You please try to analyze your KF by the above logic. Then you would be able to figure out why the data is not appearing in the report..
Assign if helps...
Regards,
Suman -
We are currently not able to manage schedule ship date proposed by ATP when our warehouse is closed. For example , we would like that ATP doesn't propose any schedule ship date for the first of May , which is a non working day in France. The constraint is that we don't want our purchase need by date to be impacted by the process.
I tried to closed one day in FR1 calendar and, after testing with order management, it appears that ATP didn't propose the closed day, so that's fine, but, our purchase order lead time was increased of 1 day and this is not what we expected.
Can you help us to find the right process.
ThanksHi Sandeep,
when we try to Rescheduled out the PO and the request is errored out the with the error:-
Start of log messages from FND_FILE
reschedule fails
old date in planner workbench: 19-MAY-11
new date: 07-JUN-11
header: 417474
line: 605652
po number: 2049031859
shipment no: 1
The need by date/promised date in the source instance is not the same as the need by date/promised date in the destination instance.
In the source instance,
The need by date is 19-MAY-11, and the promised date is 19-MAY-11
End of log messages from FND_FILE
--------------------------------------------------------------------------- -
Sales order is not taking shipping transit lead time into consideration
Hi,
We have following scenario -
1. Sales order is created in AT organization.
2. There is no onhand in any of the organizations including AT.
3. The scheduled ship date for sales order comes as order creation date + item lead time = 15-Sep-2011.
3. PO for sufficient quantity is available at UK org with need-by date as 01-Jun-2011.
5. Post processing item lead time for this item is 1 day.
4. intransit shipment is setup between UK and AT.
5. Shipment Transit lead times are also set up at 3 days between locations of UK and AT.
6. ASCP plan is run.
7. Sales Order is unscheduled and rescheduled via API MSC_ATP_PUB, which takes the ATP details from UK (based on the sourcing rules). The sheduled ship date comes as 02-Jun-2011 (PO need-by date + 1 day of post processing).
8. Expectation is that API should also take transit lead time into consideration while calculating the ATP dates and hence the Expectation is that scheduled ship date should come as 05-Jun-2011 (PO need-by date + Transit lead time + 1 day of post processing).
Please let me know
a. if this is standard functionality of oracle or not.
b. if this is standard functionality then what setups are missing required for the same to be achieved.
UAT is held up for this issue. Please help urgently.
Regards.Oracle is supposed to take the in-transit time into consideration.
Are you running a constrained plan or an unconstrained one?
Make sure you defined the inter-org network as described in http://download.oracle.com/docs/cd/A60725_05/html/comnls/us/inv/shipne01.htm.
or go to Inventory > Setup > Organization > Inter-Location Transit Times and enter it there.
Sandeep Gandhi -
User exit or Badi for changing the lead time in ATP check in VA01/VA02
Hi All,
Currently, SAP standard functionality takes up the lead times maintained in material master to create the schedule lines in the sales order in VA01. I am looking for some user exiit/Badi/Enhancement point where I can change the lead time. This is somewhat urgent so any help in this regard is appreciated.
Regards,
Sandeep
Edited by: Sandeep Gaitonde on Sep 1, 2011 9:16 PMHi Sandeep,
These are the user exits will trigger in va01 .
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
Please check this and post .
Regards,
Madhu. -
Purchase-How could I consider Transit time and lead time in imported mat.
My doubt refers about master data configuration of imported material.
My sittuation is :
Material - Lead Time: (depend on source)
Transit Time: (depend on source)
My company is responsable to transport all bought material. Besides, I can buy of differents suppliers.
Considering these rules, It s impossible to fix dates in material master, because material purchase is related with center and not with supplier. By the way, I need to discover other master data to configure it maybe : Inforecord, quotization... Whatever...
I need to correct this to generate Purchase order with dispatched date of my source against required date of my company after execute MRP.
I tried to study this scenario but until now I ve not got a solution.
Probably, you have had it before and can help me.
I hope your help!
Thank you!
Regards!Create POs with respect to either PIRs (if you don't need to print out) or Contract/item, both of these are Vendor/material specific so you can set lead times accordingly . Probably best to use Source List and set requirement in material master too (Purchasing view).
Regards,
nick -
Purchase order with transportaion time+replenishtment lead time in PP/DS
The process: Location 0011 buys by supplier 1080 with normal purchase order.
Delivery lead time 30 days of this 20 days transportation time and 10 days replenishment lead time of the supplier. Delivery free on board.
What to do that the date for free on board is in the purchase order.for example.: Beginning November.
And the inbound delivery date end of November in the md04 R3 and product view PP/DS.Yes 30 days is the total lead time . I am not so good in modelling of FOB in PP/DS.
In R3 we have a not so good solution for FOB. There we have add the transporting time inte the GR Processing Time. This is not so good.
The solution beeing
in the purchase order the date for finish the supplier on board
and in the md04 R3 and product view PP/DS the to arrive in the firm location
kind regards Feth -
Hi All
Is there any standard report to find PR to PO lead time.
Formula to find PR to PO lead time = PO creation date - PR release date
Regards
Satish Kumar>
satish kumar wrote:
> Hi Afshad
>
> How do I get PR release date from EBAN table because the field "release date" in table EBAN is not the actual release date.
Check this answered link:
Re: Table for PR Release date -
Hi Gurus
What report can be run to provide the average time taken from PO creation to Goods reciept? IE how do we measure actual delivery lead time
Thanks in advance
BRHello
Thanks for reply.
IF this is not , could you pl let me know the correct procedure and any standard report for measuring the Delivery time for Purcsase Order based on materials.
As per your exnample , why a person should enter the delivery date manually , it should should come by system based on PDLT maintained ..
for tht reason only we are looking to review our materials to update correct PDLT.
thanks.. -
How to store lead-time and price per MPN for a single Item
We are probably one of the only CEM's that use Oracle Applications in a one-to-one MPN-IPN (Oracle Item Part Number) relationship. We do not currently store multiple Manufacturers under a single Item. Rather, we use the Customer Item Cross Reference to rank the customer's AML, with each IPN tied to a single MPN.
We are looking at moving into a one-to-many "world" in Oracle but are not sure how we can handle different pricing, lead-time, preference, status (prototype, production, obsolete, do not use), etc. for each Manufacturer's Part Number under a single Item. How are other CM's handling this???Hi Greg,
Unfortunately, DIAdem Datafinder doesn't really support much in the way
of Date/Time search outside of the File Level Creation Date property.
In order to make the creation time of the Channels searchable you would
want to create some custom properties (or use the existing RegisterInt1
- RegisterInt6) to define your own searchable properties.
For example, since you know that you have one TDM file per day, you can
start your search by find the desired day on the File Property Level,
searching the "Creation Date" property. When you store your TDM
properties, you could store the hour creation as an integer (and
thereby searchable) in one of the RegisterInt properties of the
channel, or create your own custom "Hour" channel. You could similarly
save the minute and second property in their own custom properties.
Then, since you're saving integer values, you can then search those
values to determine the time that the channel was created.
I realize that this isn't ideal or elegant, as in total it requires 4
searches (date, hour, minute, second). But that is the most
straightforward way of searching your channels by creation date/time.
Hope this helps Greg, let me know if you have any other questions.
Dan Weiland -
Dear Gurus,
I want to calculate lead time between purchase order and goods receipt.how to do that???
Am having some doubts.
Does the lead time links with
Planned Delivery Time
Goods Receipt Processing Time
Purchasing Processing Time in material master. plz explain???Hi,
If you create PR for a material, using MRP, then the planned delivery time would be picked up from the material master, please note that there is no source maintained yet in the PIR, so obviously that rules out planned delivery time of PIR and Vendor Master( even when u convert this P.R to P.O the planned delivery time will not change and will not be taken from the PIR)
Now if you directly create a P.O then the planned delivery time of the PIR is picked up , please note this difference.
I would recommend that you change the planned delivery time in the material, mnake it different from the planned delivery time of the PIR, and then run MRP, You will see that the planned delivery time in the PR would be based on the material planned delivery time.
Even if you assign source and convert this P.O using ME59 the PDT will not change.
Then you can try and create a P.O directly with the vendor, here you will notice that the PDT flows from the info record.
Please let me know if this addresses your concern.
Regarding your soure list issue, either you can remove the source list mandatory tick in MM or add the vendor whose PIR you are using into ME01, and it will definitely work.
Regards
Shailesh
Edited by: Shailesh Rajan on Jun 30, 2011 7:51 PM -
PO Lead Time cannot capture the time taken for shipping!
Dear All
I understand that we have PO lead time = PO Processing Time (Working Day) + Planned Delivery Time (Calendar Day) + GR processing time (working day).
And this PO lead time will be added on top of my PO Creation Date to defer the actual goods availability date.
My question:
1. Planned delivery time is the time taken from vendor place to send out the goods to my warehouse. What if it is overseas purchase where goods leaving vendor's Port will first arrive in my country custom, and it will take 3 days to do clearance. once it is cleared, forwarding agent will delivery goods from my country custom to my warehouse. In this case, how do I capture it in SAP system for the planned delivery time as it has 4 periods of time now
a. Time taken from vendor's port to reach my country's port
b. Time taken for my country custom to do clearing
c. Time taken for forwarding agent to fetch goods from custom to my warehouse
d. Time taken for unpack, take out , count, inspect and put for use (GR processing time)
Do I need to use user Exit?
Thanks
Edited by: Daimos on Apr 27, 2009 6:52 PMDear dogboy.
I think we must use feature on the PO Confirmation Control (CC) Key at PO Item Level:
ED - Estimated Time of Departure from Overseas Port.
EA - Actual Time of Departure from Overseas Port.
EA - Estimated Time of Arrival
AA - Actual Time of Arrival
And the purchaser will maintain the value of each of the CC Key each time they are notified by the vendor.
And we need to come out with a Customised Report to capture those CC dates entered so that finance is able to prepare $ in advance if the moment the EA is maintained, meaning the estimated date of arrival at the Custom there.
But the problem is that PO User Exit is only at the header of Confirmation Control Key but not capture the DATE field we entered for each CC.
That was the problem I last encountered. -
Sales Order - How to make Delivery Date default to Lead Time?
My scenario is this:
- We have items that go thru several production stages before it is a finished item that can be sold.
- Each production item has its lead time loaded.
- I would like the delivery date of a finished item to equal the sum of the productions items lead times.
I dont want my sales people to have to look at calendars are calculate how long until something is ready for delivery.
I would like my sales orders delivery date to default to a date that sales people can use.
Is this possible? I would think this would be part of core functionality but I do not see this.
Thank you,
John SeftonJohn,
Knowing what Items are added to the Sales Order at the time of entry would not be possible without SDK since the line level details are stored internally in temp location.
Only on Submitting the Sales Order would it be possible to calculate the date.
Let me know how you would want to move on this
Suda -
MULTIPLE LEAD TIME FUNCTIONALITY
Hi Guys,
can anyone explain about "Multiple lead time functionality in SAP".
whether its related to any particular modules.pls provide any inputs or send some link were i can get this requirements,hi
please refer to this document
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0901cba-f49e-2910-748c-d7ce4c0c4c1c
you may find it helpful
regards
Aakash Banga
Maybe you are looking for
-
Hi Experts In which tabe we will get the status of the sale order.But in the screen it shows VBSTT-GBSTA_BEZ. VBSTT is astructure Regards Mano
-
MS office report not working when application is compiled (application builder)
I'm finishing up an application that includes several MS office reports (opens a MS Word template). The template is opened, the bookmarks are filled, then the file is saved (to our internal network) as a .doc file. The New Report.vi is used to open t
-
Printing with a USB printer using Airport Extreme and Vista
I have a airport extreme and it prints fine with all of my Macs. I bought a VAIO installed with Vista and the lastest service pack. Here is what I have done * Installed Bonjour Printing software on the Windows Machine * Installed the print drivers on
-
I just downloaded "How to Lose a Guy in 10 Days" from the iTunes store about an hour ago, && the download completed. Then I plugged my iPod Touch into my MacBook && clicked "sync" on my iTunes, && it said..."How to Lose a Guy in 10 Days" was not copi
-
Help! I am putting together a website that is sort of a newsletter. I would like to put a monthly calendar on it. I can obviously put a PDF file of a calendar that I've manually created, which is nice if visitors want to print it out, but I'd really