on 2024 Oct 09 6:41 AM
Dear SAP Community i need a validation for restricted an warehouse for my same SAP b1 users please provide me stored procedures for the same..
Request clarification before answering.
Hi,
Please try this.
Note: This validation will not allow the warehouse code to be the 'manager' but will allow 'MANAGER'.
IF :object_type = n'64' AND (:transaction_type = n'A' OR :transaction_type = n'U')
THEN
DECLARE VAR20_COUNT INT := 0;
SELECT COUNT(H20."WhsCode") INTO VAR20_COUNT FROM OWHS H20 WHERE H20."WhsCode"=:list_of_cols_val_tab_del AND H20."WhsCode" IN (SELECT "USER_CODE" FROM OUSR);
IF :VAR20_COUNT > 0
THEN
error := -99001;
error_message := 'Warehouse Code must not be same as SBO Username';
END IF;
VAR20_COUNT := 0;
END IF;
Thanks.
Manish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
39 | |
6 | |
5 | |
5 | |
3 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.