cancel
Showing results for 
Search instead for 
Did you mean: 

BIApplicationFrame - passing variable values

Former Member
0 Kudos

Hallo Expoerts,

I'm calling from WD in BIApplicationFrame a Web Template from BI. I would like to pass from WD the values for selection variables and avoid to show the selection screen of the web template. Is there any possibility to do it ?

Greetings

Wojciech

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Dear all,

we are also facing the same challenge.

In general a query or a webtemplate can be called with URL parameters, like

&var_name_1=0CALMONTH&var_value_ext_1=03.2009

How is this possible inside a BI Application Frame?

The only alternative we found is to use the IFrame UI Element. But as the IFrame UI Element offers very bad session handling this is no longer in our considerations.

Can please anyone advice on this issue?

Many thanks,

Kind Regards

Former Member
0 Kudos

Hello Karl-Heinz,

Unfortunattly a haven't found the solution till now. If you find something, pleas tell me know.

Thanks

Wojciech

0 Kudos

For us it looks like that the BI Application Frame does not offer this possibility.

But we are not completely sure.

The only alternative we found is to work with the UI Element LinkToURL and parse the variable values within the url.

But then the webtemplate opens up in an own browser window and is no longer integrated in an WD View.

General Prerequisite is that the webtemplate is set to supress variable screen.

We would like to have it integrated in the view, but do not know how to do it with the given UI Elements.......

Answers (1)

Answers (1)

Former Member
0 Kudos

I managed to pass the selection variables to the query through BIApplicationFrame. This is how I did it.

1) Added the BIApplicationFrame UI element to the View of the Webdynpro application and named it ZBIQUERY with the following properties relevant to my system.

- dataProviderStateName property is set to my query name which is 'ZPUR_M02_Q08'

- dataProviderStateType is set to 'Query'.

- server is set to 'housapdbw.noble.cc:8000'

- templateId is set to 'ZPUR_M02_W02'

- variableScreen is Unchecked.

2) Added two attributes to the view under the attributes tab. They are

M_APPL_FRAME RefTo CL_WD_BIAPPLICATION_FRAME

M_METHOD_HANDLER RefTo IF_WD_BI_APPLFRAME_METHOD_HNDL

3) Then add the following code in the method WDDOMODIFYVIEW.

data:

lt_parameters type if_wd_bi_applframe_method_hndl=>tt_name_value,

ls_parameters type if_wd_bi_applframe_method_hndl=>t_name_value.

define add_parameter.

clear ls_parameters.

ls_parameters-name = &1.

ls_parameters-value = &2.

append ls_parameters to lt_parameters.

end-of-definition.

if first_time = abap_true.

wd_this->m_appl_frame ?= view->get_element( 'ZBIQUERY' ).

wd_this->m_method_handler ?= wd_this->m_appl_frame->_method_handler.

endif.

  • Please note that the selection screen on my query has Select-options and its name is

  • XREF_NUM0001. I am passing a value of '11111' to it as shown below.

refresh lt_parameters.

add_parameter 'CMD' 'PROCESS_VARIABLES'. " This is for Execute button

add_parameter 'SUBCMD' 'VAR_SUBMIT'. " This one also for Execute Button

add_parameter 'VAR_NAME_1' 'XREF_NUM0001'. " Name of my select-option

add_parameter 'VAR_OPERATOR_1' 'EQ'.

add_parameter 'VAR_SIGN_1' 'I'.

add_parameter 'VAR_VALUE_LOW_EXT_1' '11111'. " Value for my select-option

wd_this->m_method_handler->execute_command( lt_parameters ).

endif.

The above code needs to be added before the view is called in th is method.

Hope this helps.

Krishna Muppavarapu

Edited by: Krishna Muppavarapu on Jan 5, 2010 4:34 PM