Skip to Content
0
Former Member
Nov 26, 2009 at 04:41 PM

Fill an internal table using RANGES

799 Views

Hi,

I need to create an internal table with a join of several select options for then update another internal table.

I've this:

SELECT-OPTIONS: s_auart FOR zsd_ctrl_export-auart,

s_kunnr FOR zsd_ctrl_export-kunnr,

s_matnr FOR zsd_ctrl_export-matnr,

s_kwmenge FOR zsd_ctrl_export-kwmenge.

and i need to create a table with for all values in different select options i need to fill a table with this structure:

for exemple:

s_auart have values from Z200 to Z600

s_matnr have 2 or 3 materials

s_kunnr have some values

s_kwmenge have 1 value only.

at end my final table most be like this

AUART KUNNR MATNR KWMENGE

Z200 19999 1111111 1

Z300 19999 111111 1

Can i do "loop's" for a range ?

Thanks

Edited by: Ricardo Filipe Pimenta on Nov 26, 2009 5:41 PM