Hi All,
My requirement is that when a user clicks 'edit,' an action should execute based on certain conditions, and this action requires a parameter. How can we ensure that when the user clicks 'edit,' the required parameter is passed along?
Request clarification before answering.
No, I want parameter to be fill by User and not via program
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think you can add a user input to the default Edit action. Never tried it myself, but you can try this: Set the Edit action to internal so that it no longer appears. Instead, create a new button Edit2 with the user input. In the Edit2 runtime, you then call the internal edit action. The latter may not be allowed by the RAP framework at this point in time.
In the behavior definition: "internal draft action Edit;"
You can use AUTO FILL CID
MODIFY ENTITY IN LOCAL MODE zi_cubco6_s
EXECUTE edit AUTO FILL CID with VALUE #( FOR key IN keys ( %key = CORRESPONDING #( key )
%param-preserve_changes = abap_true ) ).if not available
MODIFY ENTITY IN LOCAL MODE zi_cubco6_s
EXECUTE edit FROM VALUE #( FOR key IN keys INDEX INTO idx ( %cid = |CID{ idx }|
%key = CORRESPONDING #( key )
%param-preserve_changes = abap_true ) ).
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 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.