Skip to Content

different default layouts for different CONFIG_IDs

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 17, 2008 at 09:14 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 17, 2008 at 09:23 AM

    Hi Sebastian,

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

    Cheers

    Thorsten

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • Nov 05, 2008 at 07:21 PM

    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

    Add comment
    10|10000 characters needed characters exceeded