Application Development and Automation Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
RajatArora
Explorer
4,110

This blog-tutorial will guide you through the process of creating a RAP application using ABAP repository objects generator.

Prerequisites:

SAP system access with eclipse installed. (You can use SAP BTP trial account as well)

Process:

  1. Create the required database table
    Right click on Package --> New --> Other ABAP Repository Object
    RajatArora_0-1736436807565.png

    Search for database table and click on Next
    RajatArora_0-1736493168027.png

    Provide name & description for the table and click on Next
    RajatArora_1-1736511806352.png

    Create TR or select an existing one and click on Finish
    RajatArora_2-1736512213886.png

    Add required fields to the table and activate it (you can also create a data element for user_id or can use any existing one)
    RajatArora_2-1736760031366.png

  2. Generate objects for UI
    Right click on table name in project explorer and click on 'Generate ABAP Repository Objects'
    RajatArora_3-1736760232146.png
     
    Select OData UI Service and click on Next
    RajatArora_4-1736760275260.png

    Select Package and click on Next
    RajatArora_5-1736760358419.png

    Provide names for all the artifacts/objects to be generated and click on Next
    RajatArora_6-1736763864019.png

    Click on Next
    RajatArora_7-1736766388256.png

    Select TR and finish

    RajatArora_8-1736766483173.png

    You can see all the generated objects in the project explorer
    RajatArora_9-1736766696132.png

  3. Publish service
    Open Service binding and click on Publish
    RajatArora_10-1736766928276.png
    This option to publish an OData V4 service through eclipse might not work in a customizing client, for that you can refer to my other blog, i.e., Publishing ODATA v4 service in a customizing clien... - SAP Community

    Your basic RAP based Fiori application is ready for preview
    RajatArora_11-1736767134735.png

  4. Preview Service
    Select entity set and click on Preview
    RajatArora_12-1736767905811.png
    As this is a managed app, so few standard features like Create, Edit & Delete are handled by system.

    Try creating a new entry using Create button and the same will be visible on report page
    RajatArora_13-1736768537156.png

    This can be checked on table level as well
    RajatArora_14-1736768629300.png

    I will try to enhance this RAP application in future and include the same in my future blogs.
2 Comments