Skip to Content
author's profile photo Former Member
Former Member

Transaction Notification Considering Old transaction as well

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Nov 09, 2011 at 10:14 AM

    You should try without object type 24. That is for incoming payments.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 09, 2011 at 10:24 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 09, 2011 at 10:28 AM

    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
    
    

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 09, 2011 at 10:31 AM

    Issue Resolved. Just refreshed the transaction notification and it is working fine now. Thank you all for your prompt response.

    Regards,

    Jimit Chhapia

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.