Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Mar 29, 2004 at 08:34 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 30, 2004 at 03:30 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded