Stay organized with collections
Save and categorize content based on your preferences.
This page provides a curated list of code samples that you can use to
accelerate your development with the ABAP SDK for Google Cloud.
For a comprehensive collection of code samples for the
SAP BTP edition of ABAP SDK for Google Cloud,
see the code sample repository on GitHub.
For a comprehensive collection of code samples for the
on-premises or any cloud edition of ABAP SDK for Google Cloud,
see the code samples repository on GitHub.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[],[],null,["# ABAP SDK for Google Cloud code samples\n\nThis page provides a curated list of code samples that you can use to\naccelerate your development with the ABAP SDK for Google Cloud.\n\n\nFor a comprehensive collection of code samples for the\nSAP BTP edition of ABAP SDK for Google Cloud,\nsee the [code sample repository on GitHub](https://github.com/GoogleCloudPlatform/abapsdk-btp-samples/tree/main/src/zgoog_sdk_btp_code_samples).\n\nFor a comprehensive collection of code samples for the\non-premises or any cloud edition of ABAP SDK for Google Cloud,\nsee the [code samples repository on GitHub](https://github.com/GoogleCloudPlatform/google-cloud-abap/tree/main/abap-sdk/ZGOOG_SDK_DOCS_SAMPLES).\n\n\u003cbr /\u003e\n\n### SAP BTP edition\n\n#### Pub/Sub\n\n- [Publish topics](/sap/docs/abap-sdk/samples/ps-publish-topics#sap-btp-edition)\n- [Pull subscriptions](/sap/docs/abap-sdk/samples/ps-pull-subscriptions#sap-btp-edition)\n- [Create topic](/sap/docs/abap-sdk/samples/ps-create-topic#sap-btp-edition)\n- [Create subscription](/sap/docs/abap-sdk/samples/ps-create-subscription#sap-btp-edition)\n- [List subscriptions of a topic](/sap/docs/abap-sdk/samples/ps-list-subscriptions-topic#sap-btp-edition)\n\n#### Cloud Storage\n\n- [Create bucket](/sap/docs/abap-sdk/samples/gcs-create-bucket#sap-btp-edition)\n- [List buckets](/sap/docs/abap-sdk/samples/gcs-list-buckets#sap-btp-edition)\n- [Upload file to a bucket](/sap/docs/abap-sdk/samples/gcs-upload-file-bucket#sap-btp-edition)\n- [Retrieve metadata of a file](/sap/docs/abap-sdk/samples/gcs-retrieve-metadata-file#sap-btp-edition)\n- [Download file from a bucket](/sap/docs/abap-sdk/samples/gcs-download-file-bucket#sap-btp-edition)\n- [Upload file with chunking and customer supplied encryption key](/sap/docs/abap-sdk/samples/gcs-upload-file-chunking-customer-supplied-key#sap-btp-edition)\n\n#### Document AI\n\n- [Process a single document](/sap/docs/abap-sdk/samples/docai-process-single-document#sap-btp-edition)\n- [Send a document for human review](/sap/docs/abap-sdk/samples/docai-send-document-for-human-review#sap-btp-edition)\n- [Batch process multiple documents](/sap/docs/abap-sdk/samples/docai-batch-process-multiple-documents#sap-btp-edition)\n- [Process a single document with a processor version](/sap/docs/abap-sdk/samples/docai-process-single-document-with-processor-version#sap-btp-edition)\n- [Batch process multiple documents with a processor version](/sap/docs/abap-sdk/samples/docai-batch-process-multiple-documents-with-processor-version#sap-btp-edition)\n- [Get the latest state of a long-running operation](/sap/docs/abap-sdk/samples/docai-get-latest-state-long-running-operation#sap-btp-edition)\n- [Start asynchronous cancellation on a long-running operation](/sap/docs/abap-sdk/samples/docai-start-asynchronous-cancellation-long-running-operation#sap-btp-edition)\n\n#### Secret Manager\n\n- [Create secret](/sap/docs/abap-sdk/samples/sm-create-secret#sap-btp-edition)\n- [Add secret version](/sap/docs/abap-sdk/samples/sm-add-secret-version#sap-btp-edition)\n- [Access secret version](/sap/docs/abap-sdk/samples/sm-access-secret-version#sap-btp-edition)\n- [Patch secret](/sap/docs/abap-sdk/samples/sm-patch-secret#sap-btp-edition)\n- [Destroy secret version](/sap/docs/abap-sdk/samples/sm-destroy-secret-version#sap-btp-edition)\n- [Delete secret](/sap/docs/abap-sdk/samples/sm-delete-secret#sap-btp-edition)\n\n#### Cloud Translation\n\n- [Create glossary](/sap/docs/abap-sdk/samples/trans-create-glossary#sap-btp-edition)\n- [Translate with glossary](/sap/docs/abap-sdk/samples/trans-translate-glossary#sap-btp-edition)\n- [Translate text in batch mode](/sap/docs/abap-sdk/samples/trans-translate-text-batch-mode#sap-btp-edition)\n- [Translate document in batch mode](/sap/docs/abap-sdk/samples/trans-translate-document-batch-mode#sap-btp-edition)\n\n### On-premises or any cloud edition\n\n#### Pub/Sub\n\n- [Publish topics](/sap/docs/abap-sdk/samples/ps-publish-topics#on-premises-or-any-cloud-edition)\n- [Pull subscriptions](/sap/docs/abap-sdk/samples/ps-pull-subscriptions#on-premises-or-any-cloud-edition)\n- [Create topic](/sap/docs/abap-sdk/samples/ps-create-topic#on-premises-or-any-cloud-edition)\n- [Create subscription](/sap/docs/abap-sdk/samples/ps-create-subscription#on-premises-or-any-cloud-edition)\n- [List subscriptions of a topic](/sap/docs/abap-sdk/samples/ps-list-subscriptions-topic#on-premises-or-any-cloud-edition)\n\n#### Cloud Storage\n\n- [Create bucket](/sap/docs/abap-sdk/samples/gcs-create-bucket#on-premises-or-any-cloud-edition)\n- [List buckets](/sap/docs/abap-sdk/samples/gcs-list-buckets#on-premises-or-any-cloud-edition)\n- [Upload file to a bucket](/sap/docs/abap-sdk/samples/gcs-upload-file-bucket#on-premises-or-any-cloud-edition)\n- [Retrieve metadata of a file](/sap/docs/abap-sdk/samples/gcs-retrieve-metadata-file#on-premises-or-any-cloud-edition)\n- [Download file from a bucket](/sap/docs/abap-sdk/samples/gcs-download-file-bucket#on-premises-or-any-cloud-edition)\n- [Upload file with chunking and customer supplied encryption key](/sap/docs/abap-sdk/samples/gcs-upload-file-chunking-customer-supplied-key#on-premises-or-any-cloud-edition)\n\n#### Document AI\n\n- [Process a single document](/sap/docs/abap-sdk/samples/docai-process-single-document#on-premises-or-any-cloud-edition)\n- [Send a document for human review](/sap/docs/abap-sdk/samples/docai-send-document-for-human-review#on-premises-or-any-cloud-edition)\n- [Batch process multiple documents](/sap/docs/abap-sdk/samples/docai-batch-process-multiple-documents#on-premises-or-any-cloud-edition)\n- [Process a single document with a processor version](/sap/docs/abap-sdk/samples/docai-process-single-document-with-processor-version#on-premises-or-any-cloud-edition)\n- [Batch process multiple documents with a processor version](/sap/docs/abap-sdk/samples/docai-batch-process-multiple-documents-with-processor-version#on-premises-or-any-cloud-edition)\n- [Get the latest state of a long-running operation](/sap/docs/abap-sdk/samples/docai-get-latest-state-long-running-operation#on-premises-or-any-cloud-edition)\n- [Start asynchronous cancellation on a long-running operation](/sap/docs/abap-sdk/samples/docai-start-asynchronous-cancellation-long-running-operation#on-premises-or-any-cloud-edition)\n\n#### Secret Manager\n\n- [Create secret](/sap/docs/abap-sdk/samples/sm-create-secret#on-premises-or-any-cloud-edition)\n- [Add secret version](/sap/docs/abap-sdk/samples/sm-add-secret-version#on-premises-or-any-cloud-edition)\n- [Access secret version](/sap/docs/abap-sdk/samples/sm-access-secret-version#on-premises-or-any-cloud-edition)\n- [Patch secret](/sap/docs/abap-sdk/samples/sm-patch-secret#on-premises-or-any-cloud-edition)\n- [Destroy secret version](/sap/docs/abap-sdk/samples/sm-destroy-secret-version#on-premises-or-any-cloud-edition)\n- [Delete secret](/sap/docs/abap-sdk/samples/sm-delete-secret#on-premises-or-any-cloud-edition)\n\n#### Cloud Translation\n\n- [Create glossary](/sap/docs/abap-sdk/samples/trans-create-glossary#on-premises-or-any-cloud-edition)\n- [Translate with glossary](/sap/docs/abap-sdk/samples/trans-translate-glossary#on-premises-or-any-cloud-edition)\n- [Translate text in batch mode](/sap/docs/abap-sdk/samples/trans-translate-text-batch-mode#on-premises-or-any-cloud-edition)\n- [Translate document in batch mode](/sap/docs/abap-sdk/samples/trans-translate-document-batch-mode#on-premises-or-any-cloud-edition)"]]