SAP FC_TOTALS_SELECT_FROM_ITAB Function Module for









FC_TOTALS_SELECT_FROM_ITAB is a standard fc totals select from itab 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 totals select from itab FM, simply by entering the name FC_TOTALS_SELECT_FROM_ITAB into the relevant SAP transaction such as SE37 or SE38.

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



Function FC_TOTALS_SELECT_FROM_ITAB 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_TOTALS_SELECT_FROM_ITAB'"
EXPORTING
IT_SEL = "Selection Condition
* E_RVERS = "
* E_RYEAR = "
* E_PERID = "
* E_COITP = ' ' "Accounting technique for consolidation of investments
ET_ECMCA = "
* IT_FIELDS = "
* IT_KFIG = "
* IT_KFIG_PP = "
* E_PERID_CUM = "
* E_SIGN = "
* E_SUMIT = "
* E_SUMCG = "
* E_SUMVS = "

IMPORTING
IT_DATA = "
I_DONE = "

EXCEPTIONS
FIELDS_MISSING = 1 KFIG_MISSING = 2 FIELDNAME_WRONG = 3
.



IMPORTING Parameters details for FC_TOTALS_SELECT_FROM_ITAB

IT_SEL - Selection Condition

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

E_RVERS -

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

E_RYEAR -

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

E_PERID -

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

E_COITP - Accounting technique for consolidation of investments

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

ET_ECMCA -

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

IT_FIELDS -

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

IT_KFIG -

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

IT_KFIG_PP -

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

E_PERID_CUM -

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

E_SIGN -

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

E_SUMIT -

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

E_SUMCG -

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

E_SUMVS -

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

EXPORTING Parameters details for FC_TOTALS_SELECT_FROM_ITAB

IT_DATA -

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

I_DONE -

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

EXCEPTIONS details

FIELDS_MISSING -

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

KFIG_MISSING -

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

FIELDNAME_WRONG -

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

Copy and paste ABAP code example for FC_TOTALS_SELECT_FROM_ITAB 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_it_sel  TYPE FC00_T_SEL, "   
lv_it_data  TYPE TABLE, "   
lv_fields_missing  TYPE TABLE, "   
lv_e_rvers  TYPE FC_RVERS, "   
lv_e_ryear  TYPE FC_RYEAR, "   
lv_e_perid  TYPE FC_PERID, "   
lv_e_coitp  TYPE FC_COITP, "   SPACE
lv_et_ecmca  TYPE FC05_T_ECMCA, "   
lv_i_done  TYPE FC_FLG, "   
lv_it_fields  TYPE FC00_T_FIELDS, "   
lv_kfig_missing  TYPE FC00_T_FIELDS, "   
lv_it_kfig  TYPE FC00_T_FIELDS, "   
lv_fieldname_wrong  TYPE FC00_T_FIELDS, "   
lv_it_kfig_pp  TYPE FC00_T_FIELDS, "   
lv_e_perid_cum  TYPE FC_FLG, "   
lv_e_sign  TYPE FC_FLG, "   
lv_e_sumit  TYPE FC_FLG, "   
lv_e_sumcg  TYPE FC_FLG, "   
lv_e_sumvs  TYPE FC_FLG. "   

  CALL FUNCTION 'FC_TOTALS_SELECT_FROM_ITAB'  "
    EXPORTING
         IT_SEL = lv_it_sel
         E_RVERS = lv_e_rvers
         E_RYEAR = lv_e_ryear
         E_PERID = lv_e_perid
         E_COITP = lv_e_coitp
         ET_ECMCA = lv_et_ecmca
         IT_FIELDS = lv_it_fields
         IT_KFIG = lv_it_kfig
         IT_KFIG_PP = lv_it_kfig_pp
         E_PERID_CUM = lv_e_perid_cum
         E_SIGN = lv_e_sign
         E_SUMIT = lv_e_sumit
         E_SUMCG = lv_e_sumcg
         E_SUMVS = lv_e_sumvs
    IMPORTING
         IT_DATA = lv_it_data
         I_DONE = lv_i_done
    EXCEPTIONS
        FIELDS_MISSING = 1
        KFIG_MISSING = 2
        FIELDNAME_WRONG = 3
. " FC_TOTALS_SELECT_FROM_ITAB




ABAP code using 7.40 inline data declarations to call FM FC_TOTALS_SELECT_FROM_ITAB

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_e_coitp) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
 


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!