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

J_1AF004 SAP ABAP Report - Compact Document Journal







J_1AF004 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The journal displays the most important data from document headers and items in compact form (document display)...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter J_1AF004 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 J_1AF004. "Basic submit
SUBMIT J_1AF004 AND RETURN. "Return to original report after report execution complete
SUBMIT J_1AF004 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_SUBSID = Branch
Selection Text: S_PAGNO = Start with Page Number
Selection Text: S_LINENO = Start with Sequential Number
Title: Compact Document Journal
Text Symbol: U17 = Reverse
Text Symbol: U18 = Off.Docum.No./Type
Text Symbol: U19 = Description
Text Symbol: U20 = Tax no.
Text Symbol: U21 = Amount
Text Symbol: U22 = Curr.
Text Symbol: U23 = Exch.Rate
Text Symbol: V00 = T O T A L S
Text Symbol: V01 = G/L accounts
Text Symbol: V02 = Customers
Text Symbol: V03 = Vendors
Text Symbol: V05 = Comp.
Text Symbol: V06 = code
Text Symbol: V08 = Fisc.
Text Symbol: V09 = year
Text Symbol: V11 = Post.
Text Symbol: V12 = peri.
Text Symbol: V14 = Branch
Text Symbol: V15 = debit amount
Text Symbol: V16 = credit amount
Text Symbol: U15 = debit/credit
Text Symbol: 003 = Detail List
Text Symbol: 004 = Configure
Text Symbol: 005 = Totals From All Company Codes
Text Symbol: 007 = Variant
Text Symbol: 008 = Configure Variant for Detail List
Text Symbol: 009 = Configure Variant for Totals
Text Symbol: H02 = Configure ALV Variant Detail List for Compact Documental Journey
Text Symbol: H03 = Configure ALV Totals for Compact Documental Journey
Text Symbol: H04 = Code:
Text Symbol: H05 = Branch:
Text Symbol: H06 = Fiscal year:
Text Symbol: S01 = Additional selections
Text Symbol: S02 = Display Options





Text Symbol: U01 = Seq.No.
Text Symbol: U02 = Post.Date
Text Symbol: U03 = SAP Docum.No./Type
Text Symbol: U04 = Line
Text Symbol: U05 = Account type/no.
Text Symbol: U06 = Reconcil.Accnt.
Text Symbol: U08 = Post.
Text Symbol: U09 = key
Text Symbol: U11 = Tax
Text Symbol: U12 = code
Text Symbol: U14 = Total amount


INCLUDES used within this REPORT J_1AF004

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:

PAK_GET_SHORTTEXT_DTEL CALL FUNCTION 'PAK_GET_SHORTTEXT_DTEL' EXPORTING i_elem_key = gc_layout i_language = sy-langu IMPORTING e_short_text = gv_frame_tit.

INITIALIZE_STRUCTURE CALL FUNCTION 'INITIALIZE_STRUCTURE' EXPORTING i_n_fill = 0 i_i_fill = 0 CHANGING c_workarea = gs_output_header.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid it_fieldcat = gt_fieldcat i_tabname_header = gc_tab_header i_tabname_item = gc_tab_item is_keyinfo = gs_keyinfo i_save = gc_a is_variant = gs_variant TABLES t_outtab_header = gt_output_header t_outtab_item = gt_output_item EXCEPTIONS program_error = 1 OTHERS = 2.

INITIALIZE_STRUCTURE CALL FUNCTION 'INITIALIZE_STRUCTURE' EXPORTING i_n_fill = 0 i_i_fill = 0 CHANGING c_workarea = gs_output_totals.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid it_fieldcat = gt_fieldcat i_save = gc_a is_variant = gs_variant TABLES t_outtab = gt_output_totals EXCEPTIONS program_error = 1 OTHERS = 2.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' "ACC30>>> EXPORTING name = '@ ' text = text-004 info = text-008 IMPORTING RESULT = con1 EXCEPTIONS OTHERS = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = '@ ' text = text-004 info = text-009 IMPORTING RESULT = con2 EXCEPTIONS OTHERS = 0. "ACC30<<<

VENDOR_READ CALL FUNCTION 'VENDOR_READ' EXPORTING I_BUKRS = SPACE I_LIFNR = BSEG-LIFNR IMPORTING E_LFA1 = LFA1.

CUSTOMER_READ CALL FUNCTION 'CUSTOMER_READ' EXPORTING I_BUKRS = SPACE I_KUNNR = BSEG-KUNNR IMPORTING E_KNA1 = KNA1.

READ_HAUPTBUCH_TEXT CALL FUNCTION 'READ_HAUPTBUCH_TEXT' EXPORTING KONTENPLAN = T001-KTOPL SACHKONTO = BSEG-HKONT SPRACHE = SY-LANGU IMPORTING TEXT_WA = SKAT EXCEPTIONS TEXT_NOT_FOUND = 04.

KURS_IN_PREISNOTATION CALL FUNCTION 'KURS_IN_PREISNOTATION' EXPORTING DATE = HELPWWERT FOREIGN_CURRENCY = XTAB-WAERS LOCAL_CURRENCY = T001-WAERS RATE = XTAB-KURSF IMPORTING FOREIGN_FACTOR = FOREIGN_FACTOR LOCAL_FACTOR = LOCAL_FACTOR EXCEPTIONS OTHERS = 1.

READ_EXCHANGE_RATE CALL FUNCTION 'READ_EXCHANGE_RATE' EXPORTING DATE = HELPWWERT FOREIGN_CURRENCY = XTAB-WAERS LOCAL_CURRENCY = T001-WAERS IMPORTING FOREIGN_FACTOR = FOREIGN_FACTOR LOCAL_FACTOR = LOCAL_FACTOR EXCEPTIONS OTHERS = 1.

REUSE_ALV_VARIANT_F4





CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = ls_variant i_save = gc_a IMPORTING e_exit = lv_exit es_variant = ls_variant_help.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = gc_a CHANGING cs_variant = ls_variant.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid i_callback_pf_status_set = slis_ev_pf_status_set i_callback_user_command = slis_ev_user_command is_layout = gs_layout it_fieldcat = gt_fieldcat it_sort = gt_sortinfo i_save = gc_a is_variant = gs_variant it_events = gt_event i_tabname_header = gc_tab_header i_tabname_item = gc_tab_item is_keyinfo = gs_keyinfo TABLES t_outtab_header = gt_output_header t_outtab_item = gt_output_item EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_internal_tabname = iv_tabname i_structure_name = iv_struct CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

PAK_GET_SHORTTEXT_DTEL CALL FUNCTION 'PAK_GET_SHORTTEXT_DTEL' EXPORTING i_elem_key = 'WRBTR' i_language = sy-langu IMPORTING e_short_text = gv_ddictext.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_eventtab EXCEPTIONS list_type_wrong = 1 OTHERS = 2.

REUSE_ALV_LIST_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_GET' IMPORTING e_width = lv_width EXCEPTIONS no_infos = 1 program_error = 2 OTHERS = 3.

FAGL_BATCH_HEADING_PERFORM CALL FUNCTION 'FAGL_BATCH_HEADING_PERFORM' EXPORTING is_bhdgd = bhdgd.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid *** Begin Note 984428 *** * i_structure_name = gc_tot_struct *** End Note 984428 *** is_layout = gs_layout it_fieldcat = gt_fieldcat it_sort = gt_sortinfo i_save = gc_a is_variant = gs_variant it_events = gt_event TABLES t_outtab = total1[] EXCEPTIONS program_error = 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 J_1AF004 or its description.