[Sap]Function Fieb_password_encrypt Scn

2
Getting Started Newsletters Store Products Services & Support About SCN Downloads Industries Training & Education Partnership Developer Center Lines of Business University Alliances Events & Webinars Innovation Log On Join Us Hi, Guest Search the Community Activity Communications Actions Browse More discussions in ABAP Development Tweet Tweet 0 2 Replies Latest reply : Nov 25, 2009 8:05 AM by Sourabh Batwara Share Share 817 Views Average User Rating (0 ratings) 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. ashutosh garg Nov 25, 2009 7:41 AM 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 Register Register Login to follow, like, comment, share and bookmark content. Login Login Actions Actions Sourabh Batwara Nov 25, 2009 8:07 AM (in response to ashutosh garg) Function FIEB_PASSWORD_ENCRYPT | SCN 21/07/2015 https://scn.sap.com/thread/1540974 1 / 2

description

sap

Transcript of [Sap]Function Fieb_password_encrypt Scn

  • Getting Started Newsletters Store

    Products Services & Support About SCN Downloads

    Industries Training & Education Partnership Developer Center

    Lines of Business University Alliances Events & Webinars Innovation

    Log On Join UsHi, Guest Search the Community

    Activity Communications Actions

    Browse

    More discussions in ABAP Development

    TweetTweet 0

    2 Replies Latest reply: Nov 25, 2009 8:05 AM by Sourabh Batwara

    ShareShare

    817 ViewsAverage User Rating

    (0 ratings)

    Function FIEB_PASSWORD_ENCRYPTThis question has been Answered.

    Hi,I have a requirement wherein I have a fixed value such as SAP321 as the password. Now I have toencrypt that and store that in the table. For this purpose I am using the function module in thefollowing 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 sayingThe field "V_NEW_PASS" specified here is a differentfield type.Please suggest the solution.

    ashutosh garg Nov 25, 2009 7:41 AM

    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 passingcorrect export and import parameter. the export parameter should have V_ENCRYPT instead ofV_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'EXPORTINGIM_DECRYPTED_PASSWORD = V_ENCRYPTIMPORTINGEX_ENCRYPTED_PASSWORD = V_NEW_PASS. it will work for you. you can go to se37 also to see the direct result. Please modified your codeaccordingly. Regards,Sourabh

    See the answer in context

    RegisterRegister

    Login to follow, like, comment, share andbookmark content.

    LoginLogin

    ActionsActions

    Sourabh Batwara Nov 25, 2009 8:07 AM (in response to ashutosh garg)

    Function FIEB_PASSWORD_ENCRYPT | SCN 21/07/2015

    https://scn.sap.com/thread/1540974 1 / 2

  • Follow SCNSite Index Contact Us SAP Help PortalPrivacy Terms of Use Legal Disclosure Copyright

    Go to original post

    ShareShare

    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:07 AM (in response to ashutosh garg)

    Re: Function FIEB_PASSWORD_ENCRYPT

    Hi Ausutosh, You are getting dump because you are not passing the correct data type and also not passingcorrect export and import parameter. the export parameter should have V_ENCRYPT instead ofV_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'EXPORTINGIM_DECRYPTED_PASSWORD = V_ENCRYPTIMPORTINGEX_ENCRYPTED_PASSWORD = V_NEW_PASS. it will work for you. you can go to se37 also to see the direct result. Please modified your codeaccordingly. Regards,Sourabh

    Alert Moderator Like (0)

    Correct Answer

    Sourabh Batwara Nov 25, 2009 8:05 AM (in response to ashutosh garg)

    Function FIEB_PASSWORD_ENCRYPT | SCN 21/07/2015

    https://scn.sap.com/thread/1540974 2 / 2

    ActionsFunction FIEB_PASSWORD_ENCRYPTRe: Function FIEB_PASSWORD_ENCRYPTCorrect Answer Re: Function FIEB_PASSWORD_ENCRYPT