What is meany By Module Pools and Functional Pools
Hi gurus,
I want to know what are module pools and functional pool. If any of you have some information on it, I would be glad if you can share it with me
Regards
Jason
Hi Jason
Module pool is a type of program that contains steps of screens and can only be executed with a transaction code or menu function.
function-pool is the introductory statement for programs of type Function Group, these are programs in which you can define function modules.
Take a look at this:
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/21/682f8b277e11d2954e0000e8353423/frameset.htm">Program Types and Execution</a>
I hope it helps.
Similar Messages
-
What is the difference between subroutine and function module?
What is the difference between subroutine and function module?
Hi,
they can both return values.
FMs are mainly used when a routine is to be performed by many programs.
Subroutines (forms) are generally only executed within one program.
You can perform routines from other programs, but it's not often done.
both forms and FMs are reusable modularization units.
To distinguish we generally say that forms are used for internal modularization and
FMs are used for external modularization.
To decide on which to implement, consider whether you need the content to be used just for a limited program
or wheteher it can be called from many independent programs.
For the first purpose it is better to implement a form whereas for the second we implement an FM.
However, ABAP does not isolate the usage context.
That is; you can call a form from another program within whose code the form is not actually implemented.
However, this requires attention since the form may utilize global variables.
The same issue holds for FMs.
FMs are encapsulated in function groups and function groups may have global variables that can be globally
used by all FMs inside it.
Thanks,
Reward If Helpful. -
We installed a new system and imported the syncbo definitions to this new system.
After the import and generation of all T01 SyncBOs we get an error. E.g. for MAM25_016:
Function modules from the function pool Z_MEREP_GEN_T01_MAM25_016 contain syntax errors
Message no. MEREP_00530
After investigation the following syntax error is shown:
Source code LZ_MEREP_GEN_T01_MAM25_016U04 Line 641
The FORM "MAM25_016_CONV_NAME" does not exist, but there is a FORM with the similar name "MAM25_016_I_CONVERSION".
"MAM25_016_I_CONVERSION".
We are already using three systems D -> Q -> P. The export/import of files between these systems work okay. But not with the new system. All are on NW04 SPS 18. In the other systems the form is available.
Does someone have an idea how to solve this?
Thanks in advance,
Benjamin de RijkeHello Rahul / Karthick,
Thanks for the tip, I already reimported these with no effect. Next to this I deleted the function modules for a Z-syncbo (our own developed one). But this didn't help as well. The MAM-SyncBO function group can not be deleted because the system is not a developement system. We are not allowed to develop things in this environment.
I have the feeling that it has something to do with the initial setup of this system. All the others were first on SPS15 were we developed the SyncBOs. At a certain time we updated the systems to SPS18 and developed further. No issues so far regarding the import / export of the files from D to Q and P.
Now we initial installed a new system on SPS18 and on this one the generation failes with the mentioned syntax error.
Kind regards,
Benjamin -
Difference between interface pool and class pool
Hi,
Can any body tell me the difference between Interface pool and Class pool.
thank you in advance.
regardsHi,
Class and Interface Pools
This section discusses the structure and special features of class and interface pools for global classes.
Global Classes and Interfaces
Classes and interfaces are object types. You can define them either globally in the Repository or locally in an ABAP program. If you define classes and interfaces globally, special ABAP programs called class pools or interface pools of type K or J serve as containers for the respective classes and interfaces. Each class or interface pool contains the definition of a single class or interface. The programs are automatically generated by the Class Builder when you create a class or interface.
A class pool is comparable to a module pool or function group. It contains both declarative and executable ABAP statements, but cannot be started on its own. The runtime system can create runtime instances (objects) through a request using the CREATE OBJECT statement. These objects execute the statements of the class pool.
Interface pools do not contain any executable statements. Instead, they are used as containers for interface definitions. When you implement an interface in a class, the interface definition is implicitly included in the class definition.
Structure of a Class Pool
Class pools are structured as follows:
Class pools contain a definition part for type declarations, and the declaration and implementation parts of the class.
Differences From Other ABAP Programs
Class pools are different from other ABAP programs for the following reasons:
· ABAP programs such as executable programs, module pools, or function modules, usually have a declaration part in which the global data for the program is defined. This data is visible in all of the processing blocks in the program. Class pools, on the other hand, have a definition part in which you can define data and object types, but no data objects or field symbols. The types that you define in a class pool are only visible in the implementation part of the global class.
· The only processing blocks that you can use are the declaration part and implementation part of the global class. The implementation part may only implement the methods declared in the global class. You cannot use any of the other ABAP processing blocks (dialog modules, event blocks, subroutines, function modules).
· The processing blocks of class pools are not controlled by the ABAP runtime environment. No events occur, and you cannot call any dialog modules or procedures. Class pools serve exclusively for class programming. You can only access the data and functions of a class using its interface.
· Since events and dialog modules are not permitted in classes, you cannot process screens in classes. You cannot program lists and selection screens in classes, since they cannot react to the appropriate events. It is intended to make screens available in classes. Instead of dialog modules, it will be possible to call methods of the class from the screen flow logic.
Local Classes in Class Pools
The classes and interfaces that you define in the definition part of a class pool are not visible externally. Within the class pool, they have a similar function to local classes and interfaces in other ABAP programs. Local classes can only be instantiated in the methods of the global class. Since subroutines are not allowed in class pools, local classes are the only possible modularization unit in global classes. Local classes have roughly the same function for global classes as subroutines in function groups, but with the significant exception that they are not visible externally
Reward points if useful....
Regards
AK -
Data source for application using both pooled and non pooled connections
Hi guys.
I am integrating Oracle's connection pooling into an existing application that had formerly used dbConnectionBroker. It looks like this task should be quite straightforward. However, for consistency, I would also like to replace other Connection logic within the application to use Oracle classes. This will involve using OracleDataSource to obtain a Connection object. ( without pooling ).
So in this case, the application will use both pooled and non pooled Oracle connections. They will be connecting to the same database. The question I have is in regard to the use of data-sources.xml.
Are there any special considerations for the required attribute values within data-sources.xml under this scenario ?
Help will be greatly appreciated.
Regards.
Steve.Hi Steve -
It should be feasible for you to define a single datasource using multiple location entries to indicate what sort of pooling behaviour you wish to use.
If you lookup and use the "location" attribute, you will receive a javax.sql.DataSource object which will not provide connection pooling.
If you lookup and use the "ejb-location" attribute you will receive a DataSource object that will support connection pooling operations.
Note that this is using the emulated datasource approach, and transaction support is limited to a single resource (one database) for these datasources - you won't get 2PC support for transactions.
If you need a transaction to span two separate resources (ie two databases in same tx) then you will need to use the non-emulated datasource approach.
There is a chapter in the J2EE Services Guide which describes the datasource model we have with OC4J. This might provide you with some more useful information. See Chapter 11 - http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/a97690/ds3.htm#1004903
cheers
-steve- -
Hi,
Had some questions, would appreciate if somebody could help answer.
1) If I want to do a BDC on TCode T1 and if BDC is successful on T1 then do a BDC on Tcode T2 (all in the same program), Can we do a BDC using session method on multiple transactions in one session?
2) Can you call a screen from a function pool?
Thanks in advance.
MickHi Venkat,
I do not have a real life scenario, but this question came to mind when I was trying something.
But hypothetically consider a scenario where I create Purchase Orders using BDC and then if the BDC is successful then immediately do another BDC for Goods Receipt. This could also be part of some cleanup exercise where I want to do BDC's on 2 TCodes, the 2nd one only if the 1st one is successful.
Regards,
Mick -
What is the difference between procedure and function?
Hi,
i want to know the difference between procedure and function.
Also, i want to know types(if they exists) of procedures and functions .
RegardsAlso, please try and use the SEARCH functionality offered by the forum, it's always possible someone has asked the question before you.
Functions vs Stored Procedures
Is one such instance. -
What is the roles of technical and functional consultants in ESS/MSS area?
Gurus,
What is the roles of technical consultants in ESS/MSS area?
What is the roles of functional consultants in ESS/MSS area?
Please help me see the differences.
Thanks,Hi Thaman,
Responsibility of functional consultant in ESS/MSS:- Functional configuration under SPRO > Employee self service and manager self service, then preparation of Functional specification design (FSD) if any deviation from standard SAP, Unit test plan preparation and all functionailty testing
Responsibility of Technical consultant:- Preparation of Technical specification design document (TSD), activation of work flow and creation of workflow if additional is required. Creatio of form like vacancy requisition form, new position creation form etc.
Also some kind of technical configuration is there in SPRO for workflow and form
Regards,
Purnima -
What is a function pool?
What is a function pool? How is it related to function group?
HI,
The introductory statement FUNCTION-POOL declares a program in which you can define function modules. At runtime, it has the effect that u2013 during program loading u2013 a new program group with its own screens and its own shared data areas is created in the internal session of the calling program. For this reason, function groups must always begin with a FUNCTION-POOL statement. The statement FUNCTION-POOL is usually generated by the Function Builder. Other programs (executable programs, module pools, and subroutine pools) should not begin with a FUNCTION-POOLstatement, since they would then not share common data areas with the caller when loaded by an external subroutine call. However, in exceptional cases, you can force processing of your own screens for externally called subroutines if you introduce executable programs or module pools with FUNCTION-POOL. As in the REPORT and PROGRAMstatements, you can specify the message class for the program and the standard list formatting options of the program using FUNCTION-POOL.
In simple Term,,,,
The FUNCTION-POOL statement is equivalent to the REPORT statement and introduces a function group.
A function group contains function modules introduced by the FUNCTION statement and called
with the CALL FUNCTION statement.
Hope this is useful for u... -
Diff b/w BAPI and Function Module.
What is the difference between BAPI and Function Module....
By Interface programming do we mean posting data thru BAPI,BDC....Hi Alex,
BAPI: Standard Interface in the R/3 system that allows the system to communicate with components of other business suites.
FM: These are the procedures that are defined in the Function Groups and can be called from any ABAP Program. FM allow you to encapsulate and reuse global functions int he R/3 system.
The main basic difference between BAPI and FM are
1) All BAPIs are FM but not all FMs are BAPIs
2) BAPIs are remote enabled
3) BAPIs interface will not have a changing and exceptions. They can not be used to have use dialog.
Interface programs can post data to SAP either through a BDC, BAPI, IDOC etc. It depends on the type of requirement.
Hope this solves your question.
Enjoy SAP
Rajasekhar -
RE:Idoc type and function module
HI All
What are the generic IDoc types and function modules used for the following objects ??We are on SAP R/3 4.7.
Invoice Release (inbound)
Payments (outbound)
Purchase Orders (outbound)
Goods Receipts (outbound)
Cost Centers (outbound)
GL Codes (outbound)
Internal Orders (outbound)
WBS (outbound)
Materials (outbound)
Invoices (inbound)
Invoices Blocked (outbbound)
And How do i judge which IDOC types and function module fit my requirement( I mean what are the things i have to keep in mind while choosing idoc types and function modules)?
Any help will be very much appreciated
Thank you
SteveHi Steve...
You can find the IDOC types in Tcode WE30 , WE60.
Invoice Release (inbound)
INVOIC03
Payments (outbound)
Purchase Orders (outbound)
ORDERS03
Goods Receipts (outbound)
ACC_GOODS_MOVEMENT02
Cost Centers (outbound)
GL Codes (outbound)
Internal Orders (outbound)
WBS (outbound)
Materials (outbound)
MATMAS04
Invoices (inbound)
ACC_INVOICE_RECEIPT03
Invoices Blocked (outbbound)
<b>REWARD IF HELPFUL.</b> -
Hi exprts,
I have copied BSPL function pool and copied all Function Modules from it and converted them to Z Function Modules.
but while Calling this z function from my program i am not able to get my final output table filled.
Does anyone having idea what is the procedure for coping the function pool.
Thanks,
Pratik VoraHi,
Make a copy using SE80, enter the function group name and hit enter, now from the tree structure, you will righ-click on the function group name and choose copy. It will ask you what function modules you want to copy, just copy all modify any includes if neccessary.
Regards,
Omkaram. -
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
NaniHi,
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 -
I am not much clear on "Create Operator" feature. It is interally bind the function.
So, what is difference b/t Operator and Function? Why we need to create operator becuase we can do same thing with Function.
Please clarify on same.
KG
:- Learn Together, Grow Together -:The "Create Operator" feature will allow you to extend the list of built-in relational operators (for example, +, -, /, *, LIKE, AND, OR) with domain specific operators (for example, Contains, Within_Distance, Similar).
-
Difference between procedure and function
hi
please give solution to below discussion:
Interviewer: What is the difference between Procedure and Function ?
Myself: Procedure may or may not return a value and can return multiple values and Function must return a value.
Interviewer : Can function return multiple values ?
myself: Yes, It can return multiple values.
Interviewer: Then, there is no need to use procedures any more, according to your previous answer (function can return multiple values) "we can do all the things by using procedures by using functions". Then why there is differentiation between procedure and function ?
myself : no reply (simply frustated at this question)
The above is conversation between me and interviewer.
Please suggest me what would be my reply to above topic.
In one book i find that using functions we can return multiple values but it is poor programming practice.
why this is a programming practice ?
please suggest me solution
thanks in advance
prasanth as.Another difference is function must return something. There is no such restriction on procedure.In fact, a procedure CANNOT contain an expression in its RETURN statement.
SQL> create or replace procedure test_return is
2 begin
3 return(10) ;
4 end ;
5 /
Warning: Procedure created with compilation errors.
SQL> show errors
Errors for PROCEDURE TEST_RETURN:
LINE/COL ERROR
3/3 PLS-00372: In a procedure, RETURN statement cannot contain an
expression
3/3 PL/SQL: Statement ignored
SQL>And, a procedure cannot be called as part of a expression (it must be a function).
SQL> create or replace procedure test_return is
2 begin
3 return ;
4 end ;
5 /
Procedure created.
SQL> variable x number ;
SQL> exec :x := test_return ;
BEGIN :x := test_return ; END;
ERROR at line 1:
ORA-06550: line 1, column 13:
PLS-00222: no function with name 'TEST_RETURN' exists in this scope
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
SQL>
Maybe you are looking for
-
How can I change oval shape applet to (plot)
Hi this is not my code so, the orignal code is freeware to www.neuralsemantics.com and is Copyright 1989 by Rich Gopstein and Harris Corporation. The site allows permission to play with the code or ammend it. how could I modify the applet to display
-
Mozilla crashed presumably because my AVG PC tuneup utility wanted to come online. Mozilla has been "crashing' much more frequently now, but would be restorable to what I was doing in the past. This has really upset me. Yahoo mail typically saves wha
-
USB Bose Audio Doesn't Work & DVD/CD Ejects during startup 10.6.1
Anyone having this problem on the Mac Pro 8 Core USB Bose Audio Doesn't Work, have to pull USB plug out and put it back in for audio to be recognised & DVD/CD Ejects during startup >>> 10.6.1
-
How to password protect a page or a file
Hello All, Please help me, Can you please let me know how can i Password Protect a page (or) a file which i have created using the Oracle Portal, i am working on 10.1.2 Version. I would be thankful to you if you can provide me any sample URL's Regard
-
I have a similar problem where I have portal installed on a machine called portal.mgmt, which is on a network that users cannot access. Connection to portal.mgmt can only be made from our local network via a machine called install.mgmt. In a sense I