The steps below can be used as a workaround for the SAP AFX Connector to generate the decrypted password during SAP account creation:
- Export the SAP connector template and make a copy as a backup. To export,
- Navigate to AFX > Export.
- Select SAP from the Connector Templates
- Using the downloaded SAP Connector template zip, make the following changes:
- Unzip it.
- Navigate to <directory with the unzipped folder>/SAP/TRANSPORT_TYPE
- Open the SAP-transport.xml file and locate the string <field name="BAPIPWD" sapDesc="New password">.
- Modify its value as follows:
- The original field value for BAPIPWD on SAP-transport.xml is:
<structure name="PASSWORD">
<field name="BAPIPWD" sapDesc="New password">#[header:Password]</field>
</structure>
- The new field value for BAPIPWD on SAP-transport.xml should be:
<structure name="PASSWORD">
<field name="BAPIPWD" sapDesc="New password">#[groovy:com.aveksa.AFX.server.runtime.esb.core.AfxPropertyMgr.getInstance().getPropertyValue(message, 'Password')]</field>
</structure>
- Zip the <UnzippedFolder> again.
- Import it back into the system. To import,
- Navigate to AFX > Import.
- Choose the recently zipped file from your local folder.
- Create a new SAP connector. To create,
- Navigate to AFX > Connectors > Create Connector
- Execute the Create an Account command. To execute the command,
- Navigate to AFX > Connectors.
- Choose the newly created SAP connector > Capabilities tab > select Create an Account capability.
- Test by logging into the new SAP account just created using the credentials supplied by the SAP AFX connector.
You should be able to successfully log in and no longer receive the message that the name or password is incorrect.