cancel
Showing results for 
Search instead for 
Did you mean: 

Call RAP methods from Control.js

rameshputta
Participant
0 Kudos
153

Hello ,

I have an application developed using restful abap where I have few address fields on the object page.

My requirement is to have custom action and by selecting, it should validate the address and give the user a popup with suggested or corrected address. 

Since its not possible to have a popup with RAP itself, I created this custom action button using the guided development in SAP BAS. That created function call which is located in controller.js.

Question is: is there a way I can call my RAP method from controller.js to validate the address when user clicks on the button? 

Appreciate your response 

 

View Entire Topic
DiegoValdivia
Participant
0 Kudos

You could use the invokeActions method from the extenstionAPI. See next link from SAP Help:

https://sapui5.hana.ondemand.com/sdk/#/topic/bd2994b69ef542998becbc69ab093f7e 

Regards.