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

Error in small program

Former Member
0 Likes
488

The following program shows error when I give input to Num1 and Num2 ,then press Add or Exit.It says "Invalid Format (Screen Error)" Any Help Please

REPORT ZTODAY .

data : num1 type i,

num2 type i,

NUM3 TYPE I,

OK_CODE TYPE SY-UCOMM.

call screen 100.

&----


*& Module USER_COMMAND_0100 INPUT

&----


  • text

----


MODULE USER_COMMAND_0100 INPUT.

case OK_CODE.

WHEN 'ADD'.

NUM3 = NUM1 + NUM2.

when 'EXIT'.

LEAVE PROGRAM.

ENDCASE.

ENDMODULE. " USER_COMMAND_0100 INPUT

&----


*& Module CNUM1 INPUT

&----


  • text

----


MODULE CNUM1 INPUT.

ENDMODULE. " CNUM1 INPUT

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
474

Hi Gopi,

Are you sure your main program as well as the screen 100 are syntax check error free and ACTIVE.

Please check the same.

Regards,

Aditya

3 REPLIES 3
Read only

Former Member
0 Likes
475

Hi Gopi,

Are you sure your main program as well as the screen 100 are syntax check error free and ACTIVE.

Please check the same.

Regards,

Aditya

Read only

0 Likes
474

HI Gopi,

i checked the same it is working.i doubted your field type in the screen and actual type you declared in the declaration differs.check the same activate screen and program.

Message Edited

SHIBU

Read only

Former Member
0 Likes
474

Hi,

ON Screen the data type of screen fields are diffrent than the data type declared in Report.

Check it once.

Don't forget to reward if useful....