Tuesday, June 24, 2008

SAP Function Module String Scramble

SAP Function Module String Scramble

In ABAP if you wish to scramble a STRING it can be easy done with the help of the following function module.

SAP FUNCTION MODULE TO SCRAMBLE STRING

DP_SCRAMBLE_STRING

The inputted string is scrambled with some numeric characters.

Note: The LOWER CASE option does not work in this Function Module and you may have to do a work around to make it work.

Find the code below.

REPORT ZEX_STRINGSCR.

Parameter: p_pass(100) LOWER CASE.

data: d_passowrd(100).

d_passowrd = p_pass.

CALL FUNCTION 'DP_SCRAMBLE_STRING'
  CHANGING
    PASSWORD       = d_passowrd
          .

 Write:/ d_passowrd.

Related Links:
Creating Valid Password in SAP
Function Module to Create Passwords in SAP

No comments:

Post a Comment