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

Function module

Hi,

In my function module I will do some caluclations .then I will stoire the number and amount in one internal table.At the end of the function module i will be having some reords(more than 1).

I need to pass the output to my main program.How to get this.I will pass only contract number as input and i need to get an internal table with the output

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 01, 2007 at 11:05 AM

    place a table parameter in your fn module after taking the value in the int table.

    tabparam[] = itab[].

    now when you call the program then in table parameter you can get the value by passing the int table from your prog.

    regards

    shiba dutta

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 01, 2007 at 11:06 AM

    Hi Sumi,

    for your requirement you have to create One Internal table in your Program[Same Structure] and then pass the Function module to your Program.

    In function module "Tables" option is there. Using this You can pass the datas from FM to your program.

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 01, 2007 at 11:09 AM

    Hi

    Create the function module by importing contract number from the program and tables options create an internal table.

    Then in the source of the function module write the logic.

    Then come to program.

    Create an internal table same as the one u have created in function module. Then call that function module using CTRL+F6. Then pass the contract number to export parameters and internal table to the tables parameters.

    Loop at the internal table and display the details of the internal table.

    Regards

    Haritha.

    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.