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 Screen Dymnamic varient

Former Member
0 Likes
591

I have a Date field as my selection Options. I need to save a variant where my date would between the first and the last day of the previos month.

When i check the selection varibable check Box for the date and click the selection variable button it takes me to a different screen and and i have selected dynamic date calculation.

In the drop down i see first day of the first month and its gets selected but I can select both the first day and the last day. It works as a parameter, but i want it as a select-options.

Any suggestions.

Bob

I have a Date field as my selection Options. I need to save a variant where my date would between the first and the last day of the previos month.

When i check the selection varibable check Box for the date and click the selection variable button it takes me to a different screen and and i have selected dynamic date calculation.

In the drop down i see first day of the first month and its gets selected but I can select both the first day and the last day. It works as a parameter, but i want it as a select-options.

Any suggestions.

Bob

3 REPLIES 3
Read only

former_member194669
Active Contributor
0 Likes
557

You have 2 options

1. Use table TVARVC for setting the variant values (The transactions STVARV and STVARVC are available for maintaining the table variants) then use that entries while creating dynamic date variant

or

2. If your report is custom one, then in the INITIALIAZATION event , set the date default values

ie


initialization.
call function OIL_LAST_DAY_OF_PREVIOUS_MONTH  " Find the last month end date and first date 

s_datum-low = <last month first date>
s_datum-high = <last month end date>
s_datum-sign = 'I'
s_datum-options = 'EQ'.
append s_datum

Read only

0 Likes
557

Thanks ARS,

I would do that but how come this valus in the table will be changed for every month. DO i have to write for an updation of this and run on the last day of every month..

Bob

Read only

0 Likes
557

May be you need to check this

I find this will help you out.