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
1,257

Hi All

i have a character P1.Now i need to give it in SELECT-OPTIONS.How can i ?

Vijay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,229

Hi,

select-options: s_p1 for p1.

select-options: s_p1 for table-fieldname.

select-options: s_p1 for <dataelement>.

regards,

ravi shankar reddy

10 REPLIES 10
Read only

former_member156446
Active Contributor
0 Likes
1,229

DATA name(2) TYPE c.

SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.

SELECT-OPTIONS selcrit FOR (name).

SELECTION-SCREEN END OF SCREEN 500.

Edited by: Jay Sadaram on Feb 8, 2008 12:51 AM

Read only

0 Likes
1,229

Hi

I forgot to tellu that P1 is just a character.It is not from any tables.So please tell me how can i add select-option to P1

Vijay

Read only

Former Member
0 Likes
1,230

Hi,

select-options: s_p1 for p1.

select-options: s_p1 for table-fieldname.

select-options: s_p1 for <dataelement>.

regards,

ravi shankar reddy

Read only

0 Likes
1,229

Hi Ravi

I forgot to tellu that P1 is just a character.It is not from any tables.So please tell me how can i add select-option to P1

Read only

0 Likes
1,229

Hi,

data: P1(length).

select-options: s_p1 for p1.

regards,

ravi shanakr reddy

Read only

Former Member
0 Likes
1,229

Hi Jai,

I believe this should work.

DATA: v_p1 TYPE char1.

SELECT-OPTIONS: s_p1 FOR v_p1.

Regards,

Ramkumar.K

Read only

Former Member
0 Likes
1,229

Hi

Check the length of ur Character field .

For that length check if any table field with ur charaacter length available .

Use TABLE : TABLENAME in ur Report .

Declare like

Select-options : s_char for tablename-tablefield.

Hope its clear .

Else let us know your reqmt .

For eg : ur P1 is CHAR4 u can use MARA-MTART for this .

TABLES : MARA

Select-options : s_char for tMARA-MTART.

Thanks

Praveen

Edited by: praveen parasiya on Feb 8, 2008 6:45 AM

Read only

Former Member
0 Likes
1,229

Hi Vijay,

Use the following code.

data: char(1) type c.

select-options: p1 for char.

The above statement declares a select option with name p1 and you can enter a 1 character field for that in selection screen.

Regards,

Yellappa.

Read only

Former Member
0 Likes
1,229

Hi Vijay,

This is the code u've to use..

SELECT-OPTIONS : P1 FOR ZSTUD-ZSTDNAME.

// U have to assign the table field which is having the type as character.

Reward points if useful...

Regards,

Anita.

Read only

Former Member
0 Likes
1,229

Hi,

TABLES : CAT_DP_FOR.

SELECT-OPTIONS:

Pchar FOR CAT_DP_FOR-EXID.