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
859

hi,

why we cant use data type in place of field in select-options.if we use what will happen?

shweta

Edited by: shweta gupta on Oct 21, 2008 2:15 PM

9 REPLIES 9
Read only

Former Member
0 Likes
840

hi,

why you cant use data type in place of field in select-options.and see what will happen?

amit

Edited by: Amit Gujargoud on Oct 21, 2008 2:15 PM

Read only

0 Likes
840

Hi Amit,

Why cant we declare the Select-options as:

select-options:
  s_arbpl for arbpl.

Thanks & Regards,

Navneeth K.

Read only

0 Likes
840

>

> Hi Amit,

>

> Why cant we declare the Select-options as:

>

>

select-options:
>   s_arbpl for arbpl.

>

> Thanks & Regards,

> Navneeth K.

We can use:

data:arbpl type arbpl."should be there since you are using Data element.
select-options:
  s_arbpl for arbpl.

Read only

Former Member
0 Likes
840

Hi,

It should be a flat strcuture, type is not that kind.

Better to test.

Thanks,

Sriram POnna.

Read only

Former Member
0 Likes
840

Hello,

We cannot use the datatype directly to the select-option.

But indirectly we can use it.

Example

DATA: y_v_message TYPE char1024.

SELECT-OPTIONS: s_matnr FOR y_v_message.

SELECT-OPTIONS: s_matnr FOR char1024. Error.

Read only

Former Member
0 Likes
840

We Cannot Use.

Read only

0 Likes
840

Mukesh, can i get some inputs why cant it be declared in this way, when the parameters can be declared using a data element.

Read only

0 Likes
840

>

> We Cannot Use.

We Can Use.

Read only

former_member585060
Active Contributor
0 Likes
840

Hi,

We can declare data types in SELECT-OPTIONS

DATA name(80) TYPE c.

SELECT-OPTIONS s_name FOR (name).

Just Refer SAP Help on SELECTION-OPTIONS

Regards

Bala Krishna