{"id":7470,"date":"2025-08-07T13:56:21","date_gmt":"2025-08-07T08:26:21","guid":{"rendered":"https:\/\/www.sapewmhelp.com\/?question=extend-an-existing-cds-view"},"modified":"2025-08-07T13:56:21","modified_gmt":"2025-08-07T08:26:21","slug":"extend-an-existing-cds-view","status":"publish","type":"question","link":"https:\/\/www.sapewmhelp.com\/?question=extend-an-existing-cds-view","title":{"rendered":"Extend an existing CDS view"},"content":{"rendered":"<p><strong>Identify the Type of CDS View You Want to Extend<\/strong><\/p>\n<p>There are different layers in RAP:<\/p>\n<ul>\n<li>Interface View (I_)<\/li>\n<li>Consumption\/Projection View (C_ or ZC_)<\/li>\n<li>Data Definition View (Z_)<\/li>\n<\/ul>\n<p>Usually, you extend interface or projection views.<\/p>\n<p><strong>Use the <code>EXTEND VIEW<\/code> Statement<\/strong><\/p>\n<p>You can extend a CDS view using the <code>EXTEND VIEW<\/code> ABAP statement.<\/p>\n<p>extend view ZI_YOUR_ORIGINAL_VIEW with ZI_YOUR_VIEW_EXTENSION {<br \/>\nkey YOUR_FIELD_1,<br \/>\nYOUR_FIELD_2<br \/>\n}<\/p>\n<\/p>\n<p><code>ZI_YOUR_ORIGINAL_VIEW<\/code> is the CDS view you&#8217;re extending.<br \/><code>YOUR_FIELD_1<\/code>, <code>YOUR_FIELD_2<\/code> must be available in the underlying base table\/view or added via association.<\/p><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","question-category":[173],"question_tags":[178,199,324,200,177],"class_list":["post-7470","question","type-question","status-publish","hentry","question-category-cdsviews","question_tags-abap","question_tags-cds","question_tags-extended-cds-view","question_tags-rap","question_tags-sap"],"_links":{"self":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=\/wp\/v2\/question\/7470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=\/wp\/v2\/question"}],"about":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7470"}],"wp:attachment":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7470"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fquestion-category&post=7470"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fquestion_tags&post=7470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}