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 editable required

Former Member
0 Likes
517

i have done some validations for PO t-code me21. using mm06e005. iam facing problem if any error message comes from user exit then sceen will be in display mode. i need screen to be editable to correct wrong entries in me21.

5 REPLIES 5
Read only

Former Member
0 Likes
497

Hi,

You can have the screen in editable mode only if you are doing your validations in CHAIN ..ENDCHAIN.

Regards,

Atish

Read only

0 Likes
497

shall i write my validations within chain and endchain?

For ex;

CHAIN

if ( ( sy-tcode = 'ME21' or sy-tcode = 'ME21N' or sy-tcode = 'ME22' or sy-tcode = 'ME22N' )

and i_ekko-bsart = 'nb' ).

if ( i_ekpo-mtart = 'roh' or i_ekpo-mtart = 'halb' or

i_ekpo-mtart = 'fert' or i_ekpo-mtart = 'fhmi' or

i_ekpo-mtart = 'hawa' ).

message E000(ZNB) WITH i_ekpo-mtart.

else.

ENDCHAIN

Read only

0 Likes
497

Yep It will work ,

Read only

0 Likes
497

it is not working. it giving an error chain and endchain not defined

Read only

Former Member
0 Likes
497

Hi,

while creating the screen ,you need to write the logic in PAI.

PROCESS AFTER INPUT.

CHAIN.

FIELD : field1,

field2.

MODULE field1.

MODULE field2.

ENDCHAIN.

if you write the code like,it will give error message but all fields are editable

Regards