on 11-09-2011 10:01 AM
Dear Experts,
If (@transaction_type = 'A' AND @Object_type in ('24', '46'))
begin
if exists (SELECT T0.DocEntry FROM OVPM T0 WHERE len(T0.JrnlMemo) > 45 and T0.DOCENTRY = @list_of_cols_val_tab_del)
select @Error = 1, @error_message = 'Characters of Journal Remarks exceed the allowed Limit'
end
I have written a transaction notification to limit the characters in the Journal Remark field of Outgoing Payment. It was working fine till yesterday. But now it gives an error even if the no. of characters are less than the allowed limit. It is considering the transactions which are already posted and having length of Journal Remarks greater than 45.
Kindly advise on how to rectify this issue
Regards,
Jimit
You should try without object type 24. That is for incoming payments.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Issue Resolved. Just refreshed the transaction notification and it is working fine now. Thank you all for your prompt response.
Regards,
Jimit Chhapia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
If (@transaction_type in ('A','U') AND @Object_type in ('46'))
begin
if exists (SELECT T0.DocEntry FROM OVPM T0 WHERE len(T0.JrnlMemo) > '45' and T0.DOCENTRY = @list_of_cols_val_tab_del)
select @Error = 1, @error_message = 'Characters of Journal Remarks exceed the allowed Limit'
end
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jimit,
Why did you write this? @Object_type in ('24', '46')
24 is object type for incoming payment (ORCT), not outgoing payment (OVPM). You only need to write @Object_type in ('46') to create notification for outgoing.
Best Regards,
Hendry Wijaya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.