SAP Reports / Programs

RFPECOA01 SAP ABAP Report - COA Report (Peru)







RFPECOA01 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for COA Report Perú In Perú müssen bestimmte Unternehmen auf Anforderung durch die Steuerbehörde (SUNAT) einmal im Jahr den COA Bericht durchführen...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 RFPECOA01 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 RFPECOA01. "Basic submit
SUBMIT RFPECOA01 AND RETURN. "Return to original report after report execution complete
SUBMIT RFPECOA01 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: S_DRIVE = Local Disk Drive
Selection Text: S_ERROR = Error Log
Selection Text: S_FILE1 = File Name
Selection Text: S_FILE2 = File Name
Selection Text: S_FILE3 = File Name
Selection Text: S_FILE4 = File Name
Selection Text: S_IMPDOC = Document Type
Selection Text: S_MEMDOC = Document Type
Selection Text: S_NROREG = Start Numbering At
Selection Text: S_PATH = Local Directory
Selection Text: S_PAYDOC = Document Type
Selection Text: S_SELIMP = Create File
Selection Text: S_SELMEM = Create File
Selection Text: S_SELPAY = Create File
Title: COA Report (Peru)
Text Symbol: M02 = Enter a file name
Text Symbol: M03 = Doc. type invalid
Text Symbol: M05 = Enter a document type
Text Symbol: M06 = Enter a document type
Text Symbol: M07 = Following document type entered more than once:
Text Symbol: M20 = File created
Text Symbol: M21 = Processing canceled - no file created
Text Symbol: M22 = Enter document type
Text Symbol: M90 = Error opening file
Text Symbol: M91 = Peruvian currency code invalid (table TCURC)
Text Symbol: S01 = Additional Selections
Text Symbol: S02 = Vendor Data
Text Symbol: S03 = Payment-Related Documents
Text Symbol: S04 = Credit/Debit Memos
Text Symbol: S05 = Import Documents
Text Symbol: S07 = Options
Text Symbol: S08 = Destination
Text Symbol: M01 = Enter a name for the vendor data file
Text Symbol: F01 = Error in record numbering (more than 999,999 records created)
Text Symbol: F02 = Fiscal year missing
Text Symbol: F03 = Fiscal period missing
Text Symbol: F04 = Document date missing
Text Symbol: F05 = Internal document number missing





Text Symbol: F06 = Official document type missing
Text Symbol: F07 = Serial number missing
Text Symbol: F08 = Official document number missing
Text Symbol: F09 = Currency key missing
Text Symbol: F10 = Vendor number missing
Text Symbol: F11 = Organization name missing
Text Symbol: F12 = Official document type missing from reference document
Text Symbol: F13 = Serial number missing from reference document
Text Symbol: F14 = Internal document number missing from reference document
Text Symbol: F15 = Official number missing from reference document
Text Symbol: F16 = Posting date missing from reference document
Text Symbol: F17 = Vendor status unclear (problems with one-time customer status)
Text Symbol: F18 = Reference document missing from this memo
Text Symbol: F19 = Figures too large for COA file format
Text Symbol: F20 = Reference document unclear (multiple references in document)
Text Symbol: F21 = Serial number format is incorrect
Text Symbol: L01 = Files created:
Text Symbol: L02 = File Name
Text Symbol: L03 = Number of Records
Text Symbol: L04 = records
Text Symbol: L05 = Doc. Number
Text Symbol: L06 = Error
Text Symbol: L07 = Error Log
Text Symbol: L08 = No errors occurred
Text Symbol: L09 = No file created
Text Symbol: L10 = Last registration no.:
Text Symbol: L33 = Processing canceled, no file created


INCLUDES used within this REPORT RFPECOA01

INCLUDE RFPECOA01_TOP.


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:

CURRENCY_CODE_ISO_TO_SAP CALL FUNCTION 'CURRENCY_CODE_ISO_TO_SAP' EXPORTING ISO_CODE = 'PEN' IMPORTING SAP_CODE = W_CODE EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' " begin of UNICODE - modifications EXPORTING FILENAME = HLP_FILE_STRING FILETYPE = 'ASC' TABLES DATA_TAB = XTAB61 EXCEPTIONS FILE_WRITE_ERROR = 1 NO_BATCH = 2 GUI_REFUSE_FILETRANSFER = 3 INVALID_TYPE = 4 NO_AUTHORITY = 5 UNKNOWN_ERROR = 6 HEADER_NOT_ALLOWED = 7 SEPARATOR_NOT_ALLOWED = 8 FILESIZE_NOT_ALLOWED = 9 HEADER_TOO_LONG = 10 DP_ERROR_CREATE = 11 DP_ERROR_SEND = 12 DP_ERROR_WRITE = 13 UNKNOWN_DP_ERROR = 14 ACCESS_DENIED = 15 DP_OUT_OF_MEMORY = 16 DISK_FULL = 17 DP_TIMEOUT = 18 FILE_NOT_FOUND = 19 DATAPROVIDER_EXCEPTION = 20 CONTROL_FLUSH_ERROR = 21 OTHERS = 22.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = HLP_FILE_STRING FILETYPE = 'ASC' TABLES DATA_TAB = XTAB58 EXCEPTIONS FILE_WRITE_ERROR = 1 NO_BATCH = 2 GUI_REFUSE_FILETRANSFER = 3 INVALID_TYPE = 4 NO_AUTHORITY = 5 UNKNOWN_ERROR = 6 HEADER_NOT_ALLOWED = 7 SEPARATOR_NOT_ALLOWED = 8 FILESIZE_NOT_ALLOWED = 9 HEADER_TOO_LONG = 10 DP_ERROR_CREATE = 11 DP_ERROR_SEND = 12 DP_ERROR_WRITE = 13 UNKNOWN_DP_ERROR = 14 ACCESS_DENIED = 15 DP_OUT_OF_MEMORY = 16 DISK_FULL = 17 DP_TIMEOUT = 18 FILE_NOT_FOUND = 19 DATAPROVIDER_EXCEPTION = 20 CONTROL_FLUSH_ERROR = 21 OTHERS = 22.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = HLP_FILE_STRING FILETYPE = 'ASC' TABLES DATA_TAB = XTAB68 EXCEPTIONS FILE_WRITE_ERROR = 1 NO_BATCH = 2 GUI_REFUSE_FILETRANSFER = 3 INVALID_TYPE = 4 NO_AUTHORITY = 5 UNKNOWN_ERROR = 6 HEADER_NOT_ALLOWED = 7 SEPARATOR_NOT_ALLOWED = 8 FILESIZE_NOT_ALLOWED = 9 HEADER_TOO_LONG = 10 DP_ERROR_CREATE = 11 DP_ERROR_SEND = 12 DP_ERROR_WRITE = 13 UNKNOWN_DP_ERROR = 14 ACCESS_DENIED = 15 DP_OUT_OF_MEMORY = 16 DISK_FULL = 17 DP_TIMEOUT = 18 FILE_NOT_FOUND = 19 DATAPROVIDER_EXCEPTION = 20 CONTROL_FLUSH_ERROR = 21 OTHERS = 22.

GUI_DOWNLOAD





CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = HLP_FILE_STRING FILETYPE = 'ASC' TABLES DATA_TAB = XTAB78 EXCEPTIONS FILE_WRITE_ERROR = 1 NO_BATCH = 2 GUI_REFUSE_FILETRANSFER = 3 INVALID_TYPE = 4 NO_AUTHORITY = 5 UNKNOWN_ERROR = 6 HEADER_NOT_ALLOWED = 7 SEPARATOR_NOT_ALLOWED = 8 FILESIZE_NOT_ALLOWED = 9 HEADER_TOO_LONG = 10 DP_ERROR_CREATE = 11 DP_ERROR_SEND = 12 DP_ERROR_WRITE = 13 UNKNOWN_DP_ERROR = 14 ACCESS_DENIED = 15 DP_OUT_OF_MEMORY = 16 DISK_FULL = 17 DP_TIMEOUT = 18 FILE_NOT_FOUND = 19 DATAPROVIDER_EXCEPTION = 20 CONTROL_FLUSH_ERROR = 21 OTHERS = 22.



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