cancel
Showing results for 
Search instead for 
Did you mean: 

webdynpro requirment

0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

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-...

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

Regards,

Kiran

0 Kudos

Hi Kiran ,

Thanks for sharing information

I have  flow this document  but got some error in my application

  • The following error text was processed in the system TR1 : The ASSERT condition was violated.
  • The error occurred on the application server ibides_TR1_00 and in the work process 2 .
  • The termination type was: RABAX_STATE
  • The ABAP call stack was:
    Method: _IF_WDR_INTERNAL_API~ASSIGN_UNTYPED_REFERENCE of program SAPLWDR_RG_PROXY_FACTORY
    Method: HANDLEDEFAULT of program /1BCWDY/FWFT08DMFIGVNO9EJA8R==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/FWFT08DMFIGVNO9EJA8R==CP
    Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_IF_VIEW=====CP
    Method: DISPLAY_TOPLEVEL_COMPONENT of program CL_WDR_CLIENT_COMPONENT=======CP
    Method: INIT of program CL_WDR_CLIENT_APPLICATION=====CP
    Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME

I am  new in webdynpro  .please sharing any full document  for that requirment.

Regards

sanjeet

former_member184578
Active Contributor
0 Kudos

Hi,

I just created a document. Check this: http://scn.sap.com/docs/DOC-45729

Hope this helps.,

Revert back for further assistance.

Regards,

Kiran

0 Kudos

Hi Kiran ,

Its relay very useful.......

Thanks alot..

sanjeet

Answers (2)

Answers (2)

amy_king
Active Contributor
0 Kudos

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.

Cheers,

Amy

Former Member
0 Kudos

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..