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

Similar Messages

  • 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

  • Function Group and Module Transport

    Hi All,
    I have created a new Function group and is part of transport request. Created new function modules and assigned to the same function group. When i see object list in SE09 for the transport request i see only function group, all the FM are part of same transportable package of Function group. Do i need to assign them manually in object list through SE09 as pseudo changes to FM is not capturing in the request.
    Thanks in advance.
    Regards
    Kunal.

    There is no need to manually assign fm to fg. If you transport the fg , objects under the fg get transported automatically.
    Next time if you changing only function module then your se09 entry will be
    LIMU              FUNC

  • 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

  • Function Group

    Hi Guys,
    I have created a FunctionModule,assigned to a Function Group(lets take it up as FG123),and transported to quality without any error and activated.But the thing is,while excuting FunctionModule,am gettin an error msg tat Function group(FG123)contains error.What could be the problem?
    Please help me out in this regard.
    Warm Regards,
    Mohandoss P.

    Hi,
    Have you activated the function group?
    Why don't you create the function group with 'ZXXX
    Ok if it is activated what type of error it is giving?
    missing the include or what?
    Go to the function group & Function pool,
    And check all the include modules.
    You will come to know.
    Regards,
    madan.

  • Doubt in Selection-Screen for Program type "Function Group"

    Hi Gurus,
    I created a Function group in that i created one screen and writtem the Screen flow logic. In that screen I called a Function module "COMPLEX_SELECTIONS_DIALOG" For Creating a selection-Screen.
    The code snippet is like below.
    CASE ok_code .
        WHEN c_clk1.
          CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
         EXPORTING
           title                   = text-002
           text                    = 'Material Number'
           signed                  = 'X'
            lower_case              = ' '
            no_interval_check       = ' '
             just_display            = ' '          " Un commented by Srihari
             just_incl               = 'X'          " Un commented by Srihari
            excluded_options        =
            description             =
            help_field              =
            search_help             =
           tab_and_field           = st_tab
          TABLES
            range                   = r_matnr
         EXCEPTIONS
           no_range_tab            = 1
           cancelled               = 2
           internal_error          = 3
           invalid_fieldname       = 4
           OTHERS                  = 5.
    it works fine. But the problem is if i click the multiple selection button for the select-option in selection screen and enter the values and copy those value. In the multiple selection button green button is not coming like noram report selection-screen. Please remember I used the program type as "Function Group" not "Module Pool".
    Please send your suggestions.
    Thanks,
    Srihari.

    Ok, I am not 100% sure, if I understand you correctly, you said, you created one screen to 'simulate' a standard selection screen behavior without using select-options statement?
    If that's not correct, could you please post a few more details on what exactly you are doing.
    I had to 'simulate' a select-option behavior which I did as follows:
    - I created a range variable to store the values (s_ctby)
    - on the screen I defined the LOW (s_ctby-low), HIGH (s_ctby-high) and the multiple selection field pushbutton
    - In the PBO I set the icons for the multiple selection pushbutton
      READ TABLE s_ctby INDEX 2 TRANSPORTING NO FIELDS.
      IF sy-subrc NE 0.
        gv_createby = gc_icon_enter_data.
      ELSE.
        gv_createby = gc_icon_disp_data.
      ENDIF.
    - In the PBO make sure that any values entered on the screen are transferred to the range
    * transfer any changed values into the correct range for user transaction
    * (screen 0110) because that screen just 'simulates' a selection screen
    * so we have to make sure that any data the user enters in the selection
    * fields is passed into the appropriate ranges
      IF sy-tcode EQ gc_trans_user.
    *   created by
        IF NOT s_ctby-high IS INITIAL.
          s_ctby-sign   = c_i.
          s_ctby-option = c_bt.
          IF s_ctby[] IS INITIAL.
            INSERT s_ctby INDEX 1.
          ELSE.
            MODIFY s_ctby INDEX 1.
          ENDIF.
        ELSEIF NOT s_ctby-low  IS INITIAL AND
                   s_ctby-high IS INITIAL.
          s_ctby-sign   = c_i.
          s_ctby-option = c_eq.
          IF s_ctby[] IS INITIAL.
            INSERT s_ctby INDEX 1.
          ELSE.
            MODIFY s_ctby INDEX 1.
          ENDIF.
        ELSEIF s_ctby-low  IS INITIAL AND
               s_ctby-high IS INITIAL.
          DELETE s_ctby INDEX 1.
        ENDIF.
    - If the user hits the multiple selection pushbutton
        WHEN gc_fc_create_by.
    *     if the user hits the multiple selection button on the screen
    *     we call the standard SAP functionality to show the multiple
    *     selection popup SAP uses on a standard selection screen
          CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
            EXPORTING
              title             = text-t02
            TABLES
              range             = s_ctby
            EXCEPTIONS
              no_range_tab      = 1
              cancelled         = 2
              internal_error    = 3
              invalid_fieldname = 4
              OTHERS            = 5.
          IF sy-subrc NE 0 AND NOT sy-msgty IS INITIAL.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
    *     now update the header line so the screen fields display the correct values
          CLEAR s_ctby.
          READ TABLE s_ctby INDEX 1.
    Hope that helps,
    Michael

  • Function Pool & Function Group

    Hi Abapers,
    I need some information regarding the function group & function pool are client dependant or independant ?
    And where we can check it ?
    Thanks
    Nani

    Hi,
    Function Pool and Function Group are one and the same thing.
    Just when we view the Program for the Function Group it shows as Function Pool. When we view the Function group associated with Function Module, it displays Function group.
    This can be viewed using SE37--> Goto --> Function Groups --> Display/Create/Change
    The Program can be viwed using SE38.
    Juts concatenate SAPL before the Function Group name and view it in SE38.
    Regards
    Himanshu

  • How many includes will create when we are activating a function group...

    hi all.
      And one more thing if i see in 4.7 there are three includes r there generated by function group starts with 'L'.....If i created in ECC Same function group and module only two includes are there.....
    missing includes are, what ever we write in tat form sub routine is missing in ECC.....
    can any one help me out in this..

    Hi
    I have created the Function Group in ECC 6.0 and the Following Includes are generated for the same.
      System-defined Include-files.                                 *
      include lzfunctiontop.                     " Global Data
      include lzfunctionuxx.                     " Function Modules
      User-defined Include-files (if necessary).                    *
    INCLUDE LZFUNCTIONF...                     " Subprograms
    INCLUDE LZFUNCTIONO...                     " PBO-Modules
    INCLUDE LZFUNCTIONI...                     " PAI-Modules
    What is your problem exactly? IF you want to write any subroutine jus uncomment the necessary includes and write your code inside it.
    Cheers,
    Hakim

  • Migrate function group from 4.6 to 6.0 ecc

    how can we migrate function group and modules from 4.6 to 6.0 ecc
    please reply

    Hello Yogesh
    If you do not want to replace any functionality with new functions from ECC 6.0 but just "move" it to the higher release then import your custom function group into the ECC 6.0 system and remove any Unicode errors.
    Unfortunately, transaction UCCHECK appears to be not available on release 4.6.
    Further reading: [ABAP and Unicode|http://help.sap.com/saphelp_nw04/helpdata/en/62/3f2cadb35311d5993800508b6b8b11/frameset.htm]
    Regards
      Uwe

  • About function groups and includes?

    I ahve created 1 function groupa nd module
    then id int keep any thing in function module like tables,impot..exportsourcecode
    i dint fill ..when im checking for errors its showing nothing but when activating its saying "report stmt is missing"
    y this happening?
    about includes..
    I wanted to include one in other include
    when im im wriitng select stmt in second include the error is
    "stmt is not accessble"
    pls clarify my doubts as soon as possible

    Hi,
    When ever you execute or check it will give "report stmt is missing" so you need to use this includes in report program only.
    For include in which select is there also need to keep in report program.
    You cannot execute include/module pool pragram
    regards,
    Sreevani

  • Function Groups

    Hi....
       Any body send me what are the uses of the include programs generates function groups while creating...?
       And what is the Difference between those two?
       And in which cases we have to go for change them?
       Thank you,
       Naveen Inuganti.

    Hi
    Include Programs
    Include programs are global R/3 Repository objects. They are solely for modularizing source code, and have no parameter interface.
    They have the following functions:
    Library: Include programs allow you to use the same source code in different programs. For example, this can be useful if you have lengthy data declarations that you want to use in different programs.
    Order. Include programs allow you to manage complex programs in an orderly way. Function groups and module pools use include programs to store parts of the program that belong together. The ABAP Workbench supports you extensively when you create such complex programs by creating the include programs automatically and by assigning them unique names. A special include is the TOP include of a program. If you name it according to the naming convention, it is always included in program navigation and in the syntax check.
    Creating Your Own Include Programs
    If you create an include program yourself, you must assign it the type I in its program attributes. You can also create or change an include program by double-clicking on the name of the program after the INCLUDE statement in your ABAP program. If the program exists, the ABAP Workbench navigates to it. If it does not exist, the system creates it for you.
    An include program cannot run independently, but must be built into other programs. Include programs can contain other includes.
    The only restrictions for writing the source code of include programs are:
    Include programs cannot call themselves.
    Include programs must contain complete statements.
    You must ensure that the statements of your include program fit logically into the source code of the programs from which it is called. Choosing Check while editing an include program in the ABAP Editor is normally not sufficient for this.
    se37 funcation group used for funcation module store on sap library.
    Function Groups
    function group creates two includes.
    include lfgidtop.
    include lfgiduxx. wher fgid is function group
    The first include program-lfgidtop-is known as the top include. Within it you can place global data definitions. These are data definitions that are global to all function modules within the group.
    The second include program-lfgiduxx-is known as the UXX. You are not allowed to modify the UXX. The system will automatically place an include statement in the UXX for each function module you create in this function group. For the first function module, the statement include lfgidu01 will be inserted into the UXX. When you create a second function module in this group, the system will add a second statement: include lfgidu02.
    Function groups are containers for function modules. You cannot execute a function group. When you call a function module, the system loads the whole of its function group into the internal session of the calling program (if it has not already been loaded). For further information, refer to Organization of External Procedure Calls.
    The following diagram shows the structure of a function group: The name of a function group, fgrpcan be up to 26 characters long. This is used by the system to create the components of the group (main program and corresponding include programs). When you create a function group or function module in the Function Builder , the main program and include programs are generated automatically.
    The main program SAPLfgrp contains nothing but the INCLUDE statements for the following include programs:
    In SAP, it is a function group - instead of function - that is loaded into active memory.
    Function ( or function module ) is the one that you call from the program to do things.
    A function group contains functionally related function modules, global variables and procedures .
    To display / edit function module you use SE37,
    To display / edit function group you use SE80 .
    Reward If Helpfull,
    Naresh.

  • 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

  • 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

Maybe you are looking for