SAP Reports / Programs

RFKKBE_SAL2 SAP ABAP Report - Quarterly Tax Return (Belgium)







RFKKBE_SAL2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for trados = fi The report creates a data extract for the quarterly tax return in Belgiu m...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 RFKKBE_SAL2 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 RFKKBE_SAL2. "Basic submit
SUBMIT RFKKBE_SAL2 AND RETURN. "Return to original report after report execution complete
SUBMIT RFKKBE_SAL2 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_TEST = D .
Selection Text: S_OPBEL = Document Number
Selection Text: S_MWSKZ = Tax Code
Selection Text: S_GPART = Business Partner
Selection Text: S_EGRKZ = D .
Selection Text: P_X_XML = Output as XML Document
Selection Text: P_XMLFN = File Name
Selection Text: P_XLETT = Print Accompanying Letter
Selection Text: P_XFILE = Create Data Medium
Selection Text: P_UMKRS = Taxes on Sales/Purchases Group
Selection Text: P_SPRAS = Language for Accomp. Letter
Selection Text: P_PRTA = Printer for Accomp.Letter
Selection Text: P_PDF = Output as PDF-Document
Selection Text: P_LIST = Print Detail List
Selection Text: P_GJAHR = Year
Selection Text: P_FILE = File Name
Selection Text: P_CNTTEL = Telephone
Selection Text: P_CNTADR = Name
Selection Text: P_BUKRS = Company Code
Title: Quarterly Tax Return (Belgium)
Text Symbol: S04 = Contact Person for Accompanying Letter
Text Symbol: S03 = Output Control
Text Symbol: S02 = Further Selections
Text Symbol: S01 = Selections for Report
Text Symbol: C02 = /
Text Symbol: C01 = Reporting Quarter
Text Symbol: 301 = No. Customers
Text Symbol: 300 = Total Amount
Text Symbol: 204 = Amount
Text Symbol: 203 = Tx
Text Symbol: 202 = Postg Date
Text Symbol: 201 = CoCd
Text Symbol: 200 = Document
Text Symbol: 105 = Cy
Text Symbol: 104 = Amount
Text Symbol: 103 = Name/Address
Text Symbol: 102 = Partners
Text Symbol: 101 = Tax No.





Text Symbol: 100 = Rec.No
Text Symbol: 004 = Sales/Purchase Tax Group &1
Text Symbol: 003 = Company Code &1
Text Symbol: 002 = Period &1 - &2
Text Symbol: 001 = Report for &1


INCLUDES used within this REPORT RFKKBE_SAL2

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:

FI_DME_CHARACTERS CALL FUNCTION 'FI_DME_CHARACTERS' IMPORTING * E_CR = * E_LF = E_CRLF = CARR_RET.

ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING ADDRESS_SELECTION = ADDRESS_SEL ADDRESS_GROUP = 'CA01' IMPORTING ADDRESS_VALUE = ADDRESS_VAL.

FKK_BP_EXTRACT_GET CALL FUNCTION 'FKK_BP_EXTRACT_GET' EXPORTING I_PARTNER = DFKKREP02-GPART IMPORTING E_BP_EXTRACT = FKK_GPSHAD EXCEPTIONS OTHERS = 1.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = 'RFKKBE_SAL2' i_internal_tabname = 'LIST_HEADER' CHANGING ct_fieldcat = t_fieldcat.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = 'RFKKBE_SAL2' i_internal_tabname = 'LIST' CHANGING ct_fieldcat = t_fieldcat.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = 'RFKKBE_SAL2' it_fieldcat = t_fieldcat * IT_SORT = it_events = t_events i_tabname_header = 'LIST_HEADER' i_tabname_item = 'LIST' is_keyinfo = s_key_info i_bypassing_buffer = 'X' TABLES t_outtab_header = list_header t_outtab_item = list.

NUMBER_GET_INFO CALL FUNCTION 'NUMBER_GET_INFO' EXPORTING NR_RANGE_NR = '01' OBJECT = 'FKKBEECLST' SUBOBJECT = t001-bukrs TOYEAR = p_gjahr IMPORTING INTERVAL = wa_numberinfo EXCEPTIONS INTERVAL_NOT_FOUND = 1 OBJECT_NOT_FOUND = 2 OTHERS = 3 .

NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING NR_RANGE_NR = '01' OBJECT = 'FKKBEECLST' SUBOBJECT = t001-bukrs TOYEAR = p_gjahr IMPORTING NUMBER = we_dmeexml_cp-file_version EXCEPTIONS INTERVAL_NOT_FOUND = 1 NUMBER_RANGE_NOT_INTERN = 2 OBJECT_NOT_FOUND = 3 QUANTITY_IS_0 = 4 QUANTITY_IS_NOT_1 = 5 INTERVAL_OVERFLOW = 6 BUFFER_OVERFLOW = 7 OTHERS = 8 .

DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = lv_tree_type item = vatlist_xml TABLES file_output = lt_output.

DMEE_PUT_ITEM CALL FUNCTION 'DMEE_PUT_ITEM' EXPORTING item = vatlist_xml TABLES item_tab = lt_output.

DMEE_END CALL FUNCTION 'DMEE_END' EXPORTING uparam = space IMPORTING e_xml = lf_xml TABLES file_output = lt_output.

DMEE_HANDLE_XML_DOCUMENT CALL FUNCTION 'DMEE_HANDLE_XML_DOCUMENT' EXPORTING i_display = 'X'.

FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' EXPORTING logical_filename = p_lgname including_dir = 'X' IMPORTING file_name = p_fname EXCEPTIONS others = 1.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = p_lgname CHANGING physical_filename = p_file EXCEPTIONS OTHERS = 1.



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