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

displaying fields in module pool program

Former Member
0 Likes
1,872

How do i display a field in a module pool program where the value is dynamic and is calculated in the program itself?

9 REPLIES 9
Read only

Former Member
0 Likes
1,583

hi

create a field on the screen with reference to a variable declared in the program.

pass the value whatever you need into that variable in PBO event.

thx

pavan

Read only

Former Member
0 Likes
1,583

Hi ,

Jsut assign the value to the element in which you want to display .

You can do this either in the PBO or any other module which you created

Regards

Arun

Read only

0 Likes
1,583

i want to record the time in which a button is clicked on a particular screen.In the second screen i have a screen field.i want to assign to it a value which i have recorded.

Read only

0 Likes
1,583

Hi,

While the button is clicked,assign sy-uzeit to a variable in PAI of first screen.In PBO of second screen,assign the variable to the screen field.Declare the variable in the main program.

Read only

0 Likes
1,583

when the user clicks on a button on 1st screen (say screen 100), in the PAI event, pass the sy-uzeit value to a variable (say l_time).

u call another screen (say screen 200) in the PBO of that screen pass the l_time value to the field of that screen.

thx

pavan

Read only

0 Likes
1,583

if i pass it to a variable to the screen field,it is shows a garbage value,but if i assign it to sy-uzeit the result is perfect.could anyone kindly tell me why this could be the case.how can i clear the value once i exit the screen?

Read only

0 Likes
1,583

Hi,

Declare the variable to be of type sy-uzeit.

You should not assign sy-uzeit directly,becuase it won't show the time when the button is pressed.It will show the time you are seeing the text in next screen.

Kindly reward points by clicking the star on the left of reply,if it helps.

Read only

0 Likes
1,583

may be the data type of the module pool field is not supporting.

declare that field with type SY-UZEIT. it may work

thx

pavan

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,583

Hi,

Create a field in screen by drag and drop.Pass the value in the coding.If you want to pass the value before the screen display,pass it in PBo.If you want to pass the value,once you input some fields,pass it in PAI.

Kindly reward points by clicking the star on the left of reply,if it helps.