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

select-option

Former Member
0 Likes
893

Hi abaper's,

I need date (formate 06/2007 ) in select-options. my requirement is Forecast months (select-option no extension) (format of S976-spmon)(default current to current+18).

this is very urgent. please give me any idea...............

--Anji

9 REPLIES 9
Read only

Former Member
0 Likes
856

hey anji pointlu isthanni mata ivvvu neneu daniyooka answer chebuthanu ok..

Read only

0 Likes
856

Ok sure, esthanu

Read only

Former Member
0 Likes
856

Hi,

do like this.


data:ch5(7),yr(4).
SELECT-OPTIONS:dat for ch5 NO-EXTENSION.

INITIALIZATION.

CONCATENATE sy-datum+6 '/' sy-datum+0(4) into dat-low.
yr = sy-datum+0(4) + 3.
CONCATENATE sy-datum+6 '/' yr into dat-high.
APPEND dat.

rgds,

bharat.

Read only

Former Member
0 Likes
856

first change u r system settings for date format using su01


SELECT-OPTIONS:dat for ch5 NO-EXTENSION.
 
INITIALIZATION.
 
CONCATENATE sy-datum+6 '/' sy-datum+0(4) into dat-low.
yr = sy-datum+0(4) + 3.
CONCATENATE sy-datum+6 '/' yr into dat-high.
dat-sign = 'E'.
dat-option = 'BT'
APPEND dat.

Read only

0 Likes
856

you hardcode the date, i don't know date my requirement is no hardcoding date.

Read only

0 Likes
856

Hi ANIL..?

WHAT IS U R REQUIREMENT EXACTLY..

BECAUSE IF U WANT TO GET ONLY

month and year without date?

then u need to create u r own search help for that..

ok genearlly for default u get all the three...

Regards

sas

if u want search help i can provide u the sampel search helps ok..

jsut let me know u r requirement clearly

Read only

0 Likes
856

Hi barath,

Actually my requirement is

supose

Exp:

low vaule is 01/2007 to

high value is 06/2008.

you can think here year is canged and it's have only month and year . here no date

--ANji

Read only

Former Member
0 Likes
856

hi ,

check this (in ecc 6.0 )

select-options:s_date for sy-datum+2(6).

regards,

venkat.

Read only

Former Member
0 Likes
856

Hi,

Those are user specific setting.

Go to su01 enter username> change> defaults> select the proper date format.

Reward If Useful