‎2007 Apr 06 7:55 AM
Hi All,
I have a custom table which has a Vendor as one of the fields. It is not declared as a key field in my table. The problem is, when the user enters a non-carrier partner for this field, my custom message is displayed, but the field becomes uneditable. how can I make the field editable again so the user can input another value?
Thanks,
Jim
‎2007 Apr 06 7:59 AM
Hi,
If you send a warning or error message from a module <mod> that you called using a FIELD statement as follows:
CHAIN.
FIELD: <f1>, <f 2>,...
MODULE <mod1>.
FIELD: <g1>, <g 2>,...
MODULE <mod2>.
...
ENDCHAIN.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.
Regards
Sudheer
‎2007 Apr 06 7:59 AM
Hi,
If you send a warning or error message from a module <mod> that you called using a FIELD statement as follows:
CHAIN.
FIELD: <f1>, <f 2>,...
MODULE <mod1>.
FIELD: <g1>, <g 2>,...
MODULE <mod2>.
...
ENDCHAIN.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.
Regards
Sudheer
‎2007 Apr 06 8:17 AM
Use the chain statement for the fields that u want to make editable in the PAI
Process after input.
CHAIN.
FIELD: <f1>, <f 2>,...
MODULE <mod1>.
FIELD: <g1>, <g 2>,...
MODULE <mod2>.
ENDCHAIN.
NAveen
‎2007 Apr 09 8:08 AM
hi
in PAI write the follwing code before MODULE USER_COMMAND_1010.
PROCESS AFTER INPUT.
field work_area-lifnr module <module name> on request.
regards
ravish
<b>plz reward if helpful</b>
‎2007 Apr 09 8:47 AM
hi...
to make the field editable you should use the field command in the PAI event of the screen.
the sample below should help you....
PROCESS AFTER INPUT.
FIELD wa_porder-field MODULE validate_field ON CHAIN-REQUEST.
here wa_porder is the name of the field u want in editable mode and validate_field is the module where u can check the condition on voilation of which you want the field to be editable.
<b>plz reward pts if helpful.</b>
regards
vijay.