Skip to Content
avatar image
Former Member

how to decrypt oCompany.password in SAP SDK

I have written a code to approve purchase request through addon. all i need now is to provide approverPassword in program, but when i use

oApprovalRequestDecision.ApproverPassword =oCompany.Password

i get an error, invalid password, as oCompany.Password returns encrypted password.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Feb 20 at 10:34 AM

    Hi Rehan,

    You can't decrypte the password.

    How is the password provided for the addon to logon?

    Regards

    Ad

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 20 at 03:02 PM

    Here’s a sample screenshot for this function:

    1. The first textbox was the Normal Text.
    2. The second textbox was the Encrypted Text.
    3. 3rd was the Decrypted Text.

    How to use:

    Declaration:

    Dim oEncryp As New Encrypt_Decrypt.Encrypt_Decrypt(“@SAP_SCN”)

    Encryption:

    txt_Encrypt.Text = oCryp.EncryptString(txt.Normal.Text)

    Decryption:

    txt_Decrypt.Text = oCryp.DecryptString(txt.Encrypt.Text)

    Hope this helped you in your every coding.

    Regards,

    Zahid Mansoor

    AKI

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 22 at 05:17 AM

    Hi Ad,

    I am using SBO_Application.Company.GetDICompany() object to login to my current company using Addon,

    But when i use company.Password it returns me encrypted(***********) password which i can not use for my approval params.

    Is there anyway to use company.Password as plain text.. ??

    Add comment
    10|10000 characters needed characters exceeded