SAP Reports / Programs | Financial Accounting | Localization(FI-LOC) SAP FI

J_3RKORRSSP SAP ABAP Report - Automatic Offsetting Account Determination







J_3RKORRSSP 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 J_3RKORRSSP 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

J3RKKRS - Automatic Account Determination


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


Text pool values


LIST OF DOCUMENTS FOR INTERPRETATION
Selection Text: ZERO_DOC = D .
Selection Text: USNAM = D .
Selection Text: LIMIT = Maximum Number of Documents
Selection Text: HKONT = D .
Selection Text: GSBER = D .
Selection Text: BUKRS = D .
Selection Text: BUDAT = D .
Selection Text: BLART = D .
Selection Text: BELNR = D .
Selection Text: AUTO = D .
Selection Text: ALL_DOC = D .
Title: Automatic Offsetting Account Determination
Text Symbol: 359 = Cr Item
Text Symbol: 358 = Dr Item
Text Symbol: 357 = DC
Text Symbol: 356 = Amount in DC
Text Symbol: 355 = LC
Text Symbol: 354 = Amount in LC
Text Symbol: 353 = Credit Acc
Text Symbol: 352 = Debit Acc
Text Symbol: 351 = PostingDate
Text Symbol: 349 = CC
Text Symbol: 348 = Document
Text Symbol: 335 = Credit Amount in LC
Text Symbol: 334 = Debit Amount in LC
Text Symbol: 001 = Accounting Document Selection
Text Symbol: 004 = Automatic Account Determination Log
Text Symbol: 010 = & documents read
Text Symbol: 011 = Insufficient authorization for & documents
Text Symbol: 012 = & documents selected
Text Symbol: 013 = & documents not processed
Text Symbol: 014 = Selection time &
Text Symbol: 019 = & documents processed automatically
Text Symbol: 020 = Anew interpretation of documents
Text Symbol: 021 = Interprtation of & documents is same as previous
Text Symbol: 022 = Could not save & documents
Text Symbol: 023 = Could not delete & documents





Text Symbol: 024 = & error(s) during summary table update
Text Symbol: 025 = Could not process & documents
Text Symbol: 027 = Correspondence table locking errors - &
Text Symbol: 028 = Cumulative table locking errors - &
Text Symbol: 030 = Document & does not contain any items to be processed
Text Symbol: 040 = previous interpret document was erased
Text Symbol: 041 = Offsetting accounts have not changed since last program run
Text Symbol: 043 = Cannot be processed automatically
Text Symbol: 046 = J_3RKKRS deletion error !!!
Text Symbol: 047 = J_3RKKR0 table locked error
Text Symbol: 144 = Account correspondence can be interpretted.
Text Symbol: 145 = Account correspondence is interpretted.
001 | CC | N docum. |Year|TD|Date post.| |Item|Reference docum.|User. | |


INCLUDES used within this REPORT J_3RKORRSSP

INCLUDE J_3RKRLND01.
INCLUDE J_3RKRLNF01.


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:

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = 'SET_STATUS_ALV' i_callback_user_command = 'USER_COMMAND' i_structure_name = 'J_3RKORRSSP_ALV' it_events = gt_events TABLES t_outtab = gt_output EXCEPTIONS program_error = 1 OTHERS = 2 .

J_3RK_DEFINE_DATA CALL FUNCTION 'J_3RK_DEFINE_DATA' EXPORTING bukrs = t001-bukrs ktopl = t001-ktopl EXCEPTIONS OTHERS = 1.

J3RK_CUSTOMIZING_GET_LEDGER CALL FUNCTION 'J3RK_CUSTOMIZING_GET_LEDGER' EXPORTING iv_bukrs = t001-bukrs IMPORTING EV_LEDGER = GV_RLDNR.

FAGL_GET_GL_DOCUMENT CALL FUNCTION 'FAGL_GET_GL_DOCUMENT' EXPORTING i_rldnr = GV_RLDNR i_bukrs = wa_bkpf-BUKRS i_belnr = wa_bkpf-BELNR i_gjahr = wa_bkpf-GJAHR IMPORTING ET_BSEG = GT_BSEG EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

FAGL_GET_DOC_DETAILS_OF_LEDGER CALL FUNCTION 'FAGL_GET_DOC_DETAILS_OF_LEDGER' EXPORTING i_rldnr = GV_RLDNR i_bukrs = BKPF-BUKRS i_belnr = BKPF-BELNR i_gjahr = BKPF-GJAHR IMPORTING ES_DETAILS = GS_DOC_DETAILS EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

J3RK_CUSTOMIZING_GET_LEDGER CALL FUNCTION 'J3RK_CUSTOMIZING_GET_LEDGER' EXPORTING iv_bukrs = BKPF-BUKRS IMPORTING EV_LEDGER = GV_RLDNR.

J3RK_DOCNR_RYEAR_TO_GJAHR CALL FUNCTION 'J3RK_DOCNR_RYEAR_TO_GJAHR' EXPORTING iv_belnr = BKPF-BELNR iv_ryear = BKPF-GJAHR iv_bukrs = BKPF-BUKRS iv_rldnr = GV_RLDNR IMPORTING EV_GJAHR = GV_GJAHR EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING TCODE = 'FB03' EXCEPTIONS OK = 0 OTHERS = 3.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING TCODE = 'J3RKKRD' EXCEPTIONS OK = 0 OTHERS = 3.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = t001b-frye1 i_periv = t001-periv i_poper = t001b-frpe1 IMPORTING e_date = budat1-low EXCEPTIONS OTHERS = 0.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = t001b-toye1 i_periv = t001-periv i_poper = t001b-tope1 IMPORTING e_date = budat1-high EXCEPTIONS OTHERS = 0.






FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = t001b-frye2 i_periv = t001-periv i_poper = t001b-frpe2 IMPORTING e_date = budat2-low EXCEPTIONS OTHERS = 0.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = t001b-toye2 i_periv = t001-periv i_poper = t001b-tope2 IMPORTING e_date = budat2-high EXCEPTIONS OTHERS = 0.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = pt_events.

SO_OBJECT_SEND CALL FUNCTION 'SO_OBJECT_SEND' EXPORTING object_hd_change = t_obj_hd_chn object_type = l_object_type outbox_flag = '' owner = sy-uname store_flag = space TABLES objcont = t_msgs objhead = t_obj_head receivers = t_receivers.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = txt display_cancel_button = space userdefined_f1_help = '/CCIS/CCISCORRESP143' IMPORTING answer = answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = txt display_cancel_button = space userdefined_f1_help = '/CCIS/CCISCORRESP143' IMPORTING answer = answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

J_3RKORRSSP_UPDATE CALL FUNCTION 'J_3RKORRSSP_UPDATE' IN UPDATE TASK TABLES T_BKPF = T_BKPF.



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