{"id":45,"date":"2011-04-17T22:54:00","date_gmt":"2011-04-17T22:54:00","guid":{"rendered":"http:\/\/www.sapbpc.sapag.co.in\/?p=45"},"modified":"2011-04-17T22:54:00","modified_gmt":"2011-04-17T22:54:00","slug":"how-to-debug-business-ruletable-based-logic-in-bpc-for-microsoft-platform-2","status":"publish","type":"post","link":"https:\/\/www.sapbpc.sapag.co.in\/?p=45","title":{"rendered":"How to debug &#8216;Business Rule(Table Based Logic)&#8217; in BPC for Microsoft platform"},"content":{"rendered":"<p>A few weeks ago, I visited one of our customer sites and did some technical consulting.   <br \/>While I was working with them, one of customer told me that Business Rule didn&#8217;t work suddenly. That business rule was working properly before I visited. :(.    <br \/>So I checked business rule (It was for currency conversion) and found nothing that needed to be fixed.&#160; .    <br \/>As we know, it is really hard to find out the root cause because Business Rule just returned &#8216;FX-XXX&#8217; error message. Even though it gives some clues but sometimes it is not the root cause then user will be lost what they need to fix..    <br \/>So I tried to find how to debug easily for escaping this situation because customer started to suspect me that I had ruined that logic. (Of course I didn\u2019t!!!) .    <br \/>As we know, All Business rule stored procedure is encrypted so customer and partners could not debug it in the source code level of stored procedure..    <br \/>BUT&#8230; (There is always BUT. \ud83d\ude42 .    <br \/>We can get more detail error message from the management studio using my method that I will explain..    <br \/>First, we need to create temporary scope table.Usually Scope table will be created automatically based on the passing parameters but we need to create it to run it in management studio..    <br \/>Here is scope table structure. You can give any name for it because we will use it when we call stored procedure..    <br \/><img loading=\"lazy\" decoding=\"async\" border=\"0\" alt=\"image\" src=\"https:\/\/weblogs.sdn.sap.com\/weblogs\/images\/251844296\/Scopetabledesign.JPG\" width=\"346\" height=\"86\" \/>    <br \/>Second, fill some values in the table.    <br \/>This value should be same value when you run that Business Rule..    <br \/><img loading=\"lazy\" decoding=\"async\" border=\"0\" alt=\"image\" src=\"https:\/\/weblogs.sdn.sap.com\/weblogs\/images\/251844296\/Scopetable.JPG\" width=\"244\" height=\"107\" \/>    <br \/>Third, Execute SPRUNXXXX stored procedure in the management studio..    <br \/>You need to specify correct one because there are several stored procedures in BPC. For example, Currency conversion is SPRUNCONVERSION, Account Transformation is SPRUNCALCACCOUNT etc. Now you can see the result as below screenshot.<\/p>\n<p>Please remember when you run SPRUNXXXX stored procedure, you should use scope table name that we created. Below example shows that scope table name is &#8216;Test_Scope&#8217;   <br \/><img loading=\"lazy\" decoding=\"async\" border=\"0\" alt=\"image\" src=\"https:\/\/weblogs.sdn.sap.com\/weblogs\/images\/251844296\/executionresult2.JPG\" width=\"610\" height=\"496\" \/>    <br \/>As you can see, you will find more detail information here.In this example, it says Currency_type is invalid column. It means mbrrptcurrency table should have currency_type column (property) but it doesn&#8217;t have.    <br \/>Therefore, if we create Currency_type property for RPTCURRENCY dimension and fill in proper value, we can solve issue.    <br \/>By the way, the customer that I addressed earlier had wrong property value in their time dimension but it was processed properly because it was a property value. I also solved that case using this way.This is not the solution for all cases but I am pretty sure it will give more hints.<\/p>\n<p>If you have any questions. Please comment it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few weeks ago, I visited one of our customer sites and did some technical consulting. While I was working with them, one of customer told me that Business Rule didn&#8217;t work suddenly. That business rule was working properly before &hellip; <a href=\"https:\/\/www.sapbpc.sapag.co.in\/?p=45\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-45","post","type-post","status-publish","format-standard","hentry","category-sap-bpc-tutorials"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"admin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.sapbpc.sapag.co.in\/?p=45\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"SAP BPC Tutorials | Complete SAP BPC Information Site\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to debug \u2018Business Rule(Table Based Logic)\u2019 in BPC for Microsoft platform | SAP BPC Tutorials\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.sapbpc.sapag.co.in\/?p=45\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2011-04-17T22:54:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2011-04-17T22:54:00+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to debug \u2018Business Rule(Table Based Logic)\u2019 in BPC for Microsoft platform | SAP BPC Tutorials\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?p=45#article\",\"name\":\"How to debug \\u2018Business Rule(Table Based Logic)\\u2019 in BPC for Microsoft platform | SAP BPC Tutorials\",\"headline\":\"How to debug &#8216;Business Rule(Table Based Logic)&#8217; in BPC for Microsoft platform\",\"author\":{\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/weblogs.sdn.sap.com\\\/weblogs\\\/images\\\/251844296\\\/Scopetabledesign.JPG\",\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?p=45\\\/#articleImage\"},\"datePublished\":\"2011-04-17T22:54:00+00:00\",\"dateModified\":\"2011-04-17T22:54:00+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?p=45#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?p=45#webpage\"},\"articleSection\":\"SAP BPC TUTORIALS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?p=45#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?cat=3#listItem\",\"name\":\"SAP BPC TUTORIALS\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?cat=3#listItem\",\"position\":2,\"name\":\"SAP BPC TUTORIALS\",\"item\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?cat=3\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?p=45#listItem\",\"name\":\"How to debug &#8216;Business Rule(Table Based Logic)&#8217; in BPC for Microsoft platform\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?p=45#listItem\",\"position\":3,\"name\":\"How to debug &#8216;Business Rule(Table Based Logic)&#8217; in BPC for Microsoft platform\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?cat=3#listItem\",\"name\":\"SAP BPC TUTORIALS\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/#organization\",\"name\":\"SAP BPC Tutorials\",\"description\":\"Complete SAP BPC Information Site\",\"url\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?author=1#author\",\"url\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?author=1\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?p=45#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/141e87555ebe28096faf7ea77330dd2f785f64e8e9ccf453267c2627e1fe3073?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"admin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?p=45#webpage\",\"url\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?p=45\",\"name\":\"How to debug \\u2018Business Rule(Table Based Logic)\\u2019 in BPC for Microsoft platform | SAP BPC Tutorials\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?p=45#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/?author=1#author\"},\"datePublished\":\"2011-04-17T22:54:00+00:00\",\"dateModified\":\"2011-04-17T22:54:00+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/#website\",\"url\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/\",\"name\":\"SAP BPC Tutorials\",\"description\":\"Complete SAP BPC Information Site\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sapbpc.sapag.co.in\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to debug \u2018Business Rule(Table Based Logic)\u2019 in BPC for Microsoft platform | SAP BPC Tutorials","description":"","canonical_url":"https:\/\/www.sapbpc.sapag.co.in\/?p=45","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sapbpc.sapag.co.in\/?p=45#article","name":"How to debug \u2018Business Rule(Table Based Logic)\u2019 in BPC for Microsoft platform | SAP BPC Tutorials","headline":"How to debug &#8216;Business Rule(Table Based Logic)&#8217; in BPC for Microsoft platform","author":{"@id":"https:\/\/www.sapbpc.sapag.co.in\/?author=1#author"},"publisher":{"@id":"https:\/\/www.sapbpc.sapag.co.in\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/weblogs.sdn.sap.com\/weblogs\/images\/251844296\/Scopetabledesign.JPG","@id":"https:\/\/www.sapbpc.sapag.co.in\/?p=45\/#articleImage"},"datePublished":"2011-04-17T22:54:00+00:00","dateModified":"2011-04-17T22:54:00+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.sapbpc.sapag.co.in\/?p=45#webpage"},"isPartOf":{"@id":"https:\/\/www.sapbpc.sapag.co.in\/?p=45#webpage"},"articleSection":"SAP BPC TUTORIALS"},{"@type":"BreadcrumbList","@id":"https:\/\/www.sapbpc.sapag.co.in\/?p=45#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.sapbpc.sapag.co.in#listItem","position":1,"name":"Home","item":"https:\/\/www.sapbpc.sapag.co.in","nextItem":{"@type":"ListItem","@id":"https:\/\/www.sapbpc.sapag.co.in\/?cat=3#listItem","name":"SAP BPC TUTORIALS"}},{"@type":"ListItem","@id":"https:\/\/www.sapbpc.sapag.co.in\/?cat=3#listItem","position":2,"name":"SAP BPC TUTORIALS","item":"https:\/\/www.sapbpc.sapag.co.in\/?cat=3","nextItem":{"@type":"ListItem","@id":"https:\/\/www.sapbpc.sapag.co.in\/?p=45#listItem","name":"How to debug &#8216;Business Rule(Table Based Logic)&#8217; in BPC for Microsoft platform"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.sapbpc.sapag.co.in#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.sapbpc.sapag.co.in\/?p=45#listItem","position":3,"name":"How to debug &#8216;Business Rule(Table Based Logic)&#8217; in BPC for Microsoft platform","previousItem":{"@type":"ListItem","@id":"https:\/\/www.sapbpc.sapag.co.in\/?cat=3#listItem","name":"SAP BPC TUTORIALS"}}]},{"@type":"Organization","@id":"https:\/\/www.sapbpc.sapag.co.in\/#organization","name":"SAP BPC Tutorials","description":"Complete SAP BPC Information Site","url":"https:\/\/www.sapbpc.sapag.co.in\/"},{"@type":"Person","@id":"https:\/\/www.sapbpc.sapag.co.in\/?author=1#author","url":"https:\/\/www.sapbpc.sapag.co.in\/?author=1","name":"admin","image":{"@type":"ImageObject","@id":"https:\/\/www.sapbpc.sapag.co.in\/?p=45#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/141e87555ebe28096faf7ea77330dd2f785f64e8e9ccf453267c2627e1fe3073?s=96&d=mm&r=g","width":96,"height":96,"caption":"admin"}},{"@type":"WebPage","@id":"https:\/\/www.sapbpc.sapag.co.in\/?p=45#webpage","url":"https:\/\/www.sapbpc.sapag.co.in\/?p=45","name":"How to debug \u2018Business Rule(Table Based Logic)\u2019 in BPC for Microsoft platform | SAP BPC Tutorials","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.sapbpc.sapag.co.in\/#website"},"breadcrumb":{"@id":"https:\/\/www.sapbpc.sapag.co.in\/?p=45#breadcrumblist"},"author":{"@id":"https:\/\/www.sapbpc.sapag.co.in\/?author=1#author"},"creator":{"@id":"https:\/\/www.sapbpc.sapag.co.in\/?author=1#author"},"datePublished":"2011-04-17T22:54:00+00:00","dateModified":"2011-04-17T22:54:00+00:00"},{"@type":"WebSite","@id":"https:\/\/www.sapbpc.sapag.co.in\/#website","url":"https:\/\/www.sapbpc.sapag.co.in\/","name":"SAP BPC Tutorials","description":"Complete SAP BPC Information Site","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.sapbpc.sapag.co.in\/#organization"}}]},"og:locale":"en_US","og:site_name":"SAP BPC Tutorials | Complete SAP BPC Information Site","og:type":"article","og:title":"How to debug \u2018Business Rule(Table Based Logic)\u2019 in BPC for Microsoft platform | SAP BPC Tutorials","og:url":"https:\/\/www.sapbpc.sapag.co.in\/?p=45","article:published_time":"2011-04-17T22:54:00+00:00","article:modified_time":"2011-04-17T22:54:00+00:00","twitter:card":"summary","twitter:title":"How to debug \u2018Business Rule(Table Based Logic)\u2019 in BPC for Microsoft platform | SAP BPC Tutorials"},"aioseo_meta_data":{"post_id":"45","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-02-03 06:50:37","updated":"2025-12-10 02:58:00","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.sapbpc.sapag.co.in\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.sapbpc.sapag.co.in\/?cat=3\" title=\"SAP BPC TUTORIALS\">SAP BPC TUTORIALS<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to debug \u2018Business Rule(Table Based Logic)\u2019 in BPC for Microsoft platform\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.sapbpc.sapag.co.in"},{"label":"SAP BPC TUTORIALS","link":"https:\/\/www.sapbpc.sapag.co.in\/?cat=3"},{"label":"How to debug &#8216;Business Rule(Table Based Logic)&#8217; in BPC for Microsoft platform","link":"https:\/\/www.sapbpc.sapag.co.in\/?p=45"}],"_links":{"self":[{"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=\/wp\/v2\/posts\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=45"}],"version-history":[{"count":0,"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=\/wp\/v2\/posts\/45\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}