‎2009 Sep 05 6:14 PM
Hi Friends,
i got the one ticke in modulepool programing, i need to display the sy-uname in user field default when i execute the tcode.
thats mean i need to display the sy-uname value in user field in screen 100 PBO(process before output). already i given the field value equal to sy-uname in pbo 100 but i did not getting the user name field value in screen 100 as shown in below code.
module status pbo100 output.
zscreen-username = sy-uname.
endmodule.
Can you please tell me solution.
Thanks & Regards.
Chinnu
‎2009 Sep 05 6:21 PM
Hi
Have u placed the variable zscreen-username in the dynpro
Max
‎2009 Sep 05 6:23 PM
Hi Bianchi ,
Thanks for sending the solution. Can you please tell me solution clearly.
Thanks
Chinnu.
‎2009 Sep 06 4:10 PM
Hi,
Declare the screen field as:-
DATA zscreen_username TYPE sy-uname.
And then assign a value to this field in the PBO of the screen.
zscreen-username = sy-uname.
Hope this is clear to you.
Thanks & Regards,
Tarun
‎2009 Sep 05 7:04 PM
Hi Chinnu,
In the screen painted screen. place the zscreen-username or refer to this for the Input field and activiate the screen
Hope it shall be useful.
Regards
Santosh Kumaar
‎2009 Sep 06 6:04 PM
Goto Screen 100 Layout and create a I/o field whose name will be zscreen-username and also create a text field and Label it as " User Name". Save, activate and execute and test.
Thanks,
Kiran