‎2007 May 30 12:42 PM
i have a parameter in selection screen for certain field(Date type).
if i enter some date in the parameter field i shoult get a report with should display the entries which has date ONE dat before the entered date
‎2007 May 30 12:45 PM
‎2007 May 30 12:47 PM
‎2007 May 30 12:45 PM
Hi Karan,
PARAMETERS p_date TYPE dats.
gv_date = p_date - 1.
SELECT * FROM dbtab
INTO itab.
where date EQ gv_date. "(or LE gv_date )
Display the entries in itab using ALV.
Award points if found useful.
Regards
Indrajit.
‎2007 May 30 12:49 PM
hi,
As indrajith said, put a logic in your program.
regards
prabhu
‎2007 May 30 3:05 PM
Hi Karan
Please try this...
//declaration part
data : p_date type date.
selection-screen : begin of block blk1 with title frame text-001.
parameter : p_date like tablename-fieldname.
selection-screen : end of block blk1.
start-of-selection.
select single * from table into table itab where sy-datum = p_date-1.
if sy-subrc<>0.
message : e001(zerror).
endif.
REWARD IF USEFUL PLEASE....!!