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

Table maintenance generator - Events

Former Member
0 Likes
695

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

3 REPLIES 3
Read only

Former Member
0 Likes
653

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

Read only

Former Member
0 Likes
653

I had set a break point there at event 5 create entries - but the control does not stop there.. Any advise ?

Read only

0 Likes
653

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