INCLUDE of a Function Module

Hi All,
On the Function Module (SE37) Attributes screen, there is a field name "INCLUDE name" which is related to the FM. Is there any table that we can use to search by FM to get this Include?
I am developing program to read the source code in the FM, I am planning to use the syntax READ REPORT program INTO it_code. Due to this syntax not able to read the source code in FM directly, but can read through Include. So the table that can get the relationship of FM and include is important.
Or anybody can suggest a way to read the FM's source code?
Thanks.

Hi,
If you have FUNCTIONGROUP with the name FM_FUNCTION_GROUP and if this function group as 10 function modules then these 10 function modules are stored in includes of names
LFM_FUNCTION_GROUP_U01,LFM_FUNCTION_GROUP_U02, ... so on till  LFM_FUNCTION_GROUP_U10.
SO now if you want to read a function module then find out the include of that function module from the function group.
In the function group there will be an include with the name LFM_FUNCTION_GROUPUXX. This include will have the entries of the includes that are specific to each function module.
Check the include which ends with UXX in a function group to find out the includes of each function module in that function group.
Regards,
Sesh

Similar Messages

  • INCLUDE name for function module

    Hi,
    How to determine the INCLUDE name for the function module name?
    Program input: function module name
    Program output: INCLUDE name (like SAPLZ....U01)
    TIA
    regards,
    Clemens

    Here is a sample program.
    report zrich_0001.
    data: ifunct type table of  rs38l_incl.
    data: xfunct type  rs38l_incl.
    data: xmain_program type sy-repid.
    parameters: p_area type tlibt-area.
    call function 'RS_FUNCTION_POOL_CONTENTS'
         exporting
              function_pool           = p_area
         tables
              functab                 = ifunct
         exceptions
              function_pool_not_found = 1
              others                  = 2.
    xmain_program = 'SAPL'.
    xmain_program+4 = p_area.
    write:/ xmain_program.
    loop at ifunct into xfunct.
      write:/ xfunct-FUNCNAME, xfunct-include.
    endloop.
    Regards,
    Rich Heilman

  • Includes in function module

    hiya ,
    do INCLUDES in the function module all shud be in the same function group??
    what iam doing is ..copied the sap standard function module  but when iam executing it says <function module cannot be found  in the same group>
    is it something to do with includes...
    plz advise
    thanks

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

  • Subroutine in function module exit include program

    Hi Friend,
    I want to modularise the code inside the include program defined in funtion module exit. but it is giving out errors.
    Can any one help on this.
    Regards
    Gautham

    Hello Gautam,
    Use the PERFORM  (FORM ................. ENDFORM.) for modularizing the code inside the function module exit. You can not use the include inside the function module directly but once u create a  PERFORM  (FORM ................. ENDFORM.). Inside this  FORM ................. ENDFORM .. u can create any number of include's.
    I hope it will resolve your problem.
    Thanks.
    Anurag

  • Required help on Function Modules and Bapis

    Web portal publishing of ERS invoice letters. This involves modification in the BAPI screens to show the invoice PDF instead of printing??
    can anyone help me in fixing this issue.

    hi Anjaneyulu,
    open the t-code --> and go to menu system->status-->select the program and open the program-->
    selct the tree structure----in the left side the includes screen and function module everthing will show..
    or
    open the t-code --> and go to menu system->status-->select the program and open the program-->
    go to attributes and select the Package..
    next----
    go to se80--> enter the package --> and dispalay it shows the list of Program , include transaction function modules and bapi's under the pakage
    Regards,
    Prabhudas

  • Function modules and BAPIs for a transactio code

    Hi friends,
    How i can find  the List of function modules and BAPIs being used for a particular transaction code?
    for example: I would like to find List function modules and BAPIs being used for the Transaction code
    "FBRA"(Reset cleared items)?
    Any sort of help on this will be helpful.
    Thanks,
    Punjaala

    hi Anjaneyulu,
    open the t-code --> and go to menu system->status-->select the program and open the program-->
    selct the tree structure----in the left side the includes screen and function module everthing will show..
    or
    open the t-code --> and go to menu system->status-->select the program and open the program-->
    go to attributes and select the Package..
    next----
    go to se80--> enter the package --> and dispalay it shows the list of Program , include transaction function modules and bapi's under the pakage
    Regards,
    Prabhudas

  • How to get no. of lines in a  function module

    Dear Experts,
       I want to get the no. of lines present in a function module. How can I do it.
       For reports/ include I did like
      read report 'rep name' into itab.
      describe table itab lines wa_line.
      But I am not able to do the same for function module. Is there any function module to find the no. of lines?
    or is there any other way?
    Thanks and regards,
    Venkat

    HI,
    In Se37, enter your FM name display,
    now Goto --> Mainprogram --> you can see include for function modules
    eg:   include lalfauxx.      " Function Modules
    double click the include
    you can see the function module names includes
    Eg:
      THIS FILE IS GENERATED BY THE FUNCTION LIBRARY.             *
      NEVER CHANGE IT MANUALLY, PLEASE!                           *
    include lalfau01.   "CONVERSION_EXIT_ALPHA_INPUT
    include lalfau02.   "CONVERSION_EXIT_ALPHA_OUTPUT  _
    double click your functipon module name 
    eg :lalfau02.
    you can follow the same as you did for the report
    read report 'rep name' into itab.
    describe table itab lines wa_line
    This is the Include program name for your function module.
    Basically FM is a include program.
    eg:
    data: begin of itab occurs 0,
            text type char2000,
           end of itab.
           data wa_line type syindex.
    read report 'lalfau02' into itab.
    describe table itab lines wa_line.
    write wa_line.
    output 13.
    regards,
    Nazeer

  • Function Module IMPORT structures not recognized in form subroutines

    Hello everyone,
    Did some searching on SDN and didn't find the answer, so I apologize if this has been covered before.
    Just finished my first Function Module.  It's a remote-enabled (RFC) function that will be called by XI to do some processing.  I have two components declared on the IMPORT tab, which we'll call "A" and "B".  Both "A" and "B" are defined with a user type, each of which is a simple structure of 4-5 fields each.  My Function Module also has two tables, and these are defined on the TABLES tab.
    Here's my problem:  When I do a syntax check, I get an error telling me that "A" and "B" are unknown.  However, I only get this error where I reference "A" or "B" in the FORM subroutines I have declared at the end of my function.
    I have my other data declarations defined globally in the "LZ...TOP" Include for my Function Module, so those don't pose a problem.  But these are my Function Module parameters, so I can't go "declare" those as I already have them defined on the appropriate tabs.
    Is there a way for me to get around this error and have them recognized globally, or do I have to resort to moving the values to some globally-declared "hold" field?  I'm hesitant to have to add them as parameters passed into the FORM routines because I pretty much reference each of the fields within the structures for "A" and "B".
    Thanks everyone.  Points definitely awarded for helpful answers.

    Dave,
    The parameters are visible only in the main program of the function module. So, if the subroutines are directly in the main function, they you should not have a issue. But if you subroutines in an include and you are calling them in the main function, then the paramters are not visible in the subroutines. In that case you will have to hold the values in a globally declared tables.
    Or you will have to pass them as parameters to Sub routines as well.
    Regards,
    Ravi
    note : please mark the helpful answers
    Message was edited by: Ravikumar Allampallam

  • Using subroutines in Function Module

    Hi , experts ,
    I want to know how to use performs in function module,
    If created subroutine must be used in all FM in  Func.Group ?
    if you have  articles about this or any information , I will be glad .
    Please help.
    Regards,
    Tatiana.

    If i am not mistaken you want to use forms in function module.
    To enable forms in function module you have to follow these steps:
    Create a Z include in your function module.
    INCLUDE ZTEST_INCLUDE.
    Inside this include you need to write your form routine which will be accessable from your function module.
    Now you can use perform statement in your funtion module.
    Thnaks & Regards,
    Lalit Mohan Gupta

  • How to create s cutomised function module

    Hi all,
    i want to create acutomised fm , i want to create a zfm , same as like one standard fm .
    how to copy the original one, i wnat to change one include based on customer requirement.
    Regards,
    pandu.

    Hi,
    Go to se37 give your  standard function module name.
    select function module from menu -->click on other functions
    then select copy (ctrl+F5).
    Then it will show the standard function module and target function module and function group.
    Give your target function module name and give your function group name.
    now you have your customized fuction module similar to standard function module.
    now you can add your own logic or includes in this function module.
    regards,
    swami.

  • How to call Z-Function module from BAPI_IDOC_INPUT1.

    Hi All,
    Process code is :BAPI and standard function module is  BAPI_IDOC_INPUT1.
    I am coding all the logic for the INBOUND IDOC in the Z-Function module ZIDOC_INPUT_ZGOODSMOVEMENTOIL.
    My requirement is:
    Process code fires the inbound function module BAPI_IDOC_INPUT1, this in turn call the function module ZIDOC_INPUT_ZGOODSMOVEMENTOIL.
    How can i call ZIDOC_INPUT_ZGOODSMOVEMENTOIL from BAPI_IDOC_INPUT1 to process the idoc.
    Thanks in Advance.
    Regards,
    Umesh

    Hi Krush,
    Thanks for your reply,
    Now i can trigger the idoc.
    I have one more problem that if i want to add another z-segment to the attached idoc type its not allowing me its saying that it is already generated and cannot be changed.
    if i am generating the BDBG transaction its not asking for specific segment and it automatically takes the segment and generates the function module.
    How  i can add an additinal z-segment to the idoc type and it generate through BDBG transaction to include in inbound function module?
    Thanks in Advance.
    Regards,
    Umesh

  • Error in copy of function module  FIEB_PASSWORD_ENCRYPT as a Z FM

    Hi Gurus,
    I want to make a copy of function module  FIEB_PASSWORD_ENCRYPT as a Z FM.
    but after coping standard FM when i am trying to activete it ,it is showing one error
    *form decrypt_password does not exist.*
    if possible give me the solution step by step.
    Regards,
    Susheel Joshi

    do something susheel,
    create an empty function group:ZFIEB_PASSWORD.
    Now in the attribute of your ZFM, just add this name (ZFIEB_PASSWORD)in the FUNCTION GROUP section.
    in the main program of this FG-- (ZFIEB_PASSWORD)i, copy the includes given in function group:FIEB_PASSWORD.
    Add these codes:
    *   System-defined Include-files.                                 *
      INCLUDE LFIEB_PASSWORDTOP.                 " Global Data
      INCLUDE LFIEB_PASSWORDUXX.                 " Function Modules
    *   User-defined Include-files (if necessary).                    *
    * INCLUDE LFIEB_PASSWORDF...                 " Subprograms
    * INCLUDE LFIEB_PASSWORDO...                 " PBO-Modules
    * INCLUDE LFIEB_PASSWORDI...                 " PAI-Modules
    INCLUDE LFIEB_PASSWORDF01.
    the intension is to copy all the includes from this pool.
    you should be able to do it now
    ags.n
    Edited by: ags on Oct 30, 2009 3:19 PM

  • Reg include generated in function library

    Hi Experts,
    I have three include generated while creating maintanance view
      THIS FILE IS GENERATED BY THE FUNCTION LIBRARY.             *
      NEVER CHANGE IT MANUALLY, PLEASE!                           *
    INCLUDE LZZMEDRUCK_SPU01.
                        "ZUS_ME_PRINT_PO_SP1
    INCLUDE LZZMEDRUCK_SPU02.
                        "TABLEFRAME_ZZMEDRUCK_SP
    INCLUDE LZZMEDRUCK_SPU03.
                        "TABLEPROC_ZZMEDRUCK_SP
    All these includes are created in function group zzmedruck_sp.
    I need to delete these includes.
    Thanks in Advance,
    Sashti

    Those include programs for Function modules but these function modules can be used by Table maintenance
    JUST open  function group check if there any function module exists.
    ZZMEDRUCK_SPU01/2/3 or any other that is using the same includes
    try to delete those function module from SE37 but check the dependencies
    of function module.
    INCLUDE LZZMEDRUCK_SPU01-----Just comment it in the main include
             I think there are dependencies for that reason you cannot delete it
            Create a new one and use it
    Regards,
    Gurpreet

  • Data source enhancement thru function module

    Folks,
    I am trying to figure relation between data source enhancement, package, function module etc?
    I see a function module where enhancement is done. when I go and try to see master data exit EXIT_SAPLRSAP_0002 ... I see include but I do not see reference of function module in this include?
    All these codes are so simple... but I am struggling to figure out all these relation RSAP0001, exit_saplrsap* - include inside and function module attached?
    Can somebody give very simple connection for all these components?
    Thanks,
    -SM

    Hi,
    All these codes are so simple... but I am struggling to figure out all these relation RSAP0001, exit_saplrsap - include inside and* function module attached?
    Please note that for enhancing certain standard objects for meet customer needs, SAP provides different customer exits where we can code as per our requirements.
    These customer exits starting with EXIT********* will be grouped by Enhancements e.g. RSAP0001
    Thanks for your response. In RS02 it is clear that we can mention function module name for data source - that is good for generic extraction. But what do we do when we are enhancing SAP extractor?
    When you want to enhance SAP extractors, you go for customer exits.
    EXIT_SAPLRSAP_001              for Transactional datasources
    EXIT_SAPLRSAP_002              for Master datasources
    EXIT_SAPLRSAP_003              for Text datasources
    EXIT_SAPLRSAP_004              for Hierarchy datasources
    in se37 screen in table tab - sometime we see extract structure - that will establish which functional being called for which data source, but in my case - I do not see anything in table tab?
    If your datasource is function module based, then the function module which is mentioned in RSO2 for your datasource would surely have e_t_data in tables tab with its associated type.
    Only if the datasource is standard one and is processed by function module e.g. 2lis_18_i0notif which is processed by MCEX_BW_LO_API function module, these would not have associated type mentioned for them. To get their structure, you can go to RSA5/ RSA6

  • How to delete the functional group from an Functional Module without ...

    Hi all,
    Good morning,
    We  have created an RFC  enabled FM. Now because of enchancement the functional group is to be removed. Is there any other way to remove the Fucntional group without deleting the FM. Please provide your valuable inputs for the same.
    Rewards for sure .
    Thanks
    Mohinder Singh Chauhan

    A function group is really one very large program with lots of includes.  One of these includes is your Function Module. 
    So, no, you can't do it through the attributes of the FM.  You have to create a new FG and reassign your FM to that group.
    matt

Maybe you are looking for

  • Anchored objects disappeared

    My anchored objects inserted into text have all disappeared. All layers are on. The text is there but the objects are not. How can I get them back?

  • Firefox automatically downloads a file

    I opened a website and downloaded a brochure to my desktop that was supposed to be a pdf file.  However, it downloaded as a pdf.part file and I was not able to open the .part extension, so I then placed both files into the trash and emptied the trash

  • Connecting 27" iMac 2012 i7 to 2nd HP-LP2475W monitor

    Could someone tell me what type of speciic cable I would need to conntect my iMac to a second monitor? I am looking to obtain the highest quality possible and hoping perhaps some sort of connect using Thunderbolt (from the iMac) into one of the copio

  • Backup Exec 2014 / backup error on VM and no message

    Hi there! I have a backup that goes once per week (on saturday as it's quite long, it saves VM on ESXI and HyperV). Everything was fine until... until last week. I have errors that stops the backup, but no explanations at all, no error message, just

  • Completed Reminders not syncing to yahoo

    I am using an iPhone 4 with iOS 5. I have Reminders turned on under my Yahoo account. I can create Reminders in Yahoo and they will appear on the iPhone I can create Reminders on the iPhone and they will appear in Yahoo When I mark a Reminder complet