SAP FM_CO_ASSIGNMENT_READ_POST Function Module for Lesen der Zuordnung CO-Kontierung zu FM-Kontierung beim Buchen









FM_CO_ASSIGNMENT_READ_POST is a standard fm co assignment read post SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Lesen der Zuordnung CO-Kontierung zu FM-Kontierung beim Buchen 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 assignment read post FM, simply by entering the name FM_CO_ASSIGNMENT_READ_POST into the relevant SAP transaction such as SE37 or SE38.

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



Function FM_CO_ASSIGNMENT_READ_POST 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_ASSIGNMENT_READ_POST'"Lesen der Zuordnung CO-Kontierung zu FM-Kontierung beim Buchen
EXPORTING
I_COBL = "
* I_CHECK_YEAR = "
* I_NO_COMMITMENT_ITEM = "
* I_NO_FUNDS_CENTER = "
* I_NO_FUND = "
* I_DATUM = "

IMPORTING
E_COBL = "
E_CO_OBJNR_USED = "

EXCEPTIONS
NO_COMMITMENT_ITEM_ASSIGNED = 1 NO_FUNDS_CENTER_ASSIGNED = 2 NO_FUND_ASSIGNED = 3
.



IMPORTING Parameters details for FM_CO_ASSIGNMENT_READ_POST

I_COBL -

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

I_CHECK_YEAR -

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

I_NO_COMMITMENT_ITEM -

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

I_NO_FUNDS_CENTER -

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

I_NO_FUND -

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

I_DATUM -

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

EXPORTING Parameters details for FM_CO_ASSIGNMENT_READ_POST

E_COBL -

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

E_CO_OBJNR_USED -

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

EXCEPTIONS details

NO_COMMITMENT_ITEM_ASSIGNED -

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

NO_FUNDS_CENTER_ASSIGNED -

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

NO_FUND_ASSIGNED -

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

Copy and paste ABAP code example for FM_CO_ASSIGNMENT_READ_POST 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_cobl  TYPE COBL, "   
lv_i_cobl  TYPE COBL, "   
lv_no_commitment_item_assigned  TYPE COBL, "   
lv_i_check_year  TYPE COBL-GJAHR, "   
lv_e_co_objnr_used  TYPE FMIFIIT-OBJNRZ, "   
lv_no_funds_center_assigned  TYPE FMIFIIT, "   
lv_no_fund_assigned  TYPE FMIFIIT, "   
lv_i_no_commitment_item  TYPE FMIFIIT, "   
lv_i_no_funds_center  TYPE FMIFIIT, "   
lv_i_no_fund  TYPE FMIFIIT, "   
lv_i_datum  TYPE SY-DATUM. "   

  CALL FUNCTION 'FM_CO_ASSIGNMENT_READ_POST'  "Lesen der Zuordnung CO-Kontierung zu FM-Kontierung beim Buchen
    EXPORTING
         I_COBL = lv_i_cobl
         I_CHECK_YEAR = lv_i_check_year
         I_NO_COMMITMENT_ITEM = lv_i_no_commitment_item
         I_NO_FUNDS_CENTER = lv_i_no_funds_center
         I_NO_FUND = lv_i_no_fund
         I_DATUM = lv_i_datum
    IMPORTING
         E_COBL = lv_e_cobl
         E_CO_OBJNR_USED = lv_e_co_objnr_used
    EXCEPTIONS
        NO_COMMITMENT_ITEM_ASSIGNED = 1
        NO_FUNDS_CENTER_ASSIGNED = 2
        NO_FUND_ASSIGNED = 3
. " FM_CO_ASSIGNMENT_READ_POST




ABAP code using 7.40 inline data declarations to call FM FM_CO_ASSIGNMENT_READ_POST

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 GJAHR FROM COBL INTO @DATA(ld_i_check_year).
 
"SELECT single OBJNRZ FROM FMIFIIT INTO @DATA(ld_e_co_objnr_used).
 
 
 
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_datum).
 


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!