Skip to Content

webdynpro requirment

Hi

My scenario is how to transfer data to webdynpro apllication through URL .

Example :

http://------------.--------.com:800/sap/bc/webdynpro/sap/zwd_vbak?sap-language=EN&vbeln=0000000123

please help me solution or document

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Aug 26, 2013 at 02:35 PM

    Hi,

    Create the Parameters in the HANDLEDEFAULT method of the window and read the parameters.

    Check the below documents for reference:

    http://scn.sap.com/docs/DOC-34850

    http://scn.sap.com/community/abap/blog/2012/05/10/passing-of-values-from-a-webdynpro-application-to-another-webdynpro-application

    You can also use class cl_http_request method get_uri_parameters to read the url parameters.

    Regards,

    Kiran

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 26, 2013 at 02:39 PM

    Hello,

    Here you can add data in your URL..

    DATA: w_url TYPE string,
    w_value TYPE string.

    DATA lo_window_manager TYPE REF TO if_wd_window_manager.
    DATA lo_api_component TYPE REF TO if_wd_component.
    DATA lo_window TYPE REF TO if_wd_window.
    CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
    application_name = '<your existing application name>' like zmy_app.
    IMPORTING
    out_absolute_url = w_url.



    CALL METHOD cl_http_server=>if_http_server~append_field_url
    EXPORTING
    name = 'vbeln'
    value = w_value "" here you can give your id... 0000000123

    CHANGING
    url = w_url.

    " for opening new window at same action using new url..


    lo_api_component = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window = lo_window_manager->create_external_window( url = w_url ).
    lo_window->open( ).

    Here is code to fetch vbeln value..

    DATA lv_server_id TYPE string.

    lv_server_id = wdr_task=>client_window->get_parameter( 'vbeln').
    IF lv_server_id IS NOT INITIAL.

    Do your work..

    endif.

    BR


    .. Chandra..

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 28, 2013 at 02:14 PM

    Hi Sanjeet,

    All great advice from Kiran and Chandra. You can see there is more than one way to implement this feature; here is another that is similar to both Kiran's and Chandra's suggestions.

    Code Snippet Series: Passing Parameters to Web Dynpro from SAPgui

    Cheers,

    Amy

    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.