Transaction Notific...
 
Notifications
Clear all

Transaction Notification để chặn user đóng lệnh sản xuất

1 Posts
1 Users
0 Reactions
535 Views
admin
Posts: 467
Admin
Topic starter
(@admin)
Noble Member
Joined: 3 years ago

Yêu cầu: chỉ user 'manager' được phép đóng lệnh sản xuất

Giải pháp:

IF @object_type='202' AND @transaction_type IN ('A','U')

BEGIN
    IF EXISTS (
        
	  Select DocEntry From OWOR T0 
	where T0."UserSign2"<>1 and t0.Status='L' and T0.DocEntry = @list_of_cols_val_tab_del)
       
    BEGIN   
        Set @error = -1
        SET @error_message = 'You are not authorized to Closed this Production Order'
    END
END

Nguồn: SP for Block Close of Production Order | SAP Community

Reply
Share:
x  Powerful Protection for WordPress, from Shield Security
This Site Is Protected By
Shield Security