Skip to Content

Transaction Notification blocks addon actions

Hello experts,

I'm using SAP 9.3 PL 10.

I have a transaction notification for payments, which should just be done only using an addon, so I use the following

IF @object_type= '24' AND @transaction_type IN ('A', 'U', 'D', 'C', 'L') --Every transaction should be managed by the addon
SET @DocNum = (SELECT DocNum FROM ORCT WHERE DocEntry = @list_of_cols_val_tab_del)

SET @Payments = (SELECT COUNT(DocNum) from RCT2 WHERE DocNum = @DocNum AND DocEntry IN (SELECT DISTINCT(U_DocEntry) FROM [@TBL_Invoices]))

IF(@Payments > 0)
select @error =-200,
@error_message = 'You have selected one of more invoices that should be paid using the addon interface'

On the payments interface, the transaction notification works correctly, however, when I try doing the payment with the addon, I get the same message.

I there a way for doing this validation and allow my addon to create payments?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 07, 2019 at 11:18 AM

    Hi Luis,

    Instead of selecting the invoices from the [@TBL_Invoices], use the table RCT2, Count the InvoiceId, if it is the greater then your fixed value throw the err msg.


    Karthik Kannan S

    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.