Supply Chain Management Blogs by Members
Learn about SAP SCM software from firsthand experiences of community members. Share your own post and join the conversation about supply chain management.
cancel
Showing results for 
Search instead for 
Did you mean: 
manish_sati1
Explorer
1,809

Since, most of our reporting requirements in SAP S/4HANA Public Cloud are met through CDS Views, I’m herewith sharing my experience on how end user life can be made easy, through usage of right CDS views, and converting the same into an easily consumable app!

Here we are creating a BOM report using custom CDS view and analytical query which will display the details of all existing Bill of materials for a range of materials within plant.

Check this out –

Step 1. Create custom CDS views to fetch data in custom analytical query.

Step 2. Create a custom analytical query.

Step 3. Create application (Fiori tile) for query and assign it to Business catalog.

Selection Screen:

manish_sati1_1-1721990779432.png

Final Output of Report:

manish_sati1_2-1721990800232.png

Steps 1. Create custom CDS views.

Within the SAP Fiori environment, open the app 'Custom CDS Views' which can be found in the category Extensibility.

manish_sati1_3-1721990863685.png

Click on Create.

manish_sati1_4-1721990895508.png

Fill Label (Name of CDS) and select scenario as ‘Standard CDS View’ and click on create.

*We are using the scenario as ‘standard CDS view’ because we will use this CDS in another custom CDS view using joint conditions.

manish_sati1_5-1721990915681.png

Select Primary data source as ‘I_BillOfMaterialItemDEX_2’

manish_sati1_6-1721990938926.png

Click on Add to an associate data source.

manish_sati1_7-1721990962575.png

Click on Associate data source.

manish_sati1_8-1721991030843.png

Select associate data source as ‘I_Product’

manish_sati1_9-1721991052924.png

Click on Joint Condition

manish_sati1_10-1721991077734.png

Click on Add

manish_sati1_11-1721991097775.png

Select Product

manish_sati1_12-1721991114297.png

Select    Value type = Field

              Value = I_BillOfMaterialItemDEX_2.BillOfMaterialComponent

              Cardinality = Zero or One

manish_sati1_13-1721991151760.png

Go to Element Tab: Click on Add – Elements

manish_sati1_14-1721991175944.png

Add below mentioned elements.

manish_sati1_15-1721991197884.pngmanish_sati1_16-1721991212868.png

Click on Check.

manish_sati1_17-1721991255705.png

Once Check is successfully done, Click on Publish

manish_sati1_18-1721991277372.png

Custom CDS Published Successfully.

Now we will create another CDS of scenario ‘Analytical cube’ which we will use in Analytical query.

Go to App: Custom CDS Views.

Click on Create

manish_sati1_19-1721991339516.png

Fill Label and select scenario as ‘Analytical Cube.’

manish_sati1_20-1721991358551.png

Select Primary data source as ‘I_MaterialBOMLink’

manish_sati1_21-1721991379845.png

Click on Add an Associate data source.

manish_sati1_22-1721991418388.png

Select CDS view which we have created earlier.

manish_sati1_23-1721991435998.png

Click on Joint Condition

manish_sati1_24-1721991452749.png

Add Joint condition- BillOfMaterial and BillOfMaterialVariant

Select value type as Field and value as BillOfMaterial & BillOfMaterialVariant

Cardinality= Zero and One

manish_sati1_25-1721991520327.png

Go To Elementsà Click on Add Elements

manish_sati1_26-1721991557305.png

Add below mentioned elements.

manish_sati1_27-1721991574141.pngmanish_sati1_28-1721991595125.pngmanish_sati1_29-1721991607325.png

Go to Element Properties à Select ‘No Operation’ for ‘BillOfMaterialItemQuantity’

manish_sati1_30-1721991624189.png

Click on Check

manish_sati1_31-1721991644482.png

Click on Publish

manish_sati1_32-1721991666376.png

Step 2. Create a custom analytical query.

Go to App: Custom Analytical Queries

manish_sati1_33-1721991692816.png

Click on Create

manish_sati1_34-1721991709617.png

Mention Query Name and Select Data source as CDS created in Step 1.

manish_sati1_35-1721991726727.png

In General Tab: Give Label (Name of Query Report)

manish_sati1_36-1721991751141.png

Go to Field Selection view and select required fields for report

manish_sati1_37-1721991770784.png

Use Up Down Option in Display Tab to set sequence for fields in report.

manish_sati1_38-1721991789103.png

Use Override label option to change the column name.

manish_sati1_39-1721991805985.png

Go to Filter Option

Click on Field à Select User Unit Values

Selection type = Interval, select the multiple selection checkbox.

manish_sati1_40-1721991822433.png

manish_sati1_41-1721991830261.png

Click on Save Draft Option

manish_sati1_42-1721991848565.png

Mention Plant and click on Go.

manish_sati1_43-1721991888819.png

Report Displayed.

manish_sati1_44-1721991904077.png

Come back to query screen and click on Publish.

Step 3. Create application (Fiori tile) for query and assign it to Business catalog.

Go to App: View browser – Browse Views

manish_sati1_45-1721991932314.png

Search your custom analytical query, select, and click on create application.

manish_sati1_46-1721991955918.png

 

Give Report title and subtitle and click on ok.

manish_sati1_47-1721991968783.png

Application ID will generate for the query.

manish_sati1_48-1721991993558.png

 

Click on Application ID and Go to ‘view in catalog’ option

manish_sati1_49-1721992009269.png

 

Click on Add to add this application to business catalog.

manish_sati1_50-1721992027770.png

Select Business catalog.

*You can assign this application to multiple business catalog.

manish_sati1_51-1721992053472.png

Select the catalog and click on Publish.

manish_sati1_52-1721992070120.png

App Published successfully for selected business catalog.

manish_sati1_53-1721992089234.png

Click on Business catalog.

manish_sati1_54-1721992103825.png

Go to More and select used in Business roles.

manish_sati1_55-1721992123479.png

Now assign one of the business roles to your user ID.

manish_sati1_56-1721992150546.png

Go to SAP Home screen.

Search App: BOM Report

manish_sati1_57-1721992176696.png

Fill the selection parameter and click on Go.

manish_sati1_58-1721992203729.png

 

Thanks & Regards,

Manish Sati

 

1 Comment
Raje1
Active Participant

Thanks, Manish Sati Very helpful blog 

Labels in this area