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

Field Validation in table maintenance

Former Member
0 Likes
3,832

Hi,

I have a requirement to validate a field value whenever entry is made in custom table or whenever entry is changed in the custom table. Please tell me how to validate the data in table maintenance.

Thanks & Regards

Kiran

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,760

Hi Kiran,

Please follow the steps to put validations in the Table maintenance screen program:

1->go to se11,<b> display</b> your table

2->navigate to <b>Utilities->Table Maintenance Generator</b>

3->double click on the <b>maintenance screen number (overview screen)</b>

4->Now you are in the flow logic .

5->define a module inside the LOOP AT EXTRACT...ENDLOOP in the

PAI (Process after input event).

6->double click the newly defined module and navigate to the abap editor;

write the validation logic in your module.

Hope this helps,

Sajan Joseph.

Hi,

I have a requirement to validate a field value whenever entry is made in custom table or whenever entry is changed in the custom table. Please tell me how to validate the data in table maintenance.

Thanks & Regards

Kiran

5 REPLIES 5
Read only

Former Member
0 Likes
1,760

Hi,

GO to SE51..

Give the program name..SAPL + FUNCTION GROUP NAME that you used for creating the table maintenance..

Give the screen number..

Press change..

in the PAI. create a module to validate the data..

Thanks,

Naren

Read only

Former Member
0 Likes
1,760

Read only

Former Member
0 Likes
1,761

Hi Kiran,

Please follow the steps to put validations in the Table maintenance screen program:

1->go to se11,<b> display</b> your table

2->navigate to <b>Utilities->Table Maintenance Generator</b>

3->double click on the <b>maintenance screen number (overview screen)</b>

4->Now you are in the flow logic .

5->define a module inside the LOOP AT EXTRACT...ENDLOOP in the

PAI (Process after input event).

6->double click the newly defined module and navigate to the abap editor;

write the validation logic in your module.

Hope this helps,

Sajan Joseph.

Read only

Former Member
0 Likes
1,760

Hi,

Did you check my reply?

Thanks

Naren

Read only

Former Member
0 Likes
1,760

There is an elegant method using events, you can use pre-defined events (SE11 -> table maintenance generator -> environment -> modification -> events). You can put your validation code in the events.

For more information on events, refer this nice document

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20im...

<u>

All other methods suggested are non standard and will get overwritten whenever table maintenance is regenerated.</u>