Posts

Showing posts from June, 2025

Adding draft functionality in RAP

Image
               Refer -    Sample example for managed scenario                         Refer -     Validations in Rap Step 1: Adding new fields in main table. @EndUserText.label : 'Student interview details' @AbapCatalog.enhancement.category : #NOT_EXTENSIBLE @AbapCatalog.tableCategory : #TRANSPARENT @AbapCatalog.deliveryClass : #A @AbapCatalog.dataMaintenance : #RESTRICTED define table ztl_ab_rap_stus { key client : abap . clnt not null; key student_id : zde_ab_rap_studen not null; student_name : abap . char ( 30 ); student_i_loc : abap . char ( 20 ); student_i_date : abap . datn ; student_status : abap_boolean ; student_gender : abap . char ( 1 ); description : abap . char ( 6 ); last_chdate : timestampl ; loc_last_chdate : timestampl ; }          * Check and a...

Validations in RAP

Image
                                         Refer -  Adding table in object page Step 1: Refer Old blogposts (For better purpose). Step 2: Changing Behavior definition- Adding validation. managed implementation in class zbp_i_ab_rap_stus unique; strict ( 2 ); define behavior for ZI_AB_RAP_STUS alias Student persistent table ztl_ab_rap_stus lock master authorization master ( instance ) //etag master <field_name> { create ( authorization : global ); update; delete; association _qualify { create; } action ( features : instance ) Selected result [1] $self; validation validateid on save { field StudentId ; create; } mapping for ztl_ab_rap_stus { StudentId = student_id ; StudentName = student_name ; StudentILoc = student_i_loc ; StudentIDate = student_i_date ; StudentStatus = stude...

Adding table in object level in SAP using RAP

Image
                                    Refer -    Sample example for managed scenario                        Refer -   Control action in RAP                                         Refer -   Custom action change state                                    Refer - Search help in RAP In this blogspot we need to print Student qualifications. Like Student Qualification, from, to, percentage. -------------------------------------------------------------------------------------- Create Domain for Student Qualification Step 1: Create a Domain for qualification.     ...