RFAVIS40 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You can use this program to carry out the following automatic steps for processing Financial Accounting payment advice notes: You can automatically generate a payment advice note for Cash Management as well as a payment advice note for Financial Accounting...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 RFAVIS40 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: XVOLI = Proposal list
Selection Text: VARNR = List variant
Selection Text: P_VARIA = D Layout
Selection Text: KONTO = Account
Selection Text: KOART = Account type
Selection Text: ERNAM = Created by
Selection Text: ERDAT = Created on
Selection Text: BUKRS = Company code
Selection Text: AVSID = Pmnt advice no.
Title: Payment Advice Notes: Post Clearing
Text Symbol: STA = Statistic
Text Symbol: S09 = Message for posting ;;
Text Symbol: S08 = Cash disc.amount ;;
Text Symbol: S07 = Gross amount ;;
Text Symbol: S06 = Text ;;
Text Symbol: S05 = on ;;
Text Symbol: S04 = Created by ;;
Text Symbol: S03 = Pmnt advice no. ;;
Text Symbol: S02 = Account ;;
Text Symbol: S01 = CoCd
Text Symbol: B43 = Sess. name
Text Symbol: B33 = Generate batch input
Text Symbol: B23 = Process.Mode
Text Symbol: B13 = Post immediately
Text Symbol: B03 = Posting details
Text Symbol: B02 = Output control
Text Symbol: B01 = Further selections
Text Symbol: 005 = No posting defined
Text Symbol: 004 = Clearing not successful
Text Symbol: 003 = Clearing successful
Text Symbol: 002 = Posting attempts
Text Symbol: 001 = No.of pmnt advices selected:
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
POSTING_INTERFACE_START CALL FUNCTION 'POSTING_INTERFACE_START' EXPORTING i_function = p_function i_group = p_mappe i_holddate = sy-datum i_keep = space i_mode = p_mode i_user = sy-uname.
REMADV_AUTO_CLEARING CALL FUNCTION 'REMADV_AUTO_CLEARING' EXPORTING i_avik = *avik i_function = p_function i_mode = p_mode i_bdcname = p_mappe i_open_close = open_close IMPORTING e_belnr = out_belnr e_gjahr = out_gjahr e_bukrs = out_bukrs e_xakon = out_xakon e_bdcname = out_bdcname TABLES i_avip = xavip EXCEPTIONS posting_error = 1 no_t076a_entry = 2 input_missing = 3 acc_det_error = 4 OTHERS = 5.
POSTING_INTERFACE_END CALL FUNCTION 'POSTING_INTERFACE_END'.
REMADV_INIT CALL FUNCTION 'REMADV_INIT'.
REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = lt_events EXCEPTIONS list_type_wrong = 1 OTHERS = 2.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_internal_tabname = gc_gt_alv_list i_structure_name = gc_rfavis40 " FOAP_S_RFAVIS40_LIST CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
FAGL_BATCH_HEADING_PERFORM CALL FUNCTION 'FAGL_BATCH_HEADING_PERFORM' EXPORTING is_bhdgd = bhdgd.
BAL_DSP_LOG_PRINT CALL FUNCTION 'BAL_DSP_LOG_PRINT' EXPORTING i_s_list_append = gc_value_x i_s_display_profile = gs_prof EXCEPTIONS profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4 OTHERS = 5.
REMADV_DISPLAY CALL FUNCTION 'REMADV_DISPLAY' EXPORTING i_avik = avik i_rfradc = rfradc IMPORTING e_rfradc = rfradc.
REMADV_SAVE_DB_ALL CALL FUNCTION 'REMADV_SAVE_DB_ALL'.
BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = lv_s_log IMPORTING e_log_handle = x_log_handle1 EXCEPTIONS log_header_inconsistent = 1 OTHERS = 2.
BAL_LOG_MSG_ADD_FREE_TEXT CALL FUNCTION 'BAL_LOG_MSG_ADD_FREE_TEXT' EXPORTING i_log_handle = i_log_handle1 i_msgty = gc_value_i "'I' i_text = text-b02 EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.
BAL_LOG_MSG_ADD_FREE_TEXT CALL FUNCTION 'BAL_LOG_MSG_ADD_FREE_TEXT' EXPORTING i_log_handle = i_log_handle1 i_msgty = gc_value_i "'I' i_text = lv_text EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.
BAL_DSP_PROFILE_NO_TREE_GET CALL FUNCTION 'BAL_DSP_PROFILE_NO_TREE_GET' IMPORTING e_s_display_profile = xs_prof.
BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = is_profile i_t_log_handle = lt_log_handle EXCEPTIONS profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4 OTHERS = 5.
BAL_LOG_REFRESH CALL FUNCTION 'BAL_LOG_REFRESH' EXPORTING i_log_handle = i_log_handle1 EXCEPTIONS log_not_found = 1 OTHERS = 2.
REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = gc_value_x CHANGING cs_variant = xs_variant EXCEPTIONS wrong_input = 1 not_found = 2 program_error = 3 OTHERS = 4.
REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = us_variant i_save = gc_value_x IMPORTING e_exit = lv_exit es_variant = ls_variant EXCEPTIONS not_found = 1 program_error = 2 OTHERS = 3.
CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = gc_value_x CHANGING cs_variant = ls_variant EXCEPTIONS wrong_input = 1 not_found = 2 program_error = 3 OTHERS = 4.
POSTING_INTERFACE_START CALL FUNCTION 'POSTING_INTERFACE_START' EXPORTING i_function = p_function i_group = p_mappe i_holddate = sy-datum i_keep = space i_mode = p_mode i_user = sy-uname.
REMADV_AUTO_CLEARING CALL FUNCTION 'REMADV_AUTO_CLEARING' EXPORTING i_avik = *avik i_function = p_function i_mode = p_mode i_bdcname = p_mappe i_open_close = open_close IMPORTING e_belnr = out_belnr e_gjahr = out_gjahr e_bukrs = out_bukrs e_xakon = out_xakon e_bdcname = out_bdcname TABLES i_avip = xavip EXCEPTIONS posting_error = 1 no_t076a_entry = 2 input_missing = 3 acc_det_error = 4 OTHERS = 5.
POSTING_INTERFACE_END CALL FUNCTION 'POSTING_INTERFACE_END'.
REMADV_INIT CALL FUNCTION 'REMADV_INIT'.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = lv_repid is_layout = ls_layout it_fieldcat = lt_fieldcat i_save = lv_save is_variant = gs_variant it_events = lt_events is_print = ls_print TABLES t_outtab = lt_outtab EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_internal_tabname = gc_lt_outtab i_structure_name = gc_rfavis40_append " FCALV_S_SELKRIT CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = lt_events EXCEPTIONS list_type_wrong = 1 OTHERS = 2.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = lv_repid is_layout = ls_layout it_fieldcat = lt_fieldcat i_save = lv_save is_variant = gs_variant it_events = lt_events is_print = ls_print IMPORTING e_exit_caused_by_caller = ls_user TABLES t_outtab = gt_alv_list EXCEPTIONS program_error = 1 OTHERS = 2.
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 RFAVIS40 or its description.
RFAVIS40 - Payment Advice Notes: Post Clearing RFAVIS40 - Payment Advice Notes: Post Clearing RFAVIS30 - Payment Advice Overview (Header and Item Data) RFAVIS30 - Payment Advice Overview (Header and Item Data) RFAVIS20 - Payment Advice Notes: Reorganization RFAVIS20 - Payment Advice Notes: Reorganization