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

message type E and inactive fields

Former Member
0 Likes
1,503

Hi,

After: MESSAGE e001(00) WITH text-t001 all fields on screen becomes inactive even when I press enter. What is a correct flow logic for a screen to make screen field visible after enter key press immediatelly after error message occurs ? thx a lot.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,167

Hi

u need to use CHAIN/ENDCHAIN.

PROCCE PAI.
   CHAIN.
       FIELD1.
       FIELD2.
       ...........
       FIELDN.
       MODULE SET_MESSAGE.
    ENDCHAIN.

MODULE SET_MESSAGE.
  MESSAGE e001(00) WITH text-t001.
ENDMODULE.

MAX

5 REPLIES 5
Read only

Former Member
0 Likes
1,168

Hi

u need to use CHAIN/ENDCHAIN.

PROCCE PAI.
   CHAIN.
       FIELD1.
       FIELD2.
       ...........
       FIELDN.
       MODULE SET_MESSAGE.
    ENDCHAIN.

MODULE SET_MESSAGE.
  MESSAGE e001(00) WITH text-t001.
ENDMODULE.

MAX

Read only

Former Member
0 Likes
1,167

Hi,

In a selection screen,

You might have used OBLIGATORY for some of the fields on selection screen

Remove that and validate that field is not initial.

If P_MATNR is initial.

set cursor field 'P_MATNR'.

message e000...

endif.

Edited by: Chandrasekhar Jagarlamudi on Jun 2, 2009 2:28 PM

Read only

Former Member
0 Likes
1,167

Hi,

if it in module program in flow logic SE51 PAI

FIELD w_pn MODULE validate_material. where w_pn is the filed name on the screen

validate_material is the module name

write this error message in that module

OR

If it a selection screen write a login on AT SELECTION-SCREEN ON FIELD <field>

Regards

Krishna

Read only

Former Member
0 Likes
1,167

Hi,

In PAI of the screen,

use Chain....Endchain Statement.

In between this call any module & check the screen parameters into it.

Even though u gave error message (Type E) into it, it will not exit the program.

Sujit.

Read only

Former Member
0 Likes
1,167

i think you might be wrote that Error Message In Event START-OF-SELECTION.

WRITE that statement in AT SELECTION-SCREEN EVENT..

This time it won't happens...