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

Import Parameters with sigle multiple ranges

Hi,

I have a requirement like , to create a Function module but to that function module i am importing the parameter material number(MATNR).

But to the import parameter MATNR they can pass

single values or mutiple values or ranges.

How to declare this parameter in FM.

Please anybody help me .

Regards,

Madhavi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Jan 07, 2008 at 04:00 AM

    Use the MATNR under the tables TAB.

    You can then pass a internal table which contains multiple MATNR's

    Regards

    Gopi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 07, 2008 at 04:01 AM

    try some thing on with tables.

    the tables tab in the FM.. create your own structure as use it.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 04:02 AM

    Madhavi,

    Declare an internal table with MATNR .

    DATA : Begin of i_mara OCCURS 0,

    matnr LIKE mara-matnr,

    END OF i_mara .

    Instead of Importing parameter

    Under " TABLES" tab in FM create internal table like i_mara.

    use that internal table to get multiple values.

    Don't forget to reward if useful....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 05:07 AM

    Hi Madhavi,

    For any function module u r importing the param

    (or) ur giving the i/p to tht fnmodule means u hav

    to declare tht parameter name under *import*

    section ok.

    For import parameter of the function module we

    will be used to pass single value ok.

    If u get any further queries post it.

    Regards

    AshokChowdhary

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Gopi Narendra

      hi

      this is my requirement.

      I have to do validation to this field

      As import parameters ( with some checks and conversions )

      • __matnr LIKE MARA-MATNR__

      __check on MARA-MATNR and MARA-LVORM not equal to “x”.__

      __The range of articles can be single or multi article or in a range__

      This is will importing parameter, i have to do validation to this field .

      How to do.

      Let me know

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.