SAP-crack the client's lock through debugging to modify system data

Source: Internet
Author: User
Original article: SAP-break through the client's lock through debugging to modify system data

Generally, the SAP production machine is set as unchangeable. However, sometimes some custom tables or data tables that do not affect the logic of the system can be directly modified on the Production Machine Client. OK. Let's try it in debug mode and modify the material group.

1. modify the tcode: omsf of the material group in normal mode. The message "customer XXXX cannot be modified" is displayed, and you can only select to enter in display mode. This is because the client is locked and cannot be modified.

2. Return to the main interface, set the debugging status, and then enter tcode: omsf.CodeAfter debugging, such as adding a breakpoint of the message command

Press F8 to run the prompt message that cannot be modified, and return to the debugging code. The Code stops at line 302 message i430 ..., this line is the code of the pop-up information. check whether there is an if judgment in the 297 line. Intuition tells me that this is the key point. The vim_client_state variable may be used to check whether the status can be modified.
.

Set this line to a breakpoint.ProgramAgain, execute the program with omsf, F8 runs until 297 rows, and change vim_client_state to 0.
(This is different from vim_loked). After F8, the prompt box is skipped and the modification interface is successfully displayed.

At this time, we can modify it as we like. When we save it, the breakpoint will also be in line 297, and vim_client_state will be modified as well, so we can save it successfully.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.