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

Multiple Tier Formatted Search

Hey Guys,

I'm trying to build a formatted search that will choose an item code based on a prompt where the user enters an item group (easy enough).

After the user enters the first prompt, there would be a second prompt that would be conditional based on the item group entered from the first prompt. For example, if the user chooses "Sports Equipment," the user would be prompted for a UDF, "Sport."

My question is how do I build that conditional statement so that SBO will prompt the user correctly the second time?

Appreciate any input or ideas!


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2005 at 04:25 PM

    Yes, I understand, thank you! However, I am still facing the issue of attempting to set it up to change the choose from list according to data entered by the user.

    We came up with the solution to show multiple fields in the formatted search. However, the problem we are still having is that when I attempt to enter a case statement with multiple 'if' statements, I get an error in SAP. Here is my query so far:

    SELECT T0.ItemName, T1.ItmsGrpNam,

    (CASE WHEN T1.ItmsGrpNam = 'Accessories' THEN T3.U_LstItm1

    WHEN T1.ItmsGrpNam = 'Ball Games' THEN T1.ItmsGrpCod

    ELSE T3.U_LstItm2 END) AS 'List Item'

    FROM OITM T0 INNER JOIN OITB T1 ON T0.ItmsGrpCod = T1.ItmsGrpCod

    INNER JOIN [dbo].[@SIS] T3 ON T3.U_ItemGrp = T1.ItmsGrpNam

    WHERE T3.U_ItemGrp = '[%0]'

    Of course this is still in testing so even if it works it won't give me the desired result. But I need this to work to pull the desired information. Any hints?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 01, 2005 at 01:15 PM

    if your query returns more than one record as the result, it won't make the choose from list come up by itself.

    But if you press shift F2 in the field with the formated search that returns more than one record of data it will then show a choose from list.

    Hope this helps

    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.