cancel
Showing results for 
Search instead for 
Did you mean: 

Does SAP BTP CTMs API supports SAP BTP ABAP Content type?

jb3hu6i
Discoverer
0 Kudos

We are trying this API https://api.sap.com/api/TMS_v2/path/NODE_EXPORT_BY_NAME_V2 does this support for SAP BTP ABAP Content type?

View Entire Topic
christoph_pohl
Product and Topic Expert
Product and Topic Expert

Yes, this API supports also the contentType BTP_ABAP: storageType needs to be REFERENCE and the uri string in the entries array needs to be a base64 encoded JSON string denoting the actual commit on a software component, e.g., {"commit_id":"b9670508","sc_name":"ZCTMS_DEV_TEST"}

However, it is not recommended to use this API directly. Instead, you should use the "Export to Cloud TMS" functionality in Manage Software Component app, see https://help.sap.com/docs/sap-btp-abap-environment/abap-environment/how-to-export-using-sap-cloud-tr...

arun_jadhav2
Explorer
0 Kudos

Thank you, Christoph, for reply. Now the API started working but it is giving error. Error and payload are attached for reference.
We tried with different combination of base 64 string but could not get success. Do you see any issue with the request payload ?

{
"message": "Object metadata - content reference mismatch",
"errorType": "com.sap.lm.sl.alm.ts.core.exception.service.TsValidationException"
}
{
"nodeName": "<Node_name>",
"contentType": "BTP_ABAP",
"storageType": "REFERENCE",
"entries": [
{
"uri": "<base_64_string>" //e.g.{sc_name:"<sc_name>",branch_name:"main",commit_id:"<commit_id>"}
}
],
"description": "Demo",
"namedUser": "<userid>"
}
jb3hu6i
Discoverer
0 Kudos

Thank you Christoph for reply