Hi. Apologies in advance if this is the wrong forum.
I'm on R/3 4.6c.
What is the best way to implement this:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR xxxx-low.
in a dialog program?
I have my selection screen defined in my TOP include, but since dialog programs don't support report events I am not sure what to do.
Thank you for any assistance you could provide.
Best Regards,
Brett
Forgot to ask. You mentioned "dialog programs don't support report events". If you do a CALL SELECTION-SCREEN, the AT SELECTION-SCREEN events will be executed.
I have a program that I just completed that displays a regular selection screen, then does a CALL SELECTION-SCREEN, then finishes with a CALL SCREEN and I use the AT SELECTION-SCREEN ON VALUE REQUEST event to invoke an existing FM to do F4 help.
Maybe you can provide additional detail to help clarify.
make a new include like
include progname_screen_1001. at the top of your program.
goto include.
write the code below in your include.
SELECTION-SCREEN BEGIN OF SCREEN 1001.
write here your selection options and parameters.
also but here the code you want:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR xxxx-low.
SELECTION-SCREEN END OF SCREEN 1001.
call the screen from anywhere:
call screen 1001.
if you want the selection-screen as subscreen than write
SELECTION-SCREEN BEGIN OF SCREEN 1001 as subscreen .
write here your selection options and parameters.
also but here the code you want:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR xxxx-low.
SELECTION-SCREEN END OF SCREEN 1001.
when calling it
write it to PBO of your screen in which you but an subscreen area named subsel.
CALL SUBSCREEN SUBSEL INCLUDING 'PROGRAMNAME' '1001'.
My first reaction is too avoid coding this feature and use the facilities of the dictionary to provide value help. Domain values, check tables, attaching search helps, etc.
With that said, you can still program the help. I suggest you take a look at program DEMO_DYNPRO_F4_HELP_MODULE which is in my 4.6C system.
Add a comment