abapsap-basis

Change RZ11 Profile parameters programmatically


I was asked by the IT Department to write an ABAP program that switches the profile parameter login/server_logon_restriction from 0 to 1 and back automatically triggered (time etc) on all of our SAP servers.

I am not very familiar in the SAP environment yet and until now I managed to get the wanted parameter by using:

RSAN_SYSTEM_PARAMETERS_GET

and

RSAN_SYSTEM_PARAMETERS_READ

But I cannot find anything to change and save them dynamically. Is this even possible?

Cheers, Nils


Solution

  • login/server_logon_restriction parameter dynamic so you can change it via cl_spfl_profile_parameter=>change_value class method.

    You can configure background job for automatically trigger it in t-code SM36.

    The method don't save the given value to profile file, so the parameter turn back profile value after system restart.

    Current logged-in users can continue to use system. May be you can want to inform them with TH_POPUP function then kick from the system.