Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.