on 09-23-2008 8:45 AM
Hello.
My WebDynpro application is called via parameter transaction or Easy Access menu. Hereby I can define the WDApplication Confiuration which is called.
Now, how can I get the WDCONFIGURATION parameter to work with it inside the component controller.
What's the syntax to read the parameter and what's the right place (method, plug) for this.
Thanks in advance
Carola
Carola,
go to window methods of the component and open the method for the startup plug
write the following code to get the config id
data lr_confg type string.
lr_config = wdr_task=>client_window->get_parameter( 'sap-wd-configId' ).
set lr_config to some context attribute so that you can use in other things
Thanks
Bala Duvvuri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks.
Unfortunately the name of the parameters depends on the way I called the application configuration.
SE80:
lr_config = wdr_task=>client_window->get_parameter( 'sap-wd-configId' ).
SAP EASY ACCESS Menu:
lr_config = wdr_task=>client_window->get_parameter( 'wdconfigurationid' ).
If I want to define the Parameter WDCONFIGURATIONID in the parameters of the inbound plug, I get the error message, that no parameter beginning with 'WD' is allowed.
So I don't understand how to define the WDCONFIGURATIONID parameter in the inbound plug.
Kind regards.
Carola
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Carola,
you dont need to define any parameter with name WDCONFIGURATIONID .you just need to create an application configuration and that value will be implicitly stored in WDCONFIGURATIONID .
As i mentioned earlier you need to get that value and store it in the context attribute and use it in component controller.
Thanks
Bala Duvvuri
Hi Carola,
Read the following link
http://help.sap.com/saphelp_nw04s/helpdata/en/2f/e7574174c58547e10000000a1550b0/frameset.htm
All you have to do is to declare the same set of parameters in startup plug in the window and use them
Regards,
Kinshuk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.