How to declare constant across a function group?

Hi,
I want to define constants for use within a whole function group. How could it be done?
Thanks,
Said

You can maintain constansts or global variable in the 'Global Data' of function group.
Please go to the function group through SE37 transaction and select display or change. in the Popup select for mainprogram in the mainprogram you can see the a include program which will be with 'Global Data'. this is the section where you can maintain the global variables.
Ex;
  include lwbabaptop.                        " Global Data
Thanks,

Similar Messages

  • How to create table maintence  with function group

    plz send me replay.
    urgent.

    Hi,
    Refer this:
    1.
    Create Maintenance Dialog 
    To generate the maintenance dialog for a table or view:
    Choose Development ® Other tools ® Gen.tab. maint. dialog. You go to the maintenance transaction initial screen.
    Enter the name of the table or view.
    Choose Generated objects.
    Choose Create/Change.
    Confirm the maintenance module creation prompt.
    Enter the generation data:
    – Maintenance module function group
    You can put maintenance modules for several tables or views in a function group.
    – Authorization group
    – Maintenance type (one/two-level)
    – Maintenance screen numbers
    – Recording routine (standard/individual or none)
    Choose Create. All components required are generated.
    When a maintenance dialog is generated, an entry with an object list is created in the maintenance object description table. All tables involved are in this object list.
    http://help.sap.com/saphelp_nw04/helpdata/en/a7/513477407a11d1893b0000e8323c4f/frameset.htm
    2. https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc
    3. Important : u must activate Function group before generating table maintainance.
    Jogdand M B

  • How to point to a Custom Function Group

    Hello,
    I am on EP7.0 ERP05 NW04s and trying to modify ESS Address Application .The standard application points to the standard Function group HRXSS_PER_P0006_US and I want to point to a Custom(a copy of it) with name ZHRXSS_PER_P0006_US.. What's the right procedure to do it.....?
    Any help would be highly appreciated.

    Hi Subash,
    I really doubt wether we can achieve this, i mean pointing a standard webdynpro to Custom RFC instead of Standard RFC.
    If you want to use standard RFC  along with Z, this is possible. But modifying the existing model and pointing it to Z model is difficult, as the standard model nodes and attributes are mapped upto the views. You have to delete the mapping one by one without any error.This is a tedious process....
    Thanks & Regards
    Srikanth

  • How to declare constant to be used trhough WebDynpro??

    Hi,
    I'm new to WEbDynpro
    How  to set a string constant to be used through my WebDynpro project like in other programming language ??
    Thanks in advance...

    Hi,
    If u want to declare anything as a global variable then u have to declare it inside the :
    //@@begin others
    String name = "Sample";
    //@@end
    If u give this code inside the view controller then its scope will be available till that view.If u declare this inside the comp.ctrl then it will be available till the comp.ctrl resides.
    If u want more reference tell me i will provide u with the available links.
    Hope this helps u,
    Regards,
    Rathna.

  • How to create a new function group in EEWB creating new fields.

    Hi gurus,
    Iu2019m creating an enhancement of the BP Object through EEWB, but when I finish I received the following message:
    Message no. FL030
    Diagnosis
    You attempted to add a function module to a function group that is already full. A function group can contain a maximum of 99 function modules.
    Procedure
    Create a new function group or reorganize the existing one.
    Could you guys kindly guide me in how to create or reorganize the function groups in order to include the total of my custom fields?
    Thanks in advance!

    Hi,
    the issue has been investigated in the customer system.
    You're trying to create a table extension using EEWB and the table has 55 fields and each field has checktable.
    EEWB creates for each field with checktable 2 function modules. However, there is a limitation that one function group
    can contain only 99 function modules. That's why you got the error.
    Possible solutions can be following:
    1. Design question: Do you really need checktable for all fields? Do you need all 55 fields in one table? Otherwise, you can split it into two tables.
    2. Instead of using checktable, you can also use domain fixed values. For that you have to define your own data element and domain with fixed values.
    Regards,
    Steve

  • Function group in tablenaintenance generator.

    hi experts,
           can anybody please tell me why we create a function group
          while creating a table maintenance generator?
    what is the utility of creating a function group.
    regards
    pankaj

    Function Groups
    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:
    キ LfgrpTOP. This contains the FUNCTION-POOL statement (equivalent for a function group of the REPORT or PROGRAMstatement) and global data declarations for the entire function group.
    キ LfgrpUXX. This contains further INCLUDEstatements for the include programs LfgrpU01, LfgrpU02,... These includes contain the actual function modules.
    キ The include programs LfgrpF01, LfgrpF02,... can contain the coding of subroutines that can be called with internal subroutine calls from all function modules of the group.
    The creation of these INCLUDE programs is supported from the ABAP Workbench by forward navigation (for example creation of a subroutine include by double clicking on the name of a subroutine in a PERFORM statement within a function module).
    You cannot declare a COMMON PART in a function group. Function groups have their own table work areas (TABLES). Function groups encapsulate data. In this respect, they are a precursor of ABAP Objects (see From Function Groups to Objects ).
    All of the function modules in a function group can access the global data of the group. For this reason, you should place all function modules that use the same data in a single function group. For example, if you have a set of function modules that all use the same internal table, you could place them in a function group containing the table definition in its global data.
    Function groups, like executable programs and module pools, can contain screens (selection screens and lists) as components. User input is processed either in dialog modules or in the corresponding event blocks in the main program of the function group. There are special include programs in which you can write this code. In this way, you can use function groups to encapsulate single screens or screen sequences.
    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 found helpful,
    regards
    palak

  • S_RFC Function Groups

    Hello experts:
    I am currently using S_RFC with full authorization ( * ) for RFC users in satellite systems. Can anyone clarify what this implies in terms of security? Can I restrict the "Name of RFC to be protected" field only to the function groups requiered for each user?
    Particulary, I am using an RFC connection for the test workbench through SolMan using trx STWB_WORK? Do the function groups requiered depend on the transaction or program I am testing through my assigned test package? If so, how can I find out which function groups a particular transaction or program requieres? If not, does it depend on the program or transaction from which I am making the RFC connection, in this case STWB_WORK?
    Can someone shed some light on how to determine the strictly necessary function groups to be assigned in S_RFC?
    Thank you all,
    Henry

    Hello Henry,
    While we wait for somebody more knowledgable than myself to answer, some comments from me:
    My understanding is that this tool uses eCATT (to retrieve the results of test cases) from remote systems.
    Always usefull => Activate the security audit log (transaction SM19) using the dynamic tab to log all successfull RFC calls to find out which calls are made in those systems, and in your SolMan.
    Also take a look at the function groups of transaction SECATT in transaction SU24 which might have a "Proposal" (previously "Check/Maintain" value), as they may appear in the audit log in your remote systems... (I am not sure what the default values are).
    There is also a SAP note "Minimum authorizations for Workplace users" (Note 215927) which might be usefull for you.
    I also think the access required (not only S_RFC) will be dependent on your test cases (begging the question: How can SAP deliver a correct default or role...). You can also mitigate this risk by not saving the logon data permanently in the connections...
    Of course, the application authorizations (e.g. S_DEVELOP, S_USER_GRP, and many others...) are also important for security, and the user type for the connection (type SYSTEM is the recommended type, if the logon data is going to be saved) as well. You might also want the user to logon when the connection is opened, if they are running the test themselves..?
    Another aspect is how your target system is setup? If an invoced RFC call leaves it's RFC group (and is able to!), do you want to be able determine which RFC_NAME groups it can call? Or do you want to prevent it using client settings (see tha CATT / eCATT restrictions in SCC4 for your release) and system settings for the RFC check?
    Some alternate strategies are to accept the risk, use dedicated user IDs for the test cases and secure the access to this transaction (not only limited to STWB_WORK) in the source system (your SolMan). Though some security folks I know prefer securing the target, as a general security principle, you can make a "quick-win" by securing your SolMan security...
    Tricky topic. Good question!
    Cheers,
    Julius

  • Back Up Function Group

    Hi All,
    Can any one tell , how to take backup for the function group, consisting of
    Function Modules,
    Includes,
    Data Dictionary Objects
    Message Class attached to it
    Type Group
    Types
    All the objects are Custom Objects.
    Awaiting your reply.
    Thanks,
    Prasad

    Hi, Prasad
    Sorry, for late reply Please Visit this [SAPLink|Back Up Function Group; From here you can download SAPlink_install-0.1.4.zip and after Installing this to your system you can download the following Objects.
    ABAP Web Dynpro (requires SAPlink >= 0.1.3)
    Badi Implementations (Classical) by Raghavendra Kumar
    BI Infocube
    BI ODS
    BSP
    BSP Extensions
    DDic - Data dictionary objects
    Documentation - SE61
    Interfaces
    Function Groups
    Message Class
    PDF Forms
    PDF Interface (SFPI) by Raghavendra Kumar
    Report Variants
    Smartforms
    Standard Texts(DOCT)
    Transactions
    XSLT
    Please Reply if any Issue regarding Installing or Importing and Exporting
    Best Regards,
    Faisal

  • Where to set up a TYPE-POOL Declaration in a Function Group ?

    Hi,
    I ve got a Function Group.
    I set up a Function Module in the Function Group.
    I must use  TABLES I_T_SELECT TYPE SBIWA_T_SELECT.
    I get the error:
    Type pool SBIWA has not been declared
    Message no. FL031
    Diagnosis
    You used a type from type pool & in the interface of a function module.
    Procedure
    For the program to be syntactically correct, you must
    declare the type pool in the global data declaration of the
    function group using the 'TYPE-POOLS: &.' statement.
    Where / How do I set up a Type Pool in the global data declaration of the
    function group ?
    Where / what is the global data Declaration of the Function Group ?
    Thank You
    Best Wishes
    Martin

    Hello Martin,
    First off:
    TABLES I_T_SELECT TYPE SBIWA_T_SELECT.
    Correct me if I'm mistaken here, but tables is expecting a name of a DDIC structure. It is then creating a work area using that structure.
    If you have to declare an internal table, the correct code would be:
    DATA i_t_select TYPE TABLE OF sbiwa_t_select.
    Or:
    TABLES sbiwa_t_select.
    Regarding your questions:
    A global data declaration of a function group is just what it says, a point where you can declare your data usable for the whole function group.
    This is usually an Include.
    That said, you can fix your issue by creating an Include in your function group.
    Within that include you have to write:
    TYPE-POOLS: pool1, pool2, pool3.
    or, in case you only have one type pool:
    TYPE-POOLsbiwa
    After creating the include, you have to point your function module to that file.
    INCLUDE include_name.
    Kind regards,
    Michael

  • How to send in a constant into a function

    Hi!
    I would like to know if anybody knows how to send
    a constant into a HiQ-script function. The constant is sent into the HiQ-script from Labview. The problem is that I want to use the constant inside the function. To use the constant outside the function works fine but not inside the function.
    In the attached file I try to send the constant "ainput" into a Hiq-script, the error message I get says that the constant ("ainput") has not been assiged a value.
    Maybe there is a way to declare a input as a "global" variable so that it works both in the main program of the script and in functions inside the script......but how do you do that?
    Best regards Joakim F
    Attachments:
    test.vi ‏16 KB

    Joakim,
    You just need to change the scope of the variable ainput. Here is an example of how to do that:
    function multi(x)
    project result1, result2;
    result1 = x^3;
    result2 = x^4;
    return result1, result2;
    end function;
    Please see Chapter 5, Script Basics, and look in the Objeect Scope section for more details.
    Nick W.
    www.ni.com/ask

  • How to copy function group from one SAP system to another

    dear all,
    our company will set up a sub-company currently,and the sub-company want to copy some programs from our SAP system.
    how to pack and copy function group?
    pls help me,tks!

    Hello  Snow zeng,
    Will the 2 systems be connected ? I.e Same land scape ?
    If they are non connected systems, check this Wiki by Marcin [How to copy Repository Objects between non-connected SAP systems|http://wiki.sdn.sap.com/wiki/display/ABAP/HowtocopyRepositoryObjectsbetweennon-connectedSAPsystems]
    Regards

  • How to declare Dynamic table in Tables Parameters of a Function Module...

    Hi Gurus,
    I would like to Know how to declare a Dynamic table in Tables parameters of a Function Module.
    so that it should be able to hold any table data ....
    I have tried all possible ways of trying to assign fields-symbol like declarations which doesnt allow here ...
    plz Dont reply with the basics of creating dynamic internal tables, coz my case is not an Internal table it is FM table parameter declaration.....

    Hi,
    If you are requirement is to create a function module with tables parameter having a generic line type i.e. no specific line type
    just declare it with a name under Parameter name with out specifying the type.
    A reference function module with such parameter, i would quote is the standard GUI_UPLOAD/ GUI_DOWNLOAD where the parameters specified under TABLES are generic.
    If you want to process the values passed to these parameters in the source code of function module, field symbols would be a preferable option.
    Regards,
    Sharath Panuganti

  • How to create a transaction code for a function group with screen 100 as st

    Hello ,
    I have requirement where I need to create a function group and create screen 100, 200, 300 and include the function in the screens.
    Customer asked me to create a transaction with the screen 100 as the starting screen.
    Can you please let me know how to create a transaction code for a function group with screen 100 as starting screen.
    [ It is not a module pool program ].
    Thanks
    Prashanth.
    Moderator message - Please ask a specific question and do not ask the forum to do your work for you - post locked
    Edited by: Rob Burbank on Jun 2, 2009 11:49 AM

    Go to transaction SE93, enter a transaction code that you want and click on "create". Enter a text and select the "Transaction with Parameters" button. In the Default Values section, enter START_REPORT in the transaction field. Check the "skip initial screen" box. In the Name of Screen field section enter the following lines:
    Name of screen field:                               Value
    D_SREPOVARI-REPORTTYPE                RW
    D_SREPOVARI-REPORT                        ZPCA
    Save and transport accordingly.

  • 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 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

Maybe you are looking for

  • Control center not working on iPhone 6 plus when in landscape mode

    I has a iphone 5 before it , and there's no problem with the control center, now with this expensive iPhone 6 plus , the control is not working when the phone is in landscape mode , when the screen tapped repeatedly, I can only see the little tab of

  • How do I save a Pages doc to my desktop folders?

    Hi, I'm new to Mac and Pages and want to save a document to a folder on my desktop.  But I don't have Save As as an option in File.  I appear to be able to save only to iCloud or Documents essentially.  Any suggestions?

  • Export Indd to EPS/JPG and set the file name  for EPS/JPG file

    Hi,    When I export the INDD to JPG/EPS, I want to set the file name with pageNumber  for JPG/EPS files using javascript. For Example If I set the file name as EPSFile.eps, after exporting the indd(with 2 pages) to eps ,files are generating in the f

  • Id and Description

    I would like to show a drop down list with the description field. I'm trying to create a separation between the presentation and information and would like the class showing the drop down list to call my DBAO class and retrieve the information, both

  • Insert empty bars

    I'm trying to insert empty bars in the middle of a Logic Pro X project (version 10.1.1). In previous discussions on the same topic, but for older versions of Logic, users were advised to adjust their locators to the desired position and then click on