cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with GUI Status and Leave-To-List-Processing

Former Member
0 Kudos

I have a screen that after entering an input value, a list is displayed. I want to pick from the list, which gives me a value to use for setting another screen. My problem is with the GUI Status and LEAVE-TO-LIST-PROCESSING. When I SET PF-STATUS space, my list is displayed and I get default Cancel, Find, etc, but no PICK function code to check in PAI. When I set pf-status using my own gui status, nothing happens when I make a selection from the App. Tool Bar.

The following is a code sample of the above scenario, note that when I use "space" when setting pf-status and check sy-ucomm 'rw' it works. I unfortunately can't do a line selection, though. Does anyone know what I should do?

...ELSE.

CALL SCREEN 2500 STARTING AT 60 05

ENDING AT 85 15.

*****************************************

  • exits to PBO here.

*****************************************

IF sy-ucomm = 'CANCEL'.....

MODULE status_2500 OUTPUT.

LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.

SET PF-STATUS 'ZSTEELLST'.

SET TITLEBAR '800'.

SUPPRESS DIALOG.

LOOP AT display_itab.

WRITE: / display_itab-scpart.

WA_SCPART = display_itab-scpart.

HIDE WA_SCPART.

ENDLOOP.

REFRESH display_itab.

ENDMODULE. " STATUS_2500 OUTPUT

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks Jorge. I also found that the GUI can be created as a List Status. This way I don't use AT USER-COMMAND, instead checking sy-ucomm like I have been doing. This way it works correctly after LEAVE-TO-LIST-PROCESSING. It works now, thanks for your suggestion.

Former Member
0 Kudos

Where is your USER-COMMAND event?!

In an interactive list, when you click in a button the system triggers the USER-COMMAND event.

Try again with an USER-COMMAND event. It's the same than when you are developing a REPORT.