SAP Reports / Programs

FERCR240 SAP ABAP Report - Drill Down to Source or Final Objects







FERCR240 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 FERCR240 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 FERCR240. "Basic submit
SUBMIT FERCR240 AND RETURN. "Return to original report after report execution complete
SUBMIT FERCR240 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_BUKRS = D Company code
Selection Text: S_GSBER = D Business area
Title: Drill Down to Source or Final Objects
Text Symbol: DIR = Direct postings
Text Symbol: FIN = Final
Text Symbol: FOH = Final objects
Text Symbol: FOM = Final object
Text Symbol: FOS = Final obj.
Text Symbol: O10 = regulatory account
Text Symbol: O20 = natural account
Text Symbol: O30 = final object
Text Symbol: SOH = Source objects
Text Symbol: SOM = Source object
Text Symbol: SOS = Source obj.


INCLUDES used within this REPORT FERCR240

INCLUDE FERCD100.
INCLUDE FERCD110.


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:

OBJECT_IDENTIFICATION_GET CALL FUNCTION 'OBJECT_IDENTIFICATION_GET' EXPORTING objnr = status-act_fin_coobj no_kokrs = 'X' IMPORTING * IDENTIFICATION = SY-MSGV2 ident_objid = sy-msgv1 ident_txt20 = sy-tvar1.

FERC_CO_OBJ_FOR_FERC_ACC_GET CALL FUNCTION 'FERC_CO_OBJ_FOR_FERC_ACC_GET' EXPORTING status = status TABLES bukrs = s_rbuk_o gsber = s_rgsb_o obj_lst = obj_lst.

FERC_CO_OBJECT_GET CALL FUNCTION 'FERC_CO_OBJECT_GET' EXPORTING status = status rep_name = rep_name TABLES r_bukrs = s_rbuk_o r_gsber = s_rgsb_o s_bukrs = s_sbuk_o s_gsber = s_sgsb_o obj_lst = obj_lst.

OBJECT_IDENTIFICATION_GET CALL FUNCTION 'OBJECT_IDENTIFICATION_GET' EXPORTING objnr = status-act_fin_coobj no_bukrs = 'X' no_erkrs = 'X' no_kokrs = 'X' IMPORTING e_objid = objid_out ident_txt20 = gt_outtab-r_object(20) EXCEPTIONS OTHERS = 0.

FERC_DRILL_DOWN_REPORT_GET CALL FUNCTION 'FERC_DRILL_DOWN_REPORT_GET' EXPORTING report_id = '30' IMPORTING report_name = dd_rep.

FERC_DRILL_DOWN_REPORT_GET CALL FUNCTION 'FERC_DRILL_DOWN_REPORT_GET' EXPORTING report_id = '35' IMPORTING report_name = dd_rep.

FERC_DRILL_DOWN_REPORT_GET CALL FUNCTION 'FERC_DRILL_DOWN_REPORT_GET' EXPORTING report_id = '40' IMPORTING report_name = dd_rep.

FERC_CLEARING_COST_ELEMENT_CHK * call function 'FERC_CLEARING_COST_ELEMENT_CHK' * exporting * run_id = r0-run_id * cost_element = status-act_nat_acc * exceptions * clearing_cost_element = 1.

FERC_DRILL_DOWN_REPORT_GET CALL FUNCTION 'FERC_DRILL_DOWN_REPORT_GET' EXPORTING report_id = '65' IMPORTING report_name = dd_rep.

FERC_DRILL_DOWN_REPORT_GET CALL FUNCTION 'FERC_DRILL_DOWN_REPORT_GET' EXPORTING report_id = '70' IMPORTING report_name = dd_rep.

FERC_DRILL_DOWN_REPORT_GET CALL FUNCTION 'FERC_DRILL_DOWN_REPORT_GET' EXPORTING report_id = '60' IMPORTING report_name = dd_rep.

FERC_DRILL_DOWN_REPORT_GET CALL FUNCTION 'FERC_DRILL_DOWN_REPORT_GET' EXPORTING report_id = '45' IMPORTING report_name = dd_rep.

FERC_DRILL_DOWN_REPORT_GET CALL FUNCTION 'FERC_DRILL_DOWN_REPORT_GET' EXPORTING report_id = '90' IMPORTING report_name = dd_rep.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'FERC_SDD' * i_bypassing_buffer = 'X' CHANGING ct_fieldcat = rt_fieldcat.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_top_of_page.



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