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

get changed parameter date

Karan_Chopra_
Active Participant
0 Likes
637

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
Read only

Karan_Chopra_
Active Participant
0 Likes
605

<b>plz replyy</b>

Read only

0 Likes
605

Put a logic in your program.

regards

prabhu

Read only

Former Member
0 Likes
605

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.

Read only

Former Member
0 Likes
605

hi,

As indrajith said, put a logic in your program.

regards

prabhu

Read only

Former Member
0 Likes
605

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