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

select-options

Former Member
0 Likes
552

Hi all,

I wanted to loop a select-options s_matkl and wanted to pass the matkl value to

a variable. Can anyone suggest how can we do it.

Regards

John

1 ACCEPTED SOLUTION
Read only

former_member386202
Active Contributor
0 Likes
534

Hi,

Loop at s_matkl.

pass value

endloop.

Regards,

Prashant

5 REPLIES 5
Read only

former_member386202
Active Contributor
0 Likes
535

Hi,

Loop at s_matkl.

pass value

endloop.

Regards,

Prashant

Read only

Former Member
0 Likes
534

select options have 4 options

your range lie between low to hih

to access lower range you can access through s_maktl-low

and access to high through s_maktl-high

select matkl from tab_name where maktl in s_maktl.

var_maktl = maktl.

endselect.

Read only

Former Member
0 Likes
534

hi,

loop at s_maktl.

itab-maktl = s_maktl-low.

itab_mak = s_maktl-high.

append itab.

endloop.

regards,

karthik

Read only

Former Member
0 Likes
534

TABLES : marc.
SELECT-OPTIONS: s_matnr FOR marc-matnr.
DATA : l_matnr LIKE marc-matnr.
SELECT matnr INTO l_matnr from marc where matnr in s_matnr.
"here you can pass to any variable
write :/ l_matnr.

ENDSELECT.
Read only

Former Member
0 Likes
534

Hi,

loop at s_matkl.

it_tab-var1 = s_matkl-low.

it_tab-var2 = s_matkl-high.

append it_itab.

endloop.

<b>plzz reward points if it helpful.</b>