‎2007 Jan 09 7:07 AM
How do i display a field in a module pool program where the value is dynamic and is calculated in the program itself?
‎2007 Jan 09 7:10 AM
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
‎2007 Jan 09 7:12 AM
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
‎2007 Jan 09 7:21 AM
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.
‎2007 Jan 09 7:23 AM
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.
‎2007 Jan 09 7:24 AM
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
‎2007 Jan 09 8:02 AM
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?
‎2007 Jan 09 8:04 AM
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.
‎2007 Jan 09 8:05 AM
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
‎2007 Jan 09 7:18 AM
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.