10-14-2007 10:18 AM
10-14-2007 10:28 AM
Hi
You can't use the SUBMIT statement for the Function module/Fun group type (F Type) Programs
You can call them into the calling program using the command
CALL FUNCTIOn <name>
and pass the parameters import and export and take the output
Regards
Anji
10-14-2007 3:10 PM
Hi,
Only for Type 1(Executable programs),Submit can be used.Hence,you cannot use Submit for Type F(Functon Modules).
Refer to the content below for the explanation.
Programs that Cannot Be Run Directly
These programs cannot be started directly by a user. Instead, they contain processing blocks or other source code that can only be used by an application program that is already running. They are described in more detail in a later section.
Type F
Type F programs are not executable. They serve as a container for function modules. When you call a function module from an ABAP program, the entire main program is loaded into the internal session of the current program. Since type M programs contain mainly function modules, they are known as function groups. Function modules are a type of procedure. They are described in more detail in the Procedures section.
Type K
Type K programs are not executable. They are container programs for global classes, and are known as class definitions. Classes belong to ABAP Objects and are described in more detail in that section.
Type J
Type J programs are not executable. They are container programs for global interfaces, and are known as interface definitions. Interfaces belong to ABAP Objects and are described in more detail in that section.
Type S
Type S programs are not executable. They are container programs for subroutines that should only be called externally. When you call a subroutine from an ABAP program, the entire main program is loaded into the internal session of the current program. Since type S programs contain mainly subroutines, they are known as subroutine pools. Subroutines are a type of procedure. They are described in more detail in the Procedures section.
Type I
Type I programs cannot be run directly, and contain no callable processing blocks. They are used exclusively for modularizing ABAP source code, and are included in other programs. Include programs are described in more detail in the Source Code Modules section.
Function Modules
Function modules are for global modularization, that is, they are always called from a different program. Function modules contain functions that are used in the same form by many different programs. They are important in the R/3 System for encapsulating processing logic and making it reusable. Function modules must be defined in a function group, and can be called from any program.
For the procedure for calling the Function Modules,please refer to the lnk mentioned below:
http://help.sap.com/saphelp_46c/helpdata/en/e4/2adbd7449911d1949c0000e8353423/frameset.htm
In case you have any further clarifications,do let me know.
Regards,
Puneet Jhari.
Message was edited by:
Puneet Jhari