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
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: 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??
INCLUDE RFKKPTSAFT_TOP . "#EC INCL_OK
INCLUDE RFKKPTSAFT_SELSCREEN . "#EC INCL_OK
INCLUDE RFKKPTSAFT_FORMS01 . " FOR SCREEN
INCLUDE RFKKPTSAFT_FORMS02 . " LOGIC
No SAP DATABASE tables are accessed within this REPORT code!
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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.