Skip to Content

SP _validation for Outgoing Vender paymnet Project should be same

hi

MY Requirement is

OVPM project=Row level Project be same other wise raise erron

header Project = Headoffice

Row level Project =Head office

if both are not match get raise on e error

--Ramudu

opm.jpg (230.7 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 11, 2018 at 09:11 AM

    Hi,

    Check this.

    If @object_type='46' and @transaction_type in (N'A',N'U')

    Begin If exists (SELECT DISTINCT 'ERROR' FROM OVPM A INNER JOIN VPM2 B ON A.DocEntry = B.DocNum INNER JOIN OPCH C ON C.DocEntry = B.DocEntry WHERE A.PrjCode <> C.Project AND A.DocEntry = @list_of_cols_val_tab_del)

    Begin set @error ='02'

    Set @error_message=N'Testing!'

    end

    end

    Ganesh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 11, 2018 at 09:47 AM

    Hi,

    Create separate SP for all the transactions just changing the OPCH table to respective table.

    Ganesh

    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.