Skip to Content
1
Former Member
Sep 08, 2009 at 02:25 PM

Passing SELECT-OPTIONS value to Function Module

2940 Views

Hi,

I need to pass select-options value to a function module.

Code is like the following:


SELECT-OPTIONS seltab FOR object-type.

CALL FUNCTION 'Z_MY_FM'
      EXPORTING
        sel_tab         = seltab
     IMPORTING
        result_tab     = it_result

I have found a similar problem in the SDN forum: how-to-pass-select-options-parameter-to-fm

However, that could not help me much in solving my problem.

So far I have tried to created a structure in DDIC with the following components for the select-options:

SIGN - BAPISIGN

OPTION - BAPIOPTION

LOW - ZBWOBJECTTYPE (my type)

HIGH - ZBWOBJECTTYPE (my type)

and subsequently a table type for this structure which is specified in the "Import" tab of my function module.

Unfortunately, when I ran the program a runtime exception occured (CALL_FUNCTION_CONFLICT_TYPE).

Could anyone please help me on this issue?

Thanks in advance.

Regards,

Joon Meng