Application Development and Automation 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: 
Read only

write after screen

Former Member
0 Likes
485

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
Read only

Former Member
0 Likes
461

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
Read only

Former Member
0 Likes
461

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.

Read only

Former Member
0 Likes
462

hi,

try with Leave to list-processing.

CASE sy-ucomm.

WHEN 'OK'.

leave to list-processing.

WRITE 'some text'.

endcase.

regards,

priya

Read only

Former Member
0 Likes
461

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.