SAP STRUSTCRT_CHECK_CERTIFICATE Function Module for Status des Zertifikats prüfen









STRUSTCRT_CHECK_CERTIFICATE is a standard strustcrt check certificate SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Status des Zertifikats prüfen processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for strustcrt check certificate FM, simply by entering the name STRUSTCRT_CHECK_CERTIFICATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: STRUSTCRT
Program Name: SAPLSTRUSTCRT
Main Program: SAPLSTRUSTCRT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function STRUSTCRT_CHECK_CERTIFICATE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'STRUSTCRT_CHECK_CERTIFICATE'"Status des Zertifikats prüfen
EXPORTING
IF_CERTIFICATE = "Certificate
IF_PROFILE = "Profile
* IF_CHECKTIME = "
* IF_CLIENT = SY-MANDT "Client ID of Current User

IMPORTING
EF_STATUS = "Revocation Status of the Certificate
EF_ACCEPTED = "Boolean Variable (X=True, Space=False)
EF_SOURCE = "

EXCEPTIONS
INVALID_PARAMETER = 1 INVALID_PSE = 2 CRL_VERIFY_PARSE_ERROR = 3 KERNEL_TOO_OLD = 4 CRYPTOLIB_TOO_OLD = 5
.



IMPORTING Parameters details for STRUSTCRT_CHECK_CERTIFICATE

IF_CERTIFICATE - Certificate

Data type: XSTRING
Optional: No
Call by Reference: Yes

IF_PROFILE - Profile

Data type: CR_PROFILE
Optional: No
Call by Reference: Yes

IF_CHECKTIME -

Data type: STRUSTTIMESTAMP
Optional: Yes
Call by Reference: Yes

IF_CLIENT - Client ID of Current User

Data type: SYMANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for STRUSTCRT_CHECK_CERTIFICATE

EF_STATUS - Revocation Status of the Certificate

Data type: CERTSTATUS
Optional: No
Call by Reference: Yes

EF_ACCEPTED - Boolean Variable (X=True, Space=False)

Data type: BOOLEAN
Optional: No
Call by Reference: Yes

EF_SOURCE -

Data type: CERTSTATUS_SOURCE_DETAIL
Optional: No
Call by Reference: Yes

EXCEPTIONS details

INVALID_PARAMETER -

Data type:
Optional: No
Call by Reference: Yes

INVALID_PSE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CRL_VERIFY_PARSE_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

KERNEL_TOO_OLD -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CRYPTOLIB_TOO_OLD -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for STRUSTCRT_CHECK_CERTIFICATE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_ef_status  TYPE CERTSTATUS, "   
lv_if_certificate  TYPE XSTRING, "   
lv_invalid_parameter  TYPE XSTRING, "   
lv_if_profile  TYPE CR_PROFILE, "   
lv_ef_accepted  TYPE BOOLEAN, "   
lv_invalid_pse  TYPE BOOLEAN, "   
lv_ef_source  TYPE CERTSTATUS_SOURCE_DETAIL, "   
lv_if_checktime  TYPE STRUSTTIMESTAMP, "   
lv_crl_verify_parse_error  TYPE STRUSTTIMESTAMP, "   
lv_if_client  TYPE SYMANDT, "   SY-MANDT
lv_kernel_too_old  TYPE SYMANDT, "   
lv_cryptolib_too_old  TYPE SYMANDT. "   

  CALL FUNCTION 'STRUSTCRT_CHECK_CERTIFICATE'  "Status des Zertifikats prüfen
    EXPORTING
         IF_CERTIFICATE = lv_if_certificate
         IF_PROFILE = lv_if_profile
         IF_CHECKTIME = lv_if_checktime
         IF_CLIENT = lv_if_client
    IMPORTING
         EF_STATUS = lv_ef_status
         EF_ACCEPTED = lv_ef_accepted
         EF_SOURCE = lv_ef_source
    EXCEPTIONS
        INVALID_PARAMETER = 1
        INVALID_PSE = 2
        CRL_VERIFY_PARSE_ERROR = 3
        KERNEL_TOO_OLD = 4
        CRYPTOLIB_TOO_OLD = 5
. " STRUSTCRT_CHECK_CERTIFICATE




ABAP code using 7.40 inline data declarations to call FM STRUSTCRT_CHECK_CERTIFICATE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
DATA(ld_if_client) = SY-MANDT.
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!