on 09-25-2008 5:25 PM
Hi,
We have created a SAP transaction iview to a Z transaction and the application parameters are:
p_user=<User.UserID>
When the screen field is enabled and visible the parameter is forward to Transaction but when it's disable it doesn't work (the field is not filled)
How can I get logged portal user in transaction context without a screen field in the transaction?.
We can't use SY-UNAME because every portal user will acess this system with the same user.
Regards.
When we create an Iview declare the application paramters
USER=<User.LogonUid>
and in the WD4A application, try to declare a paramter USER type user in the Window->Inbound Plugs->Paramters. BY defalut there is CUSTOM_EVENT under that try to declare this parameter.
In the method of this default event->
code the follwing-
WD_COMP_CONTROLLER->lv_user = user.
Decalre this lv_user in the attributes of the component controler.
Now create the view with the textview and bind this attribute (lv_user) to that and display the portal user name.
Now run the EP's Iview and it displays the user name.
Regards
Lekha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create two input fields in your ZProgram. Make one of them as hidden input field and the other as disabled input field.
Now pass the p_user=<User.UserID> to the hidden input field first and then from there pass it to disabled input field in ZProgram.
Deep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.