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:
- Extract the
.zip
file. - Navigate into the extracted directory.
- 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
anddata
folders. - The files should now appear there.
🛠️ Step 4: Import Transports Using STMS
- Log in to your SAP GUI and run transaction
STMS_IMPORT
. - Choose Extras > Other Requests > Add
- Enter the transport number starting with Core (e.g., AWSK…3M3)
- 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
- Select Queue >Start Import
- In the options, tick: Ignore Invalid Component Version
- Choose Asynchronous and start the import.
- 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):
- From the Menu select Goto >Import History
- 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
Leave a Reply