cancel
Showing results for 
Search instead for 
Did you mean: 

How to get portal id in webdnypro abap

Former Member
0 Kudos

I working SAP ECC 6.0 and net viewer 7, when i create a sales order i need to capture the portal id which i used to login to my webdynpro component ,

how can i get portal id , let say the id is 0110011 and my user id for ECC is "welcomeabap",i can get that by using sy-uname , but i don't know how to get 0110011 id in debugging mode.

Accepted Solutions (0)

Answers (1)

Answers (1)

shadab_maldar
Active Participant
0 Kudos

Hi Nandha,

1.Create a context attribute in component controller.

2.Map it to window and view.

3.Assign the user name value to that context attribute in window so that you can pass the user name.

You can also follow the below document.

http://scn.sap.com/community/web-dynpro-abap/blog/2012/04/06/how-to-read-portal-user-id-into-webdynp...

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

Regards,

shadab.

Former Member
0 Kudos

Hi shadab , the portal mapping done already from existing vendor, now i am creating a view alone in the component , those mapping done earlier , now i need those id only, is any class or method to give it in run time,

I used the below and its not giving any result

1.wdevent->get_data( exporting name = 'USERID' importing value = lv_userid ).

2.CALL METHOD wdr_task=>client_window->if_wdr_client_info_object~get_parameter

    EXPORTING

      name  = 'iv_user'

    RECEIVING

      value = lv_para_value.

3.userid = runtime->server->request->get_form_field( 'userid' ).

Former Member
0 Kudos

Hi.

Have you checked below thread?..

HOW TO READ PORTAL USER ID INTO WEBDYNPRO ABAP

Thanks

KH

Former Member
0 Kudos

Hi Katrice ,

I checked the thread but its not giving the portal user id (example - 0110011), any class method available to get it like how we using sy-uname in abap.