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: 

table of type select-options

Former Member
0 Kudos
27,613

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

former_member1245113
Active Contributor
0 Kudos
5,249

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

former_member209217
Active Contributor
0 Kudos
5,249

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

kesavadas_thekkillath
Active Contributor
5,249


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.

Former Member
0 Kudos
5,249

Hello

Use like this:


DATA itab TYPE RANGE OF MATNR.

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

Former Member
0 Kudos
5,249

Hi,

That is a structure not table.

SELOPT is the structure.

Former Member
0 Kudos
5,249

Hi David,

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

Thanks,

Ranjith

venkat_o
Active Contributor
0 Kudos
5,249

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

Former Member
0 Kudos
5,249

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

Ramakrishna24
Newcomer
0 Kudos
4,440

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