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

intilization event

Former Member
0 Likes
518

how to fill the select options from an internal table dynamically ie can i use the loop in the initialization

4 REPLIES 4
Read only

former_member194669
Active Contributor
0 Likes
489

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

Read only

0 Likes
489

is that it we can use loop in initialization event

Read only

0 Likes
489

Yes we can use loop.

aRs

Read only

Former Member
0 Likes
489

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