on 10-02-2008 2:13 PM
Hi Guys
Has anyone else experienced that the item availability check does not work when using the copy to functionality from the Sales Quotation to Sales Order? Even if you select the qty cell and tab out of it?
What can be done to trigger the check on every order not just ones that have no base documents?
Hi Suda here is my stored proc, thanks for your help:
if( @object_type = 17 and(@transaction_type = 'A' or @transaction_type = 'U'))
begin
set @backorder = (select top(1) T0.itemcode from rdr1 T0 inner join oitw T1 on T0.WhsCode = T1.WhsCode where
(T0.Quantity >= T1.OnHand-T1.iscommited) and T0.itemcode = T1.itemcode and T0.docentry = @list_of_cols_val_tab_del )
if (@backorder is not null)
begin
set @error = 1
set @error_message = N'Item '@backorder' exceeds available quantity'
end
end
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
IF @object_type = '17' AND @transaction_type IN ('A', 'U')
BEGIN
DECLARE @Item AS VARCHAR(20)
SELECT TOP 1 @Item = T1.ItemCode FROM [dbo].[RDR1] T1 INNER JOIN [dbo].[OITW] T0
ON T0.ItemCode = T1.ItemCode AND T0.WhsCode = T1.WhsCode
WHERE (T1.Quantity+T0.IsCommited) > T0.OnHand AND T0.DocEntry = @list_of_cols_val_tab_del
IF (@Item IS NOT NULL)
BEGIN
SELECT @error = 1, @error_message = 'Item '+ @Item +' exceeds available quantity'
END
END
thank you
Found the problem. It should be T1.DocEntry and not T0.DocEntry. Fixed below
IF @object_type = '17' AND @transaction_type IN ('A', 'U')
BEGIN
DECLARE @Item AS VARCHAR(20)
SELECT TOP 1 @Item = T1.ItemCode FROM [dbo].[RDR1] T1 INNER JOIN [dbo].[OITW] T0
ON T0.ItemCode = T1.ItemCode AND T0.WhsCode = T1.WhsCode
WHERE (T1.Quantity+T0.IsCommited) > T0.OnHand AND T1.DocEntry = @list_of_cols_val_tab_del
IF (@Item IS NOT NULL)
BEGIN
SELECT @error = 1, @error_message = 'Item '+ @Item +' exceeds available quantity'
END
END
Hi Euston,
The feature that you are talking about does not work when you copy a Sales Quotation into a Sales Order. It will work if after copying, you change the quantity.
In order to activate this feature in each and every document, you do not have an in-built feature as such. But you can do what we have done. We have created a generic add-on (using SDK) and enabled this feature in all the documents.
Regards
Sudatta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Euston,
My suggestion is using a user query to triger alert function. Because SP will stop any of short qty orders creation that might not be adequate. On the other hand, an alert is just like the desired function to ring a bell for you.
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gordon
I do require a sort of block to stop the back order, a alert is not sufficient, it could be a interim fix until i get the sales quote to order item availability check to work or i get my stored proc to work, there must never be back order but the users will try regardless, so i need a block not a "heads up" so to say.
Hi,
Administration > System Initialization > Document Settings > Per Document Tab; select Sales Order from dropdown.
Activate Automatic Availability Check : Select to check the available quantities of items included in a sales order before it is added and to offer different solutions in case the available quantity is less than the quantity in the sales order.
Check this tickbox and see if it helps in your case.
Regards,
Jitin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Euston,
At this point, I think it is a system issue and if you are on the latest patch for your localization.....you should report this to SAP support so that they can look at it and fix in the next patch.
If you are not on the latest patch, you should try to upgrade or even before read the patch release noted to see the list of fixes.
Best wishes
Suda
Hi,
Block Negative inventory under Admin > System Initialization > General Settings > General tab
http://help.sap.com/saphelp_sbo2007a/helpdata/en/b1/8fe14910cf46b9b2ff2de2f315e5a2/frameset.htm
Rgds,
Jitin
Hi Bishal
It does not check when added, the item availability check triggers when exiting the column when doing a sales order and the screen pops up. the issue is that from the sales quotation using the copy to functionality it doesnt check item availability at all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Euston,
It usually does when you add the document .
BTW ,Have you check Item Availabilty check from Document Setting -Per document --Sales Order --Item availabilty check
Thank you
Bishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.