cancel
Showing results for 
Search instead for 
Did you mean: 

Transaction notification

Former Member
0 Kudos

i want to check a user defined filed in row  that it should not be blank while adding in sales order

can i get the row no and item code also in message

please help

Accepted Solutions (0)

Answers (1)

Answers (1)

edy_simon
Active Contributor
0 Kudos

Hi Nikhil,

SELECT @error = 999, @error_message = 'Row ' + CONVERT(NVARCHAR(10), VisOrder + 1 ) + '. Item Code = ' + ItemCode + '. UDF must not empty.'

FROM RDR1

WHERE DocEntry = @list_of_cols_val_tab_del AND ISNULL(U_FIELD,'') = ''

SELECT @error, @error_message

Regards

Edy