Skip to Content
0
Former Member
Jun 03, 2009 at 11:55 AM

Problems with range parameter

60 Views

Hi @ all,

my problem is that I need a selection mask with a range parameter but without doing this with select-options because under the mask there should appear the SALV Table(in a container).

I did this:

Report test.

TYPES: gs_matnr TYPE RANGE OF mara-matnr. 
DATA: p_matnr TYPE gs_matnr.

method data_select. "selects p_matnr from a table

..

endmethod.

method fill_output_list. "fills the results into a SALV Table

...

endmethod.

On my Dynpro I created two fields: p_matnr-low and p_matnr-high

The user fills out the mask and the parameter will given to data_select method. After that it'll be processed in fill_output_list. Eventually the SALV Table is shown by: "objectreference->ino_salv_table->refresh( )" in PAI module .

My question is how to send the range parameter to both methods?

I did following but it doesn't work properly:

CALL METHOD objectreference->data_select
                         IMPORTING 
                         ipf_matnr = p_matnr.

Cheers,

Tuncay