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

sy-datum

Former Member
2,846

Hi,

can anyone help me how to get by default sydatum in the parameter.

regards.

satish

Hi,

can anyone help me how to get by default sydatum in the parameter.

regards.

satish

6 REPLIES 6
Read only

Former Member
0 Likes
1,100

parameter p_Date like sydatum default sy-datum.

Read only

JozsefSzikszai
Active Contributor
0 Likes
1,100

PARAMETERS : p_datum TYPE sy-datum DEFAULT sy-datum.

Read only

Former Member
0 Likes
1,100

Hi,

You can do as below :

parameters : date like sy-datum default sy-datum.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
1,100

parameters date type d default sy-datum.

Read only

Former Member
0 Likes
1,100

Hi,

Declare a parameter like follow,

parameter: p_date like sy-datum default sy-datum.

This will solve your query.

Reward points if it answers your question.

Read only

Former Member
0 Likes
1,100

Data: ldate like sy-datum

ldate = sy-datum

This will give you your declaration and extraction for date assignment to variable ldate

if you are just needing the year then follow up by:

adding:

Data: ldate like sy-datum

1year type c length 4..

after:

ldate = sy-datum

add

1 year = ldate(4) - 4

your new variable for the year is now 1year