/AWS1/IF_TRN=>UPDATECERTIFICATE()¶
About UpdateCertificate¶
Updates the active and inactive dates for a certificate.
Method Signature¶
METHODS /AWS1/IF_TRN~UPDATECERTIFICATE
IMPORTING
!IV_CERTIFICATEID TYPE /AWS1/TRNCERTIFICATEID OPTIONAL
!IV_ACTIVEDATE TYPE /AWS1/TRNCERTDATE OPTIONAL
!IV_INACTIVEDATE TYPE /AWS1/TRNCERTDATE OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/TRNDESCRIPTION OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_trnupdatecertresponse
RAISING
/AWS1/CX_TRNINTERNALSVCERROR
/AWS1/CX_TRNINVALIDREQUESTEX
/AWS1/CX_TRNRESOURCENOTFOUNDEX
/AWS1/CX_TRNSERVICEUNAVAILEX
/AWS1/CX_TRNTHROTTLINGEX
/AWS1/CX_TRNCLIENTEXC
/AWS1/CX_TRNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_certificateid TYPE /AWS1/TRNCERTIFICATEID /AWS1/TRNCERTIFICATEID¶
The identifier of the certificate object that you are updating.
Optional arguments:¶
iv_activedate TYPE /AWS1/TRNCERTDATE /AWS1/TRNCERTDATE¶
An optional date that specifies when the certificate becomes active. If you do not specify a value,
ActiveDatetakes the same value asNotBeforeDate, which is specified by the CA.
iv_inactivedate TYPE /AWS1/TRNCERTDATE /AWS1/TRNCERTDATE¶
An optional date that specifies when the certificate becomes inactive. If you do not specify a value,
InactiveDatetakes the same value asNotAfterDate, which is specified by the CA.
iv_description TYPE /AWS1/TRNDESCRIPTION /AWS1/TRNDESCRIPTION¶
A short description to help identify the certificate.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_trnupdatecertresponse /AWS1/CL_TRNUPDATECERTRESPONSE¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->updatecertificate(
iv_activedate = '20150101000000.0000000'
iv_certificateid = |string|
iv_description = |string|
iv_inactivedate = '20150101000000.0000000'
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_certificateid = lo_result->get_certificateid( ).
ENDIF.