Sitemap
Rupesh_kadge

Rupesh_kadge

4 X Sap globally ๐ŸŒ Certified | Sr ABAP Technical Consultant | IBM | Cognizant | SAP S4 Hana | exp in 2 X Implementation | 1 X Migration | 1 X support projects

๐ŸŒป๐‡๐จ๐ฐ ๐ญ๐จ ๐‚๐ซ๐ž๐š๐ญ๐ž ๐š ๐”๐”๐ˆ๐ƒ ๐ข๐ง ๐„๐š๐ซ๐ฅ๐ฒ ๐๐ฎ๐ฆ๐›๐ž๐ซ๐ข๐ง๐  ๐Ÿ๐จ๐ซ ๐˜๐จ๐ฎ๐ซ ๐”๐ง๐ฆ๐š๐ง๐š๐ ๐ž๐ ๐‘๐€๐ (๐‘๐„๐’๐“๐Ÿ๐ฎ๐ฅ ๐€๐ฉ๐ฉ๐ฅ๐ข๐œ๐š๐ญ๐ข๐จ๐ง ๐๐ซ๐จ๐ ๐ซ๐š๐ฆ๐ฆ๐ข๐ง๐ )? ๐€ ๐’๐ญ๐ž๐ฉ-๐›๐ฒ-๐’๐ญ๐ž๐ฉ ๐†๐ฎ๐ข๐๐ž.

3 min readDec 19, 2024

๐˜Ž๐˜ณ๐˜ฆ๐˜ฆ๐˜ต๐˜ช๐˜ฏ๐˜จ๐˜ด ๐˜ฐ๐˜ง ๐˜ต๐˜ฉ๐˜ฆ ๐˜ฅ๐˜ข๐˜บ,

Hello, ๐’๐€๐ ๐‚๐จ๐ฆ๐ฆ๐ฎ๐ง๐ข๐ญ๐ฒ! When starting with your unmanaged RAP application, youโ€™ll need to implement all CRUD functionalities according to your business logic, as there is no automatic functionality provided. While implementing the create functionality, you may encounter errors due to the absence of UUID or unique ID creation. This can be avoided by using the early numbering method to generate UUIDs. To assist you in this process, Iโ€™ve put together a brief guide to support your development journey.

๐Ÿค”Letโ€™s explore this topic together! I invite you to share your thoughts and insights in the comments below.

What is Early numbering in RAP (RESTful Application Programming) ?

The numbering type early numbering refers to an early value assignment for the primary key field. In this case, the final key value is available in the transactional buffer instantly after the MODIFY request for CREATE. The key value can either be given by the consumer (externally) or by the framework (internally). In both cases, the newly created BO instance is clearly identifiable directly after the CREATE operation has been executed.

Get Rupesh_kadgeโ€™s stories inย yourย inbox

Join Medium for free to get updates fromย thisย writer.

METHODS earlyNumbering_ Create method FOR NUMBERING [IMPORTING] entities FOR CREATE business _ object _ entity.

Step 1: Your behavior definition is unmanaged so every method and every operation need to be implemented and creating key fields is one of the functionality. for that use early numbering key word as below.

Press enter or click to view image in full size

Note ๐Ÿ•ต๏ธโ€โ™€๏ธ: If their is association with other entity then โ€˜earlynumbering_cba_Academicโ€™ or associated entity numbering will be created else will not generate.

Press enter or click to view image in full size

Step 2: The implementation will require to use standard class for generating your UUID number and map that generated number for your key field.

Press enter or click to view image in full size

โžก๏ธA UUID is generated for the ID field using the cl_uuid_factory class, where create_system_uuid() creates the UUID and create_uuid_x16() formats it.

โžก๏ธmapped-student using a VALUE constructor, filtering entities for those with an initial ID, and maps %cid, %is_draft, assigning the new UUID to id.

๐Ÿ’ The UUID number generation in debug mode for understanding the operation and assignment to mapped table.

Press enter or click to view image in full size

Finally this created UUID number will appear for your Create unmanaged functionality.

Press enter or click to view image in full size

โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” -

๐Ÿ”— Connect with me on LinkedIn for more ABAP insights and techniques: @๐ซ๐ฎ๐ฉ๐ž๐ฌ๐ก_๐ค๐š๐๐ ๐ž

๐Ÿ”— Connect with me on Twitter[X]: [ @KadgeRupesh ]

--

--

Rupesh_kadge
Rupesh_kadge

Written by Rupesh_kadge

4 X Sap globally ๐ŸŒ Certified | Sr ABAP Technical Consultant | IBM | Cognizant | SAP S4 Hana | exp in 2 X Implementation | 1 X Migration | 1 X support projects