cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Transaction iView - how to hide field

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Lekha,

Thanks for your reply but your explanation is based on Webdynpro application, true?

My problem is in sap transaction iview that uses a custom ABAP transaction.

Regards,

André Ferreira

Former Member
0 Kudos

Hi,

Please check out this link -

Regards

Lekha

Answers (1)

Answers (1)

deepnain_kundra
Participant
0 Kudos

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