Вы находитесь на странице: 1из 6

12/12/13

More Next Blog

Business Objects: @prompt:


Create Blog Sign In

Business Objects
This is a place to find all information you need about Business objects products. Search Labels
Search
Custom Search

Dashboard (3)
(1)

Designer (11)
Interview Questions (1)

Errors

General (5) (6)

Webi

Sunday, June 7, 2009

Popular Posts @prompt: Description: Use this function to prompt user for a value will be used during report run. For example if you want to run a monthly report a... BO Universe Parameters Overview: This is a step by step tutorial and user guide on how to configure your universe parameters. I will descript in details all opt... Universe tutorial # 1 Overview: This is a fast training on how to create and design SAP business objects XI universe. To build a universe you can use the desi...

@prompt:

Description: Use this function to prompt user for a value will be used during report run. For example if you want to run a monthly report against a specific month, you have to prompt the user to enter the Month or even select it from the list of value displayed.

Before we start:

I assume that you are familiar with BO universe designer and BO web inelegance. If you need to go through universe or Webi rich client tutorial please use the following links: Universe Tutorial: BO Fast user guide Part # 1 [Navigation]: BO Fast user guide Part # 2[Report View mode] Universe Parameters
Syntax: @prompt ('prompt text (1)', 'type (2)', 'list of values (3)', 'mono/multi(4)', 'free/constrained(5)')

Blog Archive 2013 (20) 2009 (5) June (5) Universe tutorial # 1 @prompt:

Parameters:
Param Description Mandatory Values

Linking Dimensions across different data providers...


Yes Yes N/A A: alphanumeric C: string D: Date N: Number U: Unicode Object defined to retrieve list of values Mono: user can select one value only Multi: user can select Multi Values Free: user can type his own value Constrained: user must select from list of values.

1 2

Text used to prompt the user when he trying to run/refresh the report Type of the expected value entered by the user and also must be same type of the object that we will use the prompt return value to compare with List of values that will displayed to the user if he click on the Values button when he prompted to enter a value Number of valued allowed

Manage Security with business objects designer. What is Scope of Analysis? 2008 (3)

No

Contributors Rasha Taha Mohamed

No

User can edit enter a value by himself or not.

No

Follow by Email
Email address... Submit

Google+ Followers
Where to use this function: You can use this function anywhere; this is some places that you can use this function

business-objects-xi.blogspot.com/2009/06/prompt.html

1/6

12/12/13

Business Objects: @prompt:


Filter: you can use this function to prompt the user for a value that will use in filtering the retrieved data.

[Click here for more information about conditions & Pre-defined filters in BO]
Where clause: when you create an object you can use this function in the where clause. Select clause: you can use this function even in the select clause see examples. Derived table: you can use this function in your derived table query. [Click here for more information about how to use prompt with derived tables]

Taha Mohamed
Add to circles

Tips and Tricks: You can use the same prompt in more than one place; just make sure that the prompt text exactly the same when you use it with other universe objects. You can use data conversion function to convert the prompt returned value before using it. For example if the prompt return "Jan09" and you want to compare it with a Date column in database you have to convert it before using it. In our case we will use to_date (@prompt(,,,,,),'MONYY'). If your prompt will return multi value use IN operation instead of equal (=) Note that not all users having permission to view list of values while they trying to run or refresh the report by default. The administrator should grant this permission to this user. If you will use the free mode (user can type what he want) you should give a hint in the prompt text message about the data format expected. For example if the user should enter month in format (MON YY) then the prompt message should be descriptive like "Please enter month like Jan 09".

61 have me in circles

View all

Subscribe To Posts Comments

Labels Dashboard (3) Designer (11) Errors (1)


Example # 1 (simple prompt): We need to create a new condition that will prompt user to enter a valid date to display data related to this date in our report. Create a new condition with the specification below [Insert --> Condition] Name: As of Date prompt Description: Prompt user to enter a specified as of date value Where: @select(Dimensions/As of Date) = @prompt ('Enter As of Date:', 'D', ['Dimensions/As of Date'], mono, constrained) Notes: Red single quote places. It will give you error message "Parse failed: invalid definition UNV0023"

Total Pageviews

89,843
0

General (5) Interview Questions (1) Webi (6)

Google+ Badge

Taha Mohamed
Follow

Example # 2 (Prompt returns multi values): We need to create a new condition that will prompt user to select cities that he wants to display revenue data Create a new condition with the specification below [Insert --> Condition] Name: Cities prompt Description: Prompt user to select one or multiple cities to filter data according to Where: @select(Dimensions/City) IN @prompt ('Select one or more cities from the list:', 'C', ['Dimensions/City'], Multi, constrained) Notes:

Followers
Join this site
w ith Google Friend Connect

Members (14)

Already a member? Sign in

We used Multi key word instead of mono this time this to indicate that the prompt will return one or more values. Note also we used the IN operator instead of equal. This is because the return value is a collection of values not one single value as the previous example.

Popular Posts Last 7 Days @prompt:

Example # 3 (user type Free Prompt): We need to create a new condition that will prompt user to type the city that he want to display report data for. Create a new condition with the specification below [Insert --> Condition]

BO Universe Parameters Universe tutorial # 1

business-objects-xi.blogspot.com/2009/06/prompt.html

2/6

12/12/13
Name: City prompt Description: Prompt user to select or type a city Where:

Business Objects: @prompt:


What is Scope of Analysis? Derived Table in SAP Business Objects Universe Designer @Aggregate_Aware Condition (Pre-Defined filter) in BO Universe designer BO InfoView & Rich client Fast User Manual (Tutorial) (Part # 1 - Navigation) Rank CORBA Initialization failed. (WIS 10901) error in WebI Rich Client

@select(Dimensions/City) = @prompt ('Type a City name:', 'C', ['Dimensions/City'], mono, free) Notes: Note that we have used free key word instead of constrained. This will give the user the flexibility to type the city name directly without need to select form list of values. Note that if the user type Paris while the stored value in @select(Dimensions/City) is PARIS then the query will return no data. To solve this issue you can use the Upper or lower function that will return the given string in upper case format or lower case format. UPPER(@select(Dimensions/City)) = UPPER(@prompt ('Type a City name:', 'C', ['Dimensions/City'], mono, free)) If you want the user to type multiple cities use this form @select(Dimensions/City) IN @prompt ('Type Cities name:', 'C', ['Dimensions/City'], Multi, free) Please note that user will enter values comma separated without space Like: (Paris,London,Roma,Cairo)

BO Book

Example # 4 (From To prompt): We need to create a new condition that will prompt user to enter "From Date" and "To Date" to display data related to this period in our report. Create a new condition with the specification below [Insert --> Condition] Name: From To prompt Description: Prompt user to enter a specified period Where: @select(Dimensions/As of Date) Between @prompt ('From Date:', 'D', ['Dimensions/As of Date'], mono, constrained) AND @prompt ('To Date:', 'D', ['Dimensions/As of Date'], mono, constrained)

Example # 5 (Use prompt with dimensions): We need to create a new dimension that will display customer segment description based on what language user will select. Prerequisites: Language dimension Created. Segment English Description created. Segment France Description created. Segment Dutch Description created. Segment Arabic Description created. Create a new Dimension with the specification below [Insert --> Dimension] Name: Customer Segment Description Description: Customer Segment Description based on the user selected language. Select: Decode(@prompt ('Select Language:', 'C', ['Dimensions/Language'], mono, constrained), 'EN', @select(Dimensions/Segment English Description), 'FR', @select(Dimensions/Segment France Description), 'DE', @select(Dimensions/Segment Dutch Description), 'AR', @select(Dimensions/Segment Arabic Description), @select(Dimensions/Segment English Description)) Other information about Prompt: How to create and configure Prompt in BO Webi report [http://business-objectsxi.blogspot.com/2013/10/prompt-in-sap-business-objects-webi.html] How to use @Prompt function in derived table [http://business-objectsxi.blogspot.com/2013/10/derived-table-in-sap-business-objects.html] How to create a prompt in pre-defined filter (Condition) in SAP universe designer [http://businessobjects-xi.blogspot.com/2013/10/condition-pre-defined-filter-in.html] Similar functions & Useful Links:

business-objects-xi.blogspot.com/2009/06/prompt.html

3/6

12/12/13

Business Objects: @prompt:


Business Objects Universe Parameters in designer [http://business-objectsxi.blogspot.com/2013/09/bo-universe-parameters.html] @Aggregate_Aware() [http://business-objects-xi.blogspot.com/2008/08/aggregateaware.html] Business Objects Rich client & infoview fast tutorial [user guide] [http://business-objectsxi.blogspot.com/2013/09/bo-infoview-rich-client-fast-user.html]

Recommend this on Google

Posted by Taha Mohamed

business-objects-xi.blogspot.com/2009/06/prompt.html

4/6

12/12/13

Business Objects: @prompt:

9 comments

Add a comment

Top comments

Anonymous 4 months ago I've a webi report in Business Objects version 4 with a prompting requirement as explained: There are 3 prompts that need to be related: Select Daily or Monthly Select Start Month, End Month Select Start Date, End Date User Interaction needs to be as follows: If Daily is selected, user can enter any Start Date, default End Date to Start Date + 30 Days. User should be able to change the End Date to any value that falls in the range [FROM: Start Date TO: Start Date + 30 Days].The Start Month, End Month prompt should be disabled. If Monthly is selected, user can select Start Month and End Month values with the expected constraint that the End Month is later than the Start Month. The Startago Date and End Date prompts need to be disabled. How do I Anonymous 7 months make this work? Please let me know if further information is needed to suggest a Hi, Thanks for this post, When I try to execute report, I have this message error: une solution. Need this urgently! THANK YOU! erreur de base de donnes s'est produite: [Microsoft][SQL Server Native Client 10.0] [SQL Server] La conversion d'un type de donnes varchar en type de donnes datetime a cre une valeur hors limites..(WIS 10901) I have searched for de prompt function and i find that: #fld1 <= @prompt('#txt1','D','#obj1',Mono,Free,Persistent,,) When executing report; I enter date at format: 01/01/2010 I look a that column en datebase; is a datetime type can you help me. thanks. Ahmed Gad 9 months ago Thanks a lot for the great support.

Anonymous 10 months ago Hi. I must create a prompt to allow to user to select the dimension on which do the analysis. For example he can choose whether to display a measure based on the size of the x or y dimension. Is possible? Can you help me?

Anonymous 1 year ago Can you use with the @PROMPT-command an asterisk(* or %) to select a multi entry (e.g. give me all suppliers where the customer name is starting with an 'C')? If yes: how? If not, is there another solution in BO?

DibtreO 1 year ago Maybe a good solution to this is to do something like that: substr(TABLE.TFIELD,1,2) = @prompt ('2 first words of name:', 'A', ['Dimensions/Name'], mono, free) or TABLE.TFIELD like @prompt ('2 first words of name:', 'A', , mono, free) || '%' TABLE.TFIELD can be changed to @select(DIMENSION) I hope this help Anonymous 1 year ago This is a great post!! you have helped me in my job!! thank you very much!!!

harinath 1 year ago really good explanation

devraj 1 year ago awesome !!!!! explanation...............thank u very much for this info.............

business-objects-xi.blogspot.com/2009/06/prompt.html

5/6

12/12/13

Business Objects: @prompt:

Newer Post

Home
Subscribe to: Post Comments (Atom)

Older Post

Awesome Inc. template. Powered by Blogger.

business-objects-xi.blogspot.com/2009/06/prompt.html

6/6

Вам также может понравиться