Skip to Content
author's profile photo Former Member
Former Member

Select-options

HI

how can we pass a select-options as a parameter to a function, i maintained additional rages in select-option in extension

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 25, 2006 at 10:26 AM

    try looping the select option and passing one value at a time

    loop at s_option.
    
     CALL FUNTION 'XYZ'
        EXPOTING = s_option-low
    
    endloop.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 25, 2006 at 10:23 AM

    hi,

    Check these threads....

    select-options

    select-options

    select-options

    select-options

    Cheers

    Alfred

    Reward with points for helpful answers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 25, 2006 at 10:23 AM

    Hi namburi,

    1. Find the appropriate structure in se11,

    for the range.

    2. In FM, pass it using TABLES

    (and not export)

    3. EG

    4. For BUKRS Select option,

    we can use the standard structure

    RNG_BUKRS

    as TABLES parameter in se37 , FM definition.

    5. Then we simply pass the select-option,

    in tables

    CALL FUNCTION 'XYZ'

    EXPORTING

    TABLES

    MYBUKRS = BUKRS.

    .

    regards,

    amit m.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 25, 2006 at 10:26 AM

    Hi,

    You can pass it with generic data type and then cast it to your required select-options type in the function module.

    Or else you can create type using type range of in a type-pool and then use this type in the function module interface.

    Have this in a type-pool.

    TYPES: sel_type type range of data_type.

    use sel_type in the function module interface.

    Regards,

    Sesh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.