AWS healthimaging documentation change
Summary
Added SAP ABAP SDK code example for GetImageFrame API with error handling
Security assessment
The change demonstrates how to retrieve medical image frames but contains no security-specific content. The access control exceptions are part of standard API documentation and don't indicate a security fix.
Diff
diff --git a/healthimaging/latest/devguide/get-image-frame.md b/healthimaging/latest/devguide/get-image-frame.md index 4c9ee4a4d..d56d6e650 100644 --- a//healthimaging/latest/devguide/get-image-frame.md +++ b//healthimaging/latest/devguide/get-image-frame.md @@ -281,0 +282,43 @@ 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_image_set_id = '1234567890123456789012345678901234567890' + " iv_image_frame_id = '1234567890123456789012345678901234567890' + oo_result = lo_mig->getimageframe( + iv_datastoreid = iv_datastore_id + iv_imagesetid = iv_image_set_id + io_imageframeinformation = NEW /aws1/cl_migimageframeinfmtion( + iv_imageframeid = iv_image_frame_id ) ). + DATA(lv_frame_blob) = oo_result->get_imageframeblob( ). + MESSAGE 'Image frame retrieved.' 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 frame 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 [GetImageFrame](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). +