How to Install the AWS SDK for SAP ABAP

If you’re looking to integrate AWS services like S3 and Textract with SAP ABAP, this tutorial will walk you through installing the AWS SDK for SAP ABAP in a Docker-based SAP ABAP Developer Trial system. This is the first step in a series demonstrating how to use AWS with SAP RAP applications for OCR and document storage.

✅ *Note: These steps are also applicable for on-premise SAP systems, but *not compatible with SAP BTP ABAP Environment (Steampunk).

🔧 Prerequisites

  • A compatible SAP System(I am using Docker)
  • Terminal/Command Prompt acess
  • SAP GUI access
  • Internet access to download the AWS SDK

▶️ Video Run Through


🔽 Step 1: Download the AWS SDK for SAP ABAP

Navigate to the official AWS SDK for SAP ABAP page and download the SDK as a .zip file, or use the provided command in your terminal:

mkdir AWS
CD AWS
curl "https://sdk-for-sapabap.aws.amazon.com/awsSdkSapabapV1/release/abapsdk-LATEST.zip" -o "abapsdk-LATEST.zip"

The download is approximately 1GB, so it may take a few minutes to complete.

🗂️ Step 2: Extract and Identify Required Transports

Once downloaded:

  1. Extract the .zip file.
  2. Navigate into the extracted directory.
  3. You’ll see several folders like core/, tex/, etc.—each one corresponds to a different AWS service module.

Which Modules Do You Need?

  • S3: Included in the core/ folder.
  • Textract: Found in the tex/ folder.

📌 Only install the modules you plan to use. Future updates require you to re-import everything you’ve installed, not just what you use.

Inside each module, you’ll find:

  • A K file (goes into cofiles/)
  • An R file (goes into data/)

📁 Step 3: Copy Transport Files to your SAP System’s Transport Directory

If you’re using Docker, use the following syntax to copy files into your container:

docker cp core/K9AI3M3.AWS a4h:/usr/sap/trans/cofiles
docker cp tex/K9AI3XP.AWS a4h:/usr/sap/trans/cofiles
docker cp core/R9AHXBL.AWS a4h:/usr/sap/trans/data
docker cp tex/R9AI3M3.AWS a4h:/usr/sap/trans/data

Replace A4H with your container name.

You can validate the copy worked by checking inside Docker Desktop:

  • Navigate to usr/sap/trans/cofiles and data folders.
  • The files should now appear there.

🛠️ Step 4: Import Transports Using STMS

  1. Log in to your SAP GUI and run transaction STMS_IMPORT.
  2. Choose Extras > Other Requests > Add
  3. Enter the transport number starting with Core (e.g., AWSK…3M3)
  4. Repeat for each module (e.g., Textract)
⚠️ Fixing: Transport control program tp ended with error code 0208:

This means the TP binary is missing. Fix it with these steps:
1. Go to Environment > System Overview
2. Then Extras > Distribute and Activate Configuration
3. Retry accessing STMS_IMPORT

⚠️ Fixing: Transport control program tp ended with error code 0212

If you get an error like “could not access file”, you likely need to fix file permissions.

Run these Docker commands:

docker exec -it a4h runuser -l root -c 'chmod 777 /usr/sap/trans/cofiles/*'
docker exec -it a4h runuser -l root -c 'chmod 777 /usr/sap/trans/data/*'
docker exec -it a4h runuser -l root -c 'chown a4hadm /usr/sap/trans/cofiles/*'
docker exec -it a4h runuser -l root -c 'chown a4hadm /usr/sap/trans/data/*'

📥 Step 5: Start the Import

  1. Select Queue >Start Import
  2. In the options, tick: Ignore Invalid Component Version
  3. Choose Asynchronous and start the import.
  4. You can monitor progress via Refreshing the import queue

📥 Step 6: Verify Installation Success

Once import is done(Transports are no longer in the import queue):

  1. From the Menu select Goto >Import History
  2. Look for RC codes:
  • RC=0 (Green) = Success
  • RC=4 (Yellow) = Warnings (still acceptable)

✅ This means the transports were successfully imported.

🧪 Step 7: Validate SDK Installation

Run the transaction: /nAWSW1_IMG

If it opens the AWS SDK Customizing screen, you’re all set!

🚀 What’s Next?

In my next post of this series, we’ll:

  • Configure the AWS SDK in SAP
  • Set up AWS IAM users and roles
  • Create and link an Amazon S3 bucket
  • Test the integration with Amazon Textract

One response to “How to Install the AWS SDK for SAP ABAP”

  1. […] you haven’t installed the AWS SDK transports into your SAP system yet, make sure to check out Part 1: Installing the AWS SDK for SAP ABAP in Docker […]

Leave a Reply

Your email address will not be published. Required fields are marked *