SAP Reports / Programs | Financial Accounting | Special Purpose Ledger | Basic Functions(FI-SL-SL) SAP FI

FGVTRF20 SAP ABAP INCLUDE - General Interfaces with Posting Log







FGVTRF20 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 FGVTRF20 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 FGVTRF20. "Basic submit
SUBMIT FGVTRF20 AND RETURN. "Return to original report after report execution complete
SUBMIT FGVTRF20 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 FGVTRF20

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:

G_GET_LEDGER_INFO CALL FUNCTION 'G_GET_LEDGER_INFO' EXPORTING i_rldnr = ledger IMPORTING e_ledger_info = h_881 TABLES e_keyfig_info = t_t881_keyfig.

G_GET_TABLE_INFO CALL FUNCTION 'G_GET_TABLE_INFO' EXPORTING i_tab = h_881-tab IMPORTING e_tab_info = h_800a TABLES e_keyfig_info = t_t800a_keyfig.

G_CHECK_POOL_TABLE CALL FUNCTION 'G_CHECK_POOL_TABLE' EXPORTING i_tab = h_881-tab.

G_GET_TABLE_INFO CALL FUNCTION 'G_GET_TABLE_INFO' EXPORTING i_tab = h_800a-tab TABLES e_keyfig_info = t_keyfig.

G_INIT_BUFFER_FOR_SI_BCF CALL FUNCTION 'G_INIT_BUFFER_FOR_SI_BCF'.

G_TABLE_OPEN_CURSOR CALL FUNCTION 'G_TABLE_OPEN_CURSOR' EXPORTING i_tabname = h_800a-tab i_selection = t_selection i_with_hold = 'X' IMPORTING e_cursor = h_cursor.

G_TABLE_FETCH CALL FUNCTION 'G_TABLE_FETCH' EXPORTING i_cursor = h_cursor i_package_size = c_package_size_delete CHANGING c_t_glu1 = t_glu1 EXCEPTIONS no_more_data = 1.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

G_INIT_BUFFER_FOR_SI_BCF CALL FUNCTION 'G_INIT_BUFFER_FOR_SI_BCF'.

G_INIT_BUFFER_FOR_SI_BCF CALL FUNCTION 'G_INIT_BUFFER_FOR_SI_BCF'.

G_TABLE_OPEN_CURSOR CALL FUNCTION 'G_TABLE_OPEN_CURSOR' EXPORTING i_tabname = h_800a-tab i_selection = t_selection i_period_aggregation = 'G' "GROUP period aggregation i_cumulated = ' ' "Cumulate values i_with_hold = 'X' IMPORTING e_cursor = h_cursor.

G_TABLE_FETCH CALL FUNCTION 'G_TABLE_FETCH' EXPORTING i_cursor = h_cursor i_package_size = c_package_size_select CHANGING c_t_glu1 = t_glu1 EXCEPTIONS no_more_data = 1.

G_FIELDTAB_GET CALL FUNCTION 'G_FIELDTAB_GET' EXPORTING table = h_800a-tab no_glx_obj_processing = 'X' TABLES t_fieldtab = t_fieldtab.

G_PERIODS_OF_YEAR_GET CALL FUNCTION 'G_PERIODS_OF_YEAR_GET' EXPORTING variant = bukgestab-periv year = oldjr TABLES i_periods = period EXCEPTIONS OTHERS = 1.

G_READ_AREA_TAB CALL FUNCTION 'G_READ_AREA_TAB' EXPORTING activity = ' ' check_typ = '1' field = h_800a-dim_account langu = sy-langu record_key = glu1 t800d_table = h_800a-tab table = 'GLU1' text_flag = ' ' allow_initvalue_without_check = ' ' TABLES igmd00 = igmd00 igmdtt = igmdtt ivalue = ivalue period = period EXCEPTIONS not_found = 1 OTHERS = 2.

READ_KONTENPLAN CALL FUNCTION 'READ_KONTENPLAN' EXPORTING kontenplan = bukgestab-ktopl sachkonto = akt-racct IMPORTING kontenplan_wa = ska1 EXCEPTIONS kontenplan_not_found = 1 OTHERS = 2.

CALL_EXIT_SAPLGVTR_001 CALL FUNCTION 'CALL_EXIT_SAPLGVTR_001' EXPORTING ledger_data = *glu1 CHANGING account_indicator = xbilk account_type = ska1-gvtyp chart_of_accounts = ska1-ktopl.

READ_KONTENPLAN CALL FUNCTION 'READ_KONTENPLAN' EXPORTING kontenplan = cv_ktopl sachkonto = cv_konto IMPORTING kontenplan_wa = ska1 EXCEPTIONS kontenplan_not_found = 1 OTHERS = 2.

G_FILL_SI_FIELDS_FOR_BCF





CALL FUNCTION 'G_FILL_SI_FIELDS_FOR_BCF' CHANGING CS_GLU1 = glu1.

G_INIT_BUFFER_FOR_SI_BCF CALL FUNCTION 'G_INIT_BUFFER_FOR_SI_BCF'.

OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING own_logical_system = c_logsys EXCEPTIONS own_logical_system_not_defined = 1 OTHERS = 2.

G_FIELD_READ CALL FUNCTION 'G_FIELD_READ' EXPORTING table = 'SKA1' fieldname = 'SAKNR' IMPORTING field_attr = ls_dfies EXCEPTIONS not_found = 1 OTHERS = 2.

G_FIELD_READ CALL FUNCTION 'G_FIELD_READ' EXPORTING table = ls_t800a-tab fieldname = ld_fld_altkt IMPORTING field_attr = ls_dfies EXCEPTIONS not_found = 1 OTHERS = 2.

G_FIELD_READ CALL FUNCTION 'G_FIELD_READ' EXPORTING table = ls_t800a-tab fieldname = ld_fld_lokkt IMPORTING field_attr = ls_dfies EXCEPTIONS not_found = 1 OTHERS = 2.



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 FGVTRF20 or its description.