SAP FMBAS_ASSIGN_CEFFYEAR_BUD Function Module for Assign the YCE value according to BCS budgeting
FMBAS_ASSIGN_CEFFYEAR_BUD is a standard fmbas assign ceffyear bud SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Assign the YCE value according to BCS budgeting 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 fmbas assign ceffyear bud FM, simply by entering the name FMBAS_ASSIGN_CEFFYEAR_BUD into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMBAS_CEFFYEAR
Program Name: SAPLFMBAS_CEFFYEAR
Main Program: SAPLFMBAS_CEFFYEAR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FMBAS_ASSIGN_CEFFYEAR_BUD 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 'FMBAS_ASSIGN_CEFFYEAR_BUD'"Assign the YCE value according to BCS budgeting.
EXPORTING
I_FM_AREA = "Financial Management Area
I_PLDNR = "Posting Ledger Number
I_FISCYEAR = "Fiscal Year
I_CEFFYEAR = "Year of Cash Effectivity From Posting Data
* I_FLG_BYPASS_BUFFER = ' ' "Flag: By-Pass Internal Buffer
IMPORTING
E_CEFFYEAR_BUD = "Year of Cash Effectivity Corresponding to Budget Definition
E_BLDNR = "Budgeting Ledger Number
E_CEFFYEAR_BUD_MIN = "Year of Cash Effectivity: Minimum Value from Budgeting
E_CEFFYEAR_BUD_MAX = "Year of Cash Effectivity: Maximum Value from Budgeting
EXCEPTIONS
INCONSISTENT_CEFFYEAR = 1
IMPORTING Parameters details for FMBAS_ASSIGN_CEFFYEAR_BUD
I_FM_AREA - Financial Management Area
Data type: FIKRSOptional: No
Call by Reference: Yes
I_PLDNR - Posting Ledger Number
Data type: BUBAS_PLDNROptional: No
Call by Reference: Yes
I_FISCYEAR - Fiscal Year
Data type: GJAHROptional: No
Call by Reference: Yes
I_CEFFYEAR - Year of Cash Effectivity From Posting Data
Data type: GNJHROptional: No
Call by Reference: Yes
I_FLG_BYPASS_BUFFER - Flag: By-Pass Internal Buffer
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FMBAS_ASSIGN_CEFFYEAR_BUD
E_CEFFYEAR_BUD - Year of Cash Effectivity Corresponding to Budget Definition
Data type: FM_CEFFYEAR_BCSOptional: No
Call by Reference: Yes
E_BLDNR - Budgeting Ledger Number
Data type: BUBAS_BLDNROptional: No
Call by Reference: Yes
E_CEFFYEAR_BUD_MIN - Year of Cash Effectivity: Minimum Value from Budgeting
Data type: FM_CEFFYEAR_BCSOptional: No
Call by Reference: Yes
E_CEFFYEAR_BUD_MAX - Year of Cash Effectivity: Maximum Value from Budgeting
Data type: FM_CEFFYEAR_BCSOptional: No
Call by Reference: Yes
EXCEPTIONS details
INCONSISTENT_CEFFYEAR - Year of Cash Eff. Not Consistently Defined in BCS Budgeting and FM Updating
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FMBAS_ASSIGN_CEFFYEAR_BUD 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_i_fm_area | TYPE FIKRS, " | |||
| lv_e_ceffyear_bud | TYPE FM_CEFFYEAR_BCS, " | |||
| lv_inconsistent_ceffyear | TYPE FM_CEFFYEAR_BCS, " | |||
| lv_e_bldnr | TYPE BUBAS_BLDNR, " | |||
| lv_i_pldnr | TYPE BUBAS_PLDNR, " | |||
| lv_i_fiscyear | TYPE GJAHR, " | |||
| lv_e_ceffyear_bud_min | TYPE FM_CEFFYEAR_BCS, " | |||
| lv_i_ceffyear | TYPE GNJHR, " | |||
| lv_e_ceffyear_bud_max | TYPE FM_CEFFYEAR_BCS, " | |||
| lv_i_flg_bypass_buffer | TYPE XFELD. " ' ' |
|   CALL FUNCTION 'FMBAS_ASSIGN_CEFFYEAR_BUD' "Assign the YCE value according to BCS budgeting |
| EXPORTING | ||
| I_FM_AREA | = lv_i_fm_area | |
| I_PLDNR | = lv_i_pldnr | |
| I_FISCYEAR | = lv_i_fiscyear | |
| I_CEFFYEAR | = lv_i_ceffyear | |
| I_FLG_BYPASS_BUFFER | = lv_i_flg_bypass_buffer | |
| IMPORTING | ||
| E_CEFFYEAR_BUD | = lv_e_ceffyear_bud | |
| E_BLDNR | = lv_e_bldnr | |
| E_CEFFYEAR_BUD_MIN | = lv_e_ceffyear_bud_min | |
| E_CEFFYEAR_BUD_MAX | = lv_e_ceffyear_bud_max | |
| EXCEPTIONS | ||
| INCONSISTENT_CEFFYEAR = 1 | ||
| . " FMBAS_ASSIGN_CEFFYEAR_BUD | ||
ABAP code using 7.40 inline data declarations to call FM FMBAS_ASSIGN_CEFFYEAR_BUD
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.| DATA(ld_i_flg_bypass_buffer) | = ' '. | |||
Search for further information about these or an SAP related objects