SAP Reports / Programs | Financial Accounting | Contract Accounts Receivable and Payable(FI-CA) SAP FI

RFKKPTSAFT SAP ABAP Report - SAF-T: Source Document Extraction







RFKKPTSAFT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this report to store data of FI-CA source documents relevant for the generation of SAF-T files for the Portuguese authorities...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 RFKKPTSAFT 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 RFKKPTSAFT. "Basic submit
SUBMIT RFKKPTSAFT AND RETURN. "Return to original report after report execution complete
SUBMIT RFKKPTSAFT 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_APPLK = D .
Selection Text: P_BUKRS = D .
Selection Text: S_DATE = D .
Title: SAF-T: Source Document Extraction
Text Symbol: 001 = Merge with FI/SD
Text Symbol: B01 = XML file data
Text Symbol: B02 = Header fields
Text Symbol: B03 = Date format
Text Symbol: B04 = Output option
Text Symbol: B05 = Settings...can be hardcoded??


INCLUDES used within this REPORT RFKKPTSAFT

INCLUDE RFKKPTSAFT_TOP . "#EC INCL_OK
INCLUDE RFKKPTSAFT_SELSCREEN . "#EC INCL_OK
INCLUDE RFKKPTSAFT_FORMS01 . " FOR SCREEN
INCLUDE RFKKPTSAFT_FORMS02 . " LOGIC


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:

FKK_GET_LAST_DAY_OF_MONTH * CALL FUNCTION 'FKK_GET_LAST_DAY_OF_MONTH' * EXPORTING * i_date_in = sy-datum * IMPORTING * e_date_out = s_date-high.

FKK_PT_SAFT_ELEMENT_GEN * CALL FUNCTION 'FKK_PT_SAFT_ELEMENT_GEN' * EXPORTING * iv_dataset = gv_dataset * iv_elementname = 'AuditFile' * iv_bukrs = p_bukrs * iv_gjahr = p_year * iv_period_start = s_date-low " * iv_period_end = s_date-high " * iv_vers = p_vers ** IV_UNICODE = '' * iv_outputmode = lv_output * iv_skip = p_skip * it_seltab = gt_seltab[] * IMPORTING * ev_string = gv_line.

CRM_IC_XML_STRING2XSTRING * CALL FUNCTION 'CRM_IC_XML_STRING2XSTRING' * EXPORTING * instring = gv_line * IMPORTING * outxstring = xml_output.

DISPLAY_XML_STRING * CALL FUNCTION 'DISPLAY_XML_STRING' * EXPORTING * xml_string = xml_output.



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