Export Function Group or Funtion Module

Dear all,
  I'm new in ABAP development.  I had a set of function module inside the same function group and i want to test it in another sandbox system.  Since, there is no transport routing between the development and sandbox server.  Is there any faster way to export the whole function group content to another system??
Regards,
Kit

Hi Chun..
you can do One thing to achieve this :
In the Dev system :
Tcode SE37: Open the Source code of The Function Group.
Copy the Souce code of the Main program and also Each include in this Function group to Notepad files.
Note: Function modules are stored as includes in a Function group.
In the Sandbox system:
Tcode SE37: Create a  function Group with the Same name.
Copy all the includes and source code in this system.
Activate them.
<b>reward if Helpful.</b>

Similar Messages

  • Export function group to file

    Hi,
    I would like to know if it's possible to export a function group to a file and then restore it again from this file.
    What I need is a way to store in hard disk the function groups.
    thanks in advance

    Hi Javier,
    It is not possible to Export/Download whole Function Group to a file and restore it again from that file.
    However, in general we download all the Includes and Screens individually by following:
    Go to Include/Screen -> Utilities -> More Utilities -> Upload/Download -> Download
    To upload the same Include/Screen:
    First create Include/Screen with the same name. Then follow these steps
    Go to Include/Screen -> Utilities -> More Utilities -> Upload/Download -> Upload 
    By this way, you can again get the whole Function Group in the system. Hope it helps.
    Regards,
    Neeraj Gupta

  • Function Groups and Function Modules

    Hi,
    Can anyone give me the detail steps for creating Function Group and then from that function group creation of function module with example?
    Regards,
    Chandru

    Hi,
    Function Group creation -
           A function group is a program that contains function modules. With each R/3 system, SAP supplies more than 5,000 pre-existing function groups.
         In total, they contain more than 30,000 function modules. If the functionality you require is not already covered by these SAP-supplied function modules, you can also create your own function groups and function modules.
          We can put all the relevant function modules under one function group and all the global variables can be declared in this FG.
    FG Creation:
    1)     Function group can be created in SE80. There choose the 'Function Group' from the list of objects.
    2)    Then give a name for ur function group (starts with Y or Z) and press ENTER.
    3)   The click 'YES' in the create object dialog box and give a short desc. for this FG and save.
    Function Module:
                 A function module is the last of the four main ABAP/4 modularization units. It is very similar to an external subroutine in these ways:
    Both exist within an external program.
    Both enable parameters to be passed and returned.
    Parameters can be passed by value, by value and result, or by reference.
    The major differences between function modules and external subroutines are the following:
    Function modules have a special screen used for defining parameters-parameters are not defined via ABAP/4 statements.
    tables work areas are not shared between the function module and the calling program.
    Different syntax is used to call a function module than to call a subroutine.
    Leaving a function module is accomplished via the raise statement instead of check, exit, or stop.
    A function module name has a practical minimum length of three characters and a maximum length of 30 characters. Customer function modules must begin with Y_ or Z_. The name of each function module is unique within the entire R/3 system.
    Defining Data within a Function Module
    Data definitions within function modules are similar to those of subroutines.
    Within a function module, use the data statement to define local variables that are reinitialized each time the function module is called. Use the statics statement to define local variables that are allocated the first time the function module is called. The value of a static variable is remembered between calls.
    Define parameters within the function module interface to create local definitions of variables that are passed into the function module and returned from it (see the next section).
    You cannot use the local statement within a function module. Instead, globalized interface parameters serve the same purpose. See the following section on defining global data to learn about local and global interface parameters.
    Defining the Function Module Interface
    To pass parameters to a function module, you must define a function module interface. The function module interface is the description of the parameters that are passed to and received from the function module. It is also simply known as the interface. In the remainder of this chapter, I will refer to the function module interface simply as the interface.
    To define parameters, you must go to one of two parameter definition screens:
    1) Import/Export Parameter Interface
    2) Table Parameters/Exceptions Interface
    Then in the FM interface screen, give the following
    1) Import parameters
    2) Export parameters
    3) Changing parameters
    Then give
    1) Define internal table parameters
    2) Document exceptions
    You enter the name of the parameter in the first column and the attributes of the parameter in the remaining columns. Enter one parameter per row.
    Import parameters are variables or field strings that contain values passed into the function module from the calling program. These values originate outside of the function module and they are imported into it.
    Export parameters are variables or field strings that contain values returned from the function module. These values originate within the function module and they are exported out of it.
    Changing parameters are variables or field strings that contain values that are passed into the function module, changed by the code within the function module, and then returned. These values originate outside the function module. They are passed into it, changed, and passed back.
    Table parameters are internal tables that are passed to the function module, changed within it, and returned. The internal tables must be defined in the calling program.
    An exception is a name for an error that occurs within a function module. Exceptions are described in detail in the following section.
    Syntax for the call function Statement
    The following is the syntax for the call function statement.
    call function 'F'
        [exporting   p1 = v1 ... ]
        [importing   p2 = v2 ... ]
        [changing    p3 = v3 ... ]
        [tables      p4 = it ... ]
        [exceptions  x1 = n [others = n]].
    where:
    F is the function module name.
    p1 through p4 are parameter names defined in the function module interface.
    v1 through v3 are variable or field string names defined within the calling program.
    it is an internal table defined within the calling program.
    n is any integer literal; n cannot be a variable.
    x1 is an exception name raised within the function module.
    The following points apply:
    All additions are optional.
    call function is a single statement. Do not place periods or commas after parameters or exception names.
    The function module name must be coded in uppercase. If it is coded in lowercase, the function will not be found and a short dump will result.
    Use the call function statement to transfer control to a function module and specify parameters. Figure 19.9 illustrates how parameters are passed to and received from the function module.
    sample FM
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
      I_CALLBACK_PROGRAM                = ' '
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
      IT_FIELDCAT                       =
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
      TABLES
        t_outtab                          =
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Example
    1  report ztx1905.
    2  parameters: op1 type i default 2,   "operand 1
    3              op2 type i default 3.   "operand 2
    4  data rslt type p decimals 2.        "result
    5
    6  call function 'Z_TX_DIV'
    7       exporting
    8            p1      = op1
    9            p2      = op2
    10      importing
    11           p3      = rslt.
    12
    13 write: / op1, '/', op2, '=', rslt.
    Regards,
    Shanthi.P
    Reward points if useful ****
    Edited by: shanthi ps on Jan 26, 2008 12:03 PM

  • Function module not in Function group after transport

    We have a function group ZPCAD with three function modules in it. I added two  function modules. When they were transported, the function group in the target client did not show the function modules
    I found the program in SE80 Repository info System. when I opened the Module got a message about funtion group being damaged.
    Since then, we have:
    transported the modules again. that did not help
    transported the Function group, that did not help
    Transport all function modules (old and new), that did not help.
    I went to SE37, opened the module and pressed Control, Shift, F5. The function group ZPCAD was opened indicating the module is part of the group. However, the new function modules still were not listed in the group.
    Any advice would be appreciated.
    Scott

    Some time function modules will not be displayed in function group in target systems.
    Goto SE80
    Select the function group from the list box and search for the function group.
    Right click on the functio group and select "Other Functions" and "Rebuild Object List" from the sub menu of "Other Functions".
    After doing all these, function modules will be displayed in function group.
    Regards,
    Siva.

  • Copying function module from one function group to another

    What is the efficient way to copy a module from one group to other so that all its subroutines and any dependencies with in the FM can also be copied?

    Hello,
    Tcode:SE37
    Menu: FunctionModule->OtherFunctions->Copy in that there are different option give a new name of the function group this should work
    regards
    suresh nair

  • Exporting data from one function group to another

    Dear all,
    can you pls provide the solution for the below.
    in my requirement two function groups are there. one is standard function group & other is user specific function grp.
    in the standard FGRP i have one SAP standard screen xxx, & one user created screen yyy. from xxx screen call goes to the yyy screen. then from yyy  call goes to the screen zzz which is in user specific FGRP.
    how to export the data (i.e from structure) from screen yyy which is in one FGRP to screen zzz which is in some other FGRP.
    Regards
    Venkat

    Venkata,
    The receiving FM should have a parameter under TABLES for your structure.  You have to put the structure data in an internal table, and then read table ... index 1 to retrieve it both in the FM, and in the calling program.  Upon return to the calling program you wil again need to read table ... index 1 to retreive it and restore it to the structure you process in your calling program.

  • How to organize function modules & subroutines in a function group?

    Hi,
    There are several function modules and subroutines in a function group. And the subroutines will be called by severel modules.
    Originally:
    1. I put subroutine forms in an Include.
    2. and in the function modules which will use the forms, I include the Include before the function definition.
    3. While when activating the functin modules, it's reported that the forms had already been defined. Only if one function module includes the Include, it's OK.
    How should the forms and function modules be organized?
    Thanks!
    Sayid

    Hi Atish
    Yes, you are right.
    It works.
    Thank you.
    Regards,
    Sayid

  • How to read include names of modules in a function group

    Dear All,
    I'd like to read programatically the include names of all function modules within one function group, with given function group's name.
    Does anybody know a module or class providing this functionality?
    Best regards
    Wolfgang
    Message was edited by: Ralf Wolfgang Geithner

    You can do a select from TFDIR table.
    DATA PANME LIKE TFDIR-PNAME.
    DATA INCLUDE_NAME LIKE TFDIR-PNAME.
    PNAME(4) = 'SAPL',
    PNAME+4 = <FUGR_NAME>.
    SELECT * FROM TFDIR WHERE PNAME EQ PNAME.
    CONCATENATE 'L' <FUGR_NAME> 'U' TFDIR-INCLUDE
    INTO INCLUDE_NAME.
    ENDSELECT.
    INCLUDE_NAME will conatin the include name of Function Module.
    Cheers

  • Function modules in a function group

    Hi
      hoe many function modules can a function group contain and can we create a function module with out import parameters.

    1. There isn't any limit.
    But whenever you use a FM in your program, system will allocate memory for all the data definition maintained in the TOP include. So, put only relevent FM's in the FG and create another FG, if it has a different purpose.
    2. Yes we can create
    Regards,
    Naimesh Patel

  • How to find suitable( existing) function group for a Function Module ?

    How to find suitable( existing) function group for a Function Module to be created?
    This is FM for converting amounts to text.

    Hi,
            If you are not sure into which Function group your FM should go in then its advised to create a Function group of your own. Its not advised to create a function module in any other function group unless its owned by you since your FM can get deleted by others or it can get changed.
    Create your own Function group. But if you want to create in an existing FG then best way is to find out the Function Group by searching for suitable existing Function module then see their function group
    Regards,
    Sesh

  • Request having function group released but function module attribute shows not released

    Hi experts,
                   I am a beginner.
                  There is a transport request in which my function group and other objects were present . This transport request and its task were released . But if i check the attributes section of the function module that is present in that function group , it shows not released .
    Is there some problem ? did the function module not get released with its group? It wasn't showing anywhere in the request even though i had added it during creation.
    Here is the image :
    Thanks,
    Unnati

    Hi,
    Those two meanings of 'released' are unrelated. Don't worry about it.
    Also, a function module sometimes does not explicitly appear in a transport request, if the function group is already in there.
    cheers
    Paul

  • Transporting Function Module & Function group

    Hello All,
    I want some clarification in transporting a FM, FG, Extract Structure.
    First I collected Function Group in a Transport Request (R3TRFUGR********) and collected Function Module in the same request and also the extract structure.
    This Function Group have only one Function Module and 4 Includes (LRSALK01, LRSAXD01, LZ_BI_DS_DATATOP, LZ_BI_DS_DATAUXX, RSAUMAC).
    Do I need to collect these includes separately in the same request or is it enough if i collect only function group and function module and move the request.
    Please let me know.
    Thank you.

    Hi Saptrain,
    the best is always to let the system handle it: As soon as you assign an object (function group, function module, include or whatever) to a package, it will ask for a transport. Create the transport and the transport management system will include in the transport what has to be transported.
    As far as I know (but I never have the question), a function group (R3TR FUGR) will transport everything that is in the function group: All functions, all modules, all includes, screens, texts, status and...I think even test cases
    You will find FUGR in the transport after creating the function group.
    If you change something after releasing the transport, it will transport only the changed objects (i.e. includes)
    Regards,
    Clemens

  • Option to mass migrate function modules in a function group to new SAP box

    Hi All,
              We have a requirement wherein we have to move all the existing function modules to a new SAP box.
    I heard that there is an option to download all function modules in a function group to text files and upload them to a new system at once without much progamming.
    Please let me know if anyone knows how to do this.
    Thank you,
    Vasu

    Hi Vasu,
    why don't you just use CTS?
    Create a transport that contains the objects you want to move. Then. assuming the target system is not in the same CTS landscape, move the files to the transport directory of the target system. Then in STSM goto the Import Queue and select Extras->Other Requests-Add to add your transport to the queue. Then import it as normal.
    Cheers
    Graham Robbo

  • Function group / Function modules approvals

    Hi,
    We have couple of function modules related to RFC / BAPI in QA we need to give approvals before we move them to production.
    What precautions do we need to take before approving?
    How to segregate Function groups / Function modules?
    Thanks,
    Ram

    Well you should test function groups and function module coding as per your normal procedures. They are widely used.
    Whether they are accessible depends on your roles, right?
    Which release are you on?
    Prior release 7.01 you can only control at function group level with object S_RFC.
    Subsequently you can use RFC_TYPE 'FUNC' to control at module name level if FUGR fails.
    Luckily, this check is central and to my knowledge only one developer ever hardcoded it for list outputs, so you should be okay to convert for manual authorizations.
    For standard ones from the menu, you will need to deactivate S_RFC (there is not option to un-merge, unfortunately..........). Easiest is to get the names from the menu and paste them into the manual authorization, or use a Su24 "dummy" for the role or scenario.
    Dummy's are usefull workarounds and protect you against upgrades as well... (when SAP adds a load of stuff because GRC needs it, and then toasts your roles, sets active auths to inactive and adds new ones which are merged automatically...)
    Cheers,
    Julius

  • Are Classes better than Function groups and Modules

    Hi,
    Are classes better than Function groups? For example if you want to execute something is back ground or use parallel processing you can't do it using classes. Even inside classes most of the places we use Function modules.
    Then how classes are beneficial?
    Regards,
    Deepak Bhalla

    Yes they are compared in the sense that the class and function group are the containers, and the methods and function modules are the interfaces in which you interact with the encapsulated data. 
    Again if you are developing an application in which you are not forced to push the processing to differenet work processes,  then using classes/methods is preferrable. The reason I say this, is because anything coming from SAP will most likely be implemented as a class as opposed to a function group.  This is not to say that SAP will not create new function modules, because of course there still is a use for them.
    Regards,
    Rich Heilman

Maybe you are looking for

  • Index Generation Error in Explorer

    Hi Expert, I am using BO4.0 and had created a Universe(.unx), upon universe i had created Webi Report which is working fine but if i use the same universe in Explorer, its showing Error in the Index Generation. Also same sql stmt which is working fin

  • Adobe Reader 7でセキュリティ設定したPDFを開けない

    Adobe Reader 7でセキュリティ設定したPDFを開くと次のエラーが発生するという事象が起こっています. 埋め込みフォント「OONPKP+MS-Pgothic」を抽出できません.一部の文字を正しく表示できない場合や.印刷できない場合があります. 対象のPDFはExcel97-2003形式のXLSファイルをPDF変換した後パスワードをかけてセキュリティ設定したもので.以下のプロパティになっています. アプリケーション:PScript5.dll Version 5.2.2 PDF変換:Acr

  • HP Photosmart 7960 driver (.inf) file name

    What is the Windows XP HP Photosmart 7960 driver (.inf) file name?

  • 256 color scheme loads intermittently with external display.

    here is the picture of what happens. has my gfx card gone nuts? i'm on 10.7.2, 13 inch macbook pro 2.4ghz mid 2010, connected to minidisplay to dvi, dvi to hdmi , to a sonia briavia ex300 22inch.

  • Latest jdeveloper 11.1.2.1.0 doesn't have Web service Proxy at Business Tie

    I have installed the latest Jdeveloper 11.1.2.1.o and tried to create a wsrp consumer but couldn't find the "Generate Web Service Proxy" under Business Tier -> Web service as suggested in developer's guide. Did I miss anything? Should I installed any