Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3548

Re: Production Order-Cost Center Mandatory

$
0
0

try this

 

 

IF @transaction_type = 'A'

   AND @Object_type = '202'

BEGIN

    IF EXISTS (

           SELECT T0.DocEntry

           FROM   dbo.OWOR T0

           WHERE 

                  

                      isnull(T0.[OcrCode3],'') = ''

               

                  AND T0.DocEntry = @list_of_cols_val_tab_del

       )

    BEGIN

        SET @Error = 1111

        SET @error_message = 'At least one cost center is mandatory!'

    END

END


Viewing all articles
Browse latest Browse all 3548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>