SAP PROCESS_FMOD Function Module for
PROCESS_FMOD is a standard process fmod SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for process fmod FM, simply by entering the name PROCESS_FMOD into the relevant SAP transaction such as SE37 or SE38.
Function Group: FS_BAPI2
Program Name: SAPLFS_BAPI2
Main Program: SAPLFS_BAPI2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PROCESS_FMOD pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'PROCESS_FMOD'".
EXPORTING
I_DTE_OBJAP_BUPA = "BDT: Application Object
I_DTE_AKTYP = "Activity Category
IV_BAPISTRUCNAME = "BP: Table name (database)
IS_DATA = "
IS_DATA_X = "
TABLES
CT_RETURN = "Return Parameters
IMPORTING Parameters details for PROCESS_FMOD
I_DTE_OBJAP_BUPA - BDT: Application Object
Data type: TBZ1-OBJAPOptional: No
Call by Reference: Yes
I_DTE_AKTYP - Activity Category
Data type: TBZ0K-AKTYPOptional: No
Call by Reference: Yes
IV_BAPISTRUCNAME - BP: Table name (database)
Data type: BU_DBTABOptional: No
Call by Reference: Yes
IS_DATA -
Data type: ANYOptional: No
Call by Reference: Yes
IS_DATA_X -
Data type: ANYOptional: No
Call by Reference: Yes
TABLES Parameters details for PROCESS_FMOD
CT_RETURN - Return Parameters
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PROCESS_FMOD Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_ct_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_i_dte_objap_bupa | TYPE TBZ1-OBJAP, " | |||
| lv_i_dte_aktyp | TYPE TBZ0K-AKTYP, " | |||
| lv_iv_bapistrucname | TYPE BU_DBTAB, " | |||
| lv_is_data | TYPE ANY, " | |||
| lv_is_data_x | TYPE ANY. " |
|   CALL FUNCTION 'PROCESS_FMOD' " |
| EXPORTING | ||
| I_DTE_OBJAP_BUPA | = lv_i_dte_objap_bupa | |
| I_DTE_AKTYP | = lv_i_dte_aktyp | |
| IV_BAPISTRUCNAME | = lv_iv_bapistrucname | |
| IS_DATA | = lv_is_data | |
| IS_DATA_X | = lv_is_data_x | |
| TABLES | ||
| CT_RETURN | = lt_ct_return | |
| . " PROCESS_FMOD | ||
ABAP code using 7.40 inline data declarations to call FM PROCESS_FMOD
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single OBJAP FROM TBZ1 INTO @DATA(ld_i_dte_objap_bupa). | ||||
| "SELECT single AKTYP FROM TBZ0K INTO @DATA(ld_i_dte_aktyp). | ||||
Search for further information about these or an SAP related objects