Preparing the WS Consumer AS ABAP for Encryption 
For the consumer system to be able to send encrypted messages to the provider system, it requires the public key of the provider system to encrypt the messages. The public key of the provider system is contained in its encryption certificate.
In the consumer system, the option for signing and encrypting has been selected, for example, in the SOA Manager (transaction SOAMANAGER), , the option Signature & Encryption (Asymmetric Binding)).
Note
If you specify the WSDL URL when creating the logical port of the consumer system, the WSDL automatically sets this option.
You have the encryption certificate for the provider system.
More information, if the provider system is an AS ABAP: Exporting an Encryption Certificate for the WS Provider AS ABAP
More information, if the provider system is an AS Java: Exporting an Encryption Certificate for the WS Provider AS Java
Use the Trust Manager to import the encryption certificate of the provider system into the WS-Security PSE Other System Encryption Certs of the consumer system.
Select the encryption certificate that you have just imported (for example, in the SOA Manager).