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

char at select option

Former Member
0 Likes
4,558

Hello!

Can somebody say to me the correctly usage.

SELECT-OPTIONS  s_typ(30)    FOR    c.

is not possible. What can be taken instead ?

Regards

sas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,987

Hi

SELECT-OPTIONS s_typ(30) FOR c.

AFTER for IT should be the data element

so when you want a size of 30 take a data element with domain haveing size char30

for ex.You can take any datalement which has a domain with CHAR30

say suppose you xyz dataelement which has domain of char30

then you can declare as

data : v_type type xyz

SELECT-OPTIONS : s_typ for v_type.

or SELECT-OPTIONS : s_typ for tablename-fieldname

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 21, 2008 5:50 PM

2 REPLIES 2
Read only

Former Member
0 Likes
1,987

Example

>DATA: lv_pernr TYPE persno.

>SELECT-OPTIONS pernr FOR lv_pernr.

Read only

Former Member
0 Likes
1,988

Hi

SELECT-OPTIONS s_typ(30) FOR c.

AFTER for IT should be the data element

so when you want a size of 30 take a data element with domain haveing size char30

for ex.You can take any datalement which has a domain with CHAR30

say suppose you xyz dataelement which has domain of char30

then you can declare as

data : v_type type xyz

SELECT-OPTIONS : s_typ for v_type.

or SELECT-OPTIONS : s_typ for tablename-fieldname

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 21, 2008 5:50 PM