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

help reqd

Former Member
0 Likes
706

hi,

i have a selection screen with select-options of date.

if fromdate and todate .

i will specify the selection period as fromdate and todate.

elseif fromdate.

i will specify the selection period as fromdate alone.

elseif todate.

i must specify what.. it will select records upto the todate.

elseif no fromdate and no todate.

i must specify what..bcos it will select all recorrds without any condition.

endif.

i must tell the selection period.. for the last two case s wat can i tell.. pls hurry up.. will be rewarded.. thankx in adv.

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
686

if from date is initial and two date is not initial.

This condition u an block through validation by compulsorily making enter the from date.

dono allow the from date to be null.

If both are null

select the max and min date from the table.

5 REPLIES 5
Read only

Former Member
0 Likes
686

Hello,

Use the S_date like this.

select * from table into table itab where date in S_DATE

Vasanth

Read only

0 Likes
686

hi... i wanted to show it in the report....

the selection period.

i cant show like

00/00/0000 to 00/00/0000 right..

i want some soln for that..

pls help

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
686

for the first case select the minimum date from table and show it as low

for the second case select the minimum date and maximum date from the table for that field and display...

I guess this is u r question.....

reward if useful.

Read only

Former Member
0 Likes
686

Hi Evangeline,

You can declare a variable lv_date as string.

IF FROMDATE and TODATE.

Concatenate the date fields into the local variables along with the seperator

ELSEIF FROMDATE

Concatenate only FROMDATE to the variable

ELSEIF TODATE

Concatenate only TODATE to the variable

ELSEIF NODATE

DO not specify any date

ENDIF.

<i><b>Reward points for useful answers.</b></i>

Best Regards,

Ram.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
687

if from date is initial and two date is not initial.

This condition u an block through validation by compulsorily making enter the from date.

dono allow the from date to be null.

If both are null

select the max and min date from the table.