Purchase Order with Goods Receipts Query
Hi Guys,
Am still getting to grips with JOINS, I am trying to get a query completed that will show all Purchase Orders that have outstanding items on them, but I would like to also show any corresponding Goods Reciept Notes for that Purchase Order, showing the individual lines with outstanding balances. Here is what I have so far:
SELECT DISTINCT T0.[CardCode] as [BP Code], T0.[CardName] as [BP Name], T0.[DocNum] as [PO Number], T0.[DocDate]as [PO Date], T1.[ItemCode] as [Stock Item], T1.[Quantity], T1.[OpenQty], T2.[DocNum] as [Goods Receipt No], T2.[DocDate]as [GR Date], T3.[ItemCode] as {Stock Item], T3.[Quantity], T3.[OpenQty] as [Left to Deliver]
FROM OPOR T0 INNER JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry, OPDN T2 INNER JOIN PDN1 T3 ON T2.DocEntry = T3.DocEntry
WHERE T0.[DocDate] >=[%0] AND T0.[DocDate] <=[%1] AND T0.[CardName] =[%2]
I do only want to show the BP once for a given PO (hence my attempt at the DISTINCT command). Could someone be so kind as to point me in the right direction as I will want to turn this into a Crystal Report as well.
Many thanks in advance
Sean Martin
I have double checked your query logic. It can not hold true. Here is the right logic:
SELECT T0.[CardCode] as [BP Code], T0.[CardName] as [BP Name],
T0.[DocNum] as [PO Number], T1.[ItemCode] as [Stock Item],
T1.[Quantity], T1.[OpenQty],
SUM(isnull(T3.[Quantity],0)) as 'Received Qty',
T1.[Quantity]-SUM(isnull(T3.[Quantity],0)) as [Left to Deliver]
FROM dbo.OPOR T0
INNER JOIN dbo.POR1 T1 ON T0.DocEntry = T1.DocEntry
LEFT JOIN dbo.PDN1 T3 ON T3.BaseEntry = T0.DocEntry AND T3.BaseLine = T1.Linenum
LEFT JOIN dbo.OPDN T2 ON T2.DocEntry = T3.DocEntry
WHERE T0.[DocDate] >=[%0] AND T0.[DocDate] <=[%1] AND T0.[CardName] =[%2]
GROUP BY T0.[CardCode], T0.[CardName], T0.[DocNum], T1.[ItemCode],
T1.[Quantity], T1.[OpenQty]
The column 'Left to Deliver' should be identical to 'Remaining Open Qty'
Thanks,
Gordon
Similar Messages
-
Report to Purchase Orders with Good Receipt and pending for Invioce Receipt
Hello,
I'm looking a report bring me Purchase Orders with Goods Receipt and waiting for Invioce Verificacion (MIRO).
I appreciate any help.
Regards,
HectorHi,
ME2N - In selection screen, enter Selection parameters as
WE102 i.e. Goods receipt exists and in output screen put a filter on "Still to be invoiced (qty)" and "Still to be invoiced (val.)" as not equal to zero OR greater than Zero.
OR use RECHNUNG i.e. Open invoices and execute the report
OR Use MB5S - GR/IR Balances -
Purchase Order Module - Goods Receipt PO - Goods Return - AP Invoice
Hi all expert,
I have a senario is :-
Open Purchase Order Module -> Goods Receipt PO -> Goods Return -> AP Invoice
Puchase Product A by "Purchase Order" with Qty 6,000 After "Good Receipt PO", found out 3,500 pcs is out of spec then "Goods Returns" 3,500 pcs. Then continue do "AP Invoice" with Qty 2,500 pcs.
Question is 1 week later, the supplier replacement back 3,500 pcs, so how am i going to start to steps? since PO have been close.
When i at "Goods Receipt PO" wanna to copy from "Goods Return", it is show nothing.
Your advise is highly appreciated.
Thanks.
Regards,
DannyHi Danny
i think you have to create a new PO then GRN then PI...since you copied the PO to GRN it will show as closed as there is a target doc. linked to the PO. A PO can be changed only if there is no target doc linked to it .
Hope this helps.
Bongani -
Automatic Purchase Order upon Goods Receipt 101/161
Hi Guys,
Hope everyone is well. I would like to know in as simple terms as possible, what is the use of Automatic Purchase Order upon Goods Receipt mvt 101 or 161. Can someone explain to me the purpose of this? or applicable in which type of business scenario?
Because i think, if it is upon Goods Issue, then it is understandable, you would want to top up the stocks, but upon GR? Why?
This is a non configuration question, just a business process question..>
Nazrin84 wrote:
> Hi Guys,
>
> Hope everyone is well. I would like to know in as simple terms as possible, what is the use of Automatic Purchase Order upon Goods Receipt mvt 101 or 161. Can someone explain to me the purpose of this? or applicable in which type of business scenario?
>
> Because i think, if it is upon Goods Issue, then it is understandable, you would want to top up the stocks, but upon GR? Why?
> This is a non configuration question, just a business process question..
This process is used in case of emergency when stock is required in the plant and we dont have time to first create PO and then get its approval and follow the normal process. In the case of emergency, we tell the vendor to deliver the material and on receipt of this material we take it into the system through GR and the corresponding PO is automatically generated.
Usually this is option available in system, but it depends on the clients requirement whether they want this option available to end users or not. Mostly our clients prefer not to have this option enabled, as this way can lead to irregularities by the users.
So they prefer to follow the normal process, but this process for above scenario is followed on war footings that way the GR takes place immediately when Goods are received. -
Last purchase order and goods receipt for material
Hello to everyone,
is there any standard report where I can see the last purchase order and goods receipt for a material?
RegardsHi,
Latest PO you can get from ME2M, by giving input as material and scope of list as best.
Latest GR date can be get from MB51, by giving input as Material and movement type as 101.
Regards,
Prabu -
Price Varaince With ref to Purchase Order for Good Receipt
I want to set the Tolerance limit for GR using PO Price.I don't want to receive goods more than 500$ of PO Price ..In SPRO -MM- IM - Tolerance key for GR , There are two variance , one for Variance in the purchase order price quantity
- Tolerance key B1 (error message)
- Tolerance key B2 (error message)
When i set them for 500 $ , it is not RE -appearing in the screen itself ..Any input ?Hi
First Goto , OLMB----->Define Attributes of System messages--
.> Activate, The message, Version 00, Application Area M7, Message No: 022 in to ERROR.
Then, For the Line Item of PO Price 10,000$, choose the line item -
> In Item Detail----->In Delivery Tab----->Dont give any Over delivery tolerance and Unlimited delivery tolerance.
For the Line Item of PO Price 100$, choose the line item -
> In Item Detail----->In Delivery Tab-----> give your required Over delivery tolerance limit in %
Your problem will be solved
Reward if useful
Regards
S.Baskaran -
Quantity & price difference between purchase order and goods receipt
goods receipt against purchase order
inventory a/c dr
gr/ir clearing a/c cr
if there is any quantity & price difference in between PO and GR ex- PO order -1000 bags @ rs 10 but good receipt 900 @ Rs 10
then how the price difference and quantity diference treated in sap
what will be the entries, how we adjust it.
regards
sibakindly note that depending on the Moving average or standard price (price control flag in mm01) the difference will either get adjusted with the material or to the price difference account accordingly.
in the example for standard price
gr for po :10 bags @ 11
dr stock 100
cr gr/ir 110
dr price diff 10
the above is in case of material maitained at 'Standard price' in the mm03.
regards
eashwar -
Automatic creation of purchase orders at goods receipts
Dear guru ,
I want to create purchase order when i execute GR Returns (mvt 161).
Where I define the purchase order document type that I want to automatic create ?
Thanks.Dear,
Before configuration of setting for creation of Purchase Order automatically, consultant needs to under stand the business requirement and he should be aware of the difference between the different components of Material Management. Such as difference between creation of purchase order automatically in Purchasing and creation of purchase order automatically in Inventory Management. In SAP we can take this activity in both the sub components (Purchasing as well as in Inventory Management).
By this time, I hope that you have understood that there are different settings for each of these components and we have to configure two different set of information to meet each requirement separately. Hence let me define this activity as follows:
Create Purchase Order Automatically in Purchasing
For creation of purchase Order automatically from Purchase Requisitions we need to do the following additional settings in addition to our standard ones.
Activate u2018auto PO' indicator for material master
Activate u2018auto PO' indicator for vendor master
Create Purchase Requisitions using T Code ME51 or ME51N
Use T. Code ME59 or ME59N for auto conversion of PR into purchase order
Create Purchase Order Automatically in Inventory Management
For creation of purchase Order automatically in Inventory Management we need to do the following settings which are independent of the setting what we do in Purchasing for creation of automatic PO from PR.
Define one of the purchase organizations as Standard Purchase Organization
Assign your plant to Standard Purchase Organization
Maintain purchasing information record with price
Maintain the indicator for movement types 101 & 161
Define Default Values (MB01) for Document Type
Now you can enter a goods receipt without entering the purchase order number, a purchase order will be created automatically when you post the goods receipt. All such goods receipt will be valuated at the price maintained in the purchasing information record.
First you can try this with T. Code MB01 if it is working then try with T. Code MIGO, if you face any error or functionality is not working check with your basis consultant some authorization or some patches may be missing. Ask him to apply all relevant patches.
Try using automatic PO for 161 movement for transaction MB01. For MIGO Goods return, its not allowed to create automatic PO due to system settings. This info as I know.
Regards,
Syed Hussain. -
Re-price of Purchase Order at Goods Receipt
If have the requirement that on Goods Receipt we need the Purchase Order to be re-priced. If I set the price date to 5 in the PO, this causes a re-price at GR, but is appears to do a complete re-price and removes any manually entered prices. Also, though the GR values reflect the re-price, the PO still shows the old values. The actual PO is not updated, even though a re-price for the GR has occured.
I have also tried using the IS-OIL functionality whereby you assign the value 'U' to the condition category in the price conditions you require to be re-priced. This appears to work in that any manual prices entered remain. However, again, the PO does not reflect the price change.
Can anyone please tell me how to get the PO to be updated, rather than just the values used in the GR.
Thanks in advance.HI,
This is not possible. You have to play with the condition types for this.
This is like an example of Gold, you order gold at one price but at the time of recieving gold you pay another price. You may check the condition type created for gold purchase.
Thanks & Regards,
Kiran -
Change of Purchase order after Goods Receipt
Hi Guys,
Can the Purchase order be changed after the Goods Receipt??
If then what is the transaction Code used or what are the steps followed for the change of PO after GR(goods receipt)???
Regards
JinoSir,
It's not possible to change the PO for specifica line item if GRN exist against it..
Pl revese the GRN and then ammend the PO in terms of quantity or price or delievery schedule..
The Relase strategy for PO will get affected..
Typical exception..
In certain cases it can be seen.
The GRN exist for line item..
The ammedndment done in TAX breakup resulting in derelease of PO..
and again PO has been release..
So Sir,
If the changes is in terms of quantity then pl reverse the GRN..
Otherwise go for ammndments,,with the pending GRN..
Edited by: nj on Jun 9, 2009 8:46 AM -
Purchase order and goods receipt
Hello to everyone,
is there any way to view only the last purchase order and the last goods receipt for several materials?
RegardsLast PO Number for Several materials can be viewed using T code ME2M & Last GRN Number for Several materials can be viewed using T code MB51.
Regards
Bhavesh Mistry -
Purchase orders and goods receipt
Hi all,
for an excess stock scenario we need to combine the purchase orders vs the goods receipt information.
Obviously the place to go for PO is 2LIS_02* and for GR it is 2LIS_03*. Though I am still wondering how I can match the values coming from these two sources.
The main question two answer would be:
For a given point in time I need to see for one PO the amount of goods receipt that belongs to that PO. Is there any table where I can find that information combined ? And if so is there a BC extractor ?
I have searched the forum for quite a while, but as usual I might have raised the wrong questions :-).
I very much appreciate your time and help.
kindest regards
HornyHI Horny,
Can you use the Following Tables:
S039 - > LETZTABG - Date: last (i.e. most recent) goods issue
EKPO -> EBELN - Purchasing Document Number.
You can create View by using these two tables (Material Number is the Common) and uploade the data.
Hope this will be helpful for your question.
Thanks
Rajesh
Message was edited by:
rajesh -
Purchase Order Against Good Receipt PO
Dear Experts,
I want to display PO Against GRPO. I am little bit confused about above query output.
For Example : i have an total 10 Items in PO but in GRPO only 6 Items will be there but with using above query i only find matching items records.
I want all item detail in Purchase order.
SELECT DISTINCT T0.[DocNum] as 'PO No', T0.CardName as 'PO CardName', T1.ItemCode as 'PO ItemCode', T1.Dscription as 'PO Item Desc', T1.Quantity as 'PO Item Qty', T1.PriceBefDi as 'PO Item Unit Price' ,((T1.PriceBefDi-(T1.PriceBefDi*T1.DiscPrcnt/100))*T1.Quantity) as 'PO Price Aftr Disc', T3.[DocNum] as 'GRN No', T3.CardName as 'GRN CardName', T2.ItemCode as 'GRN ItemCode', T2.Dscription as 'GRN Item Desc', T2.Quantity as 'GRN Item Qty', T2.PriceBefDi as 'GRN Item Unit Price', ((T2.PriceBefDi-(T2.PriceBefDi*T2.DiscPrcnt/100))*T2.Quantity) as 'GRN Price Aftr Disc'
FROM OPOR T0
INNER JOIN POR1 T1 ON
T0.DocEntry = T1.DocEntry
INNER JOIN PDN1 T2 ON
T1.DocEntry= T2.BaseEntry AND
T1.LineNum=T2.BaseLine
INNER JOIN OPDN T3 ON
T2.DocEntry = T3.DocEntry
where T0.DocNum = ' '
Thanks & Regards,
Nishit MakadiaHi Nishit,
Please try below.
SELECT DISTINCT T0.[DocNum] as 'PO No', T0.CardName as 'PO CardName', T1.ItemCode as 'PO ItemCode', T1.Dscription as 'PO Item Desc', T1.Quantity as 'PO Item Qty', T1.PriceBefDi as 'PO Item Unit Price' ,((T1.PriceBefDi-(T1.PriceBefDi*T1.DiscPrcnt/100))*T1.Quantity) as 'PO Price Aftr Disc', T3.[DocNum] as 'GRN No', T3.CardName as 'GRN CardName', T2.ItemCode as 'GRN ItemCode', T2.Dscription as 'GRN Item Desc', T2.Quantity as 'GRN Item Qty', T2.PriceBefDi as 'GRN Item Unit Price', ((T2.PriceBefDi-(T2.PriceBefDi*T2.DiscPrcnt/100))*T2.Quantity) as 'GRN Price Aftr Disc'
FROM OPOR T0
LEFT JOIN POR1 T1 ON
T0.DocEntry = T1.DocEntry
LEFT JOIN PDN1 T2 ON
T1.DocEntry= T2.BaseEntry AND
T1.LineNum=T2.BaseLine
LEFT JOIN OPDN T3 ON
T2.DocEntry = T3.DocEntry
where T0.DocNum = ' '
Hope this helps
Regards::::
Atul Chakraborty -
Automatic Creation of Purchase order during Goods Receipt
Hai Guys,
Can you please tell me is there any ways to get a Automatic PO during Goods Receipt???
Regards
Jino.Config
1.Automatic PO generation must be activated for the movment type in IMG>Inv Mgmt & Phy Inv> GR>Create PO automatically. ( Note that automatic PO is only possible for mvmt 101 & 161)
2. The plant you are working with must be assigned to a standard purchase organisation.
3. A default PO document type must be specified for the GR in IMG> MM>purchasing>specify default vaues for document types.
Master Data
1.In mateial master Auto PO is to be set.
2.in Vendor Master Auto PO generation or agreed with him an indicator is to be set.
3.Info-Record should exist with the combination of material,vendor and the auto PO flagged in info record. -
Values disappear after saving the Purchase Order and Goods Receipt PO
HI,
Our client is using SAP Business One 2007 A(8.00.181) SP 00 PL 47, When they raise Purchase Order for service item, the details and amount disappears automatically after adding the document and similar case for Good Receipt PO. But when they book directly in AP invoice the details and amount will appeared.So please help on solution for the above problem.
Best Regards,
GraysonDear Mr Burton,
If I understood correctly you cannot see the information inside the document you added. This made me think that it is a GUI issue.
In the second answer you specified that when you try to open it again you'll receive the error message saying that there is no total value or total and I assume there is no information in the document.
I believe the second issue is a consequence of the first one.
I was suggesting to open a message on the portal (the message that requires the S number from the partners) in order to investigate the issue better.
However, as you have an error message that pinpoints to certain fields it could be possible to see the information in the tables. Do you have this information?
Regards,
Marcella Rivi
SAP Business One Forums Team
Maybe you are looking for
-
LR 4.1 cannot EDIT IN PS6
Just upgraded to LR4.1 and CS6 the creative suite, which includes PHotoshop CS6. I work in Win 7 64 bit After Upgrading, if I try to edit a file from LR into PS, Photoshop opens a blank window, then puts a tab with the name of the file I am trying to
-
I am printing a specific document from a web based application. This document need to be printed in landscape. So I would like to set the default settings for this specific printer to landscape. But for all other printers it should be portrait. But t
-
How to have the library updated between two computers?
I have two computers. One is running Windows XP(always on) with iTunes and the whole library in it. I share this iTune library wirelessly so that my MacBook Pro can access it. The problem is - whenever I update my library from one of this computers,
-
Problem Loading WSDL in External Definition
Hello people, i'm having some problems When i'm Importing the WSDL in external definitions, the Messages are not being Recognized, it doesnt load the message structures, if i try in any other program that uses the WSDL like SoapUI, the wsdl works fin
-
pacman -S frozen-bubble error: cannot resolve dependencies for "frozen-bubble": "sdl_perl-compat" is not in the package set pacman -S bittorrent error: cannot resolve dependencies for "bittorrent": "wxpython" is not in the package set hello...how to