2007 Jul 27 11:03 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 want to know where to use chain endchain? shall use it same user exits or ? please explain me where to add chain.
2007 Jul 27 11:05 AM
Hi,
CHAIN ENDCHAIN is used in the Screen of the transaction. It is not used in the exits.
Regards,
Atish
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 want to know where to use chain endchain? shall use it same user exits or ? please explain me where to add chain.
2007 Jul 27 11:05 AM
Hi,
CHAIN ENDCHAIN is used in the Screen of the transaction. It is not used in the exits.
Regards,
Atish
2007 Jul 27 11:12 AM
Hi Atish
then what is the solution. we cont include in standard SAP scrrens?
i need screen editable.
2007 Jul 27 11:14 AM
Hi,
Instead of giving the error message display it as message of type I.
Regards,
Atish
2007 Jul 27 11:20 AM
but client not accepting this. if you give warning or eoorr message they can save with wrong values also know so they need it error message and screen editable.
is there any way to do screen editable?
2007 Jul 27 11:06 AM
hi,
For example if there are 10 fields in the screen and for 5 fields whenever the user enters wrong values
u like to give some error message.
You can declare that fields in the chain enchain so that only those fields will be input enabled
and all other fields will disabled.
<b>You can do this in PAI</b>
CHAIN.
FIELD chk_connobj.
FIELD chk_inst.
FIELD chk_devloc.
FIELD ehaud-haus.
FIELD eanl-anlage.
MODULE modify_screenfields.
ENDCHAIN.
*&---------------------------------------------------------------------*
*& Module modify_screenfields INPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE modify_screenfields INPUT.
CLEAR okcode.
okcode = sy-ucomm.
CASE okcode.
WHEN 'ENTER' OR 'EXECUTE'.
IF chk_connobj IS INITIAL AND chk_inst EQ c_x AND
chk_devloc EQ c_x.
IF ehaud-haus IS INITIAL.
SET CURSOR FIELD 'EHAUD-HAUS'.
MESSAGE e000(zo_spa) WITH text-017. " Enter Connection obj
ELSE.
PERFORM conn_obj_check.
ENDIF.
ENDIF.
ENDMODULE. " modify_screenfields INPUTRgds
Reshma
2007 Jul 27 11:10 AM
Hi,
The Chain endchain method is a way of input checks in dialog modules.
Suppose you have input fields f1, f2 , f3 etc.
If you write the foll. st,
CHAIN.
FIELD: <f1>, <f 2>,...
MODULE <mod1>.
FIELD: <g1>, <g 2>,...
MODULE <mod2>.
...
ENDCHAIN.
When this command is used, all of the fields on the screen that belong to the processing chain (all of the fields listed in the field statements) are made ready for input again. Other fields are not ready for input. Whenever the MODULE statement appears within a processing chain, even if there is only one FIELD attached to it, all of the fields in the chain (not only the affected field) are made ready for input again, allowing the user to enter new values. If the fields in the processing chain are only checked once, the PAI processing continues directly after the FIELD statement, and the preceding modules are not called again.
Check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/d1/801ca2454211d189710000e8322d00/frameset.htm
Regards
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |