Posts

Showing posts from May, 2025

Search help in SAP using RAP.

Image
                    Refer -    Sample example for managed scenario                     Refer -   Control action in RAP                                        Refer -   Custom action change state Step 1: Adding new field in 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 : ab...

Custom action change state in SAP using RAP

Image
                                    Refer -   Control action in RAP Step 1: All the steps are same as mentioned in Above link. Step 2: Add implementation to GET_INSTANCE_FEATURES. CLASS lhc_Student DEFINITION INHERITING FROM cl_abap_behavior_handler . PRIVATE SECTION. METHODS get_instance_authorizations FOR INSTANCE AUTHORIZATION IMPORTING keys REQUEST requested_authorizations FOR Student RESULT result . METHODS get_instance_features FOR INSTANCE FEATURES IMPORTING keys REQUEST requested_features FOR student RESULT result . METHODS get_global_authorizations FOR GLOBAL AUTHORIZATION IMPORTING REQUEST requested_authorizations FOR student RESULT result . METHODS selected FOR MODIFY IMPORTING keys FOR ACTION student ~ selected RESULT result . ENDCLASS . CLASS lhc_Student IMPLEMENTATION. METHOD get_instance_authorizations...

Control action in SAP using RAP

Image
                                                   Refer -   Sample example for managed scenario in RAP Step 1: Table creation, Interface entity creation, consumption view creation are same as mentioned in above link. Step 2: Change the meta data extension like below (Adding action).      @Metadata.layer: #CORE      @UI: { headerInfo: { typeName: 'Student', typeNamePlural: 'Students', title: { type: #STANDARD, label: 'Student', value: 'StudentId' } } }      annotate view ZC_AB_RAP_STUS with      { @UI.facet: [{ id : 'Student', purpose: #STANDARD, type: #IDENTIFICATION_REFERENCE, l...