2020 Nov 01 5:04 PM
I have a module pool screen with input field and Editable ALV (OOPS)display. I have a customized button in alv toolbar. Value from input field(module pool screen) has to be passed to handle_user_command by clicking the button. How to achieve this?
like sandra.rossi said, the value in the dynpro is global variable. You need to create a link between this global variable and the Event on the ALV toolbar.
When you want inside class to send an event to the dynpro part, you could simulate an action like this:
cl_gui_cfw=>set_new_ok_code( 'ENTER' ).You will directly call the PAI
2020 Nov 01 7:27 PM
Fields of dynpros correspond to global variables in the program. So, you don't need to pass them as parameters, they are directly available anywhere in your program.
2020 Nov 02 5:17 AM
Hello Sandra,
Value is filled only if any event is getting triggered.
For eg : After I fill value and press enter, then dynpro field is filled. But if I fill an value and press alv toolbar button directly, then value is empty. Is their any way to get value from dynpro field without any event? Please provide a valuable suggestion.
2020 Nov 02 6:31 AM
like sandra.rossi said, the value in the dynpro is global variable. You need to create a link between this global variable and the Event on the ALV toolbar.
When you want inside class to send an event to the dynpro part, you could simulate an action like this:
cl_gui_cfw=>set_new_ok_code( 'ENTER' ).You will directly call the PAI
2020 Nov 02 7:47 AM
I guess that the ALV toolbar events are being registered by ALV so that to not trigger the PAI.
Do:
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |