Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to register data with multi-select using RAP

zyuiti628
Explorer
983

Dear all
Please help me.

I am studying RAP.
I am investigating if it is possible to implement the following requirements, but I don't know if it can be achieved using buffer.
Please give me some ideas.

Execute custom action with multiple lines selected from Fiori Elements in Material per plant.
The custom action calls the RAP BO of the purchase request.
The result is to create a purchase requisition with multiple details.

I have confirmed that it can be executed with one selected row.
However, multiple purchase requisitions were created when multiple Materials were selected. I want to have multiple details in one purchase requisition.


The data is flowing to the RAP keys one code at a time.
The same goes for the save method.

I expect that the data will be stored in Buffer and the registration process will be executed in the last save method, is this possible?

Translated with DeepL.com (free version)

2 REPLIES 2

mt13065
Explorer
511

Maybe you can try this annotation for your action button:

  @ui.lineItem: [{ position: 20,label: 'Item Number'}
                ,{ type: #FOR_ACTION,
                   dataAction: 'approveItem',
                   label: 'Approve',
                   position:10,
                   invocationGrouping: #CHANGE_SET,
                   importance: #HIGH}]

invocationGrouping: #CHANGE_SET

This annotation allows the custom button to process multiple line selections at once

0 Kudos
299

It works. Thanks a lot