Troubleshoot Amazon SDK for SAP ABAP
This section provides troubleshooting steps for possible error scenarios.
Topics
Import failure
Problem – Class ‘CL_SYSTEM_UUID’ doesn't contain an interface ‘IF_SYSTEM_UUID_RFC4122_STATIC
Cause – SAP Note 0002619546 is missing on your system.
Resolution – Ensure that the SAP Note 0002619546
Unspecified location constraint
Problem – The unspecified location constraint is incompatible
for the region
specific endpoint this request was sent to
Cause – Your Amazon S3 bucket is missing the Amazon Region in
io_createbucketconfiguration
parameter.
Resolution – When creating a bucket in any Region, except
us-east-1
, specify your Amazon S3 bucket's Region using
io_createbucketconfiguration
parameter in createbucket()
. You don't
have to specify a constraint for us-east-1
.
The following example shows a correctly configured io_createbucketconfiguration
parameter.
createbucket( iv_bucket = 'amzn-s3-demo-bucket' io_createbucketconfiguration = NEW /aws1/cl_s3_createbucketconf( 'us-west-1' ) ).
SSL errors
Problem – SSL Server Certificate Hostname Mismatch or SSL handshake with docs.aws.amazon.com:443 failed: SSSLERR_NO_SSL_RESPONSE
Cause – icm/HTTPS/client_sni_enabled
parameter is
not set to TRUE
in the DEFAULT
profile.
Resolution – Use the following steps to troubleshoot the given problems or any other SSL-related problem.
-
Open the SAPGUI and go to the command bar.
-
Run transaction
RZ10
. -
Go to Profile and choose
DEFAULT
profile. The version is populated automatically. -
In the Edit Profile section, select Extended maintenance, and then select Change.
-
Search for the
icm/HTTPS/client_sni_enabled
parameter.-
If the parameter exists, edit the Parameter value and set it to
TRUE
. -
If the parameter doesn't exist, create a parameter using the following steps.
-
Select Parameter.
Note
Ensure that you are selecting the Parameter for creation, and not editing (pencil icon).
-
Enter
icm/HTTPS/client_sni_enabled
in the Parameter Name field. -
Enter
TRUE
in the Parameter value field. -
Select Save.
-
-
-
Save these changes in the
DEFAULT
profile, and Exit.
Profile configuration
Problem – Could not find configuration under profile <profile_name> with scenario DEFAULT for <sid>:<client>
Causes – The <profile_name> is incorrect or hasn't been configured.
Resolution – Use the following steps to configure the profile.
-
Open SAPGUI and run transaction
/n/AWS1/IMG
. -
Go to Application Configuration > SDK Profile.
-
If your profile is configured, verify that the profile name is correct.
-
If your profile is not configured, follow along the steps to configure a profile.
-
-
Select New Entries.
-
Enter a Name and Description for the profile.
-
Select Save.
-
-
Choose the entry you created in the previous step, and then select Authentication and Settings.
-
Select New Entries, enter the following details, and then select Save.
-
SID
-
Client
-
Scenario ID
-
Amazon Region
-
Authentication Method
-
Select Instance Role via Metadata for SAP systems running in Amazon.
-
Select Credentials from SSF Storage for SAP systems running on-premises or other cloud.
-
-
-
Select IAM Role Mapping > New Entries, enter the following details, and select Save.
-
Sequence number
-
Logical IAM Role
-
IAM Role ARN
-
IAM authorization
Problem – Could not assume role <iam_role_arn> or User: <user_arn> is not authorized to perform: sts:AssumeRole on resource:<iam_role_arn>
Causes – the following may be the possible reasons for this error.
-
Incorrect IAM role ARN has been specified
-
IAM user lacks permission to access the IAM role
-
Lack of trust relationship between the assumed IAM role and the assuming IAM role or IAM user
Resolution – Use the following steps to ensure that the IAM role ARN is correct.
-
Open SAPGUI and run transaction
/n/AWS1/IMG
. -
Go to Application Configuration > SDK Profile, and choose the profile that has been configured with your IAM role.
-
Select IAM Role Mapping and verify or correct your IAM role ARN.
-
If your IAM role ARN is correct, ensure that your IAM role has been configured properly. For more information, see Troubleshooting IAM roles.
-
Authorization for performing required actions
Problem – User <user_arn> is not authorized to perform: <action> on resource: <resource_arn>
Cause – User does not have permissions to perform an action.
Resolution – user_arn
must be set up with required
permissions on resource_arn
to perform a specified action
. For more
information, see Permissions required to access IAM
resources.
Active scenario
Problem – No active scenario configured
Cause – The setup of active scenario was missed.
Resolution – See Runtime settings to configure an active scenario.
Special characters in code
Warning – The character 0x00A0 cannot be part of an ABAP word
Note
This warning may be preceded by varied error messages.
Cause – Copying and pasting code from different sources can insert special characters in your code.
Resolution – When you paste any code in the ABAP source code editor, you see the following pop-up.
Non-breaking space characters were detected. Convert to spaces?
Choose Yes to answer this question. Also, we recommend selecting the code to copy it, instead of using the copy button in code boxes.
Connectivity
Problem – SCLNT_HTTP(411) : Direct connect to tla.region.amazonaws.com:443 failed: NIECONN_REFUSED(-10)
Cause – The SAP system does not have internet connectivity, and cannot establish a TCP/IP connection to port 443 of tla.region.amazonaws.com.
Resolution – The SAP system must be able to establish connection to Amazon endpoints on HTTPS port 443, either directly or through a proxy server. You can establish/verify internet connectivity with one of the following options.
-
Direct outbound connection to internet through a NAT or internet gateway
-
Connection through a proxy server
For more information, see Connection through a proxy server.