cancel
Showing results for 
Search instead for 
Did you mean: 

Controller Extension method not called in adaptation project created in Business Application Studio

07-26-2023 1:39 PM
jalpa_desai Explorer
903 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

Hi,

I am creating an adaptation project from Bas using my btp trial account. I am creating a variant for the My Travel Requests V2 standard fiori app (sap elements - F0409A). But when I create a controller extension, any methods added or hook methods like init() do not work.

For example, if I click on a button, the method called in the press event is not fired.

I have checked a lot of bogs, finally referred to the sap note : https://userapps.support.sap.com/sap/support/knowledge/en/3249943.

for checking for issues. But I am unable to identify the problem here.

Can anyone suggest, what I might be doing wrong.

Thanks,

Jalpa Desai

 

 

 

Hi again,

 

I just need a little bit of Clarification.

I am trying a similar thing by adapting the My Travel and Expenses V2 App(F0584A) - SAP Fiori for SAP S/4HANA 1909.

Again, I am facing same issue - like view changes are displayed in the app variant. But controller extension is not possible. 

Can anyone please suggest or guide here, so I can accordingly come to a conclusion.

Thanks,

Jalpa

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

Leo7
Newcomer
0 Likes

I had a similar problem while extending My Travel Requests V2 standard fiori app  - F0409A. I solved it by changing the controller I was extending in the codeExt file. Depending on where you click to create the controller extension, it might reference the Controller for the reuse component instead eg create extension for a form field instead of the details page. so in your codeExt file update the selector to the controller of the app you are currently in, in my case it was the following.

"selector": {
"controllerName": "fin.travel.mytravelrequestsv2.controller.Main"
},

remember to like if it helps...