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

OK_CODE not captured...

Former Member
0 Likes
1,182

hi,

i have a screen where i have a table control. user can select multiple lines from there and press a button. if all of them dont match a specific condition, i need to display a message and retain the user in the same screen.

I am facing issues at 2 points.

1. error message is not displayed but yes the user is retained in that screen !!

MESSAGE E000(00) WITH 'text.

2. after this when i click that button again, OK_CODE is empty and next screen is displayed !!

MODULE USER_COMMAND_0110 INPUT.

SAVE_OK = OK_CODE.

CLEAR OK_CODE.

CASE SAVE_OK.

WHEN 'BACK'.

LEAVE TO SCREEN '0100'.

WHEN 'CREATE'.

if condition fails.

MESSAGE E000(00) WITH 'TEXT'.

LEAVE TO SCREEN '0110'.

endif.

LEAVE TO SCREEN '0120'.

ENDCASE.

ENDMODULE.

screen sequence is 0100, 0110, 0120.

whats the issue ??

thks

1 ACCEPTED SOLUTION
Read only

former_member190578
Participant
0 Likes
1,127

Did you create a field/variable OK_CODE in the SCREEN? (screen-editor)

It's NOT the same field in your programm-code. (report-editor)

5 REPLIES 5
Read only

former_member190578
Participant
0 Likes
1,128

Did you create a field/variable OK_CODE in the SCREEN? (screen-editor)

It's NOT the same field in your programm-code. (report-editor)

Read only

0 Likes
1,127

Yes Jurgen, you were perfectly right !! OK_CODE was missing in the screen's element's list !!

but i am not getting the error message still !!

the status bar blinks red but no message is displayed !! what cud be wrong ??

thanks

Read only

0 Likes
1,127

hey one more thing...my control stays in the same screen, but i am not able to operate on the table control anymore !!

like initially i cud select couple of rows and click on that push button, if those rows are not valid, i want to stay in the same screen but the table should allow me to deselect the wrong rows and select the rest again !!

Read only

0 Likes
1,127

the status bar blinks red but no message is displayed !! what cud be wrong ??

Im sure, that the message-number '000' does'nt exist. Message-numbers start with '001'

Read only

0 Likes
1,127

thanks..i picked the correct message class and message number and now the message is displayed..