IF @object_type = '30' and @transaction_type in ('A','U')
WHERE DATEDIFF(mm,RefDate,GETDATE()) <= 0 AND TransID = @list_of_cols_val_tab_del
set @error = 30
set @error_message = 'You are not allowed to add document with Future Posting Period.'
Can anyone help in converting the above transaction notification to SAP HANA B1 to block future posting in Journal Entry level.