Skip to Content
avatar image
Former Member

Pass value from one wd application to another wd application

Hi all,

I have problem when i use following code:

DATA:

lv_param type string.

  • get the value for ebeln that has been send for the 1st application

lv_param = wdr_task=>client_window->get_parameter( 'EBELN' ).

I use this code in method WDDOINIT...

The error message is 'Method 'GET_PARAMETER'' is unknown or protected or privite.

I don't know why?Who can help me?

Thank you ~~~

Edited by: ping527 on May 29, 2009 11:25 AM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    May 29, 2009 at 09:41 AM

    use

    • get the value for ebeln that has been send for the 1st application

    lv_param = cl_wdr_task=>client_window->get_parameter( 'EBELN' ).

    In the 2nd application -

    or check the parameter EBELN is the name that you are passing.

    or have you defined the same in the application paramter or not.

    or check it is defined in the WINDOW HANDLEDEFALUT handler or not

    Regards,

    Lekha.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 29, 2009 at 11:29 AM

    Hi,

    Append application parameters to the Default Inbound plug of window of another wd application.

    Eventhandler = HANDLEDEFAULT

    Controller = WindowController

    Window is the default window of another webdynpro application.

    All parameters will be importing parameters and will have same name and type as application parameters.

    data l_params type tihttpnvp.

    data l_param type ihttpnvp.

    FIELD-SYMBOLS: <fs_parameter> LIKE LINE OF wdevent->parameters.

    FIELD-SYMBOLS <val> type any.

    FIELD-SYMBOLS: <ft_httpparam> TYPE tihttpnvp.

    data all_url_parameters type string.

    LOOP AT wdevent->parameters ASSIGNING <fs_parameter>.

    IF <fs_parameter>-name = if_wd_application=>all_url_parameters.

    ASSIGN <fs_parameter>-value->* TO <ft_httpparam>.

    IF <ft_httpparam> IS ASSIGNED.

    append LINES OF <ft_httpparam> to l_params.

    ENDIF.

    ELSE.

    l_param-name = <fs_parameter>-name.

    assign <fs_parameter>-value->* to <val>.

    l_param-value = <val>.

    append l_param to l_params.

    ENDIF.

    ENDLOOP.

    Thanks,

    Rahul

    Edited by: Rahul Yadav on May 29, 2009 5:10 PM

    Add comment
    10|10000 characters needed characters exceeded

  • May 29, 2009 at 02:10 PM

    You should never use wdr_task=>client_window directly. This is not supported by SAP.

    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/64/be5b4150b38147e10000000a1550b0/frameset.htm

    As suggested you should use the supported method of the window inbound plug to retrieve URL parameters:

    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/2233b60c21072ce10000000a155369/frameset.htm

    Add comment
    10|10000 characters needed characters exceeded