SAP Reports / Programs | Financial Accounting | General Ledger Accounting(FI-GL) SAP FI

FAGL_SWITCH_CLASS_IMP3 SAP ABAP INCLUDE - FAGLSWITCHCLASSIMP3







FAGL_SWITCH_CLASS_IMP3 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter FAGL_SWITCH_CLASS_IMP3 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT FAGL_SWITCH_CLASS_IMP3. "Basic submit
SUBMIT FAGL_SWITCH_CLASS_IMP3 AND RETURN. "Return to original report after report execution complete
SUBMIT FAGL_SWITCH_CLASS_IMP3 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT FAGL_SWITCH_CLASS_IMP3

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING i_bukrs = -bukrs IMPORTING e_x001 = ls_x001.

FI_FIELD_SELECTION_DETERMINE CALL FUNCTION 'FI_FIELD_SELECTION_DETERMINE' EXPORTING i_bschl = ls_accit-bschl i_bukrs = -bukrs i_saknr = gv_account IMPORTING e_faus1 = s_faus1 e_faus2 = s_faus2 EXCEPTIONS error_message = 4 OTHERS = 4.

FI_FIELD_SELECTION_DETERMINE CALL FUNCTION 'FI_FIELD_SELECTION_DETERMINE' EXPORTING i_bschl = ls_accit-bschl i_bukrs = -bukrs i_saknr = gv_trans_acc IMPORTING e_faus1 = s_faus1 e_faus2 = s_faus2 EXCEPTIONS error_message = 4 OTHERS = 4.

AC_DOCUMENT_GENERATE CALL FUNCTION 'AC_DOCUMENT_GENERATE' IMPORTING e_awref = lv_awref e_aworg = lv_aworg TABLES t_acchd = lt_acchd t_accit = lt_accit t_acccr = lt_acccr EXCEPTIONS error_message = 1.

AC_DOCUMENT_CREATE CALL FUNCTION 'AC_DOCUMENT_CREATE' TABLES t_acchd = lt_acchd t_accit = lt_accit t_acccr = lt_acccr EXCEPTIONS error_message = 1.

CONVERT_DATE_TO_EXTERNAL CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL' EXPORTING date_internal = -date_end IMPORTING date_external = lv_date.

FI_FIELD_SELECTION_DETERMINE CALL FUNCTION 'FI_FIELD_SELECTION_DETERMINE' EXPORTING i_bschl = ls_accit_1-bschl i_bukrs = -bukrs i_saknr = gv_account IMPORTING e_faus1 = s_faus1 e_faus2 = s_faus2 EXCEPTIONS error_message = 4 OTHERS = 4.

AC_DOCUMENT_GENERATE CALL FUNCTION 'AC_DOCUMENT_GENERATE' IMPORTING e_awref = lv_awref e_aworg = lv_aworg TABLES t_acchd = lt_acchd t_accit = lt_accit t_acccr = lt_acccr EXCEPTIONS error_message = 1.

AC_DOCUMENT_CREATE CALL FUNCTION 'AC_DOCUMENT_CREATE' TABLES t_acchd = lt_acchd t_accit = lt_accit t_acccr = lt_acccr EXCEPTIONS error_message = 1.

CONVERT_DATE_TO_EXTERNAL CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL' EXPORTING date_internal = -date_end IMPORTING date_external = lv_date.

FAGL_GET_LEADING_LEDGER CALL FUNCTION 'FAGL_GET_LEADING_LEDGER' "1764392 IMPORTING "1764392 e_rldnr = lv_leading. "1764392

AC_DOCUMENT_GENERATE CALL FUNCTION 'AC_DOCUMENT_GENERATE' IMPORTING e_awref = lv_awref e_aworg = lv_aworg TABLES t_acchd = lt_acchd t_accit = -accit t_acccr = -acccr EXCEPTIONS error_message = 1.

AC_DOCUMENT_CREATE CALL FUNCTION 'AC_DOCUMENT_CREATE' TABLES t_acchd = lt_acchd t_accit = -accit t_acccr = -acccr EXCEPTIONS error_message = 1.

CONVERT_DATE_TO_EXTERNAL CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL' EXPORTING date_internal = lv_budat IMPORTING date_external = lv_date.

FI_DOCUMENT_TYPE_DATA CALL FUNCTION 'FI_DOCUMENT_TYPE_DATA' EXPORTING i_blart = gv_blart IMPORTING e_numkr = lv_numkr.

NUMBER_GET_INFO CALL FUNCTION 'NUMBER_GET_INFO' EXPORTING nr_range_nr = lv_numkr object = lv_object subobject = iv_bukrs toyear = lv_fisc_year IMPORTING interval = ls_nriv.

RF_GET_DOCUMENT_NUMBER CALL FUNCTION 'RF_GET_DOCUMENT_NUMBER' EXPORTING company = iv_bukrs range = lv_numkr year = lv_fisc_year IMPORTING document_number = belnr EXCEPTIONS duplicate_number = 1 range_missing = 2 error_in_open_fi = 3 error_message = 4 OTHERS = 5.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = iv_date i_bukrs = iv_bukrs i_rldnr = lv_rldnr IMPORTING e_monat = ls_bkpf-monat EXCEPTIONS OTHERS = 01.

FI_CURRENCY_INFORMATION





CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING i_bukrs = iv_bukrs IMPORTING e_x001 = ls_x001 EXCEPTIONS OTHERS = 0.

READ_SACHKONTO CALL FUNCTION 'READ_SACHKONTO' EXPORTING buchungskreis = -bukrs sachkonto = gv_account IMPORTING sachkonto_wa = ls_skb1.

FI_COMPANY_CODE_DATA CALL FUNCTION 'FI_COMPANY_CODE_DATA' EXPORTING i_bukrs = -bukrs IMPORTING e_t001 = ls_t001.

READ_KONTENPLAN CALL FUNCTION 'READ_KONTENPLAN' EXPORTING kontenplan = ls_t001-ktopl sachkonto = gv_account IMPORTING kontenplan_wa = ls_ska1.

SACH_WRITE_DOCUMENT CALL FUNCTION 'SACH_WRITE_DOCUMENT ' IN UPDATE TASK EXPORTING objectid = lv_objectid tcode = lv_tcode utime = sy-uzeit udate = gv_sydate username = sy-uname o_ska1 = ls_ska1 n_ska1 = ls_ska1_new o_skb1 = ls_skb1 n_skb1 = ls_skb1_new upd_skb1 = 'U' TABLES icdtxt_sach = lt_cdtxt xskat = lt_xskat yskat = lt_yskat.

GL_ACCOUNT_IN_COMPANY_UPDATE CALL FUNCTION 'GL_ACCOUNT_IN_COMPANY_UPDATE' EXPORTING i_skb1 = ls_skb1_new.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

FAGL_GET_LEDGER_FROM_GROUP CALL FUNCTION 'FAGL_GET_LEDGER_FROM_GROUP' IMPORTING et_ledger = lt_ledgers.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING i_bukrs = iv_bukrs IMPORTING e_x001 = ls_x001.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name FAGL_SWITCH_CLASS_IMP3 or its description.