cancel
Showing results for 
Search instead for 
Did you mean: 

How do we identify Create/Update/Delete actions in RAP application?

Ram_peddireddi
Explorer
0 Kudos
195

Hi Team,

I have a requirement to enable/disable input fields for input based on Create/Update/Delete action and other conditions in RAP application. How do we identify the current action that we are performing (Create/Delete/Update) in the method "get_instance_features". In core ABAP we do have a field TRTYP = H/V for this purpose. How do we do it in RAP model?

Regards,

Ram Peddireddi.

View Entire Topic
AbhishekSharma
Active Contributor
0 Kudos

Hi @Ram_peddireddi You may want to try Global / Instance Authorisation that has the Actions user bring to perform.

For more details you may refer below Blog post...

https://community.sap.com/t5/technology-blogs-by-members/abap-rap-global-authorization/ba-p/13558291 

https://community.sap.com/t5/technology-blogs-by-members/abap-rap-instance-authorization/ba-p/135708... 

*   Check if EDIT operation is triggered or not 
    IF requested_authorizations-%update = if_abap_behv=>mk-on OR
        requested_authorizations-%action-Edit   = if_abap_behv=>mk-on.
*--> Your code goes here
    ENDIF.

 

Hope this helps...

Thanks- 

Ram_peddireddi
Explorer
0 Kudos
Hi Abhishek, How do we identify whether the operation is CREATE or EDIT here?