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

SP Notification

Dear Experts,

I need SP Transaction notification to block 'U_MASTER' filed which is an UDF in Reserve invoice.

I created this filed for some reference. I need to block this one if this is already posted in system.

which means i don't want to allow duplicate on 'U_MASTER' filed

Thank you,

ANIL LOKAM.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 13, 2016 at 06:47 AM

    hi

    Anil

    change object type(based on your previous thread) and try it..

    --Ramudu

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 13, 2016 at 06:48 AM

    IF @object_type = 'mention object no' AND @transaction_type IN ('A', 'U')

    BEGIN

    DECLARE @STR VARCHAR(255);

    SET @STR = (SELECT U_MASTER FROM ORDR WHERE DocEntry = @list_of_cols_val_tab_del) ;

    IF (SELECT COUNT(U_MASTER) FROM reserve inv table WHERE U_MASTER = @STR) > 1

    BEGIN

    SET @error = -1001

    SET @error_message = 'U_MASTER MUST BE UNIQUE';

    END

    END

    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.