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

date

Former Member
0 Likes
835

hi experts,

could u plese help me

in parameters

parameters:date type cdhdr-udate dafault sy-datum.

but in date i need to display the current date -1 day as a Default in parameters.

Could u plese help me how to do this

Thanks and Regards

srilavi

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
810

You can do like this.



report zrich_0001.

parameters: date type cdhdr-udate .

initialization.

date = sy-datum - 1.

Regards,

Rich Heilman

8 REPLIES 8
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
811

You can do like this.



report zrich_0001.

parameters: date type cdhdr-udate .

initialization.

date = sy-datum - 1.

Regards,

Rich Heilman

Read only

0 Likes
810

Welcome to SDN!

Regards,

Rich Heilman

Read only

0 Likes
810

hi rich,

Thank u

Regards

srilavi

Read only

0 Likes
810

Please remember to award points for helpful answers and mark your post as solved when solved completely. Thanks.

Regards,

Rich Heilman

Read only

0 Likes
810

hi rich,

Thanks a lot

but i need to display that date value default

data:date type sy-datum.

parameters: date type cdhdr-udate default date.

initialization.

date = sy-datum - 1.

it was not showing the default value

Could please help me how to do this

Regards

srilavi

Read only

0 Likes
810

Implement the code exactly like this. There is no need to define an extra with DATA statement.

<b>parameters: date type cdhdr-udate .

initialization.

date = sy-datum - 1.</b>

Do not use the DEFAULT in the PARAMETERS statement

Regards,

Rich Heilman

Read only

0 Likes
810

Duplicate

Regards,

Rich Heilman

Message was edited by: Rich Heilman

Read only

0 Likes
810

hi rich,

Thankq its working

Regards

Srilavi