RFKKINV_SAMPLE_CREATE_BILLDOC is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report is a sample solution and is designed to be used as a copying template for a customer solution...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 RFKKINV_SAMPLE_CREATE_BILLDOC 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: S_VTREF = D .
Selection Text: S_VKONT = D .
Selection Text: S_TODT = D .
Selection Text: S_TEST = D .
Selection Text: S_TDT = D .
Selection Text: S_TDA = D .
Selection Text: S_SUBAP = D .
Selection Text: S_SIMDOC = D .
Selection Text: S_MAX_A = D .
Selection Text: S_LOGSYS = D .
Selection Text: S_GROSS = D .
Selection Text: S_FROMDT = D .
Selection Text: S_CFC = D .
Selection Text: S_BUKRS = D .
Selection Text: S_NO_IP = Number of Posting-Rel.Items
Selection Text: S_NO_II = Number of Information Items
Selection Text: S_NEG_A = Negative Amounts
Selection Text: S_ISIM = Add Simulated Items
Selection Text: S_BP = Breakpoint
Selection Text: S_BLKSZ = Block Size
Selection Text: S_ADD = Additional Items
Title: Generate Billing Documents
Text Symbol: 041 = See the Documentation
Text Symbol: 040 = Report is only a copying template for a customer solution and does not generate documents
Text Symbol: 030 = Parameter &1 Row &2 Field &3
Text Symbol: 023 = Simulation Run Without Update
Text Symbol: 022 = Number of Log Messages
Text Symbol: 021 = Number of Billing Documents
Text Symbol: 020 = Number of Selected Contract Accounts
Text Symbol: 004 = Contract
Text Symbol: 003 = Additional Document Properties
Text Symbol: 002 = Document Items
Text Symbol: 001 = Document header
Text Symbol: 000 = Contract Account
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
FKKINV_BILLDOC_CREATE CALL FUNCTION 'FKKINV_BILLDOC_CREATE' EXPORTING im_input_tab = p_block-esoa_input_tab im_testrun = p_sel-testrun im_cfcvalidation = p_sel-cfcvalidation im_in_update_task = lv_upd_task IMPORTING ex_output_tab = p_block-esoa_output_tab.
FKK_SUBAP_CHECK CALL FUNCTION 'FKK_SUBAP_CHECK' EXPORTING i_subap = p_sel-subap IMPORTING e_active = lv_subap_active.
BAPI_MESSAGE_GETDETAIL CALL FUNCTION 'BAPI_MESSAGE_GETDETAIL' EXPORTING id = ls_return-id number = ls_return-number textformat = 'ASC' message_v1 = ls_return-message_v1 message_v2 = ls_return-message_v2 message_v3 = ls_return-message_v3 message_v4 = ls_return-message_v4 TABLES text = lt_delta_text.
FKK_GET_APPLICATION CALL FUNCTION 'FKK_GET_APPLICATION' IMPORTING e_applk = applk.
FKK_INV_SRCDOCNO_CONV_FR_ORIG CALL FUNCTION 'FKK_INV_SRCDOCNO_CONV_FR_ORIG' EXPORTING i_srcdoccat = cl_fkkinv_co=>doccat_invbill i_doc_invbi = lv_billdocno IMPORTING e_srcdocno = srcdocno_range-low.
FKK_INV_CFC_CASE_SELECT CALL FUNCTION 'FKK_INV_CFC_CASE_SELECT' EXPORTING i_applk = applk i_srcdoccat_ranges = srcdoccat_ranges i_srcdocno_ranges = srcdocno_ranges IMPORTING e_fkkinv_cfc_tab = cfc_tab.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_structure_name = 'BAPITGB' is_layout = layout TABLES t_outtab = p_result-return_text_tab EXCEPTIONS OTHERS = 0.
FKK_INV_BILLDOC_DISP CALL FUNCTION 'FKK_INV_BILLDOC_DISP' EXPORTING x_repid = sy-repid x_billdoc_tab = billdoc_tab EXCEPTIONS OTHERS = 1.
FKK_GET_APPLICATION CALL FUNCTION 'FKK_GET_APPLICATION' IMPORTING e_applk = applk EXCEPTIONS OTHERS = 0.
FKK_INV_SRCDOCNO_CONV_FR_ORIG CALL FUNCTION 'FKK_INV_SRCDOCNO_CONV_FR_ORIG' EXPORTING i_srcdoccat = cl_fkkinv_co=>doccat_invbill i_doc_invbi = lv_billdocno IMPORTING e_srcdocno = w_srcdoc-srcdocno.
FKK_INV_TRIGGER_SELECT CALL FUNCTION 'FKK_INV_TRIGGER_SELECT' EXPORTING i_applk = applk i_srcdoc_tab = srcdoc_tab IMPORTING e_fkkinv_trig_tab = fkkinv_trig_tab.
FKK_INV_DIALOG_CFC_LIST_DISP CALL FUNCTION 'FKK_INV_DIALOG_CFC_LIST_DISP' EXPORTING i_invcfcno_tab = p_result-invcfcno_tab.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RFKKINV_SAMPLE_CREATE_BILLDOC - Generate Billing Documents RFKKINV_SAMPLE_CREATE_BILLDOC - Generate Billing Documents RFKKINV_SAMPLE_CANCEL_BILLDOC - Reverse Billing Document RFKKINV_SAMPLE_CANCEL_BILLDOC - Reverse Billing Document RFKKINV_SAMPLE_ADJUST_BILLDOC - Adjust Billing Document RFKKINV_SAMPLE_ADJUST_BILLDOC - Adjust Billing Document