SAP FM_CO_ASS_INPUT_MAINTAIN Function Module for Assignment: Maintenance dialog (General)
FM_CO_ASS_INPUT_MAINTAIN is a standard fm co ass input maintain SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Assignment: Maintenance dialog (General) processing and below is the pattern details for this FM, 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 fm co ass input maintain FM, simply by entering the name FM_CO_ASS_INPUT_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.
Function Group: FRC4
Program Name: SAPLFRC4
Main Program: SAPLFRC4
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FM_CO_ASS_INPUT_MAINTAIN 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 'FM_CO_ASS_INPUT_MAINTAIN'"Assignment: Maintenance dialog (General).
EXPORTING
* I_CONTROL_FLAGS = "'D'isplay,'M'aintain,'B'ackground
* I_FLG_INCOMPLETE_MESSAGE = 'X' "Checkbox
IMPORTING
E_EXIT = "Checkbox
E_FLG_MISSING_BUDGET_PERIOD = "Checkbox
E_FLG_ASSIGNMENT_CHANGE = "Checkbox
E_FLG_ASSIGNMENT_COMPLETE = "Checkbox
E_FLG_MISSING_FUNDS_CENTER = "Checkbox
E_FLG_MISSING_COMMITMENT_ITEM = "Checkbox
E_FLG_MISSING_FUND = "Checkbox
E_FLG_MISSING_FAREA = "Checkbox
E_FLG_MISSING_MEASURE = "Checkbox
E_FLG_MISSING_GRANT_NBR = "Checkbox
TABLES
T_FMII1 = "Allocation of CO Acct Asst to FM Acct Asst
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLFRC4_001 Determine FM Account Assignment from Maintenance Order
EXIT_SAPLFRC4_002 Determine FM Account Assignment from SD Order
EXIT_SAPLFRC4_003 Determine FM Account Assignment from Network Activities
EXIT_SAPLFRC4_004 Determine FM Account Assignment from Networks
IMPORTING Parameters details for FM_CO_ASS_INPUT_MAINTAIN
I_CONTROL_FLAGS - 'D'isplay,'M'aintain,'B'ackground
Data type: FMCO_MAINTAIN_OBOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_INCOMPLETE_MESSAGE - Checkbox
Data type: FMDY-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FM_CO_ASS_INPUT_MAINTAIN
E_EXIT - Checkbox
Data type: FMDY-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_MISSING_BUDGET_PERIOD - Checkbox
Data type: FMDY-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_ASSIGNMENT_CHANGE - Checkbox
Data type: FMDY-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_ASSIGNMENT_COMPLETE - Checkbox
Data type: FMDY-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_MISSING_FUNDS_CENTER - Checkbox
Data type: FMDY-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_MISSING_COMMITMENT_ITEM - Checkbox
Data type: FMDY-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_MISSING_FUND - Checkbox
Data type: FMDY-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_MISSING_FAREA - Checkbox
Data type: FMDY-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_MISSING_MEASURE - Checkbox
Data type: FMDY-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_MISSING_GRANT_NBR - Checkbox
Data type: FMDY-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FM_CO_ASS_INPUT_MAINTAIN
T_FMII1 - Allocation of CO Acct Asst to FM Acct Asst
Data type: FMII1Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FM_CO_ASS_INPUT_MAINTAIN 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: | ||||
| lv_e_exit | TYPE FMDY-XFELD, " | |||
| lt_t_fmii1 | TYPE STANDARD TABLE OF FMII1, " | |||
| lv_i_control_flags | TYPE FMCO_MAINTAIN_OB, " | |||
| lv_e_flg_missing_budget_period | TYPE FMDY-XFELD, " | |||
| lv_e_flg_assignment_change | TYPE FMDY-XFELD, " | |||
| lv_i_flg_incomplete_message | TYPE FMDY-XFELD, " 'X' | |||
| lv_e_flg_assignment_complete | TYPE FMDY-XFELD, " | |||
| lv_e_flg_missing_funds_center | TYPE FMDY-XFELD, " | |||
| lv_e_flg_missing_commitment_item | TYPE FMDY-XFELD, " | |||
| lv_e_flg_missing_fund | TYPE FMDY-XFELD, " | |||
| lv_e_flg_missing_farea | TYPE FMDY-XFELD, " | |||
| lv_e_flg_missing_measure | TYPE FMDY-XFELD, " | |||
| lv_e_flg_missing_grant_nbr | TYPE FMDY-XFELD. " |
|   CALL FUNCTION 'FM_CO_ASS_INPUT_MAINTAIN' "Assignment: Maintenance dialog (General) |
| EXPORTING | ||
| I_CONTROL_FLAGS | = lv_i_control_flags | |
| I_FLG_INCOMPLETE_MESSAGE | = lv_i_flg_incomplete_message | |
| IMPORTING | ||
| E_EXIT | = lv_e_exit | |
| E_FLG_MISSING_BUDGET_PERIOD | = lv_e_flg_missing_budget_period | |
| E_FLG_ASSIGNMENT_CHANGE | = lv_e_flg_assignment_change | |
| E_FLG_ASSIGNMENT_COMPLETE | = lv_e_flg_assignment_complete | |
| E_FLG_MISSING_FUNDS_CENTER | = lv_e_flg_missing_funds_center | |
| E_FLG_MISSING_COMMITMENT_ITEM | = lv_e_flg_missing_commitment_item | |
| E_FLG_MISSING_FUND | = lv_e_flg_missing_fund | |
| E_FLG_MISSING_FAREA | = lv_e_flg_missing_farea | |
| E_FLG_MISSING_MEASURE | = lv_e_flg_missing_measure | |
| E_FLG_MISSING_GRANT_NBR | = lv_e_flg_missing_grant_nbr | |
| TABLES | ||
| T_FMII1 | = lt_t_fmii1 | |
| . " FM_CO_ASS_INPUT_MAINTAIN | ||
ABAP code using 7.40 inline data declarations to call FM FM_CO_ASS_INPUT_MAINTAIN
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 XFELD FROM FMDY INTO @DATA(ld_e_exit). | ||||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_e_flg_missing_budget_period). | ||||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_e_flg_assignment_change). | ||||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_incomplete_message). | ||||
| DATA(ld_i_flg_incomplete_message) | = 'X'. | |||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_e_flg_assignment_complete). | ||||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_e_flg_missing_funds_center). | ||||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_e_flg_missing_commitment_item). | ||||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_e_flg_missing_fund). | ||||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_e_flg_missing_farea). | ||||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_e_flg_missing_measure). | ||||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_e_flg_missing_grant_nbr). | ||||
Search for further information about these or an SAP related objects