RPUTX8D0 SAP Report - Test Report for Communication ETNotif./ETStmt
RPUTX8D0 is a standard ABAP report available within your SAP system (depending on your version and release level). Below is the standard documentation available for this report and a few details of other objects it interacts with such as tables, function modules, includes etc. If you would like to see the full code listing simply enter RPUTX8D0 into the relevant SAP transaction such as SE38 or SE80
Contribute (Add Comments)
Below is the basic information available for SAP report RPUTX8D0 and is provided for your convenience to access as and when required. Although the basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.
This will then be available for everyone to easily find by simply searching on the report name RPUTX8D0 or its description.
SAP Documentation for program RPUTX8D0
After setting up SAPCryptolib and creating the key file (PSE file), you can use this report to test the encryption and decryption.
SAPCryptolib is installed (SAP Note 662340) and a PSE file was created with a key pair for the employer. After that, the open key of the clearing house was read. By generating credentials, it is possible to use the PSE without entering a PIN.
For testing the functions of SAPCryptolib, the report performs the following steps in this sequence:
Reading of the certificate of the employer (PSE file)
The program reads the PSE file of the employer and determines the employer’s DN (Distinguished Name).
Encryption with DN of employer
The program encrypts a test string. It uses the public key of the employer. The public key is determined using the DN of the employer.
Decryption with DN of employer
The program decrypts the test string that it previously encrypted. Here it uses the private key of the employer.
Encryption with DN of the clearing house
The DN of the clearing house is delivered in system table T50BS. The program encrypts a test string using the public key of the clearing house referenced by the DN. For this to take place, the public key must be imported in the PSE file of the employer.
Reading of the DN list from the PSE file
All of the public keys imported into the PSE file are entered there with their DN. The list of DNs is read and output.
If errors occur when you execute the report, for more information see SAP Note 725508 "B2A: Troubleshooting Encryption of Employment Tax".
Name of the PSE file. Entering a path is not necessary. The system finds the file in the directory defined by the environment variable SECUDIR ($DIR_INSTANCE/sec).
No entry required. When the PSE is generated, a PIN is assigned for using it. The generation of credentials in the directory of the PSE provides an authentication mechanism that makes it unnecessary to enter a PIN again for the use of SAP applications. If there are no credentials for the PSE file, then you can also test the encryption by entering the PIN. The PIN is case-sensitive. However, the prerequisite for using SAPCryptolib for electronic tax returns (ELSTER) is that there are credentials for PSE. Example for Standard Variants
Entries for selection:
PSE file name: SAMPLECORP_1.pse
PIN for PSE No entry; field remains blank
PSE file name: SAMPLECORP_1.pse
PIN for PSE 123456
Includes used within report:
No INCLUDES are used within this report code!
Tables used within report and the associated select statement:
Function Modules used within report and the associated call statement:
Text pool values
Selection Text: PA_PSE = PSE File Name
Selection Text: PA_PIN = PIN for PSE
Title: Test Report to Check Encoding with SAPCryptolib
Text Symbol: 041 = SY-SUBRC:
Text Symbol: 042 = Error During Encryption
Text Symbol: 043 = CRC:
Text Symbol: 044 = Error During Encryption
Text Symbol: 045 = Encoding - OK
Text Symbol: 047 = Error in an SSF parameter
Text Symbol: 048 = Error - Certificate Not Found
Text Symbol: 049 = Error - No Error Text. Undefined
Text Symbol: 050 = Exception of Function Module SSFC_GETOWNCERTIFICATE
Text Symbol: 051 = Error - No Error Text. Undefined
Text Symbol: 052 = Exception of Function Module SSFC_PARSECERTIFICATE
Text Symbol: 053 = Employer DN:
Text Symbol: 054 = Error Reading Table T50BS Constant DNPUB
Text Symbol: 055 = Read DN List of PSE File
Text Symbol: 056 = Error - No Error Text. Undefined
Text Symbol: 057 = Exception of Function Module SSFC_PARSECERTIFICATE
Text Symbol: 058 = Error - No Public Key in PSE File
Text Symbol: 059 = Read Certificate - OK
Text Symbol: 060 = Read DN List - OK
Text Symbol: 061 = Output Profile Param.
Text Symbol: 062 = Sample Profile Parameter for Elster
Text Symbol: 063 = Profile Param. ssf/name = SAPSECULIB
Text Symbol: 064 = Error - Profile Parameter ssf/name has not
Text Symbol: 065 = Value SAPSECULIB
Text Symbol: 066 = Profile Param. ssf/ssf_md_alg = initial
Text Symbol: 067 = Error - Profile Param ssf/ssf_md_alg is
Text Symbol: 068 = not initial
Text Symbol: 069 = Profile Param. ssf/ssf_symencr_alg = TRIPLE-DES
Text Symbol: 070 = Error - Profile Param. ssf/ssf_symencr_alg
Text Symbol: 071 = has not value TRIPLE-DES
Text Symbol: 072 = Profile Param. ssf/ssfapi_lib und sec/libsapsecu
Text Symbol: 073 = point to same file - OK
Text Symbol: 074 = Profile Param. ssf/ssfapi_lib und sec/libsapsecu
Text Symbol: 075 = must point to same file - Error
Text Symbol: 076 = Profile Parameter Check - OK
Text Symbol: 077 = Error - Check Profile Parameter
Text Symbol: 040 = Encoding with Clearing House DN
Text Symbol: 001 = Read Employer Certificate (PSE File)
Text Symbol: 002 = PSE File Name:
Text Symbol: 003 = Error - Unknown SSF Kernel Error
Text Symbol: 004 = Error - Insufficient Main Memory
Text Symbol: 005 = Error - SSF Kernel Not Initialized
Text Symbol: 006 = Encoding with Employer DN
Text Symbol: 007 = SY-SUBRC:
Text Symbol: 008 = Error During Encryption
Text Symbol: 009 = CRC:
Text Symbol: 010 = Error During Encryption
Text Symbol: 011 = Encoding - OK
Text Symbol: 012 = Decoding with Employer DN
Text Symbol: 013 = SY-SUBRC:
Text Symbol: 014 = Error During Decoding
Text Symbol: 015 = CRC:
Text Symbol: 016 = Error During Decoding
Text Symbol: 017 = CRC - 1: External Security Product Not Found
Text Symbol: 018 = CRC - 2: Invalid Save Format
Text Symbol: 019 = CRC - 3: Input Data Missing or Unsuitable
Text Symbol: 020 = CRC - 4: No More Main Memory for Processing
Text Symbol: 021 = CRC - 9: No Recipient - Error
Text Symbol: 022 = Check Constant SSFPR in Table T50BK
Text Symbol: 023 = CRC - 11: ASN.1 Coding Failed
Text Symbol: 024 = CRC - 12: ASN.1 Decoding Failed
Text Symbol: 025 = CRC - 13: Unknown Error in External Security Product
Text Symbol: 026 = CRC -
Text Symbol: 027 = Error Decoding Data Part
Text Symbol: 028 = Decoding - OK
Text Symbol: 029 = CRC Error 1 - External Security Product Not Found
Text Symbol: 030 = CRC Error 2 - Invalid Save Format
Text Symbol: 031 = CRC Error 3 - Input Data Missing or Unsuitable
Text Symbol: 032 = CRC Error 4 - No main memory remaining for processing
Text Symbol: 033 = CRC Error 7 - Unknown Address Book
Text Symbol: 034 = CRC Error 8 - Invalid Password for Address Book
Text Symbol: 035 = CRC Error 9 - There are recipient errors
Text Symbol: 036 = CRC Error 11 - ASN.1 encoding failed
Text Symbol: 037 = CRC Error 12 - ASN.1 decoding failed
Text Symbol: 038 = CRC Error 13 - Unknown error in external security product
Text Symbol: 039 = No error text