on 01-20-2023 12:04 PM
Dear all,
Below Transaction notification is not working. There is not any error while execute it but the validation is not working.
if @object_type = '17' AND @transaction_type IN ('A','U')
begin
if (select ORDR.Comments from ORDR where ORDR.DocEntry=@list_of_cols_val_tab_del) IS NULL
Begin
set @error = -2
set @error_message = 'Fill the remark'
end
End
end
SAP Business One SQL server
Regards,
Nikunj
after if else set the error and error message.
check the tn is work.
if @object_type = '17' AND @transaction_type IN ('A','U')
begin
if (select ORDR.Comments from ORDR where ORDR.DocEntry=@list_of_cols_val_tab_del) IS NULL
Begin
set @error = -2
set @error_message = 'Fill the remark'
end
End
end
set @error = 57
set @error_message = 'must error appear'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
8 | |
6 | |
6 | |
5 | |
4 | |
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.