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

input screen

Former Member
0 Kudos
218

Hi Experts,

i want to know a logic for create a selection screen for begin date and end date , the begin date display with pn-begda=sy-datum-7 and pn-enda= sy-datum.

please help me, best answer will be awarded with points.

2 REPLIES 2
Read only

Former Member
0 Kudos
194

Hi Vishwanath,

Check this code.

SELECT-OPTIONS: S_DATE FOR PA0001-BEGDA.

INITIALIZATION.

S_DATE-LOW = SY-DATUM - 7.

S_DATE-HIGH = SY-DATUM.

In your case,

INITIALIZATION.

PN-BEGDA = SY-DATUM - 7.

PG-ENDDA = SY-DATUM.

Thanks,

Vinay

Read only

Former Member
0 Kudos
194

hi,

data: lv_begda type pa0001-begda.

SELECT-OPTIONS: pn_begda for lv_begda.

INITIALIZATION.

PN_BEGDA-low = SY-DATUM - 7.

Pn_begDA-high = SY-DATUM.

append pn_begda.

regards

satya sreekanth

reward points .. since this is the best solution even from performance point of view