on 08-10-2013 12:30 AM
Dear all,
I am trying to model a simple stock movement scenario using only HANA. No BW. Modeling to also Including the provisioning of data.
I know this functionality exists in sap BW, but for now, that is not an option, and so, not in the scope of my question here,
I have a totally customized application in ERP writing to Z tables.
I want a user to use Lumira or something like that, to query a HANA view, and see a snapshot of stock movement based on the stock status and date.
The challenges that I can see are ...
Records may not exist on a particular date, for a stock at a status, however, the stock can still be counted for that date.
And
When retrieving records for a given time period, we need a non cumulative measure.
Thanks in advanced
Hi Glen,
One of the option is to persist the inventory snapshots in a custom table. You can join the Stock Movement table with the calendar and generate daily / weekly snapshots. Each snapshot can be generated with the reference of the previous snapshot and sum of movements during the snapshot period. If you decide to have the weekly snapshots, then each week snapshot would be snapshot for previous week + movements in that particular week.
For the daily snapshot, each snapshot can be generated with reference to the previous day snapshot and movements for the day. If there are no movement documents generated for a given date, the the previous snapshot can be copied over. But in this process, the no of records generated would be quite high.
You can also agree with the business users to store the snapshots for a specific time period (6 months - 1 year) and delete all the previous snapshots to reclaim the memory.
Another option could have been joining day level Calendar with the Stock movement (left outer join) and then summing up all the stock movement quantities to a particular date. But if you need to display the stock for a range of dates, then the join has to materialize high volume of data resulting in negative impact on the performance.
I'd recommend the snapshot option as the data is persisted and has very high performance for query.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Glen
When you don't want to keep snapshots that's going to be difficult.
The SAP BW modelling is based on snapshots and movement information based on those snapshots.
If you don't have them, it's always necessary to compute the current state and save the movement based on that, which might impact your transaction performance quite a bit.
Technically it's all about providing a timestamp of the movement so that upon query time you can tell which movements had already been made since the last fix point.
With an increase of transactions the query response time will get bigger in this model.
Alternatively including more or less frequent reconciliation points from where you start fresh will allow for constant query response times.
Since reconciliations also happen on the user-side of inventory management, I don't see why this would be a negative aspect to have.
Also: once you have snapshots you do have the option to drop movements that occured before the snapshot and still don't loose track of the inventory development.
That might come in very handy, when the movements are not interesting anymore a few years from now, while the general inventory development still might provide insight for further planning.
- Lars
Actually no, I didn't see such an implementation yet.
The BW model here really is covering most of the ground properly, so re-inventing it can easily end up being a huge waste of time.
It's just one of these fundamental data designs that need to be implemented just correctly to provide the required flexibility, performance and well, correctness of data.
Guess it's the same with many other features, that are just not available on DBMS level, but on a DW level.
Which again shows: BW on HANA is there to stay .
- Lars
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.