cancel
Showing results for 
Search instead for 
Did you mean: 

How to show pop up on click of BOPF Action in S/4 System

Phani_Kumar
Participant
0 Kudos

Dear Experts,

I was analyzing Manage Quota Arrangements and in the Items , I have seen an BOPF Action in BOBX Transaction.

But When I see the app in UI , On click of that BOPF Button ,SAP is showing some dialog box on the front end side.

I would like to understand how SAP made back end action button designed through BOPF and created UI for that button.

In the app logic, I saw under the EXT Folder ,there is logic for action button and custom fragment for the pop up thing.

But how i should map the button to front end? Please shed some light on this

Accepted Solutions (1)

Accepted Solutions (1)

maheshpalavalli
Active Contributor
0 Kudos

Hi Pawan Kalyan

Actually they are calling the action manually, you can find the custom action defined in the manifest.json and it's press handler function, you can go and check the function handler code in the controller extension.

There is an extension api method => invokeAction where they will pass the action name to it. So before calling that you can write your custom code or custom popup as per your requirement and once confirmed, you can cal that method to perform the action.

https://ui5.sap.com/#/topic/dd78acad2f164560ad6b0e24ed2cd8ee

BR,

Mahesh

Phani_Kumar
Participant
0 Kudos

Hello ,

Thank you .. You have cleared my doubt...

former_member820465
Participant
0 Kudos

Hello Pawan,

The main purpose of accessing RAP via SAPUI5 should be to access and manage CDS Behavior Implementation Classes in RAP, right?
But unfortunately this cannot be done, or I could not find a way. Do you know about this?

Access RAP CDS behavior implementations (backend), via the Business App.Studio-UI5 (Frontend) button

I can access RAP-oData from an empty UI5 project. No problem with that. However, I don't know how to reach the annotation (action-button) in this RAP-oData. Because when I press the button on the UI, I want this button to be able to reach the "Behavior Implementation Class" that I created together with the CDs, as in fiori. But I can't find how to do this? I have also read the SAP Flexible Programming Model topic, but I do not think it is relevant to my position.

If you know this, could you suggest me how to do it please?

UI5 Freestyle Application call (RAP) BOPF Custom Action

Thank you very much in advance.

Thank you

Orhan

Answers (0)