Application Development 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: 

Why does table maintenance generator require function group?

0 Kudos

Hi guys,

Can someone please tell why does table maintenance generator require function group? Thanks.

1 ACCEPTED SOLUTION

DominikTylczyn
Active Contributor

Because tables are maintained in SM30 thorough function modules. Table maintenance generator generates these function modules. Function modules are always created within a function group. Thus the generator needs a function group.

HTH

Dominik Tylczyński

8 REPLIES 8

DominikTylczyn
Active Contributor

Because tables are maintained in SM30 thorough function modules. Table maintenance generator generates these function modules. Function modules are always created within a function group. Thus the generator needs a function group.

HTH

Dominik Tylczyński

BaerbelWinkler
Active Contributor

To add to Dominik's answer: the easiest approach is to just create one function group per table and use the same name for it so that you have a 1:1 relationship between the table and its function group for the maintenance view. We have many old Z-tables where this unfortunately wasn't done and they ended up in large function groups, some even containing other logic than table maintenance. If something goes wrong in one of these or while regenerating a maintenance view for just one of the tables, you can cause syntax-errors for everything else in the function group.

Cheers

Bärbel

matt
Active Contributor

I worked at one place, years ago, where there was one function group per development class (as they were called then)... 😮

I wish the maintenance generator would just generate FG itself (one per table). This always seemed like such a mindless activity to me...

matt
Active Contributor

Because that's how it is designed.

Jelena
Active Contributor

"Because SAP said so" 🙂

DoanManhQuynh
Active Contributor

can you tell me why it doesnt?

As Matthew said: "Because that's how it is designed." ;))