Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

SAP DATA MODEL

Hi

kindly suggest on the below issues

I am using MSEG table to calculate the closing stock and opening stock where in for the same i need to fetch the data way back from 2007 so an alternative for the same the i am trying to use MBEW and MBEWH..

Please suggest the plant of executing the same

Thanking You

Vinayagam

1 Reply
Peter_Cammaert
Partner - Champion III
Partner - Champion III

It is done like this:

  • Read every record from MBEW.
  • Read every record from MBEWH and add them to the same table. Sort them on Product and on Date. To every record of the same product except for the first, add a FROM-DATE that is equal to the Date of the previous record.
  • Set the FROM-DATE of the first record to a date before SAP was installed or something.
  • Use INTERVALMATCH() to map your calendar to the stock values.

Note that MBEW contains stock valuations only. The actual stock situations are stored in MARD-MSKU-MSLB.

Peter