on 2019 Nov 20 12:38 PM
Dear Expert,
I had created on UDF in Journal Voucher Entry and want to restrict the entry while the UDF is not selected by user.But its not working.
if(@object_type = '30' And (@transaction_type = 'A' OR @transaction_type = 'U')) Begin If Exists (Select 1 From OBTF Where TransId = @list_of_cols_val_tab_del And ISNULL(U_Status,'') = 'Select' ) Begin Select -3334, 'Status Can be change by Manager only' Return End END.
plz assist..
regards,
Pankajk
For Journal Entry same SP is working fine..Only in Journal voucher entry throwing error..
regards,
pankajK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Aziz,
Thanks for your reply....I am getting this error while trying to update journal voucher in any case...
[Microsoft][SQL Server Native Client 11.0][SQL Server]Conversion failed when converting the nvarchar value '44541' to data type int. 'Company Info' (CINF) (CINF)
regards,
PankajK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Try this
IF (@object_type = '29' AND (@transaction_type = 'A' OR @transaction_type = 'U'))
BEGIN
If Exists (Select TransId From OBTF Where TransId = @list_of_cols_val_tab_del AND ISNULL(U_Status,'') = '' )
BEGIN
set @error =5
set @error_message ='You need to select UDF'
END
END
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use this one. Hope you will get result.
IF (@object_type = '30' AND (@transaction_type = 'A' OR @transaction_type = 'U'))
BEGIN
If Exists (Select TransId From OBTF Where TransId = @list_of_cols_val_tab_del AND ISNULL(U_Status,'') = '' )
BEGIN
set @error =5
set @error_message ='You need to select UDF'
END
END
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
109 | |
8 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.