2013 Aug 14 3:28 AM
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
2013 Aug 14 5:34 AM
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
2013 Aug 14 5:55 AM
2013 Aug 14 6:04 AM
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.
2013 Aug 14 6:26 AM
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.
2013 Aug 14 6:35 AM
2013 Aug 14 6:36 AM
2013 Aug 14 6:44 AM
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
2013 Aug 14 7:18 AM
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.
2013 Aug 14 7:31 AM
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