2007 Mar 07 5:26 AM
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
2007 Mar 07 5:34 AM
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
2007 Mar 07 5:29 AM
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
2007 Mar 07 5:30 AM
2007 Mar 07 5:34 AM
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.
2007 Mar 07 5:40 AM
2007 Mar 07 7:14 AM
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
<u>
All other methods suggested are non standard and will get overwritten whenever table maintenance is regenerated.</u>
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |