cancel
Showing results for 
Search instead for 
Did you mean: 

LEAVE TO LIST-PROCESSING along with button

0 Kudos
194

Hi All,

I have called a list in dynpro screen.

So, I have used Leave to list processing and Return to screen 0.

Suppress dialog.

Also, In the screen of application toolbar I have created a button using set pf-status 'screennumber' but that button is not working though I have written the logic for the button In the PAI event.

If I don't use Leave to list processing Return to screen 0 that button is working but I am not getting the output in the list.

View Entire Topic
Sandra_Rossi
Active Contributor
0 Kudos

The problem with your question is that you say "it is working" but we don't don't know what is the corresponding symptom (your "is working" is maybe not what experts would expect).

Also, we don't understand the exact flow of your program, when the ABAP statements are executed, in which part of screen, etc. It's a program with very few number of ABAP lines, so you could share it.

I don't understand why you use suppress dialog as you don't want to suppress any dialog here...

I don't understand why you need to use "and return to screen 0".

e.g. this code "works very well for me":

REPORT.
DATA okcode TYPE syucomm.
CALL SCREEN 100.

MODULE status_0100 OUTPUT.
  SET PF-STATUS '0100'.
ENDMODULE.

MODULE user_command_0100 INPUT.
  CASE okcode.
    WHEN 'BACK'.
      SET SCREEN 0.
    WHEN 'DISPLYLIST'.
      WRITE sy-uzeit.
      LEAVE TO LIST-PROCESSING.
  ENDCASE.
ENDMODULE.

Screen 100:

PROCESS BEFORE OUTPUT.
 MODULE STATUS_0100.
*
PROCESS AFTER INPUT.
 MODULE USER_COMMAND_0100.

GUI status 100:

  • button DISPLYLIST
  • button BACK
0 Kudos

I have two screen 100 and 200.

I am using suppress dialog because after input screen(100) I am getting a blank screen then I am getting the output screen as list output(200).

So avoid the blank screen I have used suppress dialog.

But due to this suppress dialog In the application toolbar which button I have created in the screen of 200 it's not working .

Sandra_Rossi
Active Contributor
0 Kudos

Sorry, but with 2 screens 100 and 200, it's also working fine for me.

I guess your code is buggy.

But you still don't post any code so it's impossible to help. Why don't you create a test program as it took only 2 minutes to me?