Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sandeep_Verma
Explorer
2,951

For example, there is a standard CDS I_SalesDocumentItem which contains joins on multiple sales tables like VBAK VBAP VBKD etc.

Create a new ABAP repository object

Sandeep_Verma_0-1717171169551.png

Give some name and description

Sandeep_Verma_1-1717171227880.png

Create a TR and proceed

Sandeep_Verma_2-1717171288279.png

Out of the available templates select the one for extend view as here

 

Sandeep_Verma_3-1717171347578.png

Use below code to add new fields

@AbapCatalog.sqlViewAppendName: '<Some custom CDS view SQL name>'

@EndUserText.label: '<Description>'

extend view <standard_CDS>(For ex:I_SalesDocumentItem) with <NAME of this custom CDS>

 

{

 

TABLENAME.NEWFIELD1 as ALIAS1,

TABLENAME.NEWFIELD2 as ALIAS2

 

}

 

 

1 Comment
Labels in this area