cancel
Showing results for 
Search instead for 
Did you mean: 

Additional custom action on Edit button

Eduard_R
Explorer
0 Kudos
822

Hi all, is there a way to trigger additionally an custom action on the Edit Button on a Object Page? Unfortunately I find nothing about it.

I'm using Odata v4 RAP.

Accepted Solutions (0)

Answers (2)

Answers (2)

sandeep_rs
Product and Topic Expert
Product and Topic Expert

Hi,

At least in the SAP Fiori elements for OData V4, this is possible via onBeforeEdit method (Using Custom Code Before Standard Operations - Documentation - Demo Kit - SAPUI5 SDK)

Best Regards,

Sandeep

j_pavan_kumar
Product and Topic Expert
Product and Topic Expert

Hi Eduard,

If you are using unmanaged RAP BO, then you can invoke the custom action or internal actions through EML statements inside the RAP hook methods of the update entities.

MODIFY ENTITY EntityName  
    EXECUTE action_name FROM it_instance_a 
      [RESULT result_action | DATA(result_action)] 
    [FAILED   ls_failed     | DATA(ls_failed)] 
    [REPORTED ls_reported   | DATA(ls_reported)].
 

Thanks,

Pavan