Skip to Content
0
Former Member
Jan 20, 2008 at 07:45 AM

regading Usig rang values in Parameters

16 Views

Hi all,

I am working on ranges.

And i want to use values of these ranges in Parameters. i.e Range-low should come by default in P_FROM and Range-high shold come by defalut on P_TO

so frnds can anyone help me how to get it.

Below i m providing my code.

<code>

REPORT ZDEMO_FOR_RANGES_1.

ranges : date1 for sy-datum,

date2 for sy-datum,

date3 for sy-datum.

date1-sign = 'I'.

date1-option = 'BT'.

date1-low = sy-datum + 1. "tommorrows date

date1-high = sy-datum + 60. "60 days later.

APPEND date1.

date2-sign = 'I'.

date2-option = 'BT'.

date2-low = date1-low + 61. "61days after of tomorrow

CALL FUNCTION 'MONTH_PLUS_DETERMINE'

EXPORTING

months = '6'

olddate = date2-low

IMPORTING

NEWDATE = date2-high.

APPEND date2.

read table date1 index 1.

*append lines of date1 to p_from index 1.

parameters : p_from like sy-datum ,

p_to like sy-datum,

p_from_1 like sy-datum,

p_to_1 like sy-datum.

</code>

I have tried in many ways but i m not getting any help frnds.

regards,

satish