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

Function module

Hi All,

I have lot of doubts in Function module,

1. What is table parameter in Function module

2. What is changing parameter in Function module

thanks&regds,

Nicky.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 07:10 AM

    table parameters are used for using purpose as well as changing purpose but the it can contains more than one record.

    but changinging parameters can contain a only one record only

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2007 at 07:12 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2007 at 07:13 AM

    TABLES Parameter:

    With the addition TABLES, internal tables itab1, itab2, ... must be assigned to all non-optional table parameters t1, t2, ... of the called function module. For itab1, itab2, ... , only standard tables can be specified. The transfer takes place by reference (with the exception of RFC). If a specified table itab1, itab2, ... has a header line, this is also transferred. Otherwise, the header line of the corresponding table parameter t1, t2, ... is initial after the call.

    Changing Parameter:

    If non-optional input/output parameters are defined for the called method in statement METHODS or CLASS-METHODS after

    CHANGING, actual parameters must be assigned to these using CHANGING. Actual parameters can be assigned to optional input/output parameters. At the time of the call, either a reference to an actual parameter is passed, or the content of an actual parameter is assigned to the relevant formal parameter, depending on the passing type. In the case of passing by value, the content of a formal parameter is only assigned to the relevant actual parameter if the method ends without errors.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 07:15 AM

    hi nicky ,

    for a function module, u can give the input as parameter and select option.

    i,e if the input is one , ucan use the parameter , if the input is many , u have to use table statement.

    if u have still doubt, plz ask me, i ll help u in this regards

    regards

    karthik********************rewards points if useful

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 07:21 AM

    Hi Nicky,

    table parameter : Internal tables that can be imported and exported. The internal table's contents are transferred from the calling program to the function module. The function module can alter the contents of the internal table and then send it back to the calling program. Tables are always passed by reference

    Changing parameter :Values that act as import and export parameters simultaneously. The original value of a changing parameter is transferred from the calling program to the function module. The function module can alter the initial value and send it back to the calling program.

    if want more information please gothrough this link..

    http://help.sap.com/saphelp_nw04s/helpdata/en/d1/801ece454211d189710000e8322d00/frameset.htm

    <b>reward is usefull</b>

    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.