Restrict A User From Changing A Payment Term While Adding A/R Invoice

Advertisement

Restrict A User From Changing A Payment Term While Adding A/R Invoice
Dear Experts,
We want to restrict our users from changing payment terms while adding A/R Invoice.
We use SAP B1 2007 b.
Thanking  you
Pradnya
Repaly
Hi,
try below code in transaction notification procedure:
if (@object_type = '13') and (@transaction_type IN ('A', 'U'))
BEGIN
IF exists (select T0.DocEntry FROM OINV T0 Inner Join OCRD T1 on T0.CardCode=T1.CardCode Where T0.GroupNum  !=T1.GroupNum and T0.DocEntry [email protected]_of_cols_val_tab_del)
          Begin
               SET @error = 30
               SET @error_message =N'You are not authorized to change payment terms'     
          end
END
for how the transaction notification works or how to use :
check How to use Transaction Notification
Thanks,
Neetu
Read More: The other 12 answers