‎2011 Oct 20 4:40 PM
I am using a Function module in which material is getting imported.
In the import tab we have
Parameter Name Typing Associated Type optional pass value
IM_MATERIAL TYPE MATNR <checked> <checked>So when the Function module is execute we can enter only one value into the IM_MATERIAL.
But now it has to be enhanced for entering multiple values. How to import the material as a range?
Please throw light.
Thanks.
‎2011 Oct 20 4:53 PM
Hi
If you are using a select-options you can use this approach.
TABLES: MARA.
DATA: RANGE TYPE WRF_MATNR_RANG_TTY.
SELECT-OPTIONS: SO_MATNR FOR MARA-MATNR.
START-OF-SELECTION.
RANGE[] = SO_MATNR[].
CALL FUNCTION 'ZTEST'
EXPORTING
I_RANGE = RANGE.
Where I_RANGE is defined using this table type WRF_MATNR_RANG_TTY
Parameter Name Typing Associated Type optional pass value
I_RANGE TYPE WRF_MATNR_RANG_TTY <checked> <checked>
‎2011 Oct 20 4:54 PM