ABAP Debug SU01D to get SAP_ALL

  1. Set breakpoint at class: CL_SUID_TOOLS, Method: AUTH_CHECK_INTERNAL
    ABAP Debug SU01D to get SAP_ALL
  2. Set breakpoint at program: LSUID_MAINTENANCEP04, method: C_UC_INIT_SCREEN_SINGLE
    ABAP Debug SU01D to get SAP_ALL
  3. Run SU01D, input your user name and click display button
  4. Program stop at LSUID_MAINTENANCEP04, then change m_okcode to ‘CHAN’
  5. F8 execute, program will stop at method: AUTH_CHECK_INTERNAL several times
  6. When get to AUTH_CHECK_INTERNAL, change sy-subrc to 0 if it’s not
  7. Do whatever you want like you do in SU01, normally add sap_all to the profiles then you don’t need to debug anymore, enjoy!