this is my problem: I have a screen that call a dialog screen.
In the dialog screen I set my toolbar with two buttons and then I WRITE a list with some data and in the end I "cut and pasted" syntax I found:
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
When the dialogue screen is called, the output list is correctly shown, but when I push one of the buttons of my toolbar nothing happens and I can't close the dialogue screen (I have to kill SE38 with SM04).
What I want is that when pushing a button of the dialogue a global data is set according to the button pressed; then dialogue is closed and the processing continue next statement from the one that called dialogue screen.
If to the precedent syntax I add "SET PF-STATUS SPACE." obviously my toolbar it's not set but the one generic of abap is, where anyway I can use some command like "Search", ... and I think that hence there is a way to process command from dialogue screen.
So the question is: is possible to set a custom toolbar in a dialogue screen and let my code processing the user command from that screen?