J_1AF007 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report generates certificates with the company, vendor/customer data, the reference documents (invoice, credit/debit memos) and the amount in document currency...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_1AF007 into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: PDF = ADOBE output
Selection Text: SAP = SAPSCRIPT output
Selection Text: S_COPY = No. of copies
Selection Text: S_FORM = Layout set
Selection Text: S_PDATE = Printing date
Selection Text: S_SIGN = Signature
Title: Printing of documents (no payments)
Text Symbol: S01 = Output
Text Symbol: S02 = Output Control
Text Symbol: V01 = Base
Text Symbol: V02 = Total
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
DISPLAY_FORM_TREE_F4 CALL FUNCTION 'DISPLAY_FORM_TREE_F4' " begin of UNICODE modificatio EXPORTING p_tree_name = 'SAP_ALL' * P_DISPLAY_MODE = ' ' * I_FORM_NAME = IMPORTING p_form_name = s_form * P_FORM_LANGUAGE = EXCEPTIONS CANCELLED = 1 PARAMETER_ERROR = 2 NOT_FOUND = 3 OTHERS = 4.
CLOSE_FORM CALL FUNCTION 'CLOSE_FORM'.
OPEN_FORM CALL FUNCTION 'OPEN_FORM' " open form for output EXPORTING form = s_form dialog = 'X' OPTIONS = itcpo device = 'PRINTER'.
ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING address_selection = addr1_sel address_group = 'CA01' * read_sadr_only = 'X' IMPORTING sadr = sadr.
J_1A_PUT_DASHES_TO_STCD2 CALL FUNCTION 'J_1A_PUT_DASHES_TO_STCD2' EXPORTING i_stcd2 = xstcd2 IMPORTING e_stcd2 = xt001-stcd2.
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.
J_1A_EXIT_J_1AF007 CALL FUNCTION 'J_1A_EXIT_J_1AF007' EXPORTING i_bkpf = bkpf i_sadr = sadr i_dkadr = dkadr i_koart = docm-koart i_kna1 = kna1 i_lfa1 = lfa1 i_bsec = bsec i_j_1ai02 = j_1ai02 IMPORTING e_j_1ai02 = j_1ai02 e_sadr = sadr e_dkadr = dkadr.
WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING window = 'COPY_NO' element = 'LINE'.
WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'HEADER_LINES'.
WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'LINES'.
WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'LINE'.
WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'SIGNATURE'.
END_FORM CALL FUNCTION 'END_FORM'.
START_FORM CALL FUNCTION 'START_FORM' EXPORTING form = s_form startpage = 'FIRST'.
J_1A_PUT_DASHES_TO_STCD2 CALL FUNCTION 'J_1A_PUT_DASHES_TO_STCD2' EXPORTING i_stcd2 = xbsec-stcd2 IMPORTING e_stcd2 = j_1ai02-stcd2_2.
J_1A_PUT_DASHES_TO_STCD2 CALL FUNCTION 'J_1A_PUT_DASHES_TO_STCD2' EXPORTING i_stcd2 = xlfa1-stcd2 IMPORTING e_stcd2 = j_1ai02-stcd2_2.
J_1A_PUT_DASHES_TO_STCD2 CALL FUNCTION 'J_1A_PUT_DASHES_TO_STCD2' EXPORTING i_stcd2 = xkna1-stcd2 IMPORTING e_stcd2 = j_1ai02-stcd2_2.
CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'TOTAL_GROSS_DC'.
WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'TOTAL_GROSS_LC'.
WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'TOTAL_NET_HEADER'.
WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'TOTAL_NET_BASE'.
WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'TOTAL_NET_TAX_NO_RATE'.
WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'TOTAL_NET_TAX'.
WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'LINE'.
WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'TOTAL_NET_AMNT'.
FP_FUNCTION_MODULE_NAME CALL FUNCTION 'FP_FUNCTION_MODULE_NAME' EXPORTING i_name = gv_formname IMPORTING e_funcname = gv_fm_name e_interface_type = gv_interface_type.
FP_JOB_OPEN CALL FUNCTION 'FP_JOB_OPEN' CHANGING ie_outputparams = gv_fp_outputparams EXCEPTIONS cancel = 1 usage_error = 2 system_error = 3 internal_error = 4 OTHERS = 5.
FP_JOB_CLOSE CALL FUNCTION 'FP_JOB_CLOSE' EXCEPTIONS usage_error = 1 system_error = 2 internal_error = 3 OTHERS = 4.
ADDRESS_INTO_PRINTFORM CALL FUNCTION 'ADDRESS_INTO_PRINTFORM' EXPORTING ADDRESS_1 = LS_ADDRESS ADDRESS_TYPE = '1' "normal/company STREET_HAS_PRIORITY = 'X' sender_country = gs_vendor_address1-INLND NUMBER_OF_LINES = 5 IMPORTING ADDRESS_PRINTFORM_TABLE = LT_ADDRESS_LINES.
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_1AF007 or its description.
J_1AF007 - Printing of documents (no payments) J_1AF007 - Printing of documents (no payments) J_1AF004 - Compact Document Journal J_1AF004 - Compact Document Journal J_1ACONV - Conversion of material master inflation data (split valuated mat.) J_1ACONV - Conversion of material master inflation data (split valuated mat.)