5/30/2023 0 Comments Views in sap abap with exampleCreate a Metadata ExtensionĪdvertisements Metadata extension is created to annotate the CDS Entity and fields. Execute as ABAP Application and check the data. 'Root View for ZJP_RAP_BOOK trueĪctivate. You will see a warning as we have not created Authorizations for this entity, which can be ignored at the moment. As seen below, the Entity usually has compositions and associations, but for this post, we are not going to use any of those to keep things simple.Ĭomplete the CDS Entity as below. Note that here you are creating a CDS Entity instead of a CDS view. Create Root CDS EntityĬDS Entity is create to expose the data through OData / Web API.Īdvertisements Right click on the package and chose New > Other ABAP Repository ObjectĪdvertisements Chose template ‘ Define Root View Entity‘. So let us create a data provider class with below code. : 'Travel Booking : : : : #RESTRICTEDįlight_date : : 'zjp_rap_book.currency_code'Īt this point the table will not contain any data. AdvertisementsĬompleted the table as below. If you do not have existing TR, create a new request. Right click on the package and chose New > Other ABAP Repository Object We will create below application without having to write a single line of code on frontend i.e. If you are new to RAP, check out earlier post from this series – Introduction to RAP. In this example, a single table is used to create a service. In this post, you will lean how to create a simple OData service using the RAP model.
0 Comments
Leave a Reply. |