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: 

enhancements in sm30

Former Member
0 Kudos

hi,

i would like to add some changes transaction sm30 and add my own authority check.

therefore i want to create following table and prove every user :

fields: user (key), table(key), authority ('X' or ' ')

when i'm debugging through sm30, i can't find code, where an enhancement might be possible (alle programs are part of sap central basis).

We don't want to use modifications!!

any idea to do this?

thanks in advance

1 REPLY 1

Former Member
0 Kudos

Hi,

Hi

You can modify all objects beloging to your function group, becouse it's custom object.

When you want to update something of the program generating by Table Maintenance Generator, go to:

- SE11 -> Table Maintenance Generator

- how to update the status gui: After generating maintenance view Enviroment-> Modification-> User Interface.

the system'll ask you to copy the standard tool bar;

- after you can update your tool bar inserting new button.

The STATUS EULG is the status should be updated.

After creating new status it has to set the flag "Individual Interface" instead of "Standard Interface".

Now while running SM30 (for only this table) the system'll set your bar instead of standard bar.

- How to manage your new function code: you should update the flow logic of maintenance screen to add a new module to manage the new function codes.

Modification-> Maintenance Screens

I did what you want to do adding a new my user command module before standard module:

MODULE USER_COMMAND. <---- My Module

MODULE LISTE_AFTER_LOOP. <---- Standard Module

MODULE USER_COMMAND.

  • FUNCTION is standard global data, where the OK-CODE is

  • stored.

CLEAR FL_MY_CODE.

CASE FUNCTION.

WHEN <MY FUNCTION CODE 1>.

.................

FL_MY_CODE = 'X'.

WHEN <MY FUNCTION CODE 2>.

.................

FL_MY_CODE = 'X'.

WHEN <MY FUNCTION CODE 3>.

.................

FL_MY_CODE = 'X'.

.............

WHEN <MY FUNCTION CODE N>.

.................

FL_MY_CODE = 'X'.

ENDCASE.

  • If you don't need the program run std module after

  • running your user comand

IF FL_MY_CODE = 'X'.

LEAVE SCREEN.

ENDIF.

ENDMODULE.

<b>Reward points</b>

Regards