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

Make field Editable

Former Member
0 Likes
732

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
648

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

4 REPLIES 4
Read only

Former Member
0 Likes
649

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

Read only

Former Member
0 Likes
648

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

Read only

Former Member
0 Likes
648

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>

Read only

Vijay
Active Contributor
0 Likes
648

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.