Skip to Content
author's profile photo Former Member
Former Member

How to club 2 queries in one formatted search query

Hi All,

I have inserted a formatted search in the stock transfer for chnaging the 'From warehouse' based on series.

I have written following query for same,

SELECT $[$18.1.0]='08' WHERE $[OWTR.series] ='46'

It is working Fine

I want ot use same concept for selecting other based on other warehouse

e.g

SELECT $[$23.5.1]='02' WHERE $[OWTR.series] ='45'

But I am not able to club these queries on one formatted search query can anybody help to group it in one formatted search query....

Thanks and Regards,

Atul Joshi

Edited by: Atul Joshi on Dec 23, 2008 5:20 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Dec 23, 2008 at 12:19 PM

    Hi Atul,

    You could define the quey like this

    SELECT

    CASE

    WHEN $[OWTR.series]='46' THEN '08'

    WHEN $[OWTR.series]='45' then '02'

    end

    from OWTR

    Regards,

    Vijay kumar

    SAP Business One Forums Team

    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.