Skip to Content

HOW TO READ PORTAL USER ID INTO WEBDYNPRO ABAP.

STEPS:

  1. 1.Create  one parameter in inside of method ‘HANDLE DEFAULT’ ie., lv_user type uname.

Capture1.PNG

  1. 2.Create one attribute in component controller with public visibility.

Capture2.PNG

  1. 3. Write coding in inside of window method ‘HANDLE DEFAULT’

Capture3.PNG

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

Capture4.PNG

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply