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

Screen design problem

Former Member
0 Likes
478

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
455

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.

3 REPLIES 3
Read only

Former Member
0 Likes
455

Hi,

put

case sy-ucomm.
when 'ENTER'.
C = A + B.
//Assign c to the screen field to display it.
when 'EXIT'.
LEAVE SCREEN.
endcase

into USER_COMMAND_0100

Create USER_COMMAND_0100 by doubleclick if it not exists.

Regards

Bernd

Read only

Former Member
0 Likes
455

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.

Read only

Former Member
0 Likes
456

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.