‎2007 Sep 08 2:04 AM
how to fill the select options from an internal table dynamically ie can i use the loop in the initialization
‎2007 Sep 08 2:10 AM
Hi,
Initialization.
loop at i_werks.
move i_werks-werks to s_werks-low.
move 'EQ' to s_werks-option.
move 'I' to s_werks-sign.
append s_werks.
endloop.
aRs
‎2007 Sep 08 2:19 AM
‎2007 Sep 08 2:20 AM
‎2007 Sep 08 2:13 AM
See the below code :
REPORT Z_MTRL_ANALY.
tables : mara.
select-options s_matnr for mara-matnr.
<b>initialization.
s_matnr-low = '000000000009'.
s_matnr-high = '000000000011'.
s_matnr-option = 'BT'.
s_matnr-sign = 'I'.
append s_matnr.</b>
if you use select-options,then it becomes internal table.
Thanks
Seshu