on 06-13-2014 8:31 AM
Hi
when adding GRPO ITS SHOWING AN ERROR [Microsoft][SQL Server Client 10.0][SQL Server]Conversion failed when converting the nvarchar value 'DocEntry'to data type int.(CINF)
Is there any SP Transaction running ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if @transaction_type In ('A','U') and @object_type ='17'
--Begin
--If Exists (Select B.ItemCode from ORDR A inner join RDR1 B on A.DocEntry=B.DocEntry where B.TaxCode is Null and A.docEntry=@list_of_key_cols_tab_del )
--Begin
--Set @error =1001
--Set @error_message = 'Tax Code Should not be blank at row Level'
--End
--End
Hi Karthik,
Please check below SP Transaction Notification after little amendment.
if @transaction_type In ('A','U') and @object_type ='17'
Begin
If Exists (Select A.DocEntry from ORDR A inner join RDR1 B on A.DocEntry= B.DocEntry where B.TaxCode is Null and A.DocEntry=@list_of_key_cols_tab_del )
Begin
Set @error =1001
Set @error_message = 'Tax Code Should not be blank at row Level'
End
End
Hope this help
--
--
Regards::::
Atul Chakraborty
Plz update this SP :
if @transaction_type In ('A','U') and @object_type ='17'
Begin
If Exists (Select A.DocEntry from ORDR A inner join RDR1 B on A.DocEntry= B.DocEntry where B.TaxCode =' ' and b.DocEntry=@list_of_cols_val_tab_del )
Begin
Set @error =10
Set @error_message = 'Tax Code Should not be blank at row Level'
End
End
Thanks for the solution the issue is solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.