cancel
Showing results for 
Search instead for 
Did you mean: 

RAP Actions inside dropdown

vicky_p
Explorer
0 Kudos
1,465

Hi,

I wanted to add actions from Behavior Definition inside different drop down menus (Refer image)

I want to group these actions inside (example) three separate drop downs (Refer preferred output)

my current code:

Behavior Definition:

  action ( features : instance ) a1 result [1] $self;
action ( features : instance ) a2 result [1] $self;
action ( features : instance ) a3 result [1] $self;

action ( features : instance ) b1 result [1] $self;
action ( features : instance ) b2 result [1] $self;
action ( features : instance ) b3 result [1] $self;

action ( features : instance ) c1 result [1] $self;
action ( features : instance ) c2 result [1] $self;
action ( features : instance ) c3 result [1] $self;

Behavior Projection:

  use action a1;
use action a2;
use action a3;

use action b1;
use action b2;
use action b3;

use action c1;
use action c2;
use action c3;

Metadata:

  @UI: {  lineItem:       [ { position: 90 },
{ type: #FOR_ACTION, dataAction: 'a1', label: 'A1' },
{ type: #FOR_ACTION, dataAction: 'a2', label: 'A2' },
{ type: #FOR_ACTION, dataAction: 'a3', label: 'A3' },

{ type: #FOR_ACTION, dataAction: 'b1', label: 'B1' },
{ type: #FOR_ACTION, dataAction: 'b2', label: 'B2' },
{ type: #FOR_ACTION, dataAction: 'b3', label: 'B3' },

{ type: #FOR_ACTION, dataAction: 'c1', label: 'C1' },
{ type: #FOR_ACTION, dataAction: 'c2', label: 'C2' },
{ type: #FOR_ACTION, dataAction: 'c3', label: 'C3' }
],
identification: [ { position: 90 },
{ type: #FOR_ACTION, dataAction: 'a1', label: 'A1' },
{ type: #FOR_ACTION, dataAction: 'a2', label: 'A2' },
{ type: #FOR_ACTION, dataAction: 'a3', label: 'A3' },

{ type: #FOR_ACTION, dataAction: 'b1', label: 'B1' },
{ type: #FOR_ACTION, dataAction: 'b2', label: 'B2' },
{ type: #FOR_ACTION, dataAction: 'b3', label: 'B3' },

{ type: #FOR_ACTION, dataAction: 'c1', label: 'C1' },
{ type: #FOR_ACTION, dataAction: 'c2', label: 'C2' },
{ type: #FOR_ACTION, dataAction: 'c3', label: 'C3' }
] }

Please suggest how to do this.

Regards.

Marian_Zeis
Active Contributor

do you have any documentation that this is possible at all?

Ramjee_korada
Active Contributor
0 Kudos

Hi Vicky,

As per understanding, the custom logic to be written fiori extension points.

Best wishes,

Ramjee Korada

vicky_p
Explorer
0 Kudos

Hi Marian and Ramjee,

I saw a video by SAP: SAP Developers - Guidance for developing RAP applications in ABAP

here SAP Developers commented (please refer comment section of the video also): "In a Fiori UI those come because of Annotations and the BDef itself. No UI5 coding necessary."

Also seems like (from video) this functionality is already added by SAP for BP (please refer to Actions section of the video). I tried to look into the objects mentioned in the video but couldn't find anything other than that we have to give actions with parameters and inside the parameter we have to annotate value help, but i may be wrong as when i gave this in my program it opened up a dialog popup with input parameters from the parameter i gave for the action.

sorry if the explanation i gave is not clear you can refer the video from 35:00 - 40:00

vicky_p
Explorer
0 Kudos

Scenario implemented by SAP for BP: SAP Developers - YouTube Video Demo

View Entire Topic
ankahit
Explorer
0 Kudos

were you able to achieve through annotations?