07-18-2007 2:35 PM
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.
07-18-2007 2:39 PM
hi,
try with Leave to list-processing.
CASE sy-ucomm.
WHEN 'OK'.
leave to list-processing.
WRITE 'some text'.
endcase.
regards,
priya
07-18-2007 2:38 PM
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.
07-18-2007 2:39 PM
hi,
try with Leave to list-processing.
CASE sy-ucomm.
WHEN 'OK'.
leave to list-processing.
WRITE 'some text'.
endcase.
regards,
priya
07-18-2007 2:42 PM
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.