Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smartform

Former Member
0 Likes
1,159

Dear friends,

  

I have Smart form with footer consist of different sy-user name(it will display name of current user) .I have to display current user name in every transaction and the same time it should display previous user name also.

what I should do for this? please help.

For me it will Showing only current user name.(not previous user)

Please help me guys

Waiting for Reply

Thank you ,

sachin

1 ACCEPTED SOLUTION
Read only

venuarun
Active Participant
0 Likes
1,136

Hi,

Are you passing sy-unam for both field ? Then it will show same for both field.Sy-unam will give the user name of the user who is currently running the tcode.You can fetch username name from table USR02. based on your condition.

With Regards

Arun VS

6 REPLIES 6
Read only

venuarun
Active Participant
0 Likes
1,137

Hi,

Are you passing sy-unam for both field ? Then it will show same for both field.Sy-unam will give the user name of the user who is currently running the tcode.You can fetch username name from table USR02. based on your condition.

With Regards

Arun VS

Read only

Former Member
0 Likes
1,136

Hi Arun,

   yes..am using sy-unam !

Read only

Former Member
0 Likes
1,136

Hi Arun,

 

"select SINGLE name_text from v_usr_name into

  name where bname = sy-uname." This s  my code and I a, fetching it from table v_usr_name.


Read only

Former Member
0 Likes
1,136

THANK YOU ARUN, Thank you for your time

Issue Solved

Read only

0 Likes
1,136

Hi,

Share your solution.

As I think in USR02 hold logon data and not hold who run the last time any smart form. for this you save data in custom table or else .

Read only

Former Member
0 Likes
1,136

HI swadhin ghatuary,

    you are right !!

I just created a custom table and fetch data from it