Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to intercept command from dialog screen

Former Member
0 Kudos

Hi,

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.

SUPPRESS DIALOG.

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?

Thanks

Gabriele

1 REPLY 1

Former Member
0 Kudos

I was wrong: when creting the status it asks me for type of screen and I left normal instead of dialog.