cancel
Showing results for 
Search instead for 
Did you mean: 

Access the application parameters in code

Sharathmg
Active Contributor
0 Kudos

Hello All,

I have a requirement, where the SAP application attribute "WDCONFIGURATIONID" need to set dynamically.

Now, how can this attribute be accessed in the controller/window/view methods? If so how?

Kindly assist.

Thank you.

Regards,

Sharath

Accepted Solutions (0)

Answers (1)

Answers (1)

ChrisPaine
Active Contributor
0 Kudos

Hi Sharath,

You can get the current application configuration by using the IF_WD_APPLICATION interface and method GET_CONFIGURATION_ID - but there is no interface (as far as I know) to modify the current application configuration id.

However you can dynamically apply a configuration to a given component.

Use the IF_WD_COMPONENT method - GET_PERSONALIZATION_MANAGER (you even have this in the WD code wizard)

to get access to the personalisation interface

and then you can call method LOAD_CONFIG_BY_KEY to load a new configuration.

Generally though I'd question the need to dynamically assign different configuration ids - what is it you are trying to achieve? Could you consider instead using the FPM framework and using configuration variants? The variant can be decided by one of your FPM components and this variant id used to change which UIBBs (or the configuration ids of them) are called.

Cheers,

Chris