ABAP Debug SU01D to get SAP_ALL

2021-10-23 13:05发布


          点击此处--->   EasySAP.com 群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)

2020 - 十月 - 23 更新: ECC 这个方式是好用的,至少现在还可以用.继续保留这篇文章.

1.

Set breakpoint at class: CL_SUID_TOOLS, Method: AUTH_CHECK_INTERNAL

2.

Set breakpoint at program: LSUID_MAINTENANCEP04, method: C_UC_INIT_SCREEN_SINGLE

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!

翱翔云天的博客


赞赏支持