HOW TO READ PORTAL USER ID INTO WEBDYNPRO ABAP.
- 1.Create one parameter in inside of method ‘HANDLE DEFAULT’ ie., lv_user type uname.
- 2.Create one attribute in component controller with public visibility.
- 3. Write coding in inside of window method ‘HANDLE DEFAULT’
wd_comp_controller->lv_user = lv_user.
If you want to access user id value in inside of window means you should call this value in MODIFYVIEW.Because WDDOINIT is execute before triggering HANDLEDEFAULT method.
That code is userid = wd_comp_controller->lv_user.
If you want to test your application with constant value you can pass the values in webdynpro application(you already created parameter in HANDLE DEFAULT method so here give F4 help and set the value.)