‎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:45 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:36 AM
Hi,
put
case sy-ucomm.
when 'ENTER'.
C = A + B.
//Assign c to the screen field to display it.
when 'EXIT'.
LEAVE SCREEN.
endcaseinto USER_COMMAND_0100
Create USER_COMMAND_0100 by doubleclick if it not exists.
Regards
Bernd
‎2007 Feb 02 10:41 AM
Hi,
Wirte u r case and end case in PAI. Then it will work. Just by double clicking on
MODULE USER_COMMAND_0100 , u will go to u r editor screen . In between of module and endmodule. it will work.
‎2007 Feb 02 10:45 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.