Skip to Content

Query Not Execute

Hi Expert,

When i run below query than system return error massage .

Error---'Received Alerts' (OAIB)


Declare @ASONDATE varchar(50)

Declare @Warehouse varchar(50)

Declare @ItemGroup1 varchar(50)

Set @ASONDATE = convert(varchar(20), getdate(),103)

Set @Warehouse = (Select max(S1.WHSCODE) from OWHS S1 where S1.WHSCODE <='[%1]')

set @ItemGroup1=(Select max(S1.ITMSGRPCODE) from OITB S1 where S1.ITMSGRPCODE <='[%2]')

exec [UNE_SP_INVENTRYAGEING] @ASONDATE,@Warehouse,@ItemGroup1

Please suggest solution for the same.

Thanks & Regards


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Apr 26, 2016 at 08:16 AM


    before you declare your variables add this line:

    /* SELECT T0.cardname FROM OCRD T0 */

    Save the query and run again.

    Kind regards

    Agustín Marcos Cividanes

    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.