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

How to use system field in Module pool programing

Former Member
0 Likes
1,268

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.

3 REPLIES 3
Read only

PedroGuarita
Active Contributor
0 Likes
649

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.

Read only

Former Member
0 Likes
649

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

Read only

Former Member
0 Likes
649

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.