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: 

write after screen

Former Member
0 Kudos

Hi. I have a question.

I've created a screen 1000 with STATU GUI (OK, BACK, EXIT). And PAI for that screen is:


MODULE USER_COMMAND_1000 INPUT.
  CASE sy-ucomm.
    WHEN 'OK'.
      WRITE 'some text'.
    WHEN 'BACK'.
      LEAVE SCREEN.
    WHEN 'EXIT'.
      LEAVE.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_1000  INPUT

What should I do the text 'some text' to appear after pressing ENTER? Greetings. P.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

try with Leave to list-processing.

CASE sy-ucomm.

WHEN 'OK'.

leave to list-processing.

WRITE 'some text'.

endcase.

regards,

priya

3 REPLIES 3

former_member181962
Active Contributor
0 Kudos

MODULE USER_COMMAND_1000 INPUT.

CASE sy-ucomm.

WHEN 'OK'.

leave to list-processing.

WRITE 'some text'.

leave list-processing.

WHEN 'BACK'.

LEAVE SCREEN.

WHEN 'EXIT'.

LEAVE.

ENDCASE.

ENDMODULE.

Former Member
0 Kudos

hi,

try with Leave to list-processing.

CASE sy-ucomm.

WHEN 'OK'.

leave to list-processing.

WRITE 'some text'.

endcase.

regards,

priya

Former Member
0 Kudos

usually 1000 is a standard selection screen system create when you write some selection screen code.

If it is a report :

Use

AT USER-COMMAND.

If it is module pool.

Use

module <> at user-commad.

-


Leave to list processing.

endmodule.