SAP Reports / Programs | Financial Accounting(FI) SAP FI

RFCORRFA SAP ABAP Report - Correcting Functional Areas in FI Document







RFCORRFA 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 RFCORRFA 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 RFCORRFA. "Basic submit
SUBMIT RFCORRFA AND RETURN. "Return to original report after report execution complete
SUBMIT RFCORRFA 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: TEST_RUN = D Test Run
Selection Text: SHOW_LST = D Detail Lists
Selection Text: REFPROC = D Reference Transaction
Selection Text: REFKEY = D Reference Key
Selection Text: PERIOD = D Posting Period
Selection Text: LINEITEM = D Item
Selection Text: FUNCAREA = D Functional Area
Selection Text: FISCYEAR = D Fiscal Year
Selection Text: DOCTYPE = D Document Type
Selection Text: DOCNR = D Document Number
Selection Text: COMPCODE = D Company Code
Selection Text: ACITIVTY = D Business Transaction
Selection Text: ACCOUNT = D General Ledger Account
Title: Correcting Functional Areas in FI Document
Text Symbol: 130 = Number of Changed Document Items
Text Symbol: 120 = Number of Processed Document Items
Text Symbol: 110 = Number of Messages
Text Symbol: 102 = Test Run
Text Symbol: 101 = Update Run
Text Symbol: 100 = Processing Type
Text Symbol: 003 = Control Parameters
Text Symbol: 002 = Restrictions at Document Item Level
Text Symbol: 001 = Restrictions at Document Header Level


INCLUDES used within this REPORT RFCORRFA

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:

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

MESSAGE_LINE_SET CALL FUNCTION 'MESSAGE_LINE_SET' EXPORTING ZEILE = GD_ZEILE.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING MSGTY = 'E' TXTNR = '011' ARBGB = 'K5' MSGV1 = 'No Header for comcode/docnr/year:' "#EC NOTEXT MSGV2 = GS_BSEG-BUKRS MSGV3 = GS_BSEG-BELNR MSGV4 = GS_BSEG-GJAHR.

AC_DOCUMENT_FAREA_SET CALL FUNCTION 'AC_DOCUMENT_FAREA_SET' TABLES T_ACCHD = GT_ACCHD_TEMP T_ACCIT = GT_ACCIT_TEMP EXCEPTIONS ERROR_MESSAGE = 1 OTHERS = 2.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING MSGTY = SYST-MSGTY TXTNR = SYST-MSGNO ARBGB = SYST-MSGID MSGV1 = SYST-MSGV1 MSGV2 = SYST-MSGV2 MSGV3 = SYST-MSGV3 MSGV4 = SYST-MSGV4.

MESSAGES_COUNT CALL FUNCTION 'MESSAGES_COUNT' EXPORTING LINE_FROM = GD_ZEILE LINE_TO = GD_ZEILE IMPORTING MAX_SEVERITY = GD_MAX_SEVERITY_REC EXCEPTIONS ERROR_MESSAGE = 0 OTHERS = 0.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING MSGTY = 'E' TXTNR = '011' ARBGB = 'K5' MSGV1 = 'DATABASE UPDATE' "#EC NOTEXT MSGV2 = 'FAILED FOR DOCUMENT' "#EC NOTEXT MSGV3 = GD_ZEILE MSGV4 = ''.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING MSGTY = 'E' TXTNR = '011' ARBGB = 'K5' MSGV1 = 'NO ENTRY FOUND' "#EC NOTEXT MSGV2 = 'IN ACCIT FOR DOCUMENT' "#EC NOTEXT MSGV3 = GD_ZEILE MSGV4 = ''.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXCEPTIONS NO_MESSAGES = 0.

FI_DOC_TO_ACC_TRANSFORM CALL FUNCTION 'FI_DOC_TO_ACC_TRANSFORM' TABLES T_BKPF = LT_BKPF_TEMP T_BSEG = LT_BSEG_TEMP T_ACCHD = ET_ACCHD_TEMP T_ACCIT = ET_ACCIT_TEMP T_ACCCR = ET_ACCCR_TEMP EXCEPTIONS ERROR_MESSAGE = 1 OTHERS = 2.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING MSGTY = SYST-MSGTY TXTNR = SYST-MSGNO ARBGB = SYST-MSGID MSGV1 = SYST-MSGV1 MSGV2 = SYST-MSGV2 MSGV3 = SYST-MSGV3 MSGV4 = SYST-MSGV4.

K_ORDER_READ CALL FUNCTION 'K_ORDER_READ' EXPORTING AUFNR = IS_BSEG-AUFNR IMPORTING I_AUFKV = LS_AUFKV EXCEPTIONS ERROR_MESSAGE = 1 OTHERS = 2.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING MSGTY = SYST-MSGTY TXTNR = SYST-MSGNO ARBGB = SYST-MSGID MSGV1 = SYST-MSGV1 MSGV2 = SYST-MSGV2 MSGV3 = SYST-MSGV3 MSGV4 = SYST-MSGV4.

MESSAGES_COUNT CALL FUNCTION 'MESSAGES_COUNT' EXPORTING LINE_FROM = ID_MSG_IDENT LINE_TO = ID_MSG_IDENT IMPORTING COUNT = LD_COUNT EXCEPTIONS ERROR_MESSAGE = 0 OTHERS = 0.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_PROGRAM_NAME = LD_REPID I_INCLNAME = LD_REPID I_INTERNAL_TABNAME = 'GT_FINAL_LIST' CHANGING CT_FIELDCAT = LT_FIELDCAT[].

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = LD_REPID I_CALLBACK_USER_COMMAND = 'ALV_COMMANDS_LIST' IT_FIELDCAT = LT_FIELDCAT[] IT_EVENTS = LT_ALV_EVENTS IS_LAYOUT = LS_LAYOUT IS_VARIANT = LS_VARIANT I_SAVE = 'A' "user def. list var.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING LINE_FROM = GD_ZEILE LINE_TO = GD_ZEILE.

MESSAGES_SHOW





CALL FUNCTION 'MESSAGES_SHOW'.

MESSAGES_COUNT CALL FUNCTION 'MESSAGES_COUNT' IMPORTING COUNT = GD_COUNTER_MSG_ALL EXCEPTIONS ERROR_MESSAGE = 0 OTHERS = 0.



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