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

table of type select-options

Former Member
0 Likes
33,651

Hi,

I need to build an internal table which has the fields SIGN, OPTION, LOW, HIGH.

I know there exists a standard database table with these 4 fields, but, am not able to recollect.

Please post the table name here if you know.

Thanks,

David.

9 REPLIES 9
Read only

Former Member
0 Likes
11,286

Hi

Use RANGES

if you get Obsolate Key word in EPC

BAPI_ORDER_MATERIAL_RANGE Check this out for its usefulness

or use you can create your own.

Cheers

Ram

Edited by: Ramchander Krishnamraju on Oct 29, 2009 7:21 AM

Read only

former_member209217
Active Contributor
0 Likes
11,286

Are you looking for this table -


>TVARVC

Alternatively,if u have the field name.

You can use this declaration


RANGES :r_matnr for mara-matnr. (or)
 
DATA:r_matnr1 type range of mara-matnr.---->Internal table having components  SIGN ,OPTION,matnr-LOW,matnr-HIGH

DATA:wa_matnr1 like line of r_matnr1.------->Work Area

Regards,

Lakshman.

Edited by: Lakshman N on Oct 29, 2009 7:19 AM

Read only

kesavadas_thekkillath
Active Contributor
11,286


data:ra1 type table of selopt.

or 

data:ra1 type PIQ_SELOPT_T.

or

data:ra_mara type range of mara-matnr.
data:wa like line of ra_mara.
Read only

Former Member
0 Likes
11,286

Hello

Use like this:


DATA itab TYPE RANGE OF MATNR.

Will be created internal table with sign, option, matnr-low and matnr-high.

Read only

Former Member
0 Likes
11,286

Hi,

That is a structure not table.

SELOPT is the structure.

Read only

Former Member
11,286

Hi David,

These fields are available in the structure SELOPT. It's not a table.

Thanks,

Ranjith

Read only

venkat_o
Active Contributor
0 Likes
11,286

Hi David, Try this way.


TABLES:marc.
DATA:r_werks type RANGE OF marc-werks.
"The above statement defines a table type for a ranges table, 
"that is with the table type standard table. It contains the fields as SELECT-OPTIONS has.
DATA:w_werks LIKE LINE  OF r_werks.
"Work area to range table
Thanks Venkat.O

Read only

Former Member
0 Likes
11,286

hai,

why dont you create your own database table with sign,option,low and high fields it will work

as the database table also contain same fields. try it once

Read only

Ramakrishna24
Newcomer
0 Likes
10,477

HI 
   We can build the internal table for select-options, filed sign, option, low & high
SE11 - DATA TYPES - RSDSSELOPT (This is the standard table)