SAP FAGL_FC_POST Function Module for









FAGL_FC_POST is a standard fagl fc post 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 fagl fc post FM, simply by entering the name FAGL_FC_POST into the relevant SAP transaction such as SE37 or SE38.

Function Group: FAGL_FC_VAL_SELECT
Program Name: SAPLFAGL_FC_VAL_SELECT
Main Program: SAPLFAGL_FC_VAL_SELECT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function FAGL_FC_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 'FAGL_FC_POST'"
EXPORTING
ED_BATCH_INPUT_SESSION = "
ED_POSTING_MONTH = "Fiscal Period
ED_REV_POSTING_DATE = "
ED_REV_POSTING_MONTH = "
ED_RESET = "
ED_TARGET_CCODE = "
ED_UPDATE_RUN = "
ES_VALUATION_METHOD = "
ES_VALUATION_AREA = "Valuation Area
ET_GLBALHIST_RUNID = "
ET_DIMEN = "Reorganization: Table of Field Names
ED_CURRENCY_TYPE = "
ET_MAPPING = "Mapping for Field Names
* ET_METHOD = "Method
* ED_XUSE_T030H = 'X' "Checkbox
* ET_PREPOST_WITH_REV = "
* ET_PREPOST_NO_REV = "Posting Information
ETS_CCODE_PROP = "Company Code Properties
* ED_XNO_POSTINGS = "Checkbox
* ED_RFC_FLAG = ' ' "
* ED_FORCE_REM_CURT2 = "
* ED_FORCE_REM_CURT3 = "
ED_DOCUMENT_DATE = "Document Date
ED_KEY_DATE = "Valuation Key Date
ED_LEDGER_GROUP = "
ED_MODIF_N884639 = "
ED_POST_BI = "
ED_POST_DIRECT = "
ED_POSTING_DATE = "Posting Date in the Document

IMPORTING
IT_MESSAGES = "FI Messages

CHANGING
CT_LOG_DATA = "
CT_POST_BATCH = "Table FTPOST
CD_DOC_COUNTER = "Natural Number
CS_CCODE_METHOD = "
.



IMPORTING Parameters details for FAGL_FC_POST

ED_BATCH_INPUT_SESSION -

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

ED_POSTING_MONTH - Fiscal Period

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

ED_REV_POSTING_DATE -

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

ED_REV_POSTING_MONTH -

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

ED_RESET -

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

ED_TARGET_CCODE -

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

ED_UPDATE_RUN -

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

ES_VALUATION_METHOD -

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

ES_VALUATION_AREA - Valuation Area

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

ET_GLBALHIST_RUNID -

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

ET_DIMEN - Reorganization: Table of Field Names

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

ED_CURRENCY_TYPE -

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

ET_MAPPING - Mapping for Field Names

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

ET_METHOD - Method

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

ED_XUSE_T030H - Checkbox

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

ET_PREPOST_WITH_REV -

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

ET_PREPOST_NO_REV - Posting Information

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

ETS_CCODE_PROP - Company Code Properties

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

ED_XNO_POSTINGS - Checkbox

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

ED_RFC_FLAG -

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

ED_FORCE_REM_CURT2 -

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

ED_FORCE_REM_CURT3 -

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

ED_DOCUMENT_DATE - Document Date

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

ED_KEY_DATE - Valuation Key Date

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

ED_LEDGER_GROUP -

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

ED_MODIF_N884639 -

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

ED_POST_BI -

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

ED_POST_DIRECT -

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

ED_POSTING_DATE - Posting Date in the Document

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

EXPORTING Parameters details for FAGL_FC_POST

IT_MESSAGES - FI Messages

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

CHANGING Parameters details for FAGL_FC_POST

CT_LOG_DATA -

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

CT_POST_BATCH - Table FTPOST

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

CD_DOC_COUNTER - Natural Number

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

CS_CCODE_METHOD -

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

Copy and paste ABAP code example for FAGL_FC_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_ct_log_data  TYPE FAGL_FC_T_POST, "   
lv_it_messages  TYPE FB_T_FIMSG, "   
lv_ed_batch_input_session  TYPE ALLGBINA, "   
lv_ed_posting_month  TYPE MONAT, "   
lv_ed_rev_posting_date  TYPE BUDAT, "   
lv_ed_rev_posting_month  TYPE MONAT, "   
lv_ed_reset  TYPE BOOLE_D, "   
lv_ed_target_ccode  TYPE BUKRS, "   
lv_ed_update_run  TYPE BOOLE_D, "   
lv_es_valuation_method  TYPE T044A, "   
lv_es_valuation_area  TYPE T033, "   
lv_et_glbalhist_runid  TYPE FAGL_FC_T_GLBAL_RUNID, "   
lv_et_dimen  TYPE FAGL_R_T_FIELDNAME, "   
lv_ct_post_batch  TYPE FAGL_T_FTPOST, "   
lv_ed_currency_type  TYPE CURTP, "   
lv_et_mapping  TYPE FAGL_T_FIELD_MAPPING, "   
lv_et_method  TYPE FAGL_FC_T_METHOD, "   
lv_ed_xuse_t030h  TYPE XFELD, "   'X'
lv_et_prepost_with_rev  TYPE FAGL_FC_T_CURR, "   
lv_et_prepost_no_rev  TYPE FAGL_FC_T_CURR, "   
lv_ets_ccode_prop  TYPE FAGL_T_CCODE_PROP, "   
lv_ed_xno_postings  TYPE XFELD, "   
lv_ed_rfc_flag  TYPE XFELD, "   SPACE
lv_ed_force_rem_curt2  TYPE CURTP, "   
lv_ed_force_rem_curt3  TYPE CURTP, "   
lv_cd_doc_counter  TYPE INT4, "   
lv_ed_document_date  TYPE BLDAT, "   
lv_ed_key_date  TYPE SBEWSTAG, "   
lv_cs_ccode_method  TYPE FAGL_FC_S_METHOD, "   
lv_ed_ledger_group  TYPE FAGL_LDGRP, "   
lv_ed_modif_n884639  TYPE BOOLE_D, "   
lv_ed_post_bi  TYPE FAGL_POST_BATCH, "   
lv_ed_post_direct  TYPE FAGL_POST_DIRECT, "   
lv_ed_posting_date  TYPE BUDAT. "   

  CALL FUNCTION 'FAGL_FC_POST'  "
    EXPORTING
         ED_BATCH_INPUT_SESSION = lv_ed_batch_input_session
         ED_POSTING_MONTH = lv_ed_posting_month
         ED_REV_POSTING_DATE = lv_ed_rev_posting_date
         ED_REV_POSTING_MONTH = lv_ed_rev_posting_month
         ED_RESET = lv_ed_reset
         ED_TARGET_CCODE = lv_ed_target_ccode
         ED_UPDATE_RUN = lv_ed_update_run
         ES_VALUATION_METHOD = lv_es_valuation_method
         ES_VALUATION_AREA = lv_es_valuation_area
         ET_GLBALHIST_RUNID = lv_et_glbalhist_runid
         ET_DIMEN = lv_et_dimen
         ED_CURRENCY_TYPE = lv_ed_currency_type
         ET_MAPPING = lv_et_mapping
         ET_METHOD = lv_et_method
         ED_XUSE_T030H = lv_ed_xuse_t030h
         ET_PREPOST_WITH_REV = lv_et_prepost_with_rev
         ET_PREPOST_NO_REV = lv_et_prepost_no_rev
         ETS_CCODE_PROP = lv_ets_ccode_prop
         ED_XNO_POSTINGS = lv_ed_xno_postings
         ED_RFC_FLAG = lv_ed_rfc_flag
         ED_FORCE_REM_CURT2 = lv_ed_force_rem_curt2
         ED_FORCE_REM_CURT3 = lv_ed_force_rem_curt3
         ED_DOCUMENT_DATE = lv_ed_document_date
         ED_KEY_DATE = lv_ed_key_date
         ED_LEDGER_GROUP = lv_ed_ledger_group
         ED_MODIF_N884639 = lv_ed_modif_n884639
         ED_POST_BI = lv_ed_post_bi
         ED_POST_DIRECT = lv_ed_post_direct
         ED_POSTING_DATE = lv_ed_posting_date
    IMPORTING
         IT_MESSAGES = lv_it_messages
    CHANGING
         CT_LOG_DATA = lv_ct_log_data
         CT_POST_BATCH = lv_ct_post_batch
         CD_DOC_COUNTER = lv_cd_doc_counter
         CS_CCODE_METHOD = lv_cs_ccode_method
. " FAGL_FC_POST




ABAP code using 7.40 inline data declarations to call FM FAGL_FC_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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_ed_xuse_t030h) = 'X'.
 
 
 
 
 
DATA(ld_ed_rfc_flag) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 


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!