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

J_1AF011 SAP ABAP Report - Payment Notice (AR)







J_1AF011 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 payment notices with the company, customer, paymentand cleared document data for each payment document...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_1AF011 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_1AF011. "Basic submit
SUBMIT J_1AF011 AND RETURN. "Return to original report after report execution complete
SUBMIT J_1AF011 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: P_PDF = ADOBE output
Selection Text: P_SS_PDF = SAPSCRIPT output
Selection Text: S_COPY = No. of copies
Selection Text: S_FORM = Layout set
Selection Text: S_PDATE = Printing date
Title: Payment Notice (AR)
Text Symbol: 040 = DISPLAY MODE
Text Symbol: S01 = Output


INCLUDES used within this REPORT J_1AF011

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:

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.

CUSTOMER_READ CALL FUNCTION 'CUSTOMER_READ' EXPORTING i_bukrs = space i_kunnr = bseg-kunnr IMPORTING e_kna1 = kna1.

CLOSE_FORM CALL FUNCTION 'CLOSE_FORM'.

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.

OPEN_FORM CALL FUNCTION 'OPEN_FORM' " open form for output EXPORTING form = s_form dialog = 'X' options = itcpo device = 'PRINTER'.

START_FORM CALL FUNCTION 'START_FORM' EXPORTING form = s_form startpage = 'PAGE1'.

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 = xkna1-stcd2 IMPORTING e_stcd2 = j_1ai02-stcd2_2.

J_1A_EXIT_J_1AF011 CALL FUNCTION 'J_1A_EXIT_J_1AF011' EXPORTING i_bkpf = bkpf i_sadr = sadr i_dkadr = dkadr i_kna1 = kna1 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 window = 'HEADER' element = 'NET'.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING window = 'HEADER' element = 'GROSS'.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'TOTAL'.

END_FORM CALL FUNCTION 'END_FORM'.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'GROSS_DC'.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'GROSS_LC'.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'NET_DC'.

WRITE_FORM





CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'NET_LC'.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'PAYMENT_LINES_HD'.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'PAYMENT_LINES'.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = 'PAYMENT_LINES_TOTAL'.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = bkpf-wwert foreign_amount = f_wrbtr foreign_currency = f_f_waers rate = f_kursf local_currency = f_l_waers IMPORTING local_amount = f_dmbtr.

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = bkpf-wwert local_amount = f_dmbtr local_currency = f_l_waers rate = f_kursf foreign_currency = f_f_waers IMPORTING foreign_amount = f_wrbtr.

FP_FUNCTION_MODULE_NAME CALL FUNCTION 'FP_FUNCTION_MODULE_NAME' EXPORTING i_name = 'J_1A_F011_PM_NOT' "gv_fname IMPORTING e_funcname = fm_name e_interface_type = e_interface_type.

FP_JOB_OPEN CALL FUNCTION 'FP_JOB_OPEN' CHANGING ie_outputparams = 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.



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