

{"id":2192,"date":"2013-06-08T12:28:12","date_gmt":"2013-06-08T10:28:12","guid":{"rendered":"http:\/\/www.hackingsap.com\/blog\/?p=2192"},"modified":"2013-06-10T20:13:38","modified_gmt":"2013-06-10T18:13:38","slug":"sap-design-studio-and-conditions","status":"publish","type":"post","link":"https:\/\/www.hackingsap.com\/blog\/sap-design-studio-and-conditions","title":{"rendered":"SAP Design Studio and Conditions"},"content":{"rendered":"<p>I got an email this week from a SAP BI developer about an issue with\u00a0<strong>SAP BusinessObjects\u00a0Design Studio<\/strong>. He is trying to filter a set of data in <strong>Top N<\/strong> categories, for example to get the 10 regions with the highest sales numbers (Top 10).<\/p>\n<p>Unfortunately, in\u00a0Design Studio we can only create filters on <strong>characteristics\/dimensions<\/strong> (Vendor, Customer, Region) and not on <strong>key figures\/measures<\/strong> (Sales numbers). In BEx Analyzer and\u00a0SAP BusinessObjects Analysis the <strong>Conditions<\/strong> options does in fact provide this exact functionality, see the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2193\" alt=\"DScond1\" src=\"http:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond1.png\" width=\"293\" height=\"277\" srcset=\"https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond1.png 419w, https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond1-95x90.png 95w, https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond1-300x283.png 300w\" sizes=\"auto, (max-width: 293px) 100vw, 293px\" \/><\/p>\n<p>These Conditions can be defined in BEx Analyzer and Analysis, but can also be pre-defined in the <strong>BEx Query Designer<\/strong>. Luckily there is a way to use these pre-defined conditions in\u00a0Design Studio and even change their condition value!<\/p>\n<p>First we&#8217;ll have to go to BEx Query Designer and create a Condition in the query. Choose a key figure and an operator.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2195\" alt=\"DScond2\" src=\"http:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond2.png\" width=\"399\" height=\"280\" srcset=\"https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond2.png 570w, https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond2-128x90.png 128w, https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond2-300x210.png 300w\" sizes=\"auto, (max-width: 399px) 100vw, 399px\" \/><\/p>\n<p><!--more-->Now instead of entering a fixed condition value, we&#8217;ll create an input variable. This is a value we can provide and change from within the\u00a0Design Studio application! Make sure you choose the <strong>Processing By<\/strong> type <strong>Manual Input\/Default Value<\/strong>. If you&#8217;re done, save the BEx Query.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2194\" alt=\"DScond3\" src=\"http:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond3.png\" width=\"262\" height=\"270\" srcset=\"https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond3.png 374w, https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond3-87x90.png 87w, https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond3-290x300.png 290w\" sizes=\"auto, (max-width: 262px) 100vw, 262px\" \/><\/p>\n<p>Next we go to the Design Studio application and add this BEx Query as a Data Source. In the example I assigned this Data Source to a Crosstab component. I also added a Dropdown Box component so we can make a selection from a list, to change the value of the condition. I created three selection items for this Dropdown Box (Properties view \u2022 Display \u2022 Items). Note that there is no value entered for the <strong>All<\/strong> selection item.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2197\" alt=\"DScond4\" src=\"http:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond4.png\" width=\"349\" height=\"207\" srcset=\"https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond4.png 499w, https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond4-150x88.png 150w, https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond4-300x177.png 300w\" sizes=\"auto, (max-width: 349px) 100vw, 349px\" \/><\/p>\n<p>Now it is time for some coding. Go to the Script Editor for the <strong>On Select<\/strong> property of the Dropdown Box component. We are going to use the following code:<\/p>\n<blockquote>\n<pre>APPLICATION.setVariableValueExt(\"ZIV_TOPN\",\r\n DROPDOWN_1.getSelectedValue());<\/pre>\n<\/blockquote>\n<p>This code sets a new value for the variable <strong>ZIV_TOPN<\/strong>, with a value that is selected in the Dropdown Box component <strong>DROPDOWN_1<\/strong>. This variable value is used throughout the whole <strong>Application<\/strong> and applies to all Data Sources.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2199\" alt=\"DScond5\" src=\"http:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond5.png\" width=\"687\" height=\"274\" srcset=\"https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond5.png 981w, https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond5-150x59.png 150w, https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond5-300x119.png 300w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/p>\n<p>When we execute the application,\u00a0initially all records will be shown. When a selection is made in the Dropdown box, the Crosstab refreshes and shows only the selected number of top values. With the <strong>All<\/strong> selection item, in fact no real selection is made and all results are shown.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2198\" alt=\"DScond6\" src=\"http:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond6.png\" width=\"648\" height=\"474\" srcset=\"https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond6.png 648w, https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond6-123x90.png 123w, https:\/\/www.hackingsap.com\/blog\/wp-content\/uploads\/DScond6-300x219.png 300w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/p>\n<p>By the way, you can also use the <strong>Prompt Dialog<\/strong> to enter (and change) the value of the Input Variable, but I thought this integrated solution with a Dropbox would be a nicer example.<\/p>\n<p>So if anybody has a better solution\/workaround or figures out how to use all the classic Condition features, please let me\u00a0know!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got an email this week by Ado A. from Atlanta, GA about an issue he has with SAP BusinessObjects Design Studio. He is trying to filter a set of data in Top N categories, for example to get the 10 regions with the highest sales numbers (Top 10).<\/p>\n<p>Unfortunately, in Design Studio we can only create filters on characteristics\/dimensions (Vendor, Customer, Region) and not on key figures\/measures (Sales numbers). In BEx Analyzer and SAP BusinessObjects Analysis the Conditions options does in fact provide this exact functionality, see the screenshot below.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[44,163],"tags":[47,164,296,294],"class_list":["post-2192","post","type-post","status-publish","format-standard","hentry","category-knowledge-sharing","category-sap-businessobjects-design-studio","tag-bex-query-designer","tag-design-studio","tag-sap-businessobjects-design-studio","tag-zen"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pKaa2-zm","jetpack-related-posts":[{"id":3166,"url":"https:\/\/www.hackingsap.com\/blog\/design-studio-1-x-and-hierarchies-not-assigned-node-filtering","url_meta":{"origin":2192,"position":0},"title":"Design Studio 1.x and hierarchies: Not Assigned node filtering","author":"Xavier Hacking","date":"January 29, 2017","format":false,"excerpt":"In BW hierarchies, the values that are not assigned to a hierarchy node are gathered\u00a0under the Not Assigned node. The query output shows this node in the hierarchy on the same level as the top node of the hierarchy. This works the same for all SAP front-end tools that support\u2026","rel":"","context":"In &quot;Featured&quot;","block_context":{"text":"Featured","link":"https:\/\/www.hackingsap.com\/blog\/category\/featured"},"img":{"alt_text":"Web Analyzer Not Assigned","src":"https:\/\/i0.wp.com\/www.hackingsap.com\/blog\/wp-content\/uploads\/Web-Analyzer-Not-Assigned.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.hackingsap.com\/blog\/wp-content\/uploads\/Web-Analyzer-Not-Assigned.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.hackingsap.com\/blog\/wp-content\/uploads\/Web-Analyzer-Not-Assigned.png?resize=525%2C300 1.5x"},"classes":[]},{"id":1701,"url":"https:\/\/www.hackingsap.com\/blog\/a-first-look-at-zen-sap-analysis-edition-for-application-design","url_meta":{"origin":2192,"position":1},"title":"A first look at ZEN (SAP BusinessObjects Design Studio)","author":"Xavier Hacking","date":"June 13, 2012","format":false,"excerpt":"This week we got access to the beta program for one of the new upcoming SAP BI tools: SAP BusinessObjects Analysis Edition for Application Design, codename ZEN. I played around with it for about an hour to get a quick first impression and to see how fast I would be\u2026","rel":"","context":"In &quot;Knowledge sharing&quot;","block_context":{"text":"Knowledge sharing","link":"https:\/\/www.hackingsap.com\/blog\/category\/knowledge-sharing"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.hackingsap.com\/blog\/wp-content\/uploads\/zen03.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":937,"url":"https:\/\/www.hackingsap.com\/blog\/sap-bex-analyzer-sucks","url_meta":{"origin":2192,"position":2},"title":"SAP: &#8220;BEx Analyzer sucks&#8221;","author":"Xavier Hacking","date":"November 17, 2010","format":false,"excerpt":"SAP released a video that basically says that BEx Analyzer sucks. And it's true.","rel":"","context":"In &quot;SAP&quot;","block_context":{"text":"SAP","link":"https:\/\/www.hackingsap.com\/blog\/category\/sap"},"img":{"alt_text":"SAP BEx Sucks, SAP BusinessObjects Analysis rules","src":"https:\/\/i0.wp.com\/www.hackingsap.com\/blog\/wp-content\/uploads\/sapbex.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1851,"url":"https:\/\/www.hackingsap.com\/blog\/book-review-sap-netweaver-bw-and-sap-businessobjects-the-comprehensive-guide","url_meta":{"origin":2192,"position":3},"title":"Book review: SAP NetWeaver BW and SAP BusinessObjects &#8211; The Comprehensive Guide","author":"Xavier Hacking","date":"September 15, 2012","format":false,"excerpt":"Let's have a look at another SAP BI book that SAP Press released this year. They are on a great streak and later this year we can expect even more releases from them on HANA, Web Intelligence, ABAP for BW, SAP BusinessObjects Administration and Security. But, let's go back to\u2026","rel":"","context":"In &quot;Books&quot;","block_context":{"text":"Books","link":"https:\/\/www.hackingsap.com\/blog\/category\/books"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.hackingsap.com\/blog\/wp-content\/uploads\/sapbwbocomprehensiveguide.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2871,"url":"https:\/\/www.hackingsap.com\/blog\/design-studio-1-5-preview","url_meta":{"origin":2192,"position":4},"title":"Design Studio 1.5 Preview","author":"Xavier Hacking","date":"May 16, 2015","format":false,"excerpt":"Later this quarter the next big\u00a0SAP BusinessObjects\u00a0Design Studio update will be generally available: version 1.5. Let's have a look at what we can expect in this edition. Performance, performance, performance Despite the fact that\u00a0Design Studio is\u00a0developed in\u00a0a much more future proof way than\u00a0SAP BusinessObjects Dashboards (Xcelsius), it still appears to\u2026","rel":"","context":"In &quot;Preview&quot;","block_context":{"text":"Preview","link":"https:\/\/www.hackingsap.com\/blog\/category\/preview"},"img":{"alt_text":"Design-Studio-1.5-3","src":"https:\/\/i0.wp.com\/www.hackingsap.com\/blog\/wp-content\/uploads\/Design-Studio-1.5-3.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2281,"url":"https:\/\/www.hackingsap.com\/blog\/getting-started-with-sap-businessobjects-design-studio-book-sap-press","url_meta":{"origin":2192,"position":5},"title":"Getting Started with SAP BusinessObjects Design Studio book","author":"Xavier Hacking","date":"September 8, 2013","format":false,"excerpt":"Wow, it's not even three years ago that I announced the release of the\u00a0SAP BusinessObjectsDashboards 4.0 Cookbook here at this place, and now I can already announce a second book I worked on: Getting Started with\u00a0SAP BusinessObjects\u00a0Design Studio, which will be published by SAP Press.\u00a0This time I teamed up with\u2026","rel":"","context":"In &quot;Books&quot;","block_context":{"text":"Books","link":"https:\/\/www.hackingsap.com\/blog\/category\/books"},"img":{"alt_text":"DesignStudioCover","src":"https:\/\/i0.wp.com\/www.hackingsap.com\/blog\/wp-content\/uploads\/DesignStudioCover-288x300.jpg?resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hackingsap.com\/blog\/wp-json\/wp\/v2\/posts\/2192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hackingsap.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hackingsap.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hackingsap.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hackingsap.com\/blog\/wp-json\/wp\/v2\/comments?post=2192"}],"version-history":[{"count":14,"href":"https:\/\/www.hackingsap.com\/blog\/wp-json\/wp\/v2\/posts\/2192\/revisions"}],"predecessor-version":[{"id":2209,"href":"https:\/\/www.hackingsap.com\/blog\/wp-json\/wp\/v2\/posts\/2192\/revisions\/2209"}],"wp:attachment":[{"href":"https:\/\/www.hackingsap.com\/blog\/wp-json\/wp\/v2\/media?parent=2192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hackingsap.com\/blog\/wp-json\/wp\/v2\/categories?post=2192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hackingsap.com\/blog\/wp-json\/wp\/v2\/tags?post=2192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}