SAP FM_CO_ASS_INPUT_MAINTAIN_SD Function Module for Assignment: Maintenance dialog (SD order)









FM_CO_ASS_INPUT_MAINTAIN_SD is a standard fm co ass input maintain sd 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 (SD order) 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 sd FM, simply by entering the name FM_CO_ASS_INPUT_MAINTAIN_SD into the relevant SAP transaction such as SE37 or SE38.

Function Group: FRC4
Program Name: SAPLFRC4
Main Program: SAPLFRC4
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FM_CO_ASS_INPUT_MAINTAIN_SD 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_SD'"Assignment: Maintenance dialog                        (SD order)
EXPORTING
I_COBL = "
I_VBAK = "
I_VBAP = "
I_ACTYP = "
* I_FLG_INCOMPLETE_MESSAGE = 'X' "
* I_FLG_REASSIGN = "Checkbox

IMPORTING
E_EXIT = "
E_FLG_MISSING_BUDGET_PERIOD = "Checkbox
E_FLG_ASSIGNMENT_CHANGE = "
E_FLG_ASSIGNMENT_COMPLETE = "
E_FLG_MISSING_FUNDS_CENTER = "
E_FLG_MISSING_COMMITMENT_ITEM = "
E_FLG_MISSING_FUND = "
E_FLG_MISSING_FKBER = "Checkbox
E_FLG_MISSING_MEASURE = "Checkbox
E_FLG_MISSING_GRANT_NBR = "Checkbox
.




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_SD

I_COBL -

Data type: COBL
Optional: No
Call by Reference: No ( called with pass by value option)

I_VBAK -

Data type: VBAK
Optional: No
Call by Reference: No ( called with pass by value option)

I_VBAP -

Data type: VBAP
Optional: No
Call by Reference: No ( called with pass by value option)

I_ACTYP -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

I_FLG_INCOMPLETE_MESSAGE -

Data type: FMDY-XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_REASSIGN - Checkbox

Data type: FMDY-XFELD
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FM_CO_ASS_INPUT_MAINTAIN_SD

E_EXIT -

Data type: FMDY-XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

E_FLG_MISSING_BUDGET_PERIOD - Checkbox

Data type: FMDY-XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

E_FLG_ASSIGNMENT_CHANGE -

Data type: FMDY-XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

E_FLG_ASSIGNMENT_COMPLETE -

Data type: FMDY-XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

E_FLG_MISSING_FUNDS_CENTER -

Data type: FMDY-XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

E_FLG_MISSING_COMMITMENT_ITEM -

Data type: FMDY-XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

E_FLG_MISSING_FUND -

Data type: FMDY-XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

E_FLG_MISSING_FKBER - Checkbox

Data type: FMDY-XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

E_FLG_MISSING_MEASURE - Checkbox

Data type: FMDY-XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

E_FLG_MISSING_GRANT_NBR - Checkbox

Data type: FMDY-XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FM_CO_ASS_INPUT_MAINTAIN_SD 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, "   
lv_i_cobl  TYPE COBL, "   
lv_e_flg_missing_budget_period  TYPE FMDY-XFELD, "   
lv_i_vbak  TYPE VBAK, "   
lv_e_flg_assignment_change  TYPE FMDY-XFELD, "   
lv_i_vbap  TYPE VBAP, "   
lv_e_flg_assignment_complete  TYPE FMDY-XFELD, "   
lv_i_actyp  TYPE FMDY, "   
lv_e_flg_missing_funds_center  TYPE FMDY-XFELD, "   
lv_i_flg_incomplete_message  TYPE FMDY-XFELD, "   'X'
lv_e_flg_missing_commitment_item  TYPE FMDY-XFELD, "   
lv_i_flg_reassign  TYPE FMDY-XFELD, "   
lv_e_flg_missing_fund  TYPE FMDY-XFELD, "   
lv_e_flg_missing_fkber  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_SD'  "Assignment: Maintenance dialog (SD order)
    EXPORTING
         I_COBL = lv_i_cobl
         I_VBAK = lv_i_vbak
         I_VBAP = lv_i_vbap
         I_ACTYP = lv_i_actyp
         I_FLG_INCOMPLETE_MESSAGE = lv_i_flg_incomplete_message
         I_FLG_REASSIGN = lv_i_flg_reassign
    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_FKBER = lv_e_flg_missing_fkber
         E_FLG_MISSING_MEASURE = lv_e_flg_missing_measure
         E_FLG_MISSING_GRANT_NBR = lv_e_flg_missing_grant_nbr
. " FM_CO_ASS_INPUT_MAINTAIN_SD




ABAP code using 7.40 inline data declarations to call FM FM_CO_ASS_INPUT_MAINTAIN_SD

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_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_i_flg_incomplete_message).
DATA(ld_i_flg_incomplete_message) = 'X'.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_e_flg_missing_commitment_item).
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_reassign).
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_e_flg_missing_fund).
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_e_flg_missing_fkber).
 
"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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!