Application Development 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: 

get changed parameter date

Karan_Chopra_
Active Participant
0 Kudos

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

5 REPLIES 5

Karan_Chopra_
Active Participant
0 Kudos

<b>plz replyy</b>

0 Kudos

Put a logic in your program.

regards

prabhu

Former Member
0 Kudos

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.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a41...

Award points if found useful.

Regards

Indrajit.

Former Member
0 Kudos

hi,

As indrajith said, put a logic in your program.

regards

prabhu

Former Member
0 Kudos

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....!!