cancel
Showing results for 
Search instead for 
Did you mean: 

How to call HANDLEDEFAULT method of Window into WDINIT of view

former_member459142
Participant
0 Kudos

Hi Experts,

I am calling my webdynpro application from abap tcode and passing parameters, i have read those parameter in HANDLEDEFAULT method of Window.

how i fetch parameters value in WDINIT method of my view.

method HANDLEDEFAULT .
   data : value type string.
   CALL METHOD wdevent->get_string
   EXPORTING
     name   = 'APPL_NO'
   receiving
     value  = value.

endmethod.


Please help.

Thanks

Prashant

Accepted Solutions (1)

Accepted Solutions (1)

bhushan_ghule
Active Participant
0 Kudos

Hi Prashant,

you may try below code to read URL parameter of webdynpro application in WDDOINIT method of .

component controller.

data lv_param type string.

lv_param = wdr_task=>client_window->get_parameter( 'parameter name' ).

Regards,

Bhushan.

Answers (1)

Answers (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Prashant,

To access the value of appl_no inside your view, follow the below steps

  • Create a global attribute gv_appl_no in "Attributes" of component controller and mark it as public
  • Inside the HANDLEDEFAULT, set the value to attribute of component controller like WD_COMP_CONTROLLER->gv_appl_no = value.
  • Now, you can access it in your view as WD_COMP_CONTROLLER->GV_APPL_NO.

Hope this helps you to resolve your issue.

Regards,

Rama