AWS Security ChangesHomeSearch

AWS code-library documentation change

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

File: code-library/latest/ug/medical-imaging_example_medical-imaging_GetDatastore_section.md

Summary

Added SAP ABAP SDK code example for GetDatastore operation with error handling

Security assessment

The change adds a code sample for retrieving datastore properties using SAP ABAP SDK. While it includes AccessDenied exception handling, this is standard practice and doesn't indicate a security fix. The update is part of routine SDK documentation expansion.

Diff

diff --git a/code-library/latest/ug/medical-imaging_example_medical-imaging_GetDatastore_section.md b/code-library/latest/ug/medical-imaging_example_medical-imaging_GetDatastore_section.md
index f24f99d6a..f14b22697 100644
--- a//code-library/latest/ug/medical-imaging_example_medical-imaging_GetDatastore_section.md
+++ b//code-library/latest/ug/medical-imaging_example_medical-imaging_GetDatastore_section.md
@@ -305,0 +306,37 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+SAP ABAP
+    
+
+**SDK for SAP ABAP**
+    
+    
+    
+        TRY.
+            " iv_datastore_id = '1234567890123456789012345678901234567890'
+            oo_result = lo_mig->getdatastore( iv_datastoreid = iv_datastore_id ).
+            DATA(lo_properties) = oo_result->get_datastoreproperties( ).
+            DATA(lv_name) = lo_properties->get_datastorename( ).
+            DATA(lv_status) = lo_properties->get_datastorestatus( ).
+            MESSAGE 'Data store properties retrieved.' TYPE 'I'.
+          CATCH /aws1/cx_migaccessdeniedex.
+            MESSAGE 'Access denied.' TYPE 'I'.
+          CATCH /aws1/cx_miginternalserverex.
+            MESSAGE 'Internal server error.' TYPE 'I'.
+          CATCH /aws1/cx_migresourcenotfoundex.
+            MESSAGE 'Data store not found.' TYPE 'I'.
+          CATCH /aws1/cx_migthrottlingex.
+            MESSAGE 'Request throttled.' TYPE 'I'.
+          CATCH /aws1/cx_migvalidationex.
+            MESSAGE 'Validation error.' TYPE 'I'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [GetDatastore](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+
+###### 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/mig#code-examples). 
+