cancel
Showing results for 
Search instead for 
Did you mean: 

Username in screen variant or transaction variant

Former Member
0 Kudos

Hello all,

I want to fill a selection screen field of a standard program with the name of the user who launch this.

I think to a screen variant or a transaction variant but in SHD0 I don't find how.

Could you help me please ?

Thanks a lot.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Rupesh,

I have already tried this method, but I don't know how I can put 'Sy-uname' in my field.

If I put Sy-uname in this, the program display Sy-uname and not the value of this variable.

I have you an idea ?

Thx.

rupesh_brahmankar3
Active Contributor
0 Kudos

Dear,

Could you please share you screen? In SHD0 you can make Sy-uname as default field also.

Regards,

R.Brahmankar

Former Member
rupesh_brahmankar3
Active Contributor
0 Kudos

Dear,

The field is filling with SY-UNAME and not with the value of this variable.

What do you mean by not with the value of this variable?

Regards,

R.Brahmankar

Former Member
0 Kudos

My logging in SAP is  : J_GRICOURT.

IF I Launch this transaction, i want the field to fill with J_GRICOURT. (equals to the value sy-uname)

rupesh_brahmankar3
Active Contributor
0 Kudos

Dear,

That is not possible with transaction variant or screen variant only the value get copied which were there at the time of recording of SHD0 and mark as reference field. And it can not be dynamic with user ID.

Regards,

R.Brahmankar

Former Member
0 Kudos

Ok thx, I focus my research to specific developpment also.

Answers (2)

Answers (2)

rupesh_brahmankar3
Active Contributor
0 Kudos

Dear,

You can do this with transaction variant in SHD0 here you can define any field as reference field it can be user name also so it will get copied to transaction every time. Also you can assign transaction variant to user it self.

Regards,

R.Brahmankar

sjeevan
Active Contributor
0 Kudos

What transaction code is that?

If the field has parameter, you set the parameter ID XUS to their respective username in transaction code SU3. That way whenever the transaction is launched the screen is filled with their own username.