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

Display the fields data in modulepool programing.

Former Member
0 Likes
644

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

5 REPLIES 5
Read only

Former Member
0 Likes
610

Hi

Have u placed the variable zscreen-username in the dynpro

Max

Read only

0 Likes
610

Hi Bianchi ,

Thanks for sending the solution. Can you please tell me solution clearly.

Thanks

Chinnu.

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
610

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

Read only

santosh_kumarm
Participant
0 Likes
610

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

Read only

Former Member
0 Likes
610

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