Is it possible to define a fnc module inside my ABAP code.

If yes then please let me know how?
The main program of the function "xyz" does not begin
with "FUNCTION-POOL". The above error is always thrown, if i try to
define a function in my abap code.          
Currently I presume it is not possible to define FM here.
Can anyone tell me What function pools are? and the difference between function groups and function pools
Points will be rewarded.

Hi Vinod,
      I think the program the you are creating is a REPORT program. And you want to create a Function module for which as I told you need to create a Function Group. A Function Group is also a program similar to a REPORT program. So you cannot create a FUNCTION GROUP inside a REPORT program. What you need to do is goto SE80, there in the dropdown select Function Group and give a name to it and then using forward navigation you can create Function Group, Once you created the Function group you can create function module using Se37 or in SE80 itself. Then in your report program using CALL FUNCTION to call this function module you created.
Regards,
Sesh

Similar Messages

  • SPAD define pseudo printer to start ABAP code

    Hello,
    is it possible to define a pseudo printer which starts abap code ?
    During the ABAP code we want to do different things with the spool. Maybe convert to another format PDF/RTF, save to a destination,.....
    Or do you know an enhancement that we can use. My idea is to define a printer called SCRIPT. In the enhancement we check if this printer is used. If so we call a function module with our special code. At this time the spool request should already be written so we can use it for the different conversions.
    Thanks
    Arnfried

    Hi,
    Yes, it is possible to convert the SPOOL to PDF and we have it in our environment. The spool gets converted to PDF and get stored in physical location of server and we allowed the read only access to our functional folks.
    However, I am not sure whether they are using Pseudo Code.
    Please check below links
    Convert spool to pdf and send in email sometimes attachment duplicated.
    Convert spool to PDF and save it to the local drive
    Thanks,
    Sravanthi

  • Defining one application module for several DBs

    Hi,
    Is it possible to define one application module that serves two different DBs?
    In other words:
    If I need to use two DBs in my application, how many application module should I define?
    Thanks in advance

    Shalom Moran,
    So you only need to connect to one DB at time - but to different DBs at different times right?
    If we are talking about changing this at development time then simply simply change the configuration of your application module to connect to a different DB. (right click on the AM in JDeveloper and choose preferences). You can also change this in a file somewhere (don't remember the name of the top of my head).
    The other option is to have your AM use the application server's data-sources and you can change the parameters of the data-source in your application server configuration file.
    Hope this helps.
    Shay

  • Where to define remote function module name in RFC adapter

    R/2(IDOC) <->XI <-> R/3 (RFC)
    I can only define remote server information in RFC receiver adpater, but where to define the function module on remote server&#65311;

    Hi,
    the communication channel need the request in an specific xml format.
    Part of this format is the function modul name.
    when you use an imported rfc module you have automaticly the right xml format which the communication channel understand.
    the Communication channel need as root tag the function module name
    like:
    <ns0:Z_MY_FUNCTION xmlns:ns0="urn.sap-com:document:sap:rfc:functions">
    so it is with xslt mappings (for example) as well possible to call a rfc modules without importing it into your repository.
    regards,
    Robin

  • Is it possible to call Normal function Module from WD4A , Not RFCs

    Is it possible to call Normal function Module(FM) from WebDynPro for ABAP , Not RFCs

    There is no difference, unless you are specifically calling the RFC to connect to another system. If so, then you need to add the DESTINATION keyword to the function call and specify the destination name. This name must be defined in SM59.  But, if you are not going to another system, you can call the RFC the same way you call the regular function module.
    REgards,
    Rich Heilman

  • Is it possible to define a function in the MathScript Node

    Is it possible to define a function in the MathScript Node

    You can not define a function inside of a MathScript Node, but only because it isn't necessary. The way custom functions work in MathScript is that they are saved in .m files located in paths in the MathScript path list. When the MathScript compiler receives a function that it doesn't recognize, then it searches for it in the path list, and upon finding it, compiles and loads the function. You can specify these search paths manually by going to File>>MathScript Preferences from the MathScript Window or dynamically by using the path() command within a script.
    To answer your original question, if you would like to create custom functions dynamically within a VI, then you can simply build your custom functions using strings and then save them to an ASCII file with the extension .m. You could either save the file to a path already in the MathScript path list or you could dynamically specify the path by passing the path into a MathScript Node as a string and by using the path() command at the beginning of your script to set it.
    Kind Regards,
    E. Sulzer
    Applications Engineer
    National Instruments

  • Possible to define color of screen BEHIND documents?

    I'm using Adobe Acrobat X Pro.
    Is it possible to define the background color of the documents when they open in Adobe Reader? I'm not talking about the document pages themselves, but rather that crappy grey and/or ugly blue screen that always displays behind the document pages.
    Can I define this for the user?
    Any suggestions?

    Can I define this for the user?
    No.

  • Top Link 10.1.3 is it possible to define hierarchical queries in jdev

    Is it possible to define a hierarchical query in a named query in the mapping workbench (jdev 10.1.3) or we have to do it dynamically with the java api ?
    Any example is welcome.
    Best regards

    i didn't find the method that return the readallquery object i need from my named query
    i'm doing something wrong ?
    public class FlexTreeSetHierarchicalClause
      public static void setHierarchicalClause(oracle.toplink.descriptors.ClassDescriptor descriptor)
        // instantiante expression builder to build the expressions
        ExpressionBuilder expressionBuilder = new ExpressionBuilder();
        // Specifies a START WITH expression
        Expression startExpr = expressionBuilder.get("Flextree").get("flexitemI").equal(expressionBuilder.get("Flextreenode").get("flexitemparentI"));
        // Specifies a CONNECT BY expression
        Expression connectBy = expressionBuilder.get("Flextreenode").get("flexitemchildI").equal(expressionBuilder.get("Flextreenode").get("flexitemparentI"));
        //Specifies an ORDER SIBLINGS BY vector
        Vector order = new Vector();
        order.addElement(expressionBuilder.get("Flextreenode").get("flexitemchildI").get("flextext").get("label"));
        // get the readallobject to add the hierarchical clause
        DatabaseQuery dq = descriptor.getQueryManager().getQuery("getFlexTreeByName");
        ReadAllQuery raq = descriptor.getQueryManager().getReadAllQuery();
        // add the hierarchical clause
        raq.setHierarchicalQueryClause(startExpr, connectBy, order);

  • Query in an Access database executing a function defined in a module

    Hi all,
    I have an Access 2003 database in which some function is defined in a module.
    I also have a query defined which calls this function with no problem.
    Both the query and the function work well when the query is executed from Access.
    But when I try to execute the same query from ColdFusion, I get an error claiming that the function is not defined.
    Any Idea ?

    I believe that UDFs in Access can only be run inside of the Access runtime environment, and cannot be called through the JDBC/ODBC bridge that ColdFusion is using.
    -Carl V.

  • IIs it possible to retrive deleted Function Module

    Hi all,
    i just want to know is it possible to retrive deleted Function Module .
      the request is not released yet.

    Hi Sai,
    Its not possible. (Confirm by contacting ur Basis people, if they can help).
    But the following is valid only if your function module is(or was) a transportable object.
    Go to SE37, enter your function module name and create. Assign it to the same function group and have the same interface and description. Save it, activate it.
    Now go back to SE37, enter the function module name, in the menu, 'Utilities>Versions>Version Management'. Now you should see all your previous versions. Select the most recent past version. Do a retrieve and then activate it as the latest version.
    Not sure if it works. But still give it a try.
    Best Regards,
    Anjali
    Message was edited by: Anjali Devi

  • Is it Possible to define Levels within Levels in a Dimension

    Hi is it possible to define Levels within Levels in Dimension??

    Hi is it possible to define Levels within Levels in Dimension??

  • Is it possible to define a seperate number range for purchase requisitions

    Hi Experts,
    Is it possible to define a seperate number range for purchase requisitions that come from Forecast vs normal MRP requisitions so that our purchasing department can identify the origin of the document?
    Thanks
    for the thoughts
    Sreeni

    You'd need to figure out manually how forecast PR's are different from MRP PR's (the field from PR tables ) and then in the user exit I mentioned the program looks at the table T161 and field NUMKI, and if the PR getting created is from forecast change that NUMKI in the program to a different one else keep it as it is. If you're know abap programming it won't take long to figure out the logic else work with your developer to implement it.

  • Is It Possible To define a size of the Procedure Parametere?

    In Oracle Is It Possible To define a size of the Procedure Parametere?
    If i have the procedure like
    Test_sp(no int,name varchar2)
    Is it possible to define a size
    Test_sp(no int(5),name varchar2(255))
    Thanks
    Rangan S

    As Anthony said - no, not in the parameter signature of a procedure or a function. Which could have unexpected run-time errors as one could wrongly assume that using a "derived" type will allow this.
    The following example illustrates:
    SQL> create table datatype(
    2 varchar2_5 varchar2(5),
    3 number1 number(1)
    4 );
    Table created.
    SQL>
    SQL>
    SQL> create or replace procedure fooProc( s datatype.varchar2_5%TYPE, n datatype.number1%TYPE ) is
    2 s1 datatype.varchar2_5%TYPE;
    3 n1 datatype.number1%TYPE;
    4 begin
    5 begin
    6 DBMS_OUTPUT.put_line( 'len='||length(s)||' value='||s );
    7 DBMS_OUTPUT.put_line( 'value='||to_char(n) );
    8 exception when OTHERS then
    9 DBMS_OUTPUT.put_line( 'parameter display failed with error '||SQLERRM(SQLCODE) );
    10 end;
    11
    12 begin
    13 s1 := s;
    14 DBMS_OUTPUT.put_line( 'string parameter assignment succeeded' );
    15 exception when OTHERS then
    16 DBMS_OUTPUT.put_line( 'string assignment failed with error '||SQLERRM(SQLCODE) );
    17 end;
    18
    19 begin
    20 n1 := n;
    21 DBMS_OUTPUT.put_line( 'number parameter assignment succeeded' );
    22 exception when OTHERS then
    23 DBMS_OUTPUT.put_line( 'number assighment failed with error '||SQLERRM(SQLCODE) );
    24 end;
    25 end;
    26 /
    Procedure created.
    SQL>
    SQL> exec fooProc( 'test1', 1 );
    len=5 value=test1
    value=1
    string parameter assignment succeeded
    number parameter assignment succeeded
    PL/SQL procedure successfully completed.
    SQL>
    SQL> exec fooProc( 'this should fail', 1 );
    len=16 value=this should fail
    value=1
    string assignment failed with error ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    number parameter assignment succeeded
    PL/SQL procedure successfully completed.
    SQL>
    SQL> exec fooProc( 'test', 1234 );
    len=4 value=test
    value=1234
    string parameter assignment succeeded
    number parameter assignment succeeded
    PL/SQL procedure successfully completed.
    SQL>
    Note that only the string assignment fails. The string parameter works fine. And there is no impact at all on the number side, despite seemingly constraining it to a single digit.

  • Is it possible to create a Functional module dynamically?

    Hello All,
    Does any one know whether is it possible to create a FM dynamically and write some code in it?
    Regards,
    Lisa.

    Hi,
    Yes it is possible.
    Use this FM to create a function module on the fly programatically.
    RS_FUNCTIONMODULE_INSERT.
    Here is an example
    Here an example how to call it:
    call function 'RS_FUNCTIONMODULE_INSERT'                                                   
      exporting                                                                               
    funcname                      = '/TEST40P/FB_TEST_EVE99'                               
        function_pool                 = 'CRAS1'                                                
    *   INTERFACE_GLOBAL              = ' '                                                    
    *   REMOTE_CALL                   = ' '                                                    
        short_text                    = 'TEST Anlage FB'                                       
       suppress_corr_check           = ' '                -----------------> means with transport popup                                                 
       update_task                   = '1'                                                     
    *   corrnum                       = 'B20K8A0V3F'                                           
       namespace                     = '/TEST40P/'                                             
    *   suppress_language_check       = 'X'                                                    
    *   AUTHORITY_CHECK               = 'X'                                                    
    *    save_active                   = ' '                                                   
        new_source                    = it_report[]                                            
    * IMPORTING                                                                               
    *   FUNCTION_INCLUDE              =                                                        
    *   CORRNUM_E                     =                                                        
    tables                                                                               
    import_parameter              = if_import                                               
       export_parameter              = if_export                                               
       tables_parameter              = if_tables                                               
       changing_parameter            = if_change                                               
       exception_list                = if_except                                               
       parameter_docu                = if_docu_tab                                             
    *   SOURCE                        =                                                        
    exceptions                                                                               
    double_task                   = 1                                                       
       error_message                 = 2                                                       
       function_already_exists       = 3                                                       
       invalid_function_pool         = 4                                                       
       invalid_name                  = 5                                                       
       too_many_functions            = 6                                                       
       no_modify_permission          = 7                                                       
       no_show_permission            = 8                                                       
       enqueue_system_failure        = 9                                                       
       canceled_in_corr              = 10                                                      
       others                        = 11.
    Regards,
    Sesh

  • [svn:cairngorm3:] 15301: - Fixing a bug in the case where a Message is dispatched without a ModuleId defined to a Module type which is not yet instantiated .

    Revision: 15301
    Revision: 15301
    Author:   [email protected]
    Date:     2010-04-09 03:30:11 -0700 (Fri, 09 Apr 2010)
    Log Message:
    - Fixing a bug in the case where a Message is dispatched without a ModuleId defined to a Module type which is not yet instantiated.
    - Updating the sample to show this use-case.
    Modified Paths:
        cairngorm3/trunk/libraries/Module/src/com/adobe/cairngorm/module/ModuleMessageDispatcher. as
        cairngorm3/trunk/libraries/ModuleTest/src/CairngormModuleLibSample.mxml

    Hello,
    The error
    2. How to get rid of "ORA-06512: at"FLOWS_030100.WWV_FLOW_RENDER_QUERY", line 636"?you can also find in the new features application. I wrote a post about that some days ago:
    Bug in New Features Application?
    Had some trouble to get the PDF print working, too. Printing works fine for standard reports, but for interactive report I am not able to get it working. Sometimes I am getting only blank pages (and no file) and sometimes I am getting PDF's which just contain an internal 500 error. Some details are in this thread: Print Interactive Reports does not work
    Maybe that's related to the error of kkkannan74.
    Regards, Tine.

Maybe you are looking for

  • What is the right 1G RAM upgrade for Aluminium G4 1,25 GHzPowerBook ?

    After 6 months of struggle I am ready to throw my PB into trash bin and a buy a powerPC that works. I tried to upgrade RAM from 1G to 1,5G - the older RAMs being 2x512MB Kingston copies and working well but getting slow for multitasking (photo editin

  • Fonts in AI

    I cannot get a font to change from regular to italics. Any help. I have tried finding the Italics font file online but I can't. The font is SavingsBond. And I can get it to work if I use the SavingsBond regular but I need it to be italicized and that

  • Drop down list in Adobe forms

    Hi All, I need to provide a drop down list in the Adobe form. I am calling this form from an SE38 program. I have selected the 'Value Help drop down list' element. How do i pass the value or bind the values to this element. The values for the drop do

  • 64-bit Vista Drivers for PCI Serial device

    I've just got an T500 and put Vista 64-bit on it.  I've found (I think) all the drivers for it that it needs, except that there are 2 drivers in the Device Manager that show as not installed/needing update they are: Under Other Devices  - PCI Serial

  • Creation of notification via BAPI

    Hi Guys, I'm working in ECC 6.0 version. i have found a BAPI 'BAPI_ALM_NOTIF_CREATE' to create a notification. When i'm creating the notification through IW21 by passing notification type and functional location, i'm able to create a notification But