<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Domingo Banuelos on Medium]]></title>
        <description><![CDATA[Stories by Domingo Banuelos on Medium]]></description>
        <link>https://medium.com/@d.banuelos.vela?source=rss-a08ed1ebc4ed------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Hd_bB0CZFNkCynGR-vihNg.png</url>
            <title>Stories by Domingo Banuelos on Medium</title>
            <link>https://medium.com/@d.banuelos.vela?source=rss-a08ed1ebc4ed------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:59:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@d.banuelos.vela/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Data Models, Semantic Layer and SAP DataSphere]]></title>
            <link>https://medium.com/@d.banuelos.vela/data-models-semantic-layer-and-sap-datasphere-1b6ef37ba7d8?source=rss-a08ed1ebc4ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b6ef37ba7d8</guid>
            <dc:creator><![CDATA[Domingo Banuelos]]></dc:creator>
            <pubDate>Wed, 25 Mar 2026 15:59:17 GMT</pubDate>
            <atom:updated>2026-03-25T21:31:48.546Z</atom:updated>
            <content:encoded><![CDATA[<p>As discussed in my previous article, I am initiating a SAP BDC (DataSphere) implementation. <a href="https://medium.com/@d.banuelos.vela/re-imagining-how-a-large-company-use-data-the-journey-b79198dc3cbb"><em>Link to the initial article</em></a>. That said, some of the initial steps are quite technology agnostic and, specifically, the design of the data models is what is getting most of the focus at this point.</p><p>Like many other SAP BW system we come from a data warehouse that is a number of years old. This has brought some challenges:</p><ul><li>Proliferation of models (classic BW or based on HANA views)</li><li>Metrics and business logic is spread through multiple layers (BW models, HANA views, BEx queries, SAC calculations) and KPI re-usability is a challenge</li><li>The number of models and the poor semantics and inventory of queries and metrics makes self service difficult for end users</li><li>Certain additional calculations andlogic is applied outside SAP BW results as required business logic has evolved faster than the system</li></ul><p>This is why it is a good time to review processes, understand questions usually raised by business, brainstorm how data can help optimise these processes and take a look at the latest trends on data modelling and what is offered by the tools we are implementing.</p><p><em>Semantic Layer</em></p><p>I keep getting lots of articles on the importance of the Semantic Layer lately in my suggested reads. This my current summary / opinion.</p><ul><li>It is critical to implement metrics identified in business processes in the data model / semantic layer (Analytical Model in SAP DataSphere terms)</li><li>By having your metrics in the model we achieve a number of goals: consistency and re-usability of metrics, simplification of self-service, enabling the use of LLM based tools (more on this later)</li><li>I think it is important to also have raw metrics (amount, quantities) and not just the calculated KPIs to enable ad-hoc analysis outside of the official metric definitions</li><li>It is important to have good cataloguing capabilities to make the models more accessible to users (more on this later)</li><li>Finally, based on recent papers I´ve read, I think it is very important to implement in the model itself indicators, targets, thresholds or any other method that allows the identification of anomalous or out of bounds results (more on this later)</li></ul><p><em>Semantic Layer and LLM Integration</em></p><p>I haven´t explored much AI usage with SAP DataSphere models (yet) but one very simple and powerful tool is <a href="https://help.sap.com/docs/SAP_ANALYTICS_CLOUD/00f68c2e08b941f081002fd3691d86a7/95dbe296761940c2bf4e18d54a20f3df.html">SAP SAC Just Ask</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*xe_nCgo35cb08M1qC1EJeQ.jpeg" /></figure><p>In simple terms, this is a tool, standard in SAP SAC landing page where you can select the model you want to ask a question using natural language and the tool will generate in seconds the necessary widgets to answer your question. The result is interactive like any other SAC story (dashboard).</p><p>While you are typing your question you will automatically get a drop down with the dimensions and metrics available in the model and that is why having an strong semantic layer makes a big difference. It takes seconds to type the question and get your answer.</p><p>Important to say that all the Analytical Models created in SAP DataSphere are avaialble to be used with this tool.</p><p><em>Semantic Layer and Agentic AI</em></p><p>As mentioned earlier, I havent explored much on the use of AI with SAP DataSphere data models. It is my intention to try out and explore SAP DataBricks, Joule Studio and the recently Snowflake — SAP collaboration in the coming months among other tools.</p><p>For now I think it is important to consider this idea when designing our data models:</p><p>To my knowledge and as of today (2026) AI is very capable but if you have a model that contains many dimensions (accounts, company codes, Cost Centers, etc) and raw metrics (Amount in Local Currency) and you ask an AI to give you a SQL to get a value for EBITDA it will most likely be incorrect and the result will differ from the — manually calculated— official figure.</p><p>To overcome the above limitation we are pre-defining KPIs in the semantic layer. Good. Now we can ask an AI like ‘Just Ask’ to produce a report that shows EBITDA trends and YoY comparison.</p><p>Now, lets think of Agentic AI. For the agent an EBITDA of a 3% or a 10% or a 20% are equaly valid. This can be extended to any other metric we want to use to trigger an action to automate a business process.</p><p>I believe it is important to introduce in the modelling a way to indicate if a certain value of a KPI is correct / incorrect, valid / invalid, red or green so, in the near future, we can start exploring the use of Agentic AI to take actions based on KPI values. These indicators will carry the business logic that a human would apply when they analyse a report in the traditional way.</p><p>This is going to be an exciting aspect of the implementation. I am not 100% sure at this point on how best implementing this but I will provide more thoughts in the future.</p><p>For now, one of my main open points is that, depending on the KPI or metric the, lets call it, ‘Validity Indicator’ can be calculated at different granularities. You may have a Work Order where the duration is too high and you can probably flag it at the lowest level. On the other hand, aggregated KPIs will require a different approach. EBITDA may be red at total company level but may have a mix of reds and greens when you drill down by the different company codes. This means the indicator can not be pre-calculated in the model (at transaction level) and needs to be evaluated at run time.</p><p><em>How can we implement the Semantic Layer in SAP DataSphere?</em></p><p>As of now the main object to implement your Semantic Layer in SAP DataSphere is your Analytic Model. In addition to it, you can add semantics in the Catalogue. Let´s see what are the main capabilities (and limitations).</p><p><em>Analytic Models</em></p><p>Analytic Models are the classic objects where you join a fact table with multiple dimensions. It is not the objective of this article to go through the whole capabilities of DataSphere but basically Dimensions have multiple attributes and hierarchies while the Fact table contains the basic measures and dimension keys. If I´m not mistaken, in coming months it will be possible to use a union of fact tables in a single Analytic Model.</p><p>In addition to this, in the Analytic Models you can create calculated measures using the base measures from the fact table and the dimensions to create restrictions and aggregations. It is in this layer where we will create the re-usable metrics and KPIs.</p><p>All the elements in the Analytic Model have a technical and a business name so they can be easily identified. These business names are the names a user will see in SAC when creating a story or using Just Ask.</p><p>In addition to this, data from Analytic Models can also be queries using a standard API generated on top of the Analytic Model. Technical and Business descriptions are available in the API metadata call.</p><p><em>Catalogue</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aVP1SBRYyPTjjJ5C_4Wbkw.jpeg" /></figure><p>SAP DataSphere Catalogue allows you to create KPIs, Terms and Tags, group them in Categories or Hierarchies and assing them to the Assets. What is an Asset? Any Analytical Model or View created in the Data Modeler. So in particular, you can use the Catalogue to increase the metadata associated to your Analytic Model.</p><p>The current Catalogue is quite powerful, however, the screen to access the Catalogue could be a bit complex for certain users and you will need to know how to filter it to find what you want. There are integrations of the Catalogue with tools like Collibra that I haven´t explored.</p><p>In the Catalogue you can associate Catalogue KPIs with measures created in the Analytic Model however I haven´t found a way to link Tags and Terms to specific attributes in the Analytic Model (you can assing them to the model).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EwxQzDQ8XtU8owVbVGd2aw.jpeg" /><figcaption>Semantic Enrichment in the Catalogue</figcaption></figure><p>Another functionality I am missing is the use of synonyms to allow better functionality when using AI.</p><p>For KPIs there are nice properties that can be populated. In my opinion it is very interesting that you can set up the Thresholds for a KPI. This ties up nicelly with the Semantic Layer principles that I described earlier in this article. With these thresholds you should be able to automatically detect anomalies in your KPI vlaues. At this point I haven´t read or seen any integration of this Threshold with the consumption layer (SAC).</p><p>Finally, and this is also quite nice, when you link your DataSphere to your SAC environment in the Semantic Onboarding section you can see the SAC Stories in the Catalogue and assign KPIs and Terms. This feature, plus the strong lineage and impact analysis features avialble helps significantly in finding Stories linked to models and where can a KPI be consumed and found.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9gYgy47W44Zm5w_L1iMR6g.jpeg" /><figcaption>KPI Properties</figcaption></figure><p><em>Final Thoughts</em></p><p>In my opinion SAP DataSphere Analytic Models and the rest of the Data Builder objects gives us very good capabilites to create a model with rich semantics and pre-defined metrics.</p><p>The Catalogue is a nice feature but I am lacking a tighter integration with the Analytic Model (link Terms and Attributes, inherit Catalogue Thresholds when you use the model in SAC, etc). There are also some complexities around maintaining the Catalogue in your non-production environment vs your production environment and how to avoid double work and keeping them in sync.</p><p>I would also like to find a better way for business users to actually use the Catalogue to find where to get a certain KPI. Perhaps it is just a matter of training users.</p><p>I believe I still need to explore a bit more this functionality and there will probably be new addtions to what is possible in the coming months.</p><p>What´s your experience so far in this area? Input is welcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b6ef37ba7d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Re-imagining how a large company use data, the journey]]></title>
            <link>https://medium.com/@d.banuelos.vela/re-imagining-how-a-large-company-use-data-the-journey-b79198dc3cbb?source=rss-a08ed1ebc4ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/b79198dc3cbb</guid>
            <dc:creator><![CDATA[Domingo Banuelos]]></dc:creator>
            <pubDate>Sun, 15 Mar 2026 11:57:33 GMT</pubDate>
            <atom:updated>2026-03-25T16:02:02.528Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@d.banuelos.vela/data-models-semantic-layer-and-sap-datasphere-1b6ef37ba7d8">Part 2: Data Models, Semantic Layer and SAP DataSphere</a></p><p>For over 25 years my main professional focus has been designing and implementing reporting and analytics for large corporations. This often included multiple countries and continents, complex application landscapes and a variety of functional areas: complex finantial and costing, end to end supply chain and sales, expensive equipment management (from acquisition to maintenance and eventually decomission) and many other functional areas.</p><p>Years ago the main focus was on reports. Fixed reports automating what employees would manually put together. Over the years we identified metrics and KPIs that would help business understand the different steps of their business processes. We are now inmmersed in an AI world and the way we use data has changed or is, at least, changing.</p><p>I just recently embarked in a new adventure: re-implementing data analytics (and beyond) for a large mining company. It is my intention, through these articles to take you through the journey. What is clear to me and how we are doing it, what is uncertain and how we explore and decide on options and surprises this journey may bring.</p><p>Just some context for you to decide if you are interested or not. This is a project where 80% of the sources of data are SAP systems: S/4, Success Factors, HCM to mention a few. When it comes to data and analytics we will be using SAP Business Data Cloud (BDC) to bring the data together and run analytics and AI. From a consumption of the data we will primarily use SAP SAC for analytics, self-service and planning but we will also explore the use of PowerBI and SAP Databricks. Finally, we are coming from a large SAP BW environment that we are aiming to sunset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*oEGhXXOuUYdoa7tauBBXyg.png" /></figure><p>For those interested I will be happy to discuss options in the comments. There is always multiple approaches that can be valid.</p><p>This initiative is going to extend well into 2027 due to multiple competing initatives taking valuable time but will be posting as we make progress.</p><p>Let´s start the journey then.</p><p>Where are we now? Well, we are at a point where our main focus points are:</p><ul><li>Starting the <strong>engagement with key business stakeholders</strong> to bring them into this journey. I will explain later how important this is for us.</li><li>Running an <strong>assessment on our current SAP BW usage </strong>to identify where is data currently used in the different functional areas and where is not.</li><li><strong>Setting up</strong> our SAP BDC environment.</li></ul><p><strong><em>Business Involvement</em></strong></p><p>This time this is not going to be a tool or environment owned and run by IT. This is one of my key objectives. We know it is not easy sometimes to get already busy key bussiness invividuals involved, but we have to make it happen. I´m trying to use my best selling skills to get business excited about this change.</p><p>What are my selling points?</p><ul><li>Decreasing their effort to get the information they need. Over the years our BW reports and models end up not covering all the business needs and the changes required have not been made. This ends up requiring business people having to run BW queries in Analysis for Office or SAC, download the data, manipulate / enhance / massage and the distribute to final consumers. It is one of my main objectives to reduce to a minimum manual intervention and keep it like this in the future.</li><li>Increasing reliability and usage of the data. We are implementing the <strong>Data Product </strong>concept with the associated data quality scores, discoverability, semantics, roadmaps, etc.</li><li>Re-imagining self service. Traditionally self service was limitted to creating their own advanced workbooks using Analysis for Office and using existing queries to create SAP Stories. SAC capabilities when connected to BDC are way beyond what can be done when connecting to a BW query (live connection). In addition to that we are showcasing the ‘<a href="https://help.sap.com/docs/SAP_ANALYTICS_CLOUD/00f68c2e08b941f081002fd3691d86a7/95dbe296761940c2bf4e18d54a20f3df.html">Just Ask</a>’ new options in SAC and, in the near future, data scientist usage of SAP Databricks.</li><li>Bussiness Ownership of the data models. We want business to own their models and IT will only advise and implement them.</li><li>Briging the AI / ML capabilities close to them. We want to identify where in the business processes can AI or ML models play an important role.</li></ul><p><strong><em>BW Usage</em></strong></p><p>As much as we want to re-imagine it is quite valuable to understand which parts of our currenct BW environment are heavily used and re-use some of the metrics and models definitions. In the BW architecture metrics and KPI logic is split between HANA views (the heart of BW) and BW Queries. Our objective is to get these metrics (and more) into the BDC new models so they are available for self-service and AI consumption.</p><p><strong><em>BDC Set up</em></strong></p><p>Within the BDC suite our main focus point at the moment is SAP DataSphere. We are starting to create connections to SAP S4 and Sucess Factors to start with. More info on this in future posts.</p><p>That´s it for now. I will be writting on more detailed topics soon: what type of connection to S4?, use of remote tables or loading data into BDC?, should we use SAP delivered Data Products? How to share data with non-SAP tools? How are we implementing our data products, etc</p><p>Hope you enjoy future reads ….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b79198dc3cbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAP Cost Data (part 4): Plan data & Non costing data]]></title>
            <link>https://medium.com/@d.banuelos.vela/sap-cost-data-part-4-plan-data-non-costing-data-ff9121b57406?source=rss-a08ed1ebc4ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff9121b57406</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[planning]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[variance]]></category>
            <category><![CDATA[cost]]></category>
            <dc:creator><![CDATA[Domingo Banuelos]]></dc:creator>
            <pubDate>Sun, 07 Apr 2024 19:20:44 GMT</pubDate>
            <atom:updated>2024-04-07T19:56:05.339Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article is part of a series on data modeling with SAP data: </em><a href="https://medium.com/@d.banuelos.vela/data-modeling-with-sap-data-an-introduction-77608d3051c2"><em>Data modeling with SAP data: An introduction</em></a></p><p>The aim of this first series of articles is to be able to analyze a company cost. It is important to be able to break down the cost by multiple dimensions so you can understand where and how cost is incurred. We can achieve this with the data stored in ACDOCA table, hierarchies and master data as described in previous articles.</p><p>To make our cost analysis even more valuable we will introduce 2 more aspects that will boost our analysis:</p><ol><li>Plan data: by plan data I´m referring to the full year budget or the different forecasts that a company will create as the year progresses. This will allow us to calculate variances to plan so we can control our costs more precisely.</li><li>Non finantial data: number of units produced, number of tonnes processed, number of tonnes consumed of a certain material, in other words, a non finantial measure that can help us put into perspective the cost incurred. This data will be very useful to calculate cost per unit so we can analyze efficienties. In conjuntion with cost plan data and actuals we will be able to calculate complex variances.</li></ol><p><strong>Plan Data</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*0c_q2LfRlFDcorhcaF6k4g.png" /><figcaption>Some usual planning tools</figcaption></figure><p>A bit of background on Plan Data. Generally companies have dedicated systems designed to produce plan data. These systems would allow for planning specific funtionality:</p><ul><li>Bottom-up aggregation</li><li>Top-Down allocations</li><li>PxQ calculations</li><li>Escalation of figures with time</li><li>Any other complex logic</li></ul><p>In the SAP world we have been using SAP BPC for many years and, more recently, SAP SAC Planning. Many other non-SAP products are available. For the purpose of this article I will assume some sort of plan data is available at a cost center, cost element, month level for cost related measures. We will usually get a few versions of the plan data, for example:</p><ul><li>Budget: Yearly budget. Remains the same over the year</li><li>Forecast: multiple versions during the year. As the year progresses they incorporate the actuals for the months in the past. For example: <em>‘Forecast Version 1’</em> will be actuals from Jan to Mar and Forecast from April to December, <em>‘Forecast Version 2’</em> will be actuals from Jan to June and Forecast from July to December</li></ul><p>Depending on the analytics architecture there are multiple options to connect to plan data. There are direct connectors from PowerBI to Hyperion Essbase, you can connect your front end tool to the plan data in a SQL database or flat file, you can load plan data into your data lake / data warehouse, etc. Since these articles are focused on SAP data models I will describe how will we usually get SAP data but the previouly mentioned architectures can be integrated with the extra SAP data for non-plan data.</p><p><strong>Plan data in SAP</strong></p><p>It doesn’t matter if you produce you plan using a SAP product (already mentioned SAP BPC and SAP SAC planning) or if it is produced in a non-SAP tool. Irrespective of the planning tool, Plan data can be loaded into SAP S/4. This is used to be able to run plan vs actual operational reports in SAP S/4 directly. When using SAP SAC Planning there are out of the box integrations that allow you to push plan data into SAP S/4. You an also load Plan data using flat files if the data is coming from any other planning tool.</p><p>Now, where is the plan data stored? Well, years ago plan data would be stored in tables like COSP and COSS. These tables would have fields WRTTP (Value Type) and VERSN (Version) in the key so you can store multiple versions of the plan data in the same table. One intersting thing about these tables was that they will have one column per fiscal period (up to 16) storing amounts and a set of columns per curreny type (refer to the ACDOCA article for an explanation on currency types). This implied you had to transpose the columns to get a row per period. In any case, these tables a not used anymore …. or more precisely, they can be used but most companies would be using table ACDOCP. If anyone is interested in a more detailed description of COSP, COSS plan data model, please let me know.</p><p>Back to ACDOCP. As the name indicates it is the sister table of ACDOCA but for plan data. As simple as this. And the beauty of this is that both tables are quite aligned, so it is super simple to do a union between both of them.</p><p>I will just make a few quick comments, for the ACDOCA article please follow this link: <a href="https://medium.com/@d.banuelos.vela/sap-cost-data-one-table-to-rule-them-all-acdoca-part-1-7667bacacd6d">https://medium.com/@d.banuelos.vela/sap-cost-data-one-table-to-rule-them-all-acdoca-part-1-7667bacacd6d</a></p><p>Cost Center, Profit Center, Account, Controlling Area, Company Code are all the same as in ACDOCA.</p><p>Also the fields containing amounts and currencies are named the same.</p><p>Important field: CATEGORY. This field tells you which version of the plan are you reading.</p><p>Posting date, fiscal period are also the same. Fiscal year is RYEAR.</p><p><strong>Non finantial data</strong></p><p>Non finantial data can come from many sources. Similarly to the plan data, non finantial data can be accessed directly by the reporting tool, loaded into a data warehouse or, in the case of S/4 HANA, loaded into specific tables. As you must have guessed this last option is the one I´m going to describe.</p><p>There are some advantages of reading the data from S/4. Before loading the data in S/4 the responsible business team would have reviewed and approved the figures. This is quite good for analytics, instead of connecting to technical systems where the figures (e.g. production) may require adjustments before using them.</p><p>Non finantial data is loaded into S/4 into an object called ‘Statistical Key Figure’, SKF for short. These SKFs can be loaded in Actual values or Plan values.</p><p>Both Actual and Plan values are loaded into table FINSSKF.</p><p>Cost Center, Profit Center, Account, Controlling Area, Company Code are all the same as in ACDOCA.</p><p>Time dimension is managed via field DATE_FROM. This date tells us the month the SKF refers to. SKF´s are usually loaded monthly.</p><p>The SKF value is stored in field MSL (Quantity) and the unit of measure in field RUNIT. This will tell us how many tonnes, units or liters are associated to the measure.</p><p>The next important fields allow you to distinguish Actual and Plan values. For that we will use:</p><ul><li>RRCTY (Record Type): 0, Actual. 1, Plan</li><li>CATEGORY (Category): similar use as in ACDOCP</li></ul><p>And finally, you can have multiple SKF recorded every month, hence you need a way to identify the SKF. This is field STAGR. Table TKA03 will give you the descriptions associated to each STAGR SKF id.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff9121b57406" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAP Cost Data (part 3): Master Data]]></title>
            <link>https://medium.com/@d.banuelos.vela/sap-cost-data-part-3-master-data-def6a18776e2?source=rss-a08ed1ebc4ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/def6a18776e2</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[profit-center]]></category>
            <category><![CDATA[cost-centre]]></category>
            <category><![CDATA[sap]]></category>
            <dc:creator><![CDATA[Domingo Banuelos]]></dc:creator>
            <pubDate>Thu, 28 Mar 2024 20:23:04 GMT</pubDate>
            <atom:updated>2024-03-28T20:33:48.462Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article is part of a series on data modeling with SAP data: </em><a href="https://medium.com/@d.banuelos.vela/data-modeling-with-sap-data-an-introduction-77608d3051c2"><em>Data modeling with SAP data: An introduction</em></a></p><p>In previous parts we introduced the main source for actual costs (ACDOCA) and cost related hierarchies. In this part 3 I will introduce additional master data frequently used in cost related analytics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*6UUJJLjE-FepomMJHvivfw.png" /><figcaption>Master Data entities</figcaption></figure><p><strong><em>Cost Center Master Data</em></strong></p><p>In addition to the information we can extract from the different hierarchies, cost center master data from table CSKS gives us additional interesting information:</p><ul><li>Cost Center Category (KOSAR) with text table TKA05. Useful to group Cost Centers (Production, Sales, Management, etc)</li><li>Business Area (GSBER) with text table TGSB. Internal organizational unit to group Cost Centers</li><li>Profit Center (PRCTR). Also an organizational level. Useful in Profit &amp; Loss reporting since both costs and revenue are assigned to profit centers</li><li>Person Responsible (VERAK)</li></ul><p>Also interesintg table CSKT for the description of the Cost Center. Both CSKT and CSKS are time dependant and have Valid From and Valid To fields. We will focus on time dependant tables in future articles when we address HR data modelling.</p><p><strong><em>Cost Element Master Data</em></strong></p><p>In not very finantial terms, Cost Centers represent the ‘Where’ is the cost spent (Head Office, production facility, management, etc) and the Cost Elements represent the ‘What’ is cost spent on (Spares, Utilities, Salaries etc).</p><p>The Cost Element hierarchy also contains valuable information.</p><p>There are Primary Cost Elements that represent actual costs. There are also Secondary Cost Elements that represent internal allocaitons or settlement of costs.</p><p>Useful tables:</p><ul><li>Cost Element master data (CSKB) with field Cost Element Category (KATYP) that gives a view on what is the cost element used for (Revenues, Primary Costs, Internal Settlement, etc)</li><li>Cost Element descriptions (CSKU)</li></ul><p><strong><em>WBS Element and Project Master Data</em></strong></p><p>Multiple WBS Elements belong to a single Project. Multiple</p><p>Let´s start with the WBS. The main master data table is PRPS. Main fields:</p><ul><li>PSPNR: Numeric ID of the WBS</li><li>POSID: Alfanumeric ID of the WBS. This is the usual one used in reporting</li><li>POST1: Description</li><li>PSPHI: Project numeric ID (= PROJ-PSPID)</li><li>USRXX: It is common to create and use multiple custom attributes of the WBS. The meaning of each of these fields depend on the S/4 implementation</li></ul><p>Project main master data table PROJ:</p><ul><li>PSPNR: Numeric ID of the Project</li><li>PSPID; Alfanumeric ID of the Project (= PRPS-PSPHI)</li><li>POST1: Description</li><li>VERNR, VERNA: Number and name of the person responsible for the project</li><li>USRXX: It is common to create and use multiple custom attributes of the Project. The meaning of each of these fields depend on the S/4 implementation</li><li>PLFAZ, PLSEZ: Project planned start and end dates</li><li>VPROF, PROFL: Network Profile, Project Profile. User for classifiying differnt types of projects. Use tables TCN41 and TCJ41 respectively to get descriptions</li></ul><p><strong><em>Additional Master Data</em></strong></p><p>Depending on the origin of the cost additional information will be recorded in table ACDOCA. These fields will also have their own master data. For example:</p><ul><li>Vendor &amp; Material for Purchase Orders</li><li>Customer &amp; Material for Sales</li><li>Equipment and Functional Location for Maintenance and Production</li></ul><p>I will be adding more on this additional master data as required in the final models …. coming soon …..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=def6a18776e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAP Cost Data (part 2): Hierarchies]]></title>
            <link>https://medium.com/@d.banuelos.vela/sap-cost-data-part-2-hierarchies-122df88383e1?source=rss-a08ed1ebc4ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/122df88383e1</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[hierarchy]]></category>
            <category><![CDATA[cost]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[cost-centre]]></category>
            <dc:creator><![CDATA[Domingo Banuelos]]></dc:creator>
            <pubDate>Wed, 20 Mar 2024 22:08:23 GMT</pubDate>
            <atom:updated>2024-03-21T19:45:15.491Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article is part of a series on data modeling with SAP data: </em><a href="https://medium.com/@d.banuelos.vela/data-modeling-with-sap-data-an-introduction-77608d3051c2"><em>Data modeling with SAP data: An introduction</em></a></p><p>Long story short: hierachies are extremely important when doing analytics on SAP cost.</p><p>Why? Well, when in a complex system like S/4 you generate millions of postings and each posting is recorded against one of the thousands of cost centers and hundreds of accounts you have a lot of data but not so much information. Hierarchies allow you to group cost centers, profit centers, accounts, etc and these groups contain the information you need.</p><p>Let´s provide a bit of background on how hierarchies work in S/4.</p><p>There are hierarchies in most of the functional areas, just to mention a few:</p><ul><li>Logistics &amp; Sales: Material, Customer, Vendor hierarchies</li><li>Finance: Finantial Statements, Accounts hierarchies</li><li>Costing: Cost Center, Profit Center, Cost Element, WBS and Projects hierarchies</li><li>Maintenance and Production: Functional Location, Equipment hierarchies</li></ul><p>For now we will focus on the Cost Center hierarchy since it is the most used (along with Cost Element) in cost analytics.</p><p>Cost Center hiearchies (CCH) are also referred as Cost Center Groups. They are created in the context of a Controlling Area. Cost Centers (CC) (that are the leafs in this hierarchies) are also created within a Controlling Area. This means the Controlling Area is part of the key in most of the related tables.</p><p>You can have multiple CCH within a controlling area. Each CCH will have a technical name and a description. A large company typically has hundreds or a few thousand CC. They normally represent the different parts of you company but how granular they are depends on the approach followed in the S/4 implementation. You may be capturing your cost for an entire factory in one single CC or using one CC for each of the steps in your production process or go down to the individual sub-steps and machines. This will determine the number of CC used.</p><p>Assuming you have a large number of CC you will need to group them using a hiearchy in order to analyze cost.</p><p><em>Potential Approaches for using hierachies for analytics</em></p><p>I come from a SAP BW background. When using BW SAP provides standard extractors in S/4 that will allow you to choose the hierarchy you want to extract and load all the information in BW. In BW this information will be stored in standard tables containing:</p><ul><li>Hierarchy metadata</li><li>Parent — child information based on node ID´s</li><li>Descriptions for the ‘folders’ or nodes in the hierarchy</li><li>Descriptions for the leafs</li></ul><p>SAP BW would then use these tables in BW queries making it very simple to use hierarchies in front end tools. You can display CC organized by a certain hierarchy, filter based on nodes, expand leveles etc.</p><p>In this article I´m not going to folow the BW approach, as it is too simple and doesn´t apply to other architectures. I will follow the approach where we asume we have the raw tables from S/4 where hierarchies are stored and we build a data model to give us an equivalent view that can be used in any front end tool for filtering and navigation. This approach will flatten the hierachy.</p><p>We could also read standard CDS views in S/4. These CDS views are basically doing the same job that we will do in the data model (and you can read the CDS view code to get some inspiration of how to create the data model). The reason why I´m not using a CDS view is because in all this series of articles my assumption is that the architecture is based on replicated S/4 tables in an external database.</p><p><em>Data model</em></p><p>Most of the cost related hierarchies in S/4 are stored in a single set of tables: SETNODE, SETLEAF, SETHEADERT (and some others). This is great because with one single model you can access tens of hierarchies. In addition to that we will use CC texts table CSKT.</p><p><em>Let’s start with SETHEADERT (Table name “Short Description of Set”)</em></p><p>When you create a CC group (CCG) a new entry is created in this table. If you re-use this CC group as a leaf of another CCG, another entry is created in this table. For reporting we are interested in the higher level CCG created so we can then expand into nested CCG’s. You will have to find the technical name of the higher level CCG you want to use for reporting.</p><p>Let´s see the main fields:</p><ul><li>SETCLASS: value depending on the type of hierarchy you are reading: 0101 (Cost Center), 0102 (Cost Element), 0106 (Profit Center), etc</li><li>SUBCLASS: in this case it is the Constrolling Area</li><li>SETNAME: the name of the CCG. In this case the higher level CCG</li><li>LANGU: E, P, S etc</li><li>DESCRIPT: The description of the CCG</li></ul><p><em>Table SETLEAF</em></p><p>As the table name indicates is contains the leafs in the hierarchy, that is the CC´s. Not fequent but sometimes the hierarchy can be created giving a range of CC, that´s why this table contains fields VALFROM and VALTO. In case only individual CC are assigned the value will be in VALFROM. From my experience the value ranges are mostly used in Accounts or Cost Element hierarchies.</p><p>The same CC can be assigned to multiple CCG´s.</p><p>Main fields:</p><ul><li>SETCLASS: value depending on the type of hierarchy you are reading: 0101 (Cost Center), 0102 (Cost Element), 0106 (Profit Center), etc</li><li>SUBCLASS: in this case it is the Constrolling Area</li><li>SETNAME: the name of the CCG where the CC is assigned. Basically the parent.</li><li>VALFROM, VALTO: individual CC or CC range.</li></ul><p><em>Table SETNODE</em></p><p>Again, as the name indicates, this table contains the nodes of the hierarchy. The nodes are not CC´s, they are just text nodes grouping CC´s (CCGs).</p><p>Main fields:</p><ul><li>SETCLASS: value depending on the type of hierarchy you are reading: 0101 (Cost Center), 0102 (Cost Element), 0106 (Profit Center), etc</li><li>SUBCLASS: in this case it is the Constrolling Area</li><li>SETNAME: the name a CCG</li><li>SUBSETNAME: name of children CCG linked to SETNAME</li></ul><p>With the tables above we can put together the below logic either in SQL, HANA graphical views, Datasphere views or any other tool we would like to use. Wit this model we will obtain a simple to use flattened representation of the hierarchy that we could use to join it to the transactional data for analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*s8TS_7acXPa2lrMlDPMlWQ.png" /><figcaption>Detail of how to get a usafle flattened hierarchy from source tables</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=122df88383e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAP Cost Data (part 1): One table to rule them all ….. ACDOCA]]></title>
            <link>https://medium.com/@d.banuelos.vela/sap-cost-data-one-table-to-rule-them-all-acdoca-part-1-7667bacacd6d?source=rss-a08ed1ebc4ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/7667bacacd6d</guid>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[cost]]></category>
            <category><![CDATA[data-modeling]]></category>
            <dc:creator><![CDATA[Domingo Banuelos]]></dc:creator>
            <pubDate>Sun, 17 Mar 2024 13:55:12 GMT</pubDate>
            <atom:updated>2024-04-07T17:58:28.138Z</atom:updated>
            <content:encoded><![CDATA[<h3>SAP Cost Data (part 1): One table to rule them all ….. ACDOCA</h3><p><em>This article is part of a series on data modeling with SAP data: </em><a href="https://medium.com/@d.banuelos.vela/data-modeling-with-sap-data-an-introduction-77608d3051c2"><em>Data modeling with SAP data: An introduction</em></a></p><p>We are lucky, from a data modeling point of view, to be living in the era of ACDOCA. Our life became much easier with the database remodeling part of SAP S/4. Since then all actual costs (not plan costs) are posted into ACDOCA table. As a SAP analytics person one of the most frequent requests is to report on cost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kbDkae7jx5jQy_M_d4w-JA.png" /><figcaption>FICO tables before and after ACDOCA</figcaption></figure><p>The approach I would like to follow in these cost related articles is the following:</p><p>Part 1: Overview on ACDOCA table</p><p>Part 2: Hierachies (Cost Center, Cost Element, Profit Center etc)</p><p>Part 3: Master data</p><p>Part 4: Plan data</p><p>Part 5: Use case: KSB1 ‘on steriods’</p><p>Part 6: Use case: Projects</p><p>Let´s first take a look at some of the most important fields (out of the 300+ in the table). Disclaimer: all the info below is written from an analytics view and not from an strict FICO perspective.</p><p>I will be adding fields to this list as I progress with the next parts of this article …. there are 10´s of important fields!</p><p><strong>RCNLT: Client</strong></p><p>Usually named MANDT in other SAP tables. For people used to SAP it is a common field. Not going to enter in technicalities but basically many of the SAP tables have this field in the key. When you log into a S/4 HANA system you log into the client specified in the log in screen. From that moment onwards, the data you will see will be filtered by that specific client you entered (e.g. client 100). Typically one single client in the production environment but potentially multiple in test / development environments. This allows you to generate multiple sets of data in SAP S/4 and keep them independant. This is useful when you need to run multiple test cycles in a single box or environment. You run each test cycle in a different client number and your data won´t be mixed.</p><p>Be careful when modelling using non prodction data as you may duplicate data if you don’t filter by client.</p><p><strong>RLDNR: Ledger</strong></p><p>Bascially the traditional concept of a ledger in finance. In practical terms, you will have a leading ledger used by the company but you can have multiple. Either ask your nearest FICO consultant or check RLDNR field table FINSC_LEDGER with XLEADING = ‘X’.</p><p>You will filter your model to this ledger in most cases. The other ledgers may be used in specific analytical applications.</p><p><strong>RBUKRS Company Code and KOKRS Controlling Area</strong></p><p>These 2 fields are the main fields storing the enterprise structure. It all depends on how S/4 is configured but typically your Controlling Area will be the business unit and the company codes are the multiple legal entities within that business unit. Multiple Company Codes are grouped into a single Controlling Area.</p><p>Further subdivisions of the company (e.g. departments, sites etc) are implemented using segments, profit center and cost center hierarchies (we will dedicate a single article to hierarchies).</p><p><strong>GJAHR Fical Year, POPER Posting Period and BUDAT Posting Date</strong></p><p>From a time dimension perspective these are some of the most important fields. It is quite common to report cost just at a period level. Reporting per period + fiscal year also brings the benefitial aggregation of records from performance perspective. Sometimes is handy to still generate a dummy date field like the first day of the period (Fiscal Year + Period + ‘01’). This calculated date allows us to use automatic date releated visualization capabilities (like creating YTD figures) but retaining the aggregation.</p><p><strong>Amounts and Currencies</strong></p><p>ACDOCA stores every transaction in multiple currencies. The name of the amount fields follow this pattern: KSL, HSL, WSL etc. Associated to them we have the fields storing the actual currency used: RKCUR, RHCUR, RWCUR (note the K, H, W letter correspondence between both fields). The main amounts we normally use are:</p><p>KSL: Amount in Controlling Are currency. Very handy when you want to report in a single currency multiple legal entities (potentially using different currencies).</p><p>HSL: Company Code currency. Used to report the local currency of the country where that Company Code is based.</p><p>WSL: Transaction Currency. Mostly for drill down to detail purposses since you will normally have many currencies mized and is not good for aggregation.</p><p><strong>RMVCT Transaction Type, AWTYP Reference Procedure, BLART Document Type, BSCHL Posting Key</strong></p><p>These fields (and probably a few more) are fields that you closest FICO consultant will know well. They provide information on how the posting took place, from which business process it orignated etc. I normally use them to isolate certain costs for very specific use cases. My advice is to have a discussion with the FICO person that set up S/4 to determine the correct filters.</p><p><strong>RCNTR Cost Center, PRCTR Profit Center</strong></p><p>Cost Centers are probably the most important field. Every cost incurred in the company is posted to a Cost Center. Cost Center hierarchies or groups allow you to group those costs. We will see more details on hierarchies in part 2 of this article. In simple terms we can say the cost center tell you where was that cost spent (in which part of the company, process, etc).</p><p>Multiple Cost Centers are grouped into a Profit Center. Profit Centers are also grouped using hierachies.</p><p><strong>RACCT Account Number</strong></p><p>The account in the context of cost will tell you the nature of the cost: materials, electricity, spares, salaries, etc</p><p><strong>CO_BELKZ CO Debit / Credit indicator</strong></p><p>Important in certain use cases where you want to distingusih amounts debited or credited to the cost center</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7667bacacd6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data modeling with SAP data: An introduction]]></title>
            <link>https://medium.com/@d.banuelos.vela/data-modeling-with-sap-data-an-introduction-77608d3051c2?source=rss-a08ed1ebc4ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/77608d3051c2</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data-model]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[hana]]></category>
            <dc:creator><![CDATA[Domingo Banuelos]]></dc:creator>
            <pubDate>Sat, 16 Mar 2024 14:59:31 GMT</pubDate>
            <atom:updated>2024-04-07T19:23:04.768Z</atom:updated>
            <content:encoded><![CDATA[<p><em>For a complete list of published articles in this series check the bottom of this article</em></p><p>I´ve been working with different SAP and non-SAP products for the last 20+ years. Over the time I´ve had to use in numerous occations SAP data to create data models to be used for analytics using different tools.</p><p>Traditionally, in the SAP world we would use SAP BW as our ETL and Data Warehousing tool. SAP BW would use standard extractors in the source systems to extract the data to be loaded. Those extractors would have built -in logic so you don´t need to know about the underlying tables that are used in SAP S/4, SAP HCM, etc to store the data. That was great until you had to extract data not avaialble in standard extractors. Then you would have to code your enhancements or brand new extractors in ABAP to get that data.</p><p>Over the last few years these ABAP based extractors or enhancements have been mostly replaced by coding CDS views.</p><p>The above approach is what I call the more classic approach where you use extractors or CDS views to get data into SAP BW (or other data warehouse).</p><p>There is another approach though, the approach that I personally prefer, and that is to replicate raw tables into your database where you will be buidling you data models. In my case the usual database will be SAP HANA and we will still use SAP BW on top of the data models built in SAP HANA to manage security, inegration with visualziation tools, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*KbLnUn7eIlJ3LEtBakqh5w.png" /><figcaption>HANA graphical calculation view</figcaption></figure><p>There are 2 main advantages of this approach in my opinion:</p><ol><li>In first place, a non-technical reason: in most organizations the change management of you transactional system on which critical business process are based is typically very strict. This means that in case you need to change or enhance the extraction part of the ETL process the time to get the change live will be much longer including freeze periods etc (month ends, year ends etc)</li><li>Secondly, thanks to tools like SAP SDI, SDA, SLT or non-SAP tools for Azure replications, the extraction monitoring is greatly simplified. Tables will syncronize in near real-time mode and you will not have to worry about hundresd of process chains and jobs.</li></ol><p>I´m sure there are also reasons to favour the first approach over the second one but, whatever your preference is, it does not impact the purpose of this article series.</p><p>No matter if you create CDS views, you create HANA views on replicated tables, you use Data Factory to create datasets or you use any other tool, you will have to understand SAP table structures.</p><p>The objective of this series is to address (in detail) data modelling for a few of the SAP products I´m familiar with, mainly:</p><ul><li>S/4 HANA — Split in the different functional areas</li><li>SAP HCM — Although many organizations are moving into SAP Success Factors</li><li>SAP Sucess Factors Employee Central and potentially expanding into other areas in the future</li><li>SAP FieldGlass</li><li>Data models across multiple sources</li></ul><p>I will be describing most relavant tables and APIs and showing some common data models that will address usual analytical requirements.</p><p>Let´s get into the details then …..</p><p><a href="https://medium.com/@d.banuelos.vela/sap-cost-data-one-table-to-rule-them-all-acdoca-part-1-7667bacacd6d"><strong>SAP Cost Data (part 1): One table to rule them all ….. ACDOCA</strong></a></p><p><a href="https://medium.com/@d.banuelos.vela/sap-cost-data-part-2-hierarchies-122df88383e1"><strong>SAP Cost Data (part 2): Hierarchies</strong></a></p><p><a href="https://medium.com/@d.banuelos.vela/sap-cost-data-part-3-master-data-def6a18776e2"><strong>SAP Cost Data (part 3): Master Data</strong></a></p><p><a href="https://medium.com/@d.banuelos.vela/sap-cost-data-part-4-plan-data-non-costing-data-ff9121b57406"><strong>SAP Cost Data (part 4): Plan data &amp; Non costing data</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77608d3051c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>