{"id":13,"date":"2010-07-20T16:45:00","date_gmt":"2010-07-20T16:45:00","guid":{"rendered":"http:\/\/www.sapbpc.sapag.co.in\/?p=13"},"modified":"2010-07-20T16:45:00","modified_gmt":"2010-07-20T16:45:00","slug":"business-planning-and-consolidations-bpc-tips-3","status":"publish","type":"post","link":"https:\/\/www.sapbpc.sapag.co.in\/?p=13","title":{"rendered":"Business Planning and Consolidations (BPC) Tips -3"},"content":{"rendered":"<h5 align=\"justify\"><a href=\"http:\/\/www.sapbpctutorials.blogspot.com\">Business Planning and Consolidations (BPC)<\/a>&nbsp; <\/h5>\n<p align=\"justify\">The <strong>REC <\/strong>Statement provides a convenient method to create and manipulate the values of new records using Script Logic.&nbsp; The basic format of the <strong>REC <\/strong>statement is as follows:  <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8230;<\/em> <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *WHEN Dim1<\/em> <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *IS *<\/em> <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *REC(FACTOR=1, Dim2=&#8221;A&#8221;)<\/em> <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *ENDWHEN<\/em> <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8230;<\/em> <\/p>\n<p align=\"justify\">NOTE: The <strong>REC <\/strong>statement requires the selection of an existing record to process, hence the mandatory inclusion of the WHEN \/ ENDWHEN statements. <\/p>\n<p align=\"justify\">The new record(s) created by the <strong>REC <\/strong>statement inherits the same values of all dimensions from the original record.&nbsp; Any dimension specified within the <strong>REC <\/strong>expression will override the original dimension value and will be substituted by the <strong>REC <\/strong>definition for that dimension.&nbsp; In the example above, the <strong>REC <\/strong>statement inherits each record&#8217;s dimension values <strong>except <\/strong>for Dim2.&nbsp; Regardless of the original record&#8217;s Dim2 value, the new record will have Dim2 set to the value &#8220;A&#8221;.&nbsp;&nbsp; <\/p>\n<p align=\"justify\">The <strong>REC <\/strong>can accept multiple dimension assignments, each dimension assignment must be separated with a comma.&nbsp; Example: <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8230;<\/em> <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *REC(FACTOR=1, Dim2=&#8221;A&#8221;,Dim3=&#8221;C&#8221;,Dim4=&#8221;D&#8221;)<\/em> <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8230;<\/em> <\/p>\n<p align=\"justify\">The keyword <strong>FACTOR<\/strong> allows the definition of a numeric value that is used to determine the new record&#8217;s value. Factors are multiplied against the original record&#8217;s values.&nbsp; In the example provided, a FACTOR=1 essentially keeps the original value in the new records being created.&nbsp; A FACTOR=2 will double the value of the new record, and a FACTOR=0.5 will reduce the new record&#8217;s value by half.&nbsp;&nbsp; Example: <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *WHEN &#8230;.<\/em> <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *IS &#8230;.<\/em> <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *REC(FACTOR=.5)<\/em> <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *ENDWHEN<\/em> <\/p>\n<p align=\"justify\">A <strong>FACTOR<\/strong> can be positive or negative values: <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8230;<\/em> <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *REC(FACTOR=-2)<\/em> <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8230;<\/em> <\/p>\n<p align=\"justify\">A <strong>FACTOR<\/strong> can contain simple calculated values: <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8230;<\/em> <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *REC(FACTOR=3.6\/4.7)&nbsp; <\/em> <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8230;<\/em> <\/p>\n<p align=\"justify\">In this case, the factor that will be applied is 3.6 divided by 4.7 or 0.765957. <\/p>\n<p align=\"justify\">The keyword <strong>EXPRESSION<\/strong> may also be used to modify the <strong>REC <\/strong>generated record values. The <strong>EXPRESSION<\/strong> formula can include regular arithmetic operators, fixed values and the keyword <strong>%VALUE%<\/strong> (representing the original retrieved value). <\/p>\n<p align=\"justify\">Examples: <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8230;<\/em> <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *REC(EXPRESSION=%VALUE%+1500)<\/em> <\/p>\n<p align=\"justify\"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8230;<\/em> <\/p>\n<p align=\"justify\">In this example, the value of the new record is determined by adding the value of the original record (<strong>%VALUE%<\/strong>) by a fixed amount (1500).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Business Planning and Consolidations (BPC)&nbsp; The REC Statement provides a convenient method to create and manipulate the values of new records using Script Logic.&nbsp; The basic format of the REC statement is as follows: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8230; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *WHEN Dim1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &hellip; <a href=\"https:\/\/www.sapbpc.sapag.co.in\/?p=13\">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":[1],"tags":[],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=\/wp\/v2\/posts\/13","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=13"}],"version-history":[{"count":0,"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}