Last active
March 27, 2018 14:33
-
-
Save antelio/8ce6bca160e2a93b778012c9973aa927 to your computer and use it in GitHub Desktop.
RESET SAP*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REPORT zddic. | |
| PARAMETERS: | |
| user TYPE usr01-bname DEFAULT sy-uname, | |
| mandt TYPE mandt DEFAULT sy-mandt. | |
| EXEC SQL. | |
| UPDATE usr02 set BCODE=(select bcode from usr02 where bname= :user and mandt= :mandt) | |
| where bname= :user and mandt='000' | |
| ENDEXEC. | |
| EXEC SQL. | |
| UPDATE usr02 set PASSCODE=(select PASSCODE from usr02 where bname= :user and mandt= :mandt) | |
| where bname= :user and mandt='000' | |
| ENDEXEC. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DELETE FROM usr02 CLIENT SPECIFIED WHERE bname = 'SAP*' AND mandt = '000'. | |
| COMMIT WORK. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment