Beruflich Dokumente
Kultur Dokumente
21/07/2015
Hi, Guest
Log On Join Us
Products
About SCN
Downloads
Industries
Partnership
Developer Center
Activity
Lines of Business
University Alliances
Innovation
Browse
More discussions in
Communications
Actions
ABAP Development
Actions
2 Replies Latest reply: Nov 25, 2009 8:05 AM by Sourabh Batwara
Share
Tweet
ashutosh garg
Login
Register
Function FIEB_PASSWORD_ENCRYPT
This question has been Answered.
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.
Correct Answer
by Sourabh Batwara on Nov 25, 2009 8:05 AM
Hi Ausutosh,
You are getting dump because you are not passing the correct data type and also not passing
correct export and import parameter. the export parameter should have V_ENCRYPT instead of
V_NEW_PASS.
First of all please declear your variable like this :
Data : V_ENCRYPT TYPE FIEB_DECRYPTED_PASSWD VALUE 'SAP123',
V_NEW_PASS TYPE FIEB_ENCRYPTED_PASSWD.
here you can also pass v_new_pass as 32 char.
then call function module :
CALL FUNCTION 'FIEB_PASSWORD_ENCRYPT'
EXPORTING
IM_DECRYPTED_PASSWORD = V_ENCRYPT
IMPORTING
EX_ENCRYPTED_PASSWORD = V_NEW_PASS.
it will work for you. you can go to se37 also to see the direct result. Please modified your code
accordingly.
Regards,
Sourabh
See the answer in context
817 Views
Sourabh Batwara Nov 25, 2009 8:07 AM (in response to ashutosh garg)
https://scn.sap.com/thread/1540974
1/2
21/07/2015
Sourabh Batwara Nov 25, 2009 8:07 AM (in response to ashutosh garg)
Re: Function FIEB_PASSWORD_ENCRYPT
null
Edited by: Sourabh Batwara on Nov 25, 2009 12:36 PM
Edited by: Sourabh Batwara on Nov 25, 2009 12:37 PM
Alert Moderator
Like (0)
Sourabh Batwara Nov 25, 2009 8:05 AM (in response to ashutosh garg)
Correct Answer Re: Function FIEB_PASSWORD_ENCRYPT
Hi Ausutosh,
You are getting dump because you are not passing the correct data type and also not passing
correct export and import parameter. the export parameter should have V_ENCRYPT instead of
V_NEW_PASS.
First of all please declear your variable like this :
Data : V_ENCRYPT TYPE FIEB_DECRYPTED_PASSWD VALUE 'SAP123',
V_NEW_PASS TYPE FIEB_ENCRYPTED_PASSWD.
here you can also pass v_new_pass as 32 char.
then call function module :
CALL FUNCTION 'FIEB_PASSWORD_ENCRYPT'
EXPORTING
IM_DECRYPTED_PASSWORD = V_ENCRYPT
IMPORTING
EX_ENCRYPTED_PASSWORD = V_NEW_PASS.
it will work for you. you can go to se37 also to see the direct result. Please modified your code
accordingly.
Regards,
Sourabh
Alert Moderator
Like (0)
Go to original post
Share
Site Index
Privacy
Contact Us
Terms of Use
https://scn.sap.com/thread/1540974
Copyright
Follow SCN
2/2