AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2026-01-25 · Documentation low

File: code-library/latest/ug/acm_example_acm_GetCertificate_section.md

Summary

Added SAP ABAP SDK code example for GetCertificate API with error handling

Security assessment

This adds a routine example for certificate retrieval. The 'request in progress' error relates to normal workflow states, not security weaknesses. No security enhancements or vulnerability mitigations are present.

Diff

diff --git a/code-library/latest/ug/acm_example_acm_GetCertificate_section.md b/code-library/latest/ug/acm_example_acm_GetCertificate_section.md
index 43749531c..732807373 100644
--- a//code-library/latest/ug/acm_example_acm_GetCertificate_section.md
+++ b//code-library/latest/ug/acm_example_acm_GetCertificate_section.md
@@ -238,0 +239,30 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+SAP ABAP
+    
+
+**SDK for SAP ABAP**
+    
+
+###### Note
+
+There's more on GitHub. Find the complete example and learn how to set up and run in the [AWS Code Examples Repository](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/sap-abap/services/acm#code-examples). 
+    
+    
+        TRY.
+            " iv_certificate_arn = 'arn:aws:acm:region:123456789012:certificate/certificate-id'
+            oo_result = lo_acm->getcertificate( iv_certificatearn = iv_certificate_arn ).
+            MESSAGE 'Certificate body and chain retrieved.' TYPE 'I'.
+          CATCH /aws1/cx_acminvalidarnex.
+            MESSAGE 'The certificate ARN is not valid.' TYPE 'I'.
+          CATCH /aws1/cx_acmresourcenotfoundex.
+            MESSAGE 'Certificate not found.' TYPE 'I'.
+          CATCH /aws1/cx_acmrequestinprgssex.
+            MESSAGE 'Certificate request is in progress.' TYPE 'I'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [GetCertificate](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+