0% found this document useful (0 votes)
32 views8 pages

Gateway Project Referring To Cds Entity - SAPCODES

The post describes how to create a gateway project and create an entity and entity set by referring to a CDS entity. It shows the steps to create the gateway project, generate the model and service artifacts, and register the service. It then demonstrates testing the service by executing a request for the entity set in the gateway client.

Uploaded by

Burak Karakaş
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views8 pages

Gateway Project Referring To Cds Entity - SAPCODES

The post describes how to create a gateway project and create an entity and entity set by referring to a CDS entity. It shows the steps to create the gateway project, generate the model and service artifacts, and register the service. It then demonstrates testing the service by executing a request for the entity set in the gateway client.

Uploaded by

Burak Karakaş
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

SAPCODES

ABAP OO-ABAP ENHANCEMENTS RFC & BAPI ALE-IDOC USEFUL PROGRAMS WEBDYNPRO FPM

WORKFLOW HANA ODATA-UI5 BASIS JOBS TEAM POSTS

GATEWAY PROJECT REFERRING TO CDS ENTITY


 March 16, 2021  Leave a comment
Search … 

Advertisements
The post describes to create a gateway project and creating an entity and entity set by
referring to CDS entity.

The CDS view-

SAP-Codes
Like Page 796 li

The data preview-


This site is maintained by
Manish Shankar and Siva
Prasad . This site sapcodes.com
is not a liated with SAP SE.

RECENT POSTS

Gateway Project for Multi


Level Association
Gateway Project for
Expanded Entity Set
Gateway Project for Search
Help
Gateway project referring to
Cds entity
Condition Record for
shipping
Create a gateway project in Tx- SEGW
Parsing XML to internal
table in SAP without
transformation
create and Save SO10 text
in Transport request through
program
Excel Download of Generic
Internal Table Data

Enter your email address


Follow sapcodes.com

BLOG STATS

2,434,205 hits

RECENT COMMENTS

Jo on Transferring SD Billing
Doc to FICA
Marnix Van Achter on Web
Services – Consumer Proxy
Yogi on Transferring
Material Master From One SAP
Server to another SAP server
The GW project details just after creation.
By IDoc
mettouchi on SD Pricing
Condition Table
Anonymous on OO ALV
WITH EDIT & SAVE
FUNCTIONALITY & ADDING
BUTTON IN ALV TOOLBAR

Right Click on Data Model and Navigate along the path to create the data model.

Provide the CDS view name and select Next.


Select Finish.

The entity and the entity set are created out of the CDS view mapping. Double click on the entity
set to see the details.

The entity set and the entity type.


Click on the generate button to generate the model and service artifacts.

The system popups to create below DPC and MODEL classes.

The Runtime Artifacts. Lets see the DPC EXT Class.

Double click on the GET_ENTITYSET method. The method is just inherited from the DPC super
class. Press COntinue.
The system automatically generates the code during the runtime artifacts generation. See the
highlighted method.

See the GET_DPC method.

Here the SADL XML Query with reference to the CDS data source are automatically generated.

Register the service in the Tx- /IWFND/MAINT_SERVICE . Select Add Service

Search for the service and then click on the service name.
Select Continue.

All done here. Service is registered.

Test the service in the gateway client – provide the entity set name and execute.
It shows all the record details

Once we have the CDS view ready, then with a gateway project we can create entity set
referring to the CDS entity and when the run time artifacts are generated, we are all done.
Then the UI application can bind it to the correct entity set and then the data can be
displayed on the UI.

Rate this:

            1 Vote

   

L ke
Be the f rst to l ke th s.

Related

Gateway Project for Gateway Project for Gateway Project for


Search Help Expanded Entity Set Multi Level Association
March 23, 2021 March 26, 2021 March 27, 2021
In "Odata"

« Condition Record for shipping Gateway Project for Search Help »

LEAVE A REPLY

Enter your comment here...


Advertisements

ABAP OO-ABAP ENHANCEMENTS RFC & BAPI ALE-IDOC USEFUL PROGRAMS WEBDYNPRO FPM WORKFLOW HANA ODATA-UI5

BASIS JOBS TEAM POSTS

Website Powered by
WordPress.com.

You might also like