Application Development 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: 

sy-datum

Former Member

Hi,

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

regards.

satish

6 REPLIES 6

Former Member
0 Kudos

parameter p_Date like sydatum default sy-datum.

JozsefSzikszai
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

You can do as below :

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

Thanks,

Sriram Ponna.

Former Member
0 Kudos

parameters date type d default sy-datum.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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