Skip to Content
author's profile photo Former Member
Former Member

How to pass the value from one webdynpro application to another via url?

Hi

I am new to WDA.

now i try to do in pass the value from one webdynpro application to another webdynpro application through url?

I already done in through this method

call method cl_Wd_utilities->construct_wd_url

exporting

application name = 'XXX'

importing

out_absolute_url = w_url.

Now i want in through URL?

can any one help to me.

Regards

P Sheela

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Sep 27, 2011 at 10:43 AM

    Hi Sheel

    check this.

    Data w_url type string,
    w_value type string.
    
    *** get the url of calling aplication
    
    call method cl_Wd_utilities->construct_wd_url
    exporting application name = name of second application( to which u want to pass parameter )
    importing out_absolute_url = w_url.
    
    ***Make the value type compatible that has to passed with url.
    
    w_string = lv_pernr 
    
    ***Now attach the parameter and its value with url that have to passed to 2nd application
    
    call method cl_http_Server=>append_field_url
    exporting name = 'pernr'
    value = ' w_value'
    changing url = w_url.
    
    *** then popup window for 2nd application with above url
    lo_window = lo_window_manager->create_external_application ( url = w_url ).
    lo_window -> open( ).
    
    
    ***now in wddoinit of 2nd application 
    
    data lv_param type string
    lv_param = wdr_task=>client_window->get_parameter( ' pernr ').

    Now you can use lv_param in 2nd application.

    Regards

    srinivas

    Add a comment
    10|10000 characters needed characters exceeded

    • please read my previous code clearly, i am passing through URL only.

      first u have to generate url through construct_wd_url method, then

      call method cl_Wd_utilities->construct_wd_url

      exporting application name = name of second application( to which u want to pass parameter )

      importing out_absolute_url = w_url.

      ***Make the value type compatible that has to passed with url.

      w_value = lv_pernr

      Now attach the parameter and its value with url that have to passed to 2nd application

      call method cl_http_Server=>append_field_url

      exporting name = 'pernr'

      value = ' w_value'

      changing url = w_url.

          • then popup window for 2nd application with above url

          lo_window = lo_window_manager->create_external_application ( url = w_url ).

          lo_window -> open( ).

                  • now w_rul will have both url and field value**

                  ***now in wddoinit of 2nd application

                  data lv_param type string

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

                  Now you can use lv_param in 2nd application.

                  Thanks and Regards

                  Edited by: sanasrinivas on Sep 27, 2011 1:12 PM

                  Edited by: sanasrinivas on Sep 27, 2011 1:13 PM

              • Posted on Sep 27, 2011 at 10:47 AM

                Hi sheela,

                Please go thorugh this thread..

                how-to-pass-parameters-through-url

                passing-url-parameter-from-wd-application-url-link

                Cheers,

                Kris.

                Add a comment
                10|10000 characters needed characters exceeded

              Before answering

              You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
              You must be Logged in to submit an answer.

              Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.