2009 Aug 25 7:08 PM
Dear experts
I am working on a requirement in which the average value of the salary to be automatically calculated when I view the table using SM30
I tried using EVENTs in table maintenance generator - I could able to calculate only after saving the values in SM30 tcode.
I want the calculation of average to be performed when I try to open the table in SM30 automatically.
Please advise where to add the piece of code to find average.
Regards
Vivek
Dear experts
I am working on a requirement in which the average value of the salary to be automatically calculated when I view the table using SM30
I tried using EVENTs in table maintenance generator - I could able to calculate only after saving the values in SM30 tcode.
I want the calculation of average to be performed when I try to open the table in SM30 automatically.
Please advise where to add the piece of code to find average.
Regards
Vivek
2009 Aug 25 7:34 PM
Hi,
Try using event 5(create entries) and then you can use the table work area in the subroutine that you create to calculate average based on the values on the screen and populate it to the field where you want the value.
Regards,
Himanshu
2009 Aug 25 10:15 PM
I had set a break point there at event 5 create entries - but the control does not stop there.. Any advise ?
2009 Aug 26 6:35 AM
Hi,
I would suggest you to delete and recreate the Table maintainence generator and then try some times there is a generation problen which is resolved when you recreate the generator.
After recreation just go to events and create an entry with event 5 and assign a subroutine to that event and then put a break point the control should definitly come in the subrouine.
Regards,
Himanshu