Skip to Content
0

Lumira designer 2.0 - SystemID

Aug 22, 2017 at 03:11 PM

123

avatar image
Former Member

Is there a way to read the system id in SAP Lumira 2.0 designer scripting to determine if application is running in test, quality or productive environment? And I do not mean the CUID of the system connection.

Thank you,
Alexander Oertel

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Mustafa Bensan Aug 24, 2017 at 10:31 PM
1

Hi Alexander,

There is no direct scripting method to obtain the System ID. As a workaround, you can perform the following steps via scripting:

1) Define an empty bookmark component;

2) On startup, check for the existence of a bookmark. If it exists, get the bookmark URL, if it doesn't exist create a bookmark and then get the bookmark URL;

3) Parse the bookmark URL to obtain the server name, which should allow you to differentiate which environment you are in.

Regards,

Mustafa.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi,

thanks for the answer. We implemented this methode with DesignStudio 1.6 but now with Lumira 2.0 the bookmark commands are deprecated, so we thought there might be a new way we don't know of.

However we created another workaround to be independed of scripting commands. We created an InfoObject KSYSID which only holds correct the system ID per system as master data. Then we simply created a datasource in each application (where required) and read out the one record.

Regards,

Alexander Oertel

1

Hi Alexander,

You can still implement the bookmark approach in Lumira 2.0. Although the Design Studio 1.6 bookmark API has been deprecated, a better bookmarking API is available via the new Bookmark Technical Component.

In any case, your InfoObject solution is a good one too. Thanks for sharing.

Regards,

Mustafa.

0