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

selection parameter default value

Former Member
0 Likes
846

dear friends,

How can i make a selection parameter with default value should be starting date of current month

regards

Malik

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
811

Hi

In Initialization get current date - wf_date = SY-DATUM.

wf_date+6(2) = 01.

and assign wf_DATE TO selection parameters.

Hope this helps,

Nag

6 REPLIES 6
Read only

former_member194669
Active Contributor
0 Likes
811

Use initialization event to fill up the selec-option input parameter low value

like

Initialization.

s_date-low = '01'

s_date-sign = 'I'

s_date-option = 'EQ'.

append s_date.

Please search this forum you find lot of threads related to this

a®

Read only

Former Member
0 Likes
812

Hi

In Initialization get current date - wf_date = SY-DATUM.

wf_date+6(2) = 01.

and assign wf_DATE TO selection parameters.

Hope this helps,

Nag

Read only

Former Member
0 Likes
811

You can code in Initialization

sdate-low = sydatum6(2)

sdate-sign = 'I'

sdate-option = 'EQ'.

append sdate.

Read only

Former Member
0 Likes
811

Hi Malik ,

Search SDN before posting.

You need to use system variable sy-datum , you can change date characters to '01'.

This will give you first date of the month.

Hope this resolves your issue.

Read only

Former Member
0 Likes
811

Data : lv_date type DATS,

wf_date type DATS,

lv_month(2) type n.

wf_date = sy-datlo.

lv_month = wf_date+4(2) + 1.

concatenate wf_date+0(4) lv_month '01' into lv_date.

Hope this code will help solve your requirement.

Read only

Former Member
0 Likes
811

Hi,

give system date in this FM

HR_JP_MONTH_BEGIN_END_DATE

and try u will get

Regards

Azeez