SECXML_XENCRYPTION is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Encryption and decryption of XML data This program provides an UI for the API class
If you would like to execute this report or see the full code listing simply enter SECXML_XENCRYPTION into the relevant SAP transactions such as SE38 or SE80
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Selection Text: GF_XTYP = Encryption Type
Selection Text: GF_XPUB = Certificate from Local File
Selection Text: GF_XMET = Encryption Method
Selection Text: GF_XKINF = Add or Use KeyInfo
Selection Text: GF_XID = Encryption Id Value
Selection Text: GF_XFILE = Local File Name
Selection Text: GF_XFIL = Element Name
Selection Text: GF_XENC = @06@Encrypt the XML Source
Selection Text: GF_XELE = Element Name
Selection Text: GF_XEL = Element
Selection Text: GF_XDEC = @07@Decrypt the XML Source
Selection Text: GF_XCAB = Use Adress Book
Selection Text: GF_XB64 = Run Base64 Decode of File
Selection Text: GF_XATT = Attribute Name
Selection Text: GF_XAN = Attribute
Selection Text: GF_XALG = Encryption Algorithm
Selection Text: GF_SECRT = Shared Secret Encryption Key
Selection Text: GF_PSECT = PSE Context
Selection Text: GF_PSEAP = PSE Application
Selection Text: GF_CABSJ = Subject Name
Selection Text: GF_CABPK = Adress Book Fingerprint
Title: XML Encryption Test Program
Text Symbol: 013 = Add KeyInfo
Text Symbol: 010 = XML Encryption Options
Text Symbol: 009 = Certificate from File System
Text Symbol: 008 = Certificate from Adress Book
Text Symbol: 007 = Cryptographic Key Options
Text Symbol: 006 = XML Source
Text Symbol: 005 = Element Name
Text Symbol: 004 = Id-Attribute Value
Text Symbol: 001 = XML Input
Text Symbol: 000 = XML Encryption Action
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'APPLIC' value_org = 'S' multiple_choice = space TABLES value_tab = lt_in return_tab = lt_out EXCEPTIONS OTHERS = 1.
SAPGUI_SET_FUNCTIONCODE CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE' EXPORTING functioncode = 'DISP'.
STRUSTCAB_GET_CERT_BY_FINGERPR CALL FUNCTION 'STRUSTCAB_GET_CERT_BY_FINGERPR' EXPORTING if_fingerprintsha1 = gf_cabpk IMPORTING ef_certificate = p_lf_result EXCEPTIONS OTHERS = 1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
SECXML_XENCRYPTION - XML Encryption Test Program SECXML_XENCRYPTION - XML Encryption Test Program SECXML_SIGN_SIGNED_XML - Example how to sign signed XML SECXML_SIGN_SIGNED_XML - Example how to sign signed XML SECXML_SEND_REQUEST - Report SECXML_SEND_REQUEST SECXML_SEND_REQUEST - Report SECXML_SEND_REQUEST