SAP Knowledge Base Article - Public

3326684 - 'POST' Request triggered by ABSL Scripting returns unexpected Response

Symptom

You are executing a 'POST' request in your ABSL script and it is not working as expected. The same request works correctly when executed from a third-party application.

Environment

  • SAP Business ByDesign
  • SAP Cloud Applications Studio
  • SAP Cloud for Customer 

Reproducing the Issue

Prerequisites:

  • You have created an External Web Service Integration of Web Service Type REST.
  • You have created a Communication Scenario Definition for your Web Service.
  • You have Activated the Solution and Deployed the Business Configuration.
  • You have created and correctly configured a Communication System and Arrangement for the Communication Scenario.
  • You have provided all parameters in the execution ABSL as required.

Reproduction Steps:

During normal business processes, your ABSL is triggered.

Cause

Default system behavior is to append the URL query parameters to the body of the request if the body is empty.

Resolution

You need to provide a valid request body to prevent default system behavior, it can still however be empty. For example, when contentType is "application/json"; a valid empty request body is "{}".

Keywords

PDI, SDK, REST, GET, Web Service, CSD, WSID, Communication Arrangement, OData , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , Problem

Product

SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions