Professional Documents
Culture Documents
1.18 S18 - OpenODS - View - Part 2 & Composite - Provider
1.18 S18 - OpenODS - View - Part 2 & Composite - Provider
OpenODS Views 1. OpenODS View based on virtual table 3rd Oct: 8:30 AM - 10:30 AM
CompositeProvider 1. Purpose 3rd Oct: 8:30 AM - 10:30 AM
2. Usage
3. UNION & JOIN
4. 2.0 Enhancements
5. Navigation Attribute
Batch_2 Page 1
Nav Attributes in B4H
How to activate Nav attributes for ADSO Not possible at ADSO level in B4H.
Rationale:
ADSO is mainly positioned for persistency not for reporting
related features. That part has been now delegated to
CompositeProvider.
System Demo
Batch_2 Page 2
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 forecast 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 3
Composite Provider in B4H
Purpose
Restrictions
Batch_2 Page 4
Supported Providers for
UNION + JOIN
Authorizations for
CompProvs
Transporting CompProv
Batch_2 Page 5
Transporting CompProv
CompProv - Referential
Integrity
Batch_2 Page 6
CompProv - Handling of
NULL values
Batch_2 Page 7
Batch_2 Page 8
Input Parameters in
CompProv
Batch_2 Page 9
Batch_2 Page 10
Batch_2 Page 11
Batch_2 Page 12
Composite Provider enhancements in B4H 2.0 SP4
Aggregation & Previously, there was no standard functionality for aggregating key figure values in the target
Projections structure of a CompositeProvider. This behavior is similar to the functionality already provided in
HANA Calculation Views. Mostly it is necessary when joining data of multiple transactional
Providers on different aggregation states. This type of Aggregation is performed at database
level. Projection on the other hand, is mainly there for defining SQL Filters on specific
PartProviders such as ADSOs.
Calculated Fields and Calculated Fields is another HANA DB functionality integrated in the CompositeProvider. It offers
Fields a list of SQL Expressions. Simple Fields can also be added as well. Both can be defined either as a
Characteristic or as a key figure. As a characteristic the option “Forced Group” can also be
enabled.
Please note that in case of Temporal Joins the SQL filters, SQL expressions, Force Group By and
aggregation change are not allowed.
HANA SQL Filter The SQL Filter is a powerful tool that allows filtering out specific data from the whole
CompositeProvider or its PartProviders. It allows creation of additional filters on different node
levels of a CompositeProvider. Directly on the Top Node or on its different parts, such as on
specific Unions, Joins, Projections and Aggregations underneath. However, such filters cannot be
directly defined on a PartProvider. Therefore, an Aggregation or a Projection node has to be
added on top of it, in order to enable this functionality. In an SQL Filter, both Calculated Fields as
well as normal fields can be used to build an expression. HANA SQL Script language is used for
these purposes. A list of available expressions are shown when selected. There is already an
extensive HANA SQL Script reference available here for consumption.
Batch_2 Page 13
Duplicate Fields After migrating from MultiProvider to CompositeProvider the cross-mapping functionality was
not supported any more. As a workaround, Duplicate Fields can be created now. In this case a
template is taken from the original Object with a custom naming possibility. The “Force Group
By” functionality can now be enabled for all Fields and Characteristics. A symbol appears marking
this functionality.
Batch_2 Page 14
Pgm to recreate Infoprovider Column views
Pgm RSDDB_LOGINDEX_CREATE
Provide the name of the Infoprovider for which failure took place. In our case the OpenODS View - ZS_ODITM5
Column Views • Column Views (Calculation Scenarios): used by BW queries to read from infoproviders
• DB SQL Views: classic view as we know it from other data bases
• These views are objects of the Hana data base and can be found in the Hana Studio under the folder 'Catalog' and
the corresponding schema.
• BW Objects (like the column views of infoproviders) are always stored in the schema SAP'SIDofSystem'/SAPABAPn.
• External Hana Views are stored in the schema _SYS_BIC.
Batch_2 Page 15
Streaming Process chains
Delta extraction can also run as real-time replication in streaming mode if the data transfer process is
contained in a process chain in streaming mode. The chain will then start when it is notified by the delta queue
(ODQ)
you can put a process chain in “streaming mode” if at least one of its processes can serve as a “start condition” for the who le process chain.
A DTP which extracts data changes (delta) directly from a table or view in a local SAP HANA schema can serve as such a “start condition” if the following requirements are fulfilled for the generic delta field:
1. There is no implicit or explicit conversion exit configured.
2. There is no lower security interval configured.
3. The combination of the source column's HANA data type, the mapped ABAP data type, and the chosen delta type is listed in thefollowing table.
The setting 'Streaming cannot be triggered' just means your process chain 'pulls' data from S/4HANA (in one minute intervals) , instead of the process chain being started (triggered) from S/4HANA (push).
Batch_2 Page 16
Run Modes
Monitoring
S4:
ODQDAEMON
B4H Cockpit - Status 1. In case of HANA Local Source based datasource: Polling
Batch_2 Page 17
2. In case of ODP Source (CDS View, for example) based datasource: Listening
Batch_2 Page 18