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_CopyImageSet_section.md

Summary

Added SAP ABAP code example for Medical Imaging CopyImageSet API

Security assessment

The change adds routine documentation for data migration operations in medical imaging service. No security-specific content, vulnerabilities, or cryptographic features are addressed. Error handling focuses on operational exceptions like throttling and resource conflicts.

Diff

diff --git a/code-library/latest/ug/medical-imaging_example_medical-imaging_CopyImageSet_section.md b/code-library/latest/ug/medical-imaging_example_medical-imaging_CopyImageSet_section.md
index 8f5e7b20a..ac4ddcb3d 100644
--- a//code-library/latest/ug/medical-imaging_example_medical-imaging_CopyImageSet_section.md
+++ b//code-library/latest/ug/medical-imaging_example_medical-imaging_CopyImageSet_section.md
@@ -574,0 +575,62 @@ 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'
+            " iv_source_image_set_id = '1234567890123456789012345678901234567890'
+            " iv_source_version_id = '1'
+            " iv_destination_image_set_id = '1234567890123456789012345678901234567890' (optional)
+            " iv_destination_version_id = '1' (optional)
+            " iv_force = abap_false
+            DATA(lo_source_info) = NEW /aws1/cl_migcpsrcimagesetinf00(
+              iv_latestversionid = iv_source_version_id ).
+            DATA(lo_copy_info) = NEW /aws1/cl_migcpimagesetinfmtion(
+              io_sourceimageset = lo_source_info ).
+            IF iv_destination_image_set_id IS NOT INITIAL AND
+               iv_destination_version_id IS NOT INITIAL.
+              DATA(lo_dest_info) = NEW /aws1/cl_migcopydstimageset(
+                iv_imagesetid = iv_destination_image_set_id
+                iv_latestversionid = iv_destination_version_id ).
+              lo_copy_info = NEW /aws1/cl_migcpimagesetinfmtion(
+                io_sourceimageset = lo_source_info
+                io_destinationimageset = lo_dest_info ).
+            ENDIF.
+            oo_result = lo_mig->copyimageset(
+              iv_datastoreid = iv_datastore_id
+              iv_sourceimagesetid = iv_source_image_set_id
+              io_copyimagesetinformation = lo_copy_info
+              iv_force = iv_force ).
+            DATA(lo_dest_props) = oo_result->get_dstimagesetproperties( ).
+            DATA(lv_new_id) = lo_dest_props->get_imagesetid( ).
+            MESSAGE |Image set copied with new ID: { lv_new_id }.| TYPE 'I'.
+          CATCH /aws1/cx_migaccessdeniedex.
+            MESSAGE 'Access denied.' TYPE 'I'.
+          CATCH /aws1/cx_migconflictexception.
+            MESSAGE 'Conflict error.' TYPE 'I'.
+          CATCH /aws1/cx_miginternalserverex.
+            MESSAGE 'Internal server error.' TYPE 'I'.
+          CATCH /aws1/cx_migresourcenotfoundex.
+            MESSAGE 'Image set not found.' TYPE 'I'.
+          CATCH /aws1/cx_migservicequotaexcdex.
+            MESSAGE 'Service quota exceeded.' 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 [CopyImageSet](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). 
+