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
1,060

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
1,022

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.

9 REPLIES 9
Read only

Former Member
0 Likes
1,022

Hi,

check the pf-status that u have created.

Regards,

madhu

Read only

Former Member
0 Likes
1,023

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.

Read only

Former Member
0 Likes
1,022

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

Read only

0 Likes
1,022

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

Read only

0 Likes
1,022

NAME = EXIT

TEXT = EXIT

FCODE = EXIT.

FCTYPE = E.

REGARDS

SHIBA DUTTA

Read only

0 Likes
1,022

USE LEAVE PROGRAM INSTEAD OF LEAVE SCREEN.

REGARDS

SHIBA DUTTA

Read only

0 Likes
1,022

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

Read only

Former Member
0 Likes
1,022

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.

Read only

Former Member
0 Likes
1,022

Hi,

please don't post questions a second time. Have a look at

Regards

Bernd