What are the parameters of Function Module

Hi,
What are the parameters of Function Module?

Function Modules are special external subroutine stored in a central library. The R/3 system provides numerous predefined function modules that you can call from the ABAP/4 programs.
All the function Modules are created under the Function Groups. Function Groups are nothing but the related group of function modules.
The function modules can be maintained through T.CodeSE37 and T.Code SE80.
In general the function module has the following components.
Documentation:
This is the place where you can find the discription/purpose of the function module.
Import & Export Parameters.
Import parameters correspond to the formal input parameters of subroutines. They pass data from the calling program to the function module.
Export parameters correspond to the formal input parameters of subroutines. They pass data from the function module back to the calling program.
Table Parameters.
Table parameters are internal tables. Internal tables are treated like changing parameters and are always passed by reference.
Exceptions.
Exceptions are used to handle error scenarios which can occur in the function modules. The function modules checks for any type of error and raise exception and returns SY-SUBRC value to the calling program.
Source Code:
the programming logic of the function module is written in this source code.
Rewards if useful.

Similar Messages

  • What are the Includes in Function Module...? if the fuction group IS ZSJ_FC

    What are the Includes in Function Module...? if the fuction group IS ZSJ_FC..?
    How can I access SAP through Internet....?
    Moderator Message: Interview-like question(s). Thread locked.
    Edited by: Suhas Saha on Sep 30, 2011 11:14 AM

    Hi
    No!  U can insert an own you Z-INCLUDE or somethingelse, try to regenerate the index of the program.
    Max

  • What are the sequence of function modules executed in payroll result

    Dear all,
    what are the sequence of function modules executed  while retrivieng pryroll result.or
    functionmodule sequence in payroll programming.
    By
    bose

    Hi Bose,
    The sequence of FM executed in payroll result are
    1. cu_read_rgdir ---> from this u will get the country key.
    2. cd_read_last -
    > from this fm u will identify the seqnr for the latest record and finally for the payroll result
    3. pyxx_read_payroll_result.

  • What are the parameters in Call transaction method?

    Hi ABAPER'S,
        Please give me what are the parameters in call transaction method?
    Thanks,
    Prakash

    Processing batch input data with CALL TRANSACTION USING is the faster of the two recommended data transfer methods. In this method, legacy data is processed inline in your data transfer program.
    Syntax:
    CALL TRANSACTION <tcode>
    USING <bdc_tab>
    MODE  <mode>
    UPDATE  <update>
    <tcode> : Transaction code
    <bdc_tab> : Internal table of structure BDCDATA.
    <mode> : Display mode:
    A
    Display all
    E
    Display errors only
    N
    No display
    <update> : Update mode:
    S
    Synchronous
    A
    Asynchronous
    L
    Local update
    A program that uses CALL TRANSACTION USING to process legacy data should execute the following steps:
    Prepare a BDCDATA structure for the transaction that you wish to run.
    With a CALL TRANSACTION USING statement, call the transaction and prepare the BDCDATA structure. For example:
    CALL TRANSACTION 'TFCA' USING BDCDATA
    MODE 'A'
    UPDATE 'S'.
    MESSAGES INTO MESSTAB.
    IF SY-SUBRC <> 0.
    <Error_handling>.
    ENDIF.
    The MODE Parameter
    You can use the MODE parameter to specify whether data transfer processing should be displayed as it happens. You can choose between three modes:
    A Display all. All screens and the data that goes in them appear when you run your program.
    N No display. All screens are processed invisibly, regardless of whether there are errors or not. Control returns to your program as soon as transaction processing is finished.
    E Display errors only. The transaction goes into display mode as soon as an error in one of the screens is detected. You can then correct the error.
    The display modes are the same as those that are available for processing batch input sessions.
    The UPDATE Parameter
    You use the UPDATE parameter to specify how updates produced by a transaction should be processed. You can select between these modes:
    A Asynchronous updating. In this mode, the called transaction does not wait for any updates it produces to be completed. It simply passes the updates to the SAP update service. Asynchronous processing therefore usually results in faster execution of your data transfer program.
    Asynchronous processing is NOT recommended for processing any larger amount of data. This is because the called transaction receives no completion message from the update module in asynchronous updating. The calling data transfer program, in turn, cannot determine whether a called transaction ended with a successful update of the database or not.
    If you use asynchronous updating, then you will need to use the update management facility (Transaction SM12) to check whether updates have been terminated abnormally during session processing. Error analysis and recovery is less convenient than with synchronous updating.
    S Synchronous updating. In this mode, the called transaction waits for any updates that it produces to be completed. Execution is slower than with asynchronous updating because called transactions wait for updating to be completed. However, the called transaction is able to return any update error message that occurs to your program. It is much easier for you to analyze and recover from errors.
    L Local updating. If you update data locally, the update of the database will not be processed in a separate process, but in the process of the calling program. (See the ABAP keyword documentation on SET UPDATE TASK LOCAL for more information.)
    The MESSAGES Parameter
    The MESSAGES specification indicates that all system messages issued during a CALL TRANSACTION USING are written into the internal table <MESSTAB> . The internal table must have the structure BDCMSGCOLL .
    You can record the messages issued by Transaction TFCA in table MESSTAB with the following coding:
    (This example uses a flight connection that does not exist to trigger an error in the transaction.)
    DATA: BEGIN OF BDCDATA OCCURS 100.
    INCLUDE STRUCTURE BDCDATA.
    DATA: END OF BDCDATA.
    DATA: BEGIN OF MESSTAB OCCURS 10.
    INCLUDE STRUCTURE BDCMSGCOLL.
    DATA: END OF MESSTAB.
    BDCDATA-PROGRAM = 'SAPMTFCA'.
    BDCDATA-DYNPRO = '0100'.
    BDCDATA-DYNBEGIN = 'X'.
    APPEND BDCDATA.
    CLEAR BDCDATA.
    BDCDATA-FNAM = 'SFLIGHT-CARRID'.
    BDCDATA-FVAL = 'XX'.
    APPEND BDCDATA.
    BDCDATA-FNAM = 'SFLIGHT-CONNID'.
    BDCDATA-FVAL = '0400'.
    APPEND BDCDATA.
    CALL TRANSACTION 'TFCA' USING BDCDATA MODE 'N'
    MESSAGES INTO MESSTAB.
    LOOP AT MESSTAB.
    WRITE: / MESSTAB-TCODE,
    MESSTAB-DYNAME,
    MESSTAB-DYNUMB,
    MESSTAB-MSGTYP,
    MESSTAB-MSGSPRA,
    MESSTAB-MSGID,
    MESSTAB-MSGNR.
    ENDLOOP.
    The following figures show the return codes from CALL TRANSACTION USING and the system fields that contain message information from the called transaction. As the return code chart shows, return codes above 1000 are reserved for data transfer. If you use the MESSAGES INTO <table> option, then you do not need to query the system fields shown below; their contents are automatically written into the message table. You can loop over the message table to write out any messages that were entered into it.
    Return codes:
    Value
    Explanation
    0
    Successful
    <=1000
    Error in dialog program
    > 1000
    Batch input error
    System fields:
    Name:
    Explanation:
    SY-MSGID
    Message-ID
    SY-MSGTY
    Message type (E,I,W,S,A,X)
    SY-MSGNO
    Message number
    SY-MSGV1
    Message variable 1
    SY-MSGV2
    Message variable 2
    SY-MSGV3
    Message variable 3
    SY-MSGV4
    Message variable 4
    Error Analysis and Restart Capability
    Unlike batch input methods using sessions, CALL TRANSACTION USING processing does not provide any special handling for incorrect transactions. There is no restart capability for transactions that contain errors or produce update failures.
    You can handle incorrect transactions by using update mode S (synchronous updating) and checking the return code from CALL TRANSACTION USING. If the return code is anything other than 0, then you should do the following:
    write out or save the message table
    use the BDCDATA table that you generated for the CALL TRANSACTION USING to generate a batch input session for the faulty transaction. You can then analyze the faulty transaction and correct the error using the tools provided in the batch input management facility.

  • I have created a quotation in CRM system. I want that to be downloaded into ECC, so that, I can create a sales order there with reference to that quotation. So, what are the parameters that I need to set in CRM system so that my quotation gets replicated?

    Dear Experts,
    I have created a quotation in CRM system. I want that to be downloaded into ECC, so that, I can create a sales order there with reference to that quotation. What are the parameters that I need to set in CRM system so that my quotation gets replicated without any error?
    Please help me in this regard. An early and in detail step by step guidance is highly appreciated.
    Thanks,
    SMTP

    It may be best to recreate the folder and the smart playlists from scratch.
    tt2

  • What are the different 'Add-on modules' available with LabVIEW?

    What are the different 'Add-on modules' available with LabVIEW?
    What are the types of 'Add-on Cards'?
    Cards and modules are different,thats true.Is it that modules means software and are they same as 'add-on toolsets'.Please give the details/URL which would give me various toolsets in detail and also the specifications of various add-on cards?
    Kindly do the needful
    I require these details immediately.I am an Engg student and learning LabVIEW

    duplicate post

  • What  are  the  parameters  which  control the  pop up  of  sales area

    Hi Experts
    What  are  the  parameters  which  control the  pop up  of  sales area  along with sales  office  when  Sold to party  is fed  in to the CRM order .
    I  have  an issue   that,  though  the  distribution channel  and  division  is  maintained  in the  sales org  it is not   appearing  in the pop up.
    The  BP   is extended  to the  sales area .
    If  any  one  can  give  me details / documentataion   on the setting , it  is  highly  appreciated.
    Regards
    Raj

    Dear Srikanth
    Thank  for your  up date .  in my case   the customer  is assigned  with   two sales area. The  org model  ,  nothing  is  maintained  in the  attributes , still one  is appearing in the  pop up and  and  other  one  is not . It is surpricing.
    if you  can mention the logic  of maintaining  the   division and  distribution  channel inthe attribute  it is  of great help.
    Regards
    Raj

  • What are the Built-In-Functions in XSLT mapping?

    what are the Built-In-Functions in XSLT mapping?

    hi praveen
    check the below blogs
    XSLT MAPPING                                   
    Step u2013 By u2013 Step Simple Approach for XSLT Mapping                                   
    Step – By – Step Simple Approach for XSLT Mapping                                   
    XSLT mapping for multiple segments of XML                                   
    XSLT mapping for multiple segments of XML                                   
    IF - ELSE IF and XSLT - A Better work around ?                                   
    IF - ELSE IF and XSLT - A Better work around ?                                   
    Calling instance (object) method of ABAP Class into xslt mapping by using SAP: CALL-EXTERNAL                                             
    Calling instance (object) method of ABAP Class into xslt mapping by using SAP: CALL-EXTERNAL                                             
    xpath functions in xslt mapping                                             
    xpath functions in xslt mapping                                             
    Using XSLT Mapping within the J2EE Adapter Framework                                             
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken]                                             
    EDIFACT to XML - Stylus Studio Solution                                             
    EDIFACT to XML - Stylus Studio Solution                                             
    Running NetWeaver's XSLT processor from XMLSpy                                             
    Running NetWeaver's XSLT processor from XMLSpy                                             
    generic xslt mapping part 1                                             
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1                                             
    generic xslt mapping part 1          part2                                   
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a                                             
    xslt recursive templates                                             
    XSLT: Recursive Templates                                             
    Generating Generic XML / HTML files without using XSLT Mappings                                                       
    Generating Generic XML / HTML files without using XSLT Mappings                                                       
    regards
    kummari

  • What are the user defind functions

    hi all,
    what are the user defind functions.
    Regards,
    priya

    Hi Priya,
    Generally we will complete our mapping things with the help of Standard Functions itself those are available in Graphical Mapping.
    UDF are used when the mappings are unable to complete with these standard functions then we need to write small piece of Java code and can achieve that functionality.
    Steps to UDF
    Activities
    1. To create a new user-defined function, in the data-flow editor, choose Create New Function (This
    graphic is explained in the accompanying text), which is located on the lower left-hand side of the
    screen. In the menu, choose Simple Function or Advanced Function.
    2. In the window that appears, specify the attributes of the new function:
    Name
    Technical name of the function. The name is displayed in the function chooser and on the data-flow
    object.
    Description
    Description of how the function is used.
    Cache
    Function type (see above)
    Argument Count
    In this table, you specify the number of input values the function can process, and name them. All
    functions are of type String.
    3. In the window that appears, you can create Java source code:
    a. You can import Java packages to your methods from the Imports input field, by specifying them
    separated by a comma or semi-colon:
    You do not need to import the packages java.lang., java.util., java.io., and java.lang.reflect. since
    all message mappings require these packages and therefore import them. You should be able to
    access standard JDK and J2EE packages of the SAP Web Application Server by simply specifying the
    package under Import. In other words, you do not have to import it as an archive into the Integration
    Repository. You can also access classes of the SAP XML Toolkit, the SAP Java Connector, and the
    SAP Logging Service (see also: Runtime Environment (Java-Mappings)).
    In addition to the standard packages, you can also specify Java packages that you have imported as
    archives and that are located in the same, or in an underlying software component version as the
    message mapping.
    b. Create your Java source text in the editor window or copy source text from another editor.
    4. Confirm with Save and Close.
    5. User-defined functions are limited to the message mapping in which you created the function. To
    save the new function, save the message mapping.
    6. To test the function, use the test environment.
    The new function is now visible in the User-Defined function category. When you select this category,
    a corresponding button is displayed in the function chooser pushbutton bar. To edit, delete, or add the
    function to the data-flow editor, choose the arrow next to the button and select from the list box
    displayed.
    REgards
    Seshagiri

  • What is the table contains Function module include program name

    Hi,
    What is the table contains Function module include program name
    Regards,
    Raja

    Try this FUNCTION_INCLUDE_INFO to get the include number to which function module belongs to.From this u ll get only the particular include name.
    or
    if u need the all the includes used in the function group u have use INNER JOIN on TFDIR and D010INC table
    <b>Select binclude into itab from trdir as a inner join d010inc as b on apname = bmaster where apname = fmodname.</b>
    I hope this will help u.
    Thanks & Regards
    Santhosh
    Message was edited by:
            santhosh ds

  • What are the responsibilities of Functional consultant in Upgradation?

    hai friends
    What are the responsibilities of Functional consultant in an Upgradation Project
    Are the responsibilites similar to implementation project.if no  How does it differ.
    Thanks
    regards
    Krishna

    Krishna,
    Responsibities for the functional consultant will be differ based on the upgrade which is Technical upgrade and Functional upgrade.
    Resp for Technical upgrade: If its a technical upgared your roll will be limited and your involvement will required only for testing ( unit test and Integration testing) . So most of the effort is required only for BASIS consultant.
    Resp for Functional upgrade: If there is any add in with your business process (any new functionalites and enhancements) you need to involve for functional design for the new process additionally with the testing.
    Cheers!!!
    NMK
    Please give the point for the useful reply.

  • What are the parameters of run_product?

    What are the parameters of run_product?
    Please help me.
    Regards,
    Arjun

    http://download.oracle.com/otn_hosted_doc/forms/forms/A73074_01.pdf

  • What are the parameters have to pass to bapi material creation?

    can any one help me in creating material by using bapi.....
    which is 'BAPI_MATERIAL_SAVEDATA'.....by using the above bapi wen i am creating material....how to pass data to that bapi....what are the thing s i ahve to pass.........

    hi
    please chk this code
    TYPES : BEGIN OF S_BAPI,
            MATNR LIKE MARA-MATNR,
            MBRSH LIKE MARA-MBRSH,
            MTART LIKE MARA-MTART,
            MAKTX LIKE MAKT-MAKTX,
            MEINS LIKE MARA-MEINS,
            MATKL LIKE MARA-MATKL,
            END OF S_BAPI.
    DATA : I_BAPI TYPE STANDARD TABLE OF S_BAPI WITH HEADER LINE.
    PARAMETER : P_FILE LIKE RLGRAP-FILENAME DEFAULT 'C:\Documents and Settings\mansi_makhijani\Desktop\upload.txt'.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
      CODEPAGE                      = ' '
       FILENAME                      = P_FILE
       FILETYPE                      = 'DAT'
      HEADLEN                       = ' '
      LINE_EXIT                     = ' '
      TRUNCLEN                      = ' '
      USER_FORM                     = ' '
      USER_PROG                     = ' '
      DAT_D_FORMAT                  = ' '
    IMPORTING
      FILELENGTH                    =
      TABLES
        DATA_TAB                      = I_BAPI
    EXCEPTIONS
      CONVERSION_ERROR              = 1
      FILE_OPEN_ERROR               = 2
      FILE_READ_ERROR               = 3
      INVALID_TYPE                  = 4
      NO_BATCH                      = 5
      UNKNOWN_ERROR                 = 6
      INVALID_TABLE_WIDTH           = 7
      GUI_REFUSE_FILETRANSFER       = 8
      CUSTOMER_ERROR                = 9
      NO_AUTHORITY                  = 10
      OTHERS                        = 11
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    DATA : S_HEADDATA TYPE BAPIMATHEAD,
           S_CLIENTDATA TYPE BAPI_MARA,
           S_CLIENTDATAX TYPE BAPI_MARAX,
           I_MAKT TYPE STANDARD TABLE OF BAPI_MAKT WITH HEADER LINE.
    LOOP AT I_BAPI.
      S_HEADDATA-MATERIAL = I_BAPI-MATNR.
      S_HEADDATA-IND_SECTOR = I_BAPI-MBRSH.
      S_HEADDATA-MATL_TYPE = I_BAPI-MTART.
      S_CLIENTDATA-MATL_GROUP = I_BAPI-MATKL.
      S_CLIENTDATA-BASE_UOM = I_BAPI-MEINS.
      S_CLIENTDATAX-MATL_GROUP ='X'.
      S_CLIENTDATAX-BASE_UOM ='X'.
      I_MAKT-MATL_DESC = I_BAPI-MAKTX.
      I_MAKT-LANGU_ISO ='EN'.
      I_MAKT-LANGU ='EN'.
      I_MAKT-DEL_FLAG =' '.
      CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
        EXPORTING
          HEADDATA                  = S_HEADDATA
       CLIENTDATA                  = S_CLIENTDATA
       CLIENTDATAX                 = S_CLIENTDATAX
      PLANTDATA                   =
      PLANTDATAX                  =
      FORECASTPARAMETERS          =
      FORECASTPARAMETERSX         =
      PLANNINGDATA                =
      PLANNINGDATAX               =
      STORAGELOCATIONDATA         =
      STORAGELOCATIONDATAX        =
      VALUATIONDATA               =
      VALUATIONDATAX              =
      WAREHOUSENUMBERDATA         =
      WAREHOUSENUMBERDATAX        =
      SALESDATA                   =
      SALESDATAX                  =
      STORAGETYPEDATA             =
      STORAGETYPEDATAX            =
      FLAG_ONLINE                 = ' '
      FLAG_CAD_CALL               = ' '
      NO_DEQUEUE                  = ' '
    IMPORTING
      RETURN                      =
    TABLES
       MATERIALDESCRIPTION         = I_MAKT
      UNITSOFMEASURE              =
      UNITSOFMEASUREX             =
      INTERNATIONALARTNOS         =
      MATERIALLONGTEXT            =
      TAXCLASSIFICATIONS          =
      RETURNMESSAGES              =
      PRTDATA                     =
      PRTDATAX                    =
      EXTENSIONIN                 =
      EXTENSIONINX                =
      NFMCHARGEWEIGHTS            =
      NFMCHARGEWEIGHTSX           =
      NFMSTRUCTURALWEIGHTS        =
    NFMSTRUCTURALWEIGHTSX       =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT          =
    IMPORTING
    RETURN        =
    ENDLOOP.
    ~hitesh
    If your queries are solved try to close the thread

  • What are the new multitouch functions?

    What are the new functions, and can MBP's with multitouch be upgraded to take advantage of them?

    The only new thing that I saw is the 4 fingers move.
    up, you have exposé, down you have desktop, left or right, you have apps switching...
    But I aslo wonder if I can have this feature on my old MBP. Anyone ?

  • What are the code library function settings should be followed

    i have written one win32 dll, in that what are the project settings should i follow to access the dll file from the lab view..
    i have done the following changes but still its not working,
    1. Added the library.lib to the dll from the installed path of lab view
    2. project settings > settings for All configuration
    >C\C++ : category :code generation
    use run time lib : Multi threaded dll
    processor : blend
    struct member allignment :1 byte
    call convention : _cdecl*
    For my driver access i have included the sys file.
    is that anything i have to do other than this,  please tel me the config i hav do for the access

    2716jag,
    How are you trying to access the DLL from LabVIEW?  Have you tried using the Call Library Function Node?  This should allow you to access the functions within the DLL.  I hope this helps!
    Brian T
    Applications Engineer

Maybe you are looking for

  • Missing Default Settings in "Save for Web"

    The only settings I get in "Save for Web / Devices" are "Unnamed" and "-----". Where would these preferences have disappeared to? I don't recall ever seeing the standard options ever since installing the CS3 Master Collection. ImageReady and Photosho

  • How do I modify confirmDelete.js?

    I would like to add a line to delete the APEX user when the js is deleting the row in a table.

  • Windows thinking Ctrl key is stuck on Satellite P750

    Yes, I've done some thorough googling and searching of this forum before posting.  No prior topic quite resembles my problem; and the solutions don't help.  Sticky keys box in the Control Panel is unchecked, not using any aides--the computer is brand

  • BDT Custom Table fields Update

    Hi Friends , Using BDT,  i created one tab in BP transaction and also i created two custom fields in Structure BUT000,  In PAI , I am using BUP_BUPA_BUT000_COLLECT to store screen values  to the table BUT000 In PBO  I am using BUP_BUPA_BUT000_GET to

  • The sound on my Ipod video doen't work

    Is there anything I can do, or should I send it in to be serviced?