Skip to Content
0
Former Member
Jan 05, 2007 at 04:56 PM

SU01/SU10 mode inside customer exit Z_USERS_TRANSFER

94 Views

We're using customer exit Z_USERS_TRANSFER (reference note 367660) to do some custom code inside SU01 and SU10. I need to know the SU01/SU10 mode (create, change, or delete) to do different processing.

I'm using the following code for SU01:

-


data: su01_mode(5) type c.

field-symbols: <su01_mode> like mode.

assign ('(SAPLSUU5)g_ok_start') to <su01_mode>.

-


<su01_mode> will have the following values: create = "CREA", change = "CHAN", and delete = "DELE".

The above SU01 code doesn't work for SU10. Here's the best I've been able to do for SU10:

-


field-symbols: <su10_mode> like szad_field-maint_mode.

assign ('(SAPLSUU5)g_operation_mode') to <su10_mode>.

-


<su10_mode> will have the following values: create = "CREATE", change = "CHANGE", and delete = <blank>. The delete creates a problem because <su10_mode> will also have lock/unlock = <blank>; thus it makes it hard to differentiate between a SU10 delete, lock, or unlock.

Does anyone have a better suggestion for the SU10 code? Or is there some "common" code I can use for both SU01 and SU10?

Thanks,

Brad