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
885

Hi friends,

i am developing a report, and i need to create select-options fro that to get data. but i need to reffer a structure for creation of select-option. i.e

SELECT-OPTIONS :p_ordg for rksb1-aufgr.

here RKSB1 is structure. is it possible to create select option with refference to structure. other wise hoe to create it. give me some tips

Kumar.

7 REPLIES 7
Read only

Former Member
0 Likes
835

Hi

Declare any table which contains AUFGR and then in select-options give the table reference instead of rksb1.

Regards

Navneet

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
835

Hi,

You need to create that Strucutre using DATA statement or using TABLES statement before you can use it in FOR of SELECT-OPTIONS.

Regards,

Sesh

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
835

Hi,

You can give as below.It is working.

tables rksb1.

SELECT-OPTIONS :p_ordg for rksb1-aufgr.

Read only

Former Member
0 Likes
835

Hi,

It is possible.

You would have to include this structure in your tables list.

TABLES: rksb1.

Regards,

Suruchi

Read only

Former Member
0 Likes
835

Kumar,

You can use structure field also.We use the fields of structure /table to get the data type and legth of the field.

No ,problem...,,

Don't forget to reward if useful...

Read only

Former Member
0 Likes
835

hi,

you canot use a strucure directly in a such a manner you have to use the refered table wheer the structure is used or the field is used

Read only

Former Member
0 Likes
835

Hello,

Do like this.


DATA: S_AUFGR TYPE AUFGR.
SELECT-OPTIONS :P_ORDG FOR S_AUFGR.

Vasanth