cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SCMS_BINARY_TO_XSTRING is not permitted in Cloud

alikhach
Explorer
0 Likes
1,473

Hi,

we use RESTful Application Programming Model in our project and there is a task, where we need to convert Binary string with data from UI in readable format. Abap has FM SCMS_BINARY_TO_XSTRING (for example), but when we try to use, it shows an error - This function is restricted.

Ok, we have found another way - CL_BSC_CONVERT....but returns the same error.

Is there any way, how to understand what is it possible to use? And how perform conversion?

Accepted Solutions (0)

Answers (1)

Answers (1)

MathisNeunzig
Advisor
Advisor
0 Likes

Hi!

This question was posted some years ago and I just stumbled across it, but I will provide an answer that might still help others. You can use the XCO_CP (Cloud) or XCO_KU (Key-User) APIs, depending on your use case. There you have an option to e.g. convert XStrings. Please see these documentations:

For Key-Users: 
https://help.sap.com/docs/SAP_S4HANA_CLOUD/0f69f8fb28ac4bf48d2b57b9637e81fa/de1346c0520c40ff98974ee6...

For Cloud: 
https://help.sap.com/docs/SAP_S4HANA_CLOUD/6aa39f1ac05441e5a23f484f31e477e7/0c7aa6642b294709abcc0e3d...

I hope this helps!
~Mathis