SAP FC_ACCOUNT_TO_ITEM_MAP Function Module for









FC_ACCOUNT_TO_ITEM_MAP is a standard fc account to item map SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fc account to item map FM, simply by entering the name FC_ACCOUNT_TO_ITEM_MAP into the relevant SAP transaction such as SE37 or SE38.

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



Function FC_ACCOUNT_TO_ITEM_MAP 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 'FC_ACCOUNT_TO_ITEM_MAP'"
EXPORTING
* I_BUKRS = "Company Code
* I_KTOPL = "Trans. chart of accts
I_SAKNR = "
* I_ALTKT = "Group Account
I_ITCLG = "
* I_FLG_SKAMAP = "
* I_FLG_CHK_EXIST = "
* I_FLG_TFIN200_CHK = CON_X "

IMPORTING
E_ITEM = "

CHANGING
* C_A_T001IN = "
* C_A_T004IN = "
* C_A_SKA1 = "
* C_A_TFIN200 = "
* C_A_TFIN201 = "
* C_A_ITEM_PROP = "

TABLES
* I_T_T001IN = "
I_T_T004IN = "
* I_T_SKA1 = "
* I_T_TFIN200 = "
* I_T_TFIN201 = "Map Secondary Cost Elements
* I_T_ITEM_PROP = "

EXCEPTIONS
BUKRS_INVALID = 1 NO_KTOPL_ASSIGNED = 2 NO_ASSIGNMENT_KTOPL_ITCLG = 3 KTOPL_INVALID = 4 NO_GROUP_ACCOUNT = 5 ITEM_INVALID = 6 NEITHER_KTOPL_NOR_BUKRS = 7
.




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_SAPLFCIN_100 Integration: User Exit for Identifier and Texts from Cons Org Units
EXIT_SAPLFCIN_110 Integration: User Exit for 'Parents' of Cons Org Units
EXIT_SAPLFCIN_200 Integration: User Exit for Definition of the Data Stream on Rollup
EXIT_SAPLFCIN_210 Integration: Output Fields of Incorrect Data Records in Rollup
EXIT_SAPLFCIN_220 Integration: Sender Fields for Organizational Units on Rollup
EXIT_SAPLFCIN_230 Integration: Sender Fields for Subitems on Rollup
EXIT_SAPLFCIN_240 Integration: Edit from Value Fields before Update with Rollup
EXIT_SAPLFCIN_250 Integration: Get Custom Subassignments

IMPORTING Parameters details for FC_ACCOUNT_TO_ITEM_MAP

I_BUKRS - Company Code

Data type: FCIN_BUKRS
Optional: Yes
Call by Reference: Yes

I_KTOPL - Trans. chart of accts

Data type: FCIN_KTOPL
Optional: Yes
Call by Reference: Yes

I_SAKNR -

Data type: FCIN_SAKNR
Optional: No
Call by Reference: Yes

I_ALTKT - Group Account

Data type: FCIN_SAKNR
Optional: Yes
Call by Reference: Yes

I_ITCLG -

Data type: FC_ITCLG
Optional: No
Call by Reference: Yes

I_FLG_SKAMAP -

Data type: FC_FLG
Optional: Yes
Call by Reference: Yes

I_FLG_CHK_EXIST -

Data type: FC_FLG
Optional: Yes
Call by Reference: Yes

I_FLG_TFIN200_CHK -

Data type: FC_FLG
Default: CON_X
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FC_ACCOUNT_TO_ITEM_MAP

E_ITEM -

Data type: FC_ITEM
Optional: No
Call by Reference: Yes

CHANGING Parameters details for FC_ACCOUNT_TO_ITEM_MAP

C_A_T001IN -

Data type: FCIN_S_T001
Optional: Yes
Call by Reference: Yes

C_A_T004IN -

Data type: FCIN_S_T004
Optional: Yes
Call by Reference: Yes

C_A_SKA1 -

Data type: FCIN_S_SKA1
Optional: Yes
Call by Reference: Yes

C_A_TFIN200 -

Data type: TFIN200
Optional: Yes
Call by Reference: Yes

C_A_TFIN201 -

Data type: TFIN201
Optional: Yes
Call by Reference: Yes

C_A_ITEM_PROP -

Data type: FCIN_S_ITEM_PROP
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for FC_ACCOUNT_TO_ITEM_MAP

I_T_T001IN -

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

I_T_T004IN -

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

I_T_SKA1 -

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

I_T_TFIN200 -

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

I_T_TFIN201 - Map Secondary Cost Elements

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

I_T_ITEM_PROP -

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

EXCEPTIONS details

BUKRS_INVALID -

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

NO_KTOPL_ASSIGNED -

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

NO_ASSIGNMENT_KTOPL_ITCLG -

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

KTOPL_INVALID -

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

NO_GROUP_ACCOUNT -

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

ITEM_INVALID -

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

NEITHER_KTOPL_NOR_BUKRS -

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

Copy and paste ABAP code example for FC_ACCOUNT_TO_ITEM_MAP 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_item  TYPE FC_ITEM, "   
lv_i_bukrs  TYPE FCIN_BUKRS, "   
lv_c_a_t001in  TYPE FCIN_S_T001, "   
lt_i_t_t001in  TYPE STANDARD TABLE OF FCIN_T_T001, "   
lv_bukrs_invalid  TYPE FCIN_T_T001, "   
lv_i_ktopl  TYPE FCIN_KTOPL, "   
lv_c_a_t004in  TYPE FCIN_S_T004, "   
lt_i_t_t004in  TYPE STANDARD TABLE OF FCIN_T_T004, "   
lv_no_ktopl_assigned  TYPE FCIN_T_T004, "   
lv_i_saknr  TYPE FCIN_SAKNR, "   
lv_c_a_ska1  TYPE FCIN_S_SKA1, "   
lt_i_t_ska1  TYPE STANDARD TABLE OF FCIN_T_SKA1, "   
lv_no_assignment_ktopl_itclg  TYPE FCIN_T_SKA1, "   
lv_i_altkt  TYPE FCIN_SAKNR, "   
lv_c_a_tfin200  TYPE TFIN200, "   
lt_i_t_tfin200  TYPE STANDARD TABLE OF FCIN_T_TFIN200, "   
lv_ktopl_invalid  TYPE FCIN_T_TFIN200, "   
lv_i_itclg  TYPE FC_ITCLG, "   
lv_c_a_tfin201  TYPE TFIN201, "   
lt_i_t_tfin201  TYPE STANDARD TABLE OF FCIN_T_TFIN201, "   
lv_no_group_account  TYPE FCIN_T_TFIN201, "   
lv_item_invalid  TYPE FCIN_T_TFIN201, "   
lv_i_flg_skamap  TYPE FC_FLG, "   
lv_c_a_item_prop  TYPE FCIN_S_ITEM_PROP, "   
lt_i_t_item_prop  TYPE STANDARD TABLE OF FCIN_T_ITEM_PROP, "   
lv_i_flg_chk_exist  TYPE FC_FLG, "   
lv_neither_ktopl_nor_bukrs  TYPE FC_FLG, "   
lv_i_flg_tfin200_chk  TYPE FC_FLG. "   CON_X

  CALL FUNCTION 'FC_ACCOUNT_TO_ITEM_MAP'  "
    EXPORTING
         I_BUKRS = lv_i_bukrs
         I_KTOPL = lv_i_ktopl
         I_SAKNR = lv_i_saknr
         I_ALTKT = lv_i_altkt
         I_ITCLG = lv_i_itclg
         I_FLG_SKAMAP = lv_i_flg_skamap
         I_FLG_CHK_EXIST = lv_i_flg_chk_exist
         I_FLG_TFIN200_CHK = lv_i_flg_tfin200_chk
    IMPORTING
         E_ITEM = lv_e_item
    CHANGING
         C_A_T001IN = lv_c_a_t001in
         C_A_T004IN = lv_c_a_t004in
         C_A_SKA1 = lv_c_a_ska1
         C_A_TFIN200 = lv_c_a_tfin200
         C_A_TFIN201 = lv_c_a_tfin201
         C_A_ITEM_PROP = lv_c_a_item_prop
    TABLES
         I_T_T001IN = lt_i_t_t001in
         I_T_T004IN = lt_i_t_t004in
         I_T_SKA1 = lt_i_t_ska1
         I_T_TFIN200 = lt_i_t_tfin200
         I_T_TFIN201 = lt_i_t_tfin201
         I_T_ITEM_PROP = lt_i_t_item_prop
    EXCEPTIONS
        BUKRS_INVALID = 1
        NO_KTOPL_ASSIGNED = 2
        NO_ASSIGNMENT_KTOPL_ITCLG = 3
        KTOPL_INVALID = 4
        NO_GROUP_ACCOUNT = 5
        ITEM_INVALID = 6
        NEITHER_KTOPL_NOR_BUKRS = 7
. " FC_ACCOUNT_TO_ITEM_MAP




ABAP code using 7.40 inline data declarations to call FM FC_ACCOUNT_TO_ITEM_MAP

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_tfin200_chk) = CON_X.
 


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!