on 04-10-2008 12:20 PM
Hi,
My scenario:
I need to control the qty field in Receipts From Production screen.
Qty should not exceeds the planned qty.
Make sure Qty(Receipts) + Completed Qty(Production Order) = Planned qty.(Production Order)
Please provide me a solution.
Thanks in Advance
SAGAR
Hi,
please explain with this statements:
Make sure Qty(Receipts) + Completed Qty(Production Order) = Planned qty.(Production Order)
I think completed qty in prod. order = receipts qty.
btw, you can create SAP SP Notifications to block the transactions.
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, thanks for reply.
Yes i tried using SBO SP transcation.
-
IF @transaction_type IN (N'A', N'U') AND (@Object_type = N'59')
BEGIN
declare @line1 int
set @line1 =
(SELECT (OWOR.PlannedQty - OWOR.CmpltQty - IGN1.Quantity)
FROM OWOR, ign1 WHERE OWOR.DocNum = ign1.BaseRef and ign1.docentry = @list_of_cols_val_tab_del)
IF @line1 < 0
BEGIN
SET @error = 10
SET @error_message = N'Quantity is invalid !'
end
END
---
This will works for single production order. If i selects multiple Production Order, this query is not working.
Please provide me a solution.
SAGAR
User | Count |
---|---|
95 | |
9 | |
8 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.