Application Development 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: 

char at select option

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Example

>DATA: lv_pernr TYPE persno.

>SELECT-OPTIONS pernr FOR lv_pernr.

Former Member
0 Kudos

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