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

How to validate input in maintenance view

Former Member
0 Likes
5,617

Hi Colleagues,

      I have met with one question, I need to implement the feature ,that all of the cycle`s start date and end date should not overlap. So when user copy a line , add a line or modify a line ,this check should happens. How should I do this? I only know I can validate one line using field...module. But how could I validate in a bigger scope, in the whole table ?

Thanks very much.

Regards,

Xu Chris

9 REPLIES 9
Read only

former_member182379
Contributor
0 Likes
2,841

Hi,

  You can implement you logic in the PAI method. When user press enter or SAVE first sort your data by start date , then implement the required logic in that block.

Regards,

Zafar

Read only

Former Member
0 Likes
2,841

Can you add these date fields to primary keys list ?

Read only

Former Member
0 Likes
2,841

take a look at the Events in Table Maintenance generator..

Will surely help.

http://saptechnical.com/Tutorials/ABAP/TableMaintenance/events.htm

U can use events like :

whenever the new entry is created in table maintaince generator.

or

whenever newly entered data is saved.

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
2,841

Hi Chris,

There are lot of discussion on this earlier in SCN for handling events in TMG.

We have options like AT SAVE, AT the Time of Input, etc... under the section Environment->Modifications-> Events.

Each event will be like a Perform subroutine. Search for the existing material in SCN.

Read only

0 Likes
2,841

Hi Chris,

Refer to Thread http://scn.sap.com/docs/DOC-10442

Regards

Sandy

Read only

Former Member
0 Likes
2,841

Hello Chris,

You can  give such validations at the view level. there are certain event-handlers for the same.

In the table Maintenance screen, follow the menu path:

Environment>Modifications>Events

Click on the new entries in the screen. Select a desired dialog event.Now specify a form routine name.

On clicking on the editor , a new include name is proposed. Select the desired one and you can insert your lines of code here.

Write the code inside a “FORM…. ENDFORM”, since these routines are dynamically called corresponding to the dialog events we have specified.

Hope this helps.


Thanks

Katrice

Read only

satyabrata_sahoo3
Contributor
0 Likes
2,841

You can validate the entries if the fields have check table or value tables. Also you can do it by some code validations in PAI of the table maintenance.

Read only

Former Member
0 Likes
2,841

Hi Chris,

In TMG you can create event where you can check for the entry for the required column and row.

Thanks & Regards,

Akshay Ruia