Replacement Path in BEx Query and BO Workaround
You want to make BEx query accessible to Business Objects, in which a variable of type replacement path with query is used.The replacement path query has a ready for input variable thus the BEx query cannot be made available for OLAP (SAP note: #820925).
In the above example YA_FPI is replacement path query with ready for input variable ‘Employee’.
Shown below is the output of the main query that is based on the Employee(Person) fetched from the replacement path query.
BO Alternate Solution: Merging Dimensions
The same functionality can be achieved using the merged dimension functionality in BOBJ report.Create a report with 2 dataproviders: 1. Replacement Path Query, 2. Main Query and merge based on similar dimension (Replacement path variable from replacement path query and similar dimension from the main query should be merged).
Drag object from replacement path query(replacement path variable) and remaining objects from the main query.
This works similar way the left and right outer join works in RDBMS. See the below workflow for better understanding:
- Create 2 universes
1. on replacement path query
2. on main query
- Create a report based on above 2 dataproviders(Universe).
- Merge the object(replacement path variable) from replacement path query with the similar dimension object in the main query. As shown in below example – Employee Key from replacement path is merged with Employee Key from main query.
- Now we want replacement path query to drive the results, to achieve this open up each merged dimension object and use the dimension key that come from the replacement path query and fetch the other objects from the main query.
Here’s what the block kook like:
This way the objects from main query will be restricted only for those Employee Keys(Person) fetched from the replacement path query, as the dimensions are merged.