Skip to Content
0
Former Member
Nov 25, 2009 at 06:41 AM

Function FIEB_PASSWORD_ENCRYPT

461 Views

Hi,

I have a requirement wherein I have a fixed value such as SAP321 as the password. Now I have to encrypt that and store that in the table. For this purpose I am using the function module in the following manner.

DATA V_ENCRYPT TYPE FIEB_ENCRYPTED_PASSWD VALUE 'SAP123'.

data V_NEW_PASS type c.

CALL FUNCTION 'FIEB_PASSWORD_ENCRYPT'

EXPORTING

IM_DECRYPTED_PASSWORD = v_NEW_PASS

IMPORTING

EX_ENCRYPTED_PASSWORD = V_ENCRYPT.

and storing v_NEW_PASS into the table. But I am getting the dump saying

The field "V_NEW_PASS" specified here is a different

field type.

Please suggest the solution.