SAP Knowledge Base Article - Public

3571801 - An exception has been caught while processing the refactoring 'Change Package Assignment' - SAP S/4HANA Cloud Public Edition, ABAP Environment

Symptom

Getting an exception while trying to change the package assignment of an object in ABAP Environment as per Changing the Package Assignment of Development Objects | SAP Help Portal.

Environment

SAP S/4HANA Cloud Public Edition, ABAP Environment

Reproducing the Issue

  1. Open ABAP Environment.
  2. Project Explorer > Select an object and right-click.
  3. Choose "Change Package Assignment..."
  4. Trying to change a object from package ABC to package XYZ
  5. Getting the following error:

An exception has been caught while processing the refactoring 'Change Package Assignment'

Error when performing change: Execution of request "POST /sap/bc/adt/refactorings?step=execute" for destination XYZ (system https://my123456-api.s4hana.ondemand.com) failed: HTTP/1.1 500 Internal Server Error
Execution of request "POST /sap/bc/adt/refactorings?step=execute" for destination XYZ (system https://my123456-api.s4hana.ondemand.com) failed: HTTP/1.1 500 Internal Server Error

Cause

In an attempt to solve be able to change a local transport request to a transportable transport request, the transport layer of the transport request that contains the select object has been changed from local (Empty) to "/YSID_ATO/"

Resolution

  1. Open the local request that contains the object and change the transport layer to local (Empty).
  2. Release the local transport request that contains the object
  3. Proceed with changing the object package as per Changing the Package Assignment of Development Objects | SAP Help Portal 

See Also

Changing the Package Assignment of Development Objects | SAP Help Portal 

Software Components and Packages | SAP Help Portal

3404200 - Transport request released in ABAP Environment not visible in Import Collection app in test tenant - Developer extensibility - SAP S/4HANA Cloud - SAP for Me

Keywords

An exception has been caught while processing the refactoring, Change Package Assignment, Error when performing change: Execution of request "POST /sap/bc/adt/refactorings?step=execute" for destination XYZ, HTTP/1.1 500 Internal Server Error, "Change Package Assignment...", s/4hana cloud, abap environment, public edition, adt, eclipse,  , KBA , BC-DWB-AIE , Installation and infrastructure for ABAP tools in Eclipse , BC-SRV-APS-EXT-SL , Manage and Import Software Collections , Problem

Product

SAP S/4HANA Cloud Public Edition all versions