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

Why does table maintenance generator require function group?

Former Member
0 Likes
3,172

Hi guys,

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

1 ACCEPTED SOLUTION
Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
2,586

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
Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
2,587

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

Read only

BaerbelWinkler
SAP Champion
SAP Champion
2,586

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

Read only

matt
Active Contributor
2,586

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

Read only

2,586

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

Read only

matt
Active Contributor
2,586

Because that's how it is designed.

Read only

2,586

"Because SAP said so" 🙂

Read only

DoanManhQuynh
Active Contributor
2,586

can you tell me why it doesnt?

Read only

2,586

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