Wednesday 1 May 2019

BW/4 HANA Query Creation on Composite Provider using variable for selection

BW/4 HANA  Query Creation on Composite Provider using variable for selection

1. Create a query

SAP HANA Certifications, SAP HANA Guides, SAP HANA Learning, SAP HANA Study Materials


SAP HANA Certifications, SAP HANA Guides, SAP HANA Learning, SAP HANA Study Materials

2. Go to sheet definition Section

SAP HANA Certifications, SAP HANA Guides, SAP HANA Learning, SAP HANA Study Materials

3.  Click on Info provider

SAP HANA Certifications, SAP HANA Guides, SAP HANA Learning, SAP HANA Study Materials

4. Select needed Characteristics in Rows and key figures in columns section respectively

As following

SAP HANA Certifications, SAP HANA Guides, SAP HANA Learning, SAP HANA Study Materials

5. Now if you need selection / Input screen when a user runs a report, We need to create a variable for those fields.

6. For this we will create variables , We go to info provider section.

SAP HANA Certifications, SAP HANA Guides, SAP HANA Learning, SAP HANA Study Materials

7. Select the characteristic on which we need to create ‘ E.g. , Year

SAP HANA Certifications, SAP HANA Guides, SAP HANA Learning, SAP HANA Study Materials

8. Select appropriate, singe value or Interval as per your requirement,  Y. select one of them and click OK.

Note:- You can see Reference Characteristics coming automatically on what you had created the variable as in point 7

SAP HANA Certifications, SAP HANA Guides, SAP HANA Learning, SAP HANA Study Materials

9. You get the following screen, where you can mention optional/ mandatory, accordingly .

SAP HANA Certifications, SAP HANA Guides, SAP HANA Learning, SAP HANA Study Materials

10.   After the settings are made, save the query.

11. Go again to query-> filter section, Drag the fields on which we had created the variable.

to fixed values section and right click and restrict it.

SAP HANA Certifications, SAP HANA Guides, SAP HANA Learning, SAP HANA Study Materials

12. You get following section. Go to variable section and select the variable you have created and right click and say add

SAP HANA Certifications, SAP HANA Guides, SAP HANA Learning, SAP HANA Study Materials

13. It comes to the filter definition, say OK.

SAP HANA Certifications, SAP HANA Guides, SAP HANA Learning, SAP HANA Study Materials

14. Save the query.

15.When you data preview the query in HANA , you get the selection screen. , browse and submit it.

SAP HANA Certifications, SAP HANA Guides, SAP HANA Learning, SAP HANA Study Materials

16. You can also use in RSRT where you can see the selection screen.

SAP HANA Certifications, SAP HANA Guides, SAP HANA Learning, SAP HANA Study Materials

17. Result In RSRT

SAP HANA Certifications, SAP HANA Guides, SAP HANA Learning, SAP HANA Study Materials

No comments:

Post a Comment