2007 Jul 27 8:15 AM
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.
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.
2007 Jul 27 8:20 AM
Hi,
You can have the screen in editable mode only if you are doing your validations in CHAIN ..ENDCHAIN.
Regards,
Atish
2007 Jul 27 8:33 AM
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
2007 Jul 27 8:56 AM
2007 Jul 27 9:23 AM
it is not working. it giving an error chain and endchain not defined
2007 Jul 27 8:26 AM
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
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |