2 weeks ago
Hi everyone,
For one of my developments in S/4HANA Cloud Public Edition, I need to build some logic depending if the current system is Production System or not.
In On-Premise systems I used to use table T000 or class CL_ABAP_SYST to do so, but I cannot use them in Cloud Public since they are not released for Cloud Development (Contract C1).
Does anyone know if there's another way to get such information? I took a look at all classes released for cloud, including the XCO libraries, but couldn't find anything suitable.
Thanks.
Request clarification before answering.
Hi
CL_ABAP_SYST was removed from SAP S/4HANA CLOUD 1811 since it wasn't suitable for cloud deployments.
As alternative you may use CL_ABAP_CONTEXT_INFO.
And also you can use SY-SYSID is a system field which gives the system ID
For more info, Refer the below doc
Best Regards,
Pooja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was expecting to have some flag like the one on table T000 which shows "P" when we work on a production system, but that's ok. I think I'll go with a SY-SYSID validation.
Thanks for the information
EDIT: When I tried to release my transport, Eclipse showed the ATC error "The use of the hard-coded system ID can present a security risk". I'll have to go for the URL option.
It's a shame that SAP put all this stoppers everywhere we go, even for simple things.
User | Count |
---|---|
52 | |
8 | |
5 | |
5 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.