‎2010 Feb 05 12:26 PM
Sir,
I am developing module pool progaramming report. After using tables in layout (SE51) .
But I want to assign system field for default dates, default time, but I am not getting
how to use that system field when the dates, time etc.. selcteing from respective tables.
Thanks & Regards
Manoj.
‎2010 Feb 05 5:06 PM
The variables are SY-DATUM for date, SY-UZEIT for time, etc. Check SYST structure in SE11. You can assign them in the PBO section of the screen.
‎2010 Feb 05 5:35 PM
Hi,
Looks like you want to appear current date and time by default in the I/O field of the screen.
You have two options:
Create two I/O fields Date and Time and declare them in the TOP include as :
Data: Date like sy-datum,
Time Like sy-uzeit.Write a routine in PBO module and assign values to them:
date = sy-datum.
time = sy-uzeit.The second option is, Create the I/O fields and name them as syst-datum and syst-uzeit. The current date and time will be displayed without writing code. This may be used if you do not want to change the date and update any other table with the changed date.
Regards,
Shiny
‎2010 Feb 05 7:33 PM
Couple of thoughts using Date and Time.
You should use GET TIME. before you used date or time to get the current date and time.
Additionally, if you are trying to use the date/time for where the user is, i.e. system in India, user in Europe, you need to use the SY-TIMLO, SY-DATLO fields.
See the F1 help for GET TIME for more.