Sie sind auf Seite 1von 2

Function FIEB_PASSWORD_ENCRYPT | SCN

21/07/2015

Getting Started Newsletters Store

Hi, Guest

Log On Join Us

Search the Community

Products

Services & Support

About SCN

Downloads

Industries

Training & Education

Partnership

Developer Center

Activity

Lines of Business

University Alliances

Events & Webinars

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

Login to follow, like, comment, share and


bookmark content.

ashutosh garg

Login

Register

Nov 25, 2009 7:41 AM

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

Average User Rating


(0 ratings)

Sourabh Batwara Nov 25, 2009 8:07 AM (in response to ashutosh garg)
https://scn.sap.com/thread/1540974

1/2

Function FIEB_PASSWORD_ENCRYPT | SCN

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

SAP Help Portal


Legal Disclosure

Copyright

Follow SCN

2/2

Das könnte Ihnen auch gefallen