Professional Documents
Culture Documents
Batch_2 Page 1
Q & A - Pre Session
Batch_2 Page 2
Inventory Mgmt in BW4HANA
Salient Points
▪ Validity table is automatically generated for non-cumulative (NCUM) ADSOs which contains time intervals for non cumulative key figures.
▪ Values in the validity tables can be changed later if required via tcode RSDV.
▪ This table is updated automatically when loading data.
▪ Validity table is based on time characteristic with combination of any other characteristic in the ADSO depending on the requirement.
▪ Validity characteristics form the key of the Validity table.
▪ If the Validity Table contains only the Time characteristic then the lower limit is defined with the data record that is first
according to the Time characteristic and upper limit with the highest value. If additional characteristics added in the
validity table then limits set by combination of characteristics.
This is called reference and is the first value which is used to calculate all the remaining values by traveling to future or past.
New BW4HANA
LSA++ Data Flow
Batch_2 Page 3
New BW4HANA Inventory
Transformations
1. Initial stock will load with Record type = 1. This will NOT go to Active data table but rather go to another table.
2. Historical movements will load with Record type = 2 and upon activation stay as Record type = 2. This will go to Active datatable.
3. Delta movements will load with Record type = 0 but upon activation will change to Record type = 2.
Non-cumulative Keyfigure
config in BW4HANA
Batch_2 Page 4
When we select 'Inventory-enabled' property, a new table 'Inventory' is added to the ADSO config and there we can:
▪ See the time reference most granular characteristic automatically chosen by the system.
▪ Provide validity characteristics in addition to the default time characteristic.
1. Inbound Table
2. Active Table
3. Change Log (not filled for Datamart ADSO)
4. Validity Table
5. Reference Point
6. Extraction View (UNION of Inbound + Active + Reference Table)
7. Reporting View (UNION of Inbound + Active + Reference Table)
8. External SQL View (Mimicking Query behaviour with Non-cumulative KYF populated)
Scenario
▪ On 22nd July' 2020, the initial stock balance is extracted from source to B4H.
This is the current operational stock (a.k.a Opening balance).
▪ To be able to report on stock quantities before 22nd July' 2020, we also load historical
movements that happened before we extracted the initial stock balance.
▪ From now onwards, delta movements, i.e. Goods issued and Goods receipt are loaded.
▪ Here are the initial stock, delta and historical records to be loaded into ADSO:
Record type journey for Data Load Record Type in Inbound table Record Type in Active table Record Type in Reference table Record Type in Validity table Records in SQL View
different data load types in type (Before Activation) (After Activation) (After Activation) (After Activation) (ending in 8)
Inventory
Initial Stock Mat Plant Rectyp Iss Qty Rec Qty Calday N/A Mat Plant Rectyp Iss Qty Rec Qty Calday 0CALDAY_SID_F 0CALDAY_SID_T Mat Plant Rectyp Iss Qty Rec Qty Calday Non-Cum KYF
(Initial Stock doesn't go to (Tot Qty)
M100 P400 1 0 100 2020-07-22 M100 P400 1 0 100 2020-07-22 2020-07-22 2020-07-22
Active table)
M200 P400 1 0 200 2020-07-22 M200 P400 1 0 200 2020-07-22 M100 P400 1 00 00 9999-12-31 100
M200 P400 1 00 00 9999-12-31 200
Delta Mat Plant Rectyp Iss Qty Rec Qty Calday Mat Plant Rectyp Iss Qty Rec Qty Calday Mat Plant Rectyp Iss Qty Rec Qty Calday 0CALDAY_SID_F 0CALDAY_SID_T Mat Plant Rectyp Iss Qty Rec Qty Calday Non-Cum KYF
Movements (Tot Qty)
M100 P400 0 70 0 2020-07-23 M100 P400 2 70 0 2020-07-23 M100 P400 1 0 180 2020-07-22 2020-07-22 2020-07-24
M100 P400 0 0 150 2020-07-24 M100 P400 2 0 150 2020-07-24 M200 P400 1 0 100 2020-07-22 M100 P400 1 00 00 9999-12-31 180
M200 P400 0 100 0 2020-07-24 M200 P400 2 100 0 2020-07-24 M200 P400 1 00 00 9999-12-31 100
M100 P400 2 70 0 2020-07-23 00
M100 P400 2 0 150 2020-07-24 00
M200 P400 2 100 0 2020-07-24 00
Historical Mat Plant Rectyp Iss Qty Rec Qty Calday Mat Plant Rectyp Iss Qty Rec Qty Calday Mat Plant Rectyp Iss Qty Rec Qty Calday 0CALDAY_SID_F 0CALDAY_SID_T Mat Plant Rectyp Iss Qty Rec Qty Calday Non-Cum KYF
Movements (Tot Qty)
M100 P400 2 70 150 2020-07-17 M100 P400 2 70 0 2020-07-23 M100 P400 1 0 180 2020-07-22 2020-07-17 2020-07-24
M100 P400 2 50 0 2020-07-20 M100 P400 2 0 150 2020-07-24 M200 P400 1 0 100 2020-07-22 M100 P400 1 00 00 9999-12-31 180
M200 P400 2 300 0 2020-07-21 M200 P400 2 100 0 2020-07-24 M200 P400 1 00 00 9999-12-31 100
M100 P400 2 70 150 2020-07-17 M100 P400 2 70 0 2020-07-23 00
M100 P400 2 50 0 2020-07-20 M100 P400 2 0 150 2020-07-24 00
M200 P400 2 300 0 2020-07-21 M200 P400 2 100 0 2020-07-24 00
M100 P400 2 70 150 2020-07-17 00
M100 P400 2 50 0 2020-07-20 00
M200 P400 2 300 0 2020-07-21 00
Query for Inventory Record Type 1 (Reference Ponts) + Record type 0 (Non -activated delta movemetns sitting in Inbond table) - Record type 2 (Activated movements sitting in Active table)
Batch_2 Page 5
Process
September 27, 2020 9:04 AM
Initial
Stock
Hist
Mov
Delta
Mov
Batch_2 Page 6
New Customer Requirement
2 • When combining historical data with current actuals data in CompProv, aggregate it upto the level without Sales
Order and Item details.
• When combining historical data with current actuals data in CompProv, remove any records which doesn't have
Distribution Channel as 'ZZ'.
• Create a calculated column for 'Update Date' since that's not in the historical data.
• Historical data doesn't contain Material Type and Material Group. Get that from the HANA CV for material via
JOIN.
3 • Load forecast data for 2021 in S4H HANA DB via flat file upload.
• Access that virtually ONLY via OpenODS View in B4H.
• When combining historical data with current actuals data in CompProv, remove any records which doesn't have
Distribution Channel as 'ZZ'.
• Forecast data doesn't have Fiscal Year, only Fiscal Period. In CompProv, create Fiscal Year from Fiscal period.
• Create a calculated column for 'Update Date' since that's not in the forecast data.
Notes Both the files are available in the Material folder in the sub-folder named 'Scenario - Report & Datasource fields'
Batch_2 Page 7
OpenODS View in B4H
Batch_2 Page 8
Q & A - Post Session
Q
A
Batch_2 Page 9