‎2007 Feb 02 10:32 AM
HI,
I am creating screen through se38(abap code editor) there i write The code
call screen 100.
below that i write
DATA ok_code like sy-ucomm.
in flowlogic i write the code like this
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
case sy-ucomm.
when 'ENTER'.
C = A + B.
//Assign c to the screen field to display it.
when 'EXIT'.
LEAVE SCREEN.
endcase
now "case" is not defined ,check your spelling error is coming .kindly reply.
‎2007 Feb 02 10:38 AM
double click on 100 and create the screen
And all the code you have to write in SE38 and not in screen
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
PROCESS AFTER INPUT.
MODULE USER_COMMAND.
double click on USER_COMMAND and write the below code in the report
MODULE USER_COMMAND_0100.
case sy-ucomm.
when 'ENTER'.
C = A + B.
//Assign c to the screen field to display it.
when 'EXIT'.
LEAVE SCREEN.
endcase
ENDMODULE.
‎2007 Feb 02 10:34 AM
‎2007 Feb 02 10:38 AM
double click on 100 and create the screen
And all the code you have to write in SE38 and not in screen
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
PROCESS AFTER INPUT.
MODULE USER_COMMAND.
double click on USER_COMMAND and write the below code in the report
MODULE USER_COMMAND_0100.
case sy-ucomm.
when 'ENTER'.
C = A + B.
//Assign c to the screen field to display it.
when 'EXIT'.
LEAVE SCREEN.
endcase
ENDMODULE.
‎2007 Feb 02 10:39 AM
IN SCREEN YOU CAN FIND ELEMENT LIST AT LAST YOU HAVE TO DEFINE OKCODE TYPE OK.
NOW DBL CLICK IN
MODULE USER_COMMAND_0100.
AND CREATE IN YOUR ABAP EDITOR.
DATA : OKCODE LIKE SY-UCOMM.
MODULE USER_COMMAND_0100 INPUT.
case OKCODE.
when 'ENTER'.
C = A + B.
//Assign c to the screen field to display it.
when 'EXIT'.
LEAVE SCREEN.
endcase
ENDMODULE.
REGARDS
SHIBA DUTTA
‎2007 Feb 02 11:18 AM
hi,
Now program is running without errors , but while clicking exit button it is not coming out . in pushbutton in name,type and function code what i want to give?
reg
r.vijai
‎2007 Feb 02 11:20 AM
NAME = EXIT
TEXT = EXIT
FCODE = EXIT.
FCTYPE = E.
REGARDS
SHIBA DUTTA
‎2007 Feb 02 11:21 AM
USE LEAVE PROGRAM INSTEAD OF LEAVE SCREEN.
REGARDS
SHIBA DUTTA
‎2007 Feb 02 12:40 PM
Hi,
while testing the screen separtely it is working (clicking the exit button it comes out) but while running the program(se38) it is not working ! can u find out the reason?
reg
r.vijai
‎2007 Feb 02 10:47 AM
Hi Vijaya,
The main mistake that you have done is write the code directly in the flow logic screen itself. In the flow logic, first uncomment the "Module" statement in PAI. Then double click the module. Now, it will ask you to create an object or not. Say "yes", which will take you to the program where you have to write the code regarding the sy-ucomm and the case statement.
Hope this clears your doubt.
Award points if helpful.
‎2007 Feb 02 10:50 AM