‎2007 Jun 20 6:46 AM
hi
if we write select-options in program we have to include 'tables' work area with tables keyword. if we write parameters stmt no need to include. why?
‎2007 Jun 20 6:50 AM
Hi,
Parameters can contain only one value at a time whereas select-option is basically an table format with ( sign,option, low and high values) so to access all these values we need tables statement.
*reward if helps.
‎2007 Jun 20 6:50 AM
Hi,
For select-options also you don't require a TABLES statement..
Check this example..
DATA: V_MATNR TYPE MATNR.
SELECT-OPTIONS: SO_MATNR FOR V_MATNR.
Thanks
Naren
‎2007 Jun 20 6:51 AM
Hi,
This is because select-options is itself a table having the fields sign,option,low and high.
But parameters is just a variable which accepts input values from the user.
Hope it is useful.
Thanks,
Sandeep.
‎2007 Jun 20 6:54 AM
hi,
in parameter itslef we r defyning that(table name) with <b>type</b> or <b>like</b> keyword.
ex:PARAMETERS p_plant LIKE marc-werks.
or
PARAMETERS p_loc type c.
reward points if useful,
seshu.
‎2007 Jun 20 6:58 AM
Jyothsna,
Parameter can contain only one value.But Select-option is like internal table.It has to hold lot of data.For that it needs work area.
Don't forget to reward if useful....
‎2007 Jun 20 6:59 AM
Jyothsna,
Parameter can contain only one value.But Select-option is like internal table.It has to hold lot of data.For that it needs work area.
Don't forget to reward if useful....
‎2007 Jun 20 7:08 AM
Hi Jyothsna,
A parameter is interpreted as a variable so you can declare it as a type i / type c also.
This is absolute declaration.
A select options' is as an internal table, so you have to declare it FOR a previously declared type.
There cannot be a select options of type c.
This is relative declaration.
Regs,
Sameer