Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Storing Passwords in custom tables


We are developing a tool, that needs userID and pssword to access it.

So we want to store the information in a custom table. The maximum length of the password is 10 characters.

I used the function module to scrammble the password, but when I put this hexa value in a raw field defined in the custom table, then it adds Zero's at the end based on the length of the password. When I want to use this for checking the access I am facing the problem due to the Zero's at the end.

For example:

Passowrd : test@123

Scramble String: A3ED2E10FF13695E

When I store this in table it will be A3ED2E10FF13695E0000

I used a domain with data type RAW 10 for the password field. SAP USR02 table uses RAW 08.

Q1: How can I eliminate zero's at the end while storing it? I didn't wan to manually remove the trialing zero's while checking the access. This might cause problems becuase if the string it self contains a last character as zero.

Q2. Is there is a way to get back the original string from the scramble string.

Appreicate your ideas on this.


Former Member
Not what you were looking for? View more on this topic or Ask a question