SAP FM_CO_ASS_INPUT_GET_SD Function Module for Assignment: Read account assignment (SD order)
FM_CO_ASS_INPUT_GET_SD is a standard fm co ass input get 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: Read account assignment (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 get sd FM, simply by entering the name FM_CO_ASS_INPUT_GET_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_GET_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_GET_SD'"Assignment: Read account assignment (SD order).
EXPORTING
I_VBELN = "
I_POSNR = "
* I_KSTAR = "
* I_BUDAT = "
* I_BUKRS = "
* I_FIKRS = "Financial management area
* I_FLG_CHECK_COMPLETENESS = ' ' "
IMPORTING
E_FIPOS = "
E_FISTL = "
E_FONDS = "
E_FKBER = "
E_MEASURE = "Program in Funds Management
E_GRANT_NBR = "Grant
E_BUDGET_PERIOD = "FM: Budget Period
EXCEPTIONS
NO_CUSTOMIZING_FOUND = 1 ASSIGNMENT_INCOMPLETE = 2 NOT_ACTIVE = 3
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_GET_SD
I_VBELN -
Data type: IONRA-VBELNOptional: No
Call by Reference: No ( called with pass by value option)
I_POSNR -
Data type: IONRA-POSNROptional: No
Call by Reference: No ( called with pass by value option)
I_KSTAR -
Data type: FMZUOB-KSTAROptional: Yes
Call by Reference: No ( called with pass by value option)
I_BUDAT -
Data type: COBL-BUDATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BUKRS -
Data type: COBL-BUKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FIKRS - Financial management area
Data type: COBL-FIKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_CHECK_COMPLETENESS -
Data type: FMDY-XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FM_CO_ASS_INPUT_GET_SD
E_FIPOS -
Data type: FMZUOB-FIPOSOptional: No
Call by Reference: No ( called with pass by value option)
E_FISTL -
Data type: FMZUOB-FISTLOptional: No
Call by Reference: No ( called with pass by value option)
E_FONDS -
Data type: FMZUOB-FONDSOptional: No
Call by Reference: No ( called with pass by value option)
E_FKBER -
Data type: FMZUOB-FAREAOptional: No
Call by Reference: No ( called with pass by value option)
E_MEASURE - Program in Funds Management
Data type: FMZUOB-MEASUREOptional: No
Call by Reference: No ( called with pass by value option)
E_GRANT_NBR - Grant
Data type: FMZUOB-GRANT_NBROptional: No
Call by Reference: No ( called with pass by value option)
E_BUDGET_PERIOD - FM: Budget Period
Data type: FM_BUDGET_PERIODOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_CUSTOMIZING_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ASSIGNMENT_INCOMPLETE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_ACTIVE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FM_CO_ASS_INPUT_GET_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_fipos | TYPE FMZUOB-FIPOS, " | |||
| lv_i_vbeln | TYPE IONRA-VBELN, " | |||
| lv_no_customizing_found | TYPE IONRA, " | |||
| lv_e_fistl | TYPE FMZUOB-FISTL, " | |||
| lv_i_posnr | TYPE IONRA-POSNR, " | |||
| lv_assignment_incomplete | TYPE IONRA, " | |||
| lv_e_fonds | TYPE FMZUOB-FONDS, " | |||
| lv_i_kstar | TYPE FMZUOB-KSTAR, " | |||
| lv_not_active | TYPE FMZUOB, " | |||
| lv_e_fkber | TYPE FMZUOB-FAREA, " | |||
| lv_i_budat | TYPE COBL-BUDAT, " | |||
| lv_i_bukrs | TYPE COBL-BUKRS, " | |||
| lv_e_measure | TYPE FMZUOB-MEASURE, " | |||
| lv_i_fikrs | TYPE COBL-FIKRS, " | |||
| lv_e_grant_nbr | TYPE FMZUOB-GRANT_NBR, " | |||
| lv_e_budget_period | TYPE FM_BUDGET_PERIOD, " | |||
| lv_i_flg_check_completeness | TYPE FMDY-XFELD. " SPACE |
|   CALL FUNCTION 'FM_CO_ASS_INPUT_GET_SD' "Assignment: Read account assignment (SD order) |
| EXPORTING | ||
| I_VBELN | = lv_i_vbeln | |
| I_POSNR | = lv_i_posnr | |
| I_KSTAR | = lv_i_kstar | |
| I_BUDAT | = lv_i_budat | |
| I_BUKRS | = lv_i_bukrs | |
| I_FIKRS | = lv_i_fikrs | |
| I_FLG_CHECK_COMPLETENESS | = lv_i_flg_check_completeness | |
| IMPORTING | ||
| E_FIPOS | = lv_e_fipos | |
| E_FISTL | = lv_e_fistl | |
| E_FONDS | = lv_e_fonds | |
| E_FKBER | = lv_e_fkber | |
| E_MEASURE | = lv_e_measure | |
| E_GRANT_NBR | = lv_e_grant_nbr | |
| E_BUDGET_PERIOD | = lv_e_budget_period | |
| EXCEPTIONS | ||
| NO_CUSTOMIZING_FOUND = 1 | ||
| ASSIGNMENT_INCOMPLETE = 2 | ||
| NOT_ACTIVE = 3 | ||
| . " FM_CO_ASS_INPUT_GET_SD | ||
ABAP code using 7.40 inline data declarations to call FM FM_CO_ASS_INPUT_GET_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 FIPOS FROM FMZUOB INTO @DATA(ld_e_fipos). | ||||
| "SELECT single VBELN FROM IONRA INTO @DATA(ld_i_vbeln). | ||||
| "SELECT single FISTL FROM FMZUOB INTO @DATA(ld_e_fistl). | ||||
| "SELECT single POSNR FROM IONRA INTO @DATA(ld_i_posnr). | ||||
| "SELECT single FONDS FROM FMZUOB INTO @DATA(ld_e_fonds). | ||||
| "SELECT single KSTAR FROM FMZUOB INTO @DATA(ld_i_kstar). | ||||
| "SELECT single FAREA FROM FMZUOB INTO @DATA(ld_e_fkber). | ||||
| "SELECT single BUDAT FROM COBL INTO @DATA(ld_i_budat). | ||||
| "SELECT single BUKRS FROM COBL INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single MEASURE FROM FMZUOB INTO @DATA(ld_e_measure). | ||||
| "SELECT single FIKRS FROM COBL INTO @DATA(ld_i_fikrs). | ||||
| "SELECT single GRANT_NBR FROM FMZUOB INTO @DATA(ld_e_grant_nbr). | ||||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_check_completeness). | ||||
| DATA(ld_i_flg_check_completeness) | = ' '. | |||
Search for further information about these or an SAP related objects