SAP Reports / Programs

/BGLOCS/T_REPORT SAP ABAP Report - Trial Balance / T-Report







/BGLOCS/T_REPORT is a standard Executable ABAP Report 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 /BGLOCS/T_REPORT into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

/BGLOCS/TRB - Bulgarian Trial Balance / T-Report


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 /BGLOCS/T_REPORT. "Basic submit
SUBMIT /BGLOCS/T_REPORT AND RETURN. "Return to original report after report execution complete
SUBMIT /BGLOCS/T_REPORT VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: S_ADDTXT = Additional heading
Selection Text: S_ALTKT = D Alternative account number
Selection Text: S_BELNR = D Document number
Selection Text: S_BUDAT = D Posting date
Selection Text: S_HKONT = D G/L account
Selection Text: S_LANGU = Language for account text
Selection Text: S_LAYOUT = Report layout
Selection Text: S_NOTPO = Include accounts not posted to
Selection Text: S_ONLYLV = Show only summation levels
Selection Text: S_SEQ = Read items sequentially
Selection Text: S_SUMDG = Summation level
Title: Trial Balance / T-Report
Text Symbol: T40 = Debit turnovers of
Text Symbol: T41 = Credit turnovers of
Text Symbol: T42 = from
Text Symbol: T43 = posted in
Text Symbol: T45 = DC
Text Symbol: T46 = Document Curr.
Text Symbol: T47 = LC
Text Symbol: T48 = Local Curr.
Text Symbol: T50 = DEBIT
Text Symbol: T51 = CREDIT
Text Symbol: T52 = OPENING BALANCE
Text Symbol: T53 = TURNOVERS
Text Symbol: T54 = CLOSING BALANCE
Text Symbol: T60 = Prepared by:
Text Symbol: T61 = Chief accountant:
Text Symbol: T62 = Manager of Financial Department:
Text Symbol: T63 = ...................................
Text Symbol: TB0 = Reporting period
Text Symbol: TB1 = Further selections
Text Symbol: TB2 = Control options
Text Symbol: LO1 = Trial Balance
Text Symbol: LO2 = Trial Balance in foreign curr.
Text Symbol: LO3 = T-Report
Text Symbol: M00 = Internal error!
Text Symbol: M01 = company does not have a local CoA assigned.
Text Symbol: M02 = The primary CoA will be used:





Text Symbol: M10 = Posting date is not allowed in dynamic selections,
Text Symbol: M11 = please delete it.
Text Symbol: T01 = For the period from
Text Symbol: T02 = to
Text Symbol: T10 = Account Nr
Text Symbol: T11 = Account description
Text Symbol: T12 = Beginning Debit
Text Symbol: T13 = Beginning Credit
Text Symbol: T14 = Debit turnovers
Text Symbol: T15 = Credit turnovers
Text Symbol: T16 = Closing Debit
Text Symbol: T17 = Closing Credit
Text Symbol: T20 = Balance
Text Symbol: T21 = Balance LC
Text Symbol: T22 = Balance DC
Text Symbol: T23 = LC
Text Symbol: T24 = DC
Text Symbol: T25 = Cur
Text Symbol: T26 = Amount in
Text Symbol: T27 = LC amount in
Text Symbol: T30 = Company totals
Text Symbol: T31 = Grand totals
Text Symbol: T35 = Summ.level
Text Symbol: T36 = Offs.acct
Text Symbol: T37 = Offsetting account
Text Symbol: T38 = Summation level


INCLUDES used within this REPORT /BGLOCS/T_REPORT

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:

VRM_SET_VALUES call function 'VRM_SET_VALUES' exporting id = l_name values = lt_values.

FI_COMPANY_CODE_DATA call function 'FI_COMPANY_CODE_DATA' exporting i_bukrs = l_bukrs importing e_t001 = ls_t001 exceptions system_error = 1 others = 2.

DATE_TO_PERIOD_CONVERT call function 'DATE_TO_PERIOD_CONVERT' exporting i_date = sy-datum i_periv = ls_t001-periv importing e_buper = l_buper e_gjahr = l_gjahr exceptions input_false = 1 t009_notfound = 2 t009b_notfound = 3 others = 4.

FIRST_DAY_IN_PERIOD_GET call function 'FIRST_DAY_IN_PERIOD_GET' exporting i_gjahr = l_gjahr i_periv = ls_t001-periv i_poper = l_buper importing e_date = l_fdate.

LAST_DAY_IN_PERIOD_GET call function 'LAST_DAY_IN_PERIOD_GET' exporting i_gjahr = l_gjahr i_periv = ls_t001-periv i_poper = l_buper importing e_date = l_ldate.






G_GET_ORGANIZATIONAL_DATA call function 'G_GET_ORGANIZATIONAL_DATA' exporting i_rldnr = g_relevant_ledger i_orgunit = lt_t001-bukrs * JOIN_OF_VALUTYP_AND_CURT = 'X' * SEND_ERROR_WHEN_DEPLD = ' ' importing organizational_info = ls_glxi exceptions no_info_found = 1 error_in_setup = 2 error_in_depld = 3 others = 4.

DATE_TO_PERIOD_CONVERT call function 'DATE_TO_PERIOD_CONVERT' exporting i_date = s_budat-low i_periv = g_periv importing e_buper = l_buper e_gjahr = l_gjahr.

FIRST_DAY_IN_PERIOD_GET call function 'FIRST_DAY_IN_PERIOD_GET' exporting i_gjahr = l_gjahr i_periv = g_periv i_poper = l_buper importing e_date = l_date.

DATE_TO_PERIOD_CONVERT call function 'DATE_TO_PERIOD_CONVERT' exporting i_date = s_budat-high i_periv = g_periv importing e_gjahr = l_gjahr.

FAGL_GET_GLT0 call function 'FAGL_GET_GLT0' exporting * I_GLT0_RLDNR = '00' i_rldnr = br_rldnr-low i_rrcty = '0' i_rvers = '001' i_ryear = g_gjahr_from i_range_bukrs = lr_bukrs i_range_racct = lr_racct it_orderlist = lt_orderlist importing et_glt0 = lt_glt0.

READ_SACHKONTO call function 'READ_SACHKONTO' exporting buchungskreis = ps_ci-t001-bukrs sachkonto = p_inacc exceptions sachkonto_not_found = 1 others = 2.

READ_SACHKONTO_ALTKT call function 'READ_SACHKONTO_ALTKT' exporting bukrs = ps_ci-t001-bukrs saknr = p_inacc xmass = 'X' importing altkt = l_saknr altkt_not_found = lf_no_altkt exceptions bukrs_not_found = 1 saknr_not_found = 2 others = 3.

REUSE_ALV_FIELDCATALOG_MERGE call function 'REUSE_ALV_FIELDCATALOG_MERGE' exporting i_program_name = l_repid i_internal_tabname = 'GT_DOCS' i_inclname = l_incl * I_BYPASSING_BUFFER = * I_BUFFER_ACTIVE = changing ct_fieldcat = lt_fieldcat exceptions inconsistent_interface = 1 program_error = 2 others = 3.

REUSE_ALV_LIST_DISPLAY call function 'REUSE_ALV_LIST_DISPLAY' exporting * I_INTERFACE_CHECK = ' ' * I_BYPASSING_BUFFER = * I_BUFFER_ACTIVE = ' ' i_callback_program = l_repid * I_CALLBACK_PF_STATUS_SET = ' ' i_callback_user_command = 'ALV_SELECTION' * I_STRUCTURE_NAME = is_layout = ls_lay_alv it_fieldcat = lt_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = it_sort = lt_sort * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' i_save = 'A' * IS_VARIANT = * IT_EVENTS = * IT_EVENT_EXIT = is_print = ls_print * IS_REPREP_ID = i_screen_start_column = 25 i_screen_start_line = 1 i_screen_end_column = l_end_col i_screen_end_line = l_end_line * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = tables t_outtab = gt_docs exceptions program_error = 1 others = 2.

FAGL_CHECK_IF_LEDGER_IS_GLFLEX call function 'FAGL_CHECK_IF_LEDGER_IS_GLFLEX' exporting i_rldnr = br_rldnr-low.



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 /BGLOCS/T_REPORT or its description.