cancel
Showing results for 
Search instead for 
Did you mean: 

different default layouts for different CONFIG_IDs

schneidertho
Advisor
Advisor
0 Kudos

Hi all,

we like to do the following for a WD ABAP application with an included ALV:

- create configuration 1 => URL: ...CONFIG_ID=Z1

- create configuration 2 => URL: ...CONFIG_ID=Z2

when the application is called the included ALV should display

- for CONFIG_ID Z1 => layout 1 (say columns A, B, C)

- for CONFIG_ID Z2 => layout 2 (say columns A, D, F)

We have created the configurations. We have also created globale layouts for the ALV (via sap-config-mode=X)

How can we link the CONFIG_IDs and the layouts together?

Thanks in advance.

Best regards

Thorsten

Accepted Solutions (0)

Answers (3)

Answers (3)

schneidertho
Advisor
Advisor
0 Kudos

Hi Sebastian,

thanks for your answer. I did some handling error, but also found out in the end that this particular WD page does not allow me to have different default layouts depending on the config ID, because the application is overwritting my ID (some backend logic)

Cheers

Thorsten

schneidertho
Advisor
Advisor
0 Kudos

Hi Sebastian,

thanks. I do this, but this does not set the corresponding view in the included ALV component. Any more ideas?

Cheers

Thorsten

Former Member
0 Kudos

Hi,

well I think I got something wrong. You just talked about the administration mode and not about themes?

I doubt that dynamic components can be configured by administration mode, because your ALV columns exist just at runtime.

But you can give it a try, if you configure it properly.

Create for each different layout a component configuration of the ALV component.

Assign each component configuration to a application configuration of your calling application.

Call each appl config in administration mode and configure.

If it then does not work, dynamic components cannot be configured.

Former Member
0 Kudos

You assign the configuration ID via the URL, don't you?

So add the theme to the URL, too.

www.myurl.com/sap/bc/webdynpro/sap/myappl?sap-ep-themeroot=pathtotheme&sap-wd-configId=configId1

Edited by: Sebastian Menger on Oct 17, 2008 11:15 AM