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 options

Former Member
0 Likes
609

hi all,

I need to add select options for a the month field. This month field is not being fetched from any table. The user enters his choice of months. Could anyone help me with this?

thanks

nayan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
583

Hello Nayan,

Perticullarly, there is no field for month in any table.

But u case use it in the following way.

Data: month(2).

select-options: s_month for month.

Reward If Helpful

Regards

--

Sasidhar Reddy Matli.

5 REPLIES 5
Read only

Former Member
0 Likes
583

Hi!

Try using as a refence the COEP-PERIO field (CO_PERIO data element).

PARAMETERS: p_perio LIKE coep-perio.

Regards

Tamá

Read only

Former Member
0 Likes
584

Hello Nayan,

Perticullarly, there is no field for month in any table.

But u case use it in the following way.

Data: month(2).

select-options: s_month for month.

Reward If Helpful

Regards

--

Sasidhar Reddy Matli.

Read only

Former Member
0 Likes
583

HI,

you can take any field form database.

While defining it do not include the search help attached with that field.

or

search for like data element type dats but having no search help attached with it.

For this go to SE80 and in field value look for the your desired type data element.

this will solve your purpose.

Read only

Former Member
0 Likes
583

Hi

You can declare the month as below:

SELECT-OPTIONS: S_MONTH FOR S021-SPMON

(if you wants to enter 042007 to 122007)

or you can declare with length of 2 like

SELECT-OPTIONS: S_MONTH FOR BKPF-MONAT.

<b>Reward points for useful Answers</b>

Regards

Anji

Read only

Former Member
0 Likes
583

HI ,

try this

select-options : a for sy-datum+4(2) .

Regards