on 2025 Jan 16 10:22 AM
I have an application where, on the List Page, I select multiple records, and then click a button to process them. I need to choose the main item from the selected records, and for that, a popup created through Abstract Entity appears. In this popup, I need to pass the selected data from the List Page into a dropdown.
Example workflow
1. I select several record
2. I click a button that opens the Abstract Entity dialog
3. In this dialog, I need to choose from the previously selected items
Here is your Abstract Entity code :
@EndUserText.label: 'Abstract Entity'
@Metadata.allowExtensions: true
define root abstract entity ZCPO_ProdOrder_ENTITY
{
@EndUserText.label: 'Choice reference production order'
key productionOrder : abap.char(12);
}
How can this functionality be implemented?
Thanks and Regards,
Andrei
Request clarification before answering.
Hi @Andrei_Karanchuck you may use annotations as below, Assuming you are already reading the record based on Key selected from table record...
This should go in your Abstract Entity
@UI.defaultValue: #( 'ELEMENT_OF_REFERENCED_ENTITY: <Column_Name>' )
status : abap_boolean;
You may add as many columns you want to add in Abstract Entity popup. Please refer below post for more details:
Hope this helps...
Thanks-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I wrote the following blog post, which demonstrates how to pass multiple selected items to an action that accepts deep (table) parameters. This does not use a popup but instead triggers the action in a controller extension:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 14 | |
| 8 | |
| 6 | |
| 6 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.