SAP Reports / Programs

RFVEPBOOK SAP ABAP Report - Purchase Ledger (Venezuela)







RFVEPBOOK is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RFVEPBOOK 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 RFVEPBOOK. "Basic submit
SUBMIT RFVEPBOOK AND RETURN. "Return to original report after report execution complete
SUBMIT RFVEPBOOK 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_LIFNR = D .
Selection Text: S_DRMEMO = Document Type Of Debit Memo
Selection Text: S_BUDAT = D .
Selection Text: P_WTTYP = VAT Withholding Tax Type
Selection Text: FL_LCL = Save as Local File
Selection Text: FL_APL = Save on Application Server
Selection Text: FILE_NL = Name of Local File
Selection Text: FILE_NAP = File Name on Appl. Server
Selection Text: ALTFNCUR = Alternate Foreign Currency
Title: Purchase Ledger (Venezuela)
Text Symbol: 821 = Type
Text Symbol: 820 = Memo No.
Text Symbol: 819 = Memo No.
Text Symbol: 818 = No.
Text Symbol: 817 = No.
Text Symbol: 816 = Date
Text Symbol: 815 = No.
Text Symbol: 814 = VAT
Text Symbol: 813 = VAT
Text Symbol: 812 = %
Text Symbol: 811 = VAT
Text Symbol: 809 = Invoice Amt
Text Symbol: 808 = Invoice
Text Symbol: 807 = Related
Text Symbol: 806 = Trans.
Text Symbol: 805 = Credit
Text Symbol: 822 = Invoice
Text Symbol: 823 = Amt Incl.
Text Symbol: 824 = Incl. 0%
Text Symbol: 825 = Base Amt
Text Symbol: 826 = VAT Rate
Text Symbol: 827 = Amt
Text Symbol: 828 = Withheld
Text Symbol: 829 = VAT
Text Symbol: 830 = VAT
Text Symbol: 900 = Certificate No.
Text Symbol: 901 = Date
Text Symbol: 902 = Name of Withholding Company





Text Symbol: 903 = Withholding Company's RIF No.
Text Symbol: 905 = Withholding Company's Tax Address
Text Symbol: 906 = Taxpayer's Name
Text Symbol: 907 = Taxpayer's RIF No.
Text Symbol: 908 = Magnetic Output File Creation
Text Symbol: 804 = Debit
Text Symbol: 001 = RIF:
Text Symbol: 002 = PURCHASES BOOK REPORT
Text Symbol: 003 = Year
Text Symbol: 004 = Mon:
Text Symbol: 005 = Fiscal.Period
Text Symbol: 006 = /
Text Symbol: 007 = TOTALS
Text Symbol: 008 = IMPORTS
Text Symbol: 009 = DOMESTIC
Text Symbol: 010 = FROM
Text Symbol: 011 = TO
Text Symbol: 012 = Totals of Purchase Exempt
Text Symbol: 500 = Document Date
Text Symbol: 501 = Trans. No.
Text Symbol: 502 = RIF Number
Text Symbol: 503 = Name
Text Symbol: 504 = Vendor Type
Text Symbol: 505 = WH Tax Certificate
Text Symbol: 506 = Import Form No.
Text Symbol: 507 = Customs No.
Text Symbol: 508 = Invoice No.
Text Symbol: 509 = Control No.
Text Symbol: 510 = Debit Memo No.
Text Symbol: 511 = Credit Memo. No.
Text Symbol: 512 = Transaction Type
Text Symbol: 513 = Related Invoice No.
Text Symbol: 514 = Invoice Amount Incl. VAT
Text Symbol: 515 = Invoice Amount Incl. 0% VAT
Text Symbol: 516 = VAT Base Amount
Text Symbol: 517 = VAT Rate
Text Symbol: 518 = VAT Amount
Text Symbol: 519 = VAT Withheld
Text Symbol: 520 = VAT Withheld (FCs, NPs)|





Text Symbol: 521 = VAT Advance (Imports)
Text Symbol: 555 = Document Number
Text Symbol: 602 = VAT Base Amt |
Text Symbol: 603 = VAT Amount |
Text Symbol: 604 = VAT Withheld
Text Symbol: 605 = VAT Advance
Text Symbol: 800 = Tran
Text Symbol: 801 = Invoice
Text Symbol: 802 = Invoice
Text Symbol: 803 = Control


INCLUDES used within this REPORT RFVEPBOOK

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:

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_filename parameter_1 = sy-cprog CHANGING physical_filename = file_nap EXCEPTIONS OTHERS = 1.

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = bkpf-budat foreign_currency = altfncur local_amount = EX_HWBAS local_currency = bkpf-hwaer type_of_rate = 'M' IMPORTING foreign_amount = EX_HWBAS EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = bkpf-budat foreign_currency = altfncur local_amount = EX_HWSTE local_currency = bkpf-hwaer type_of_rate = 'M' IMPORTING foreign_amount = EX_HWSTE EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = bkpf-budat foreign_currency = altfncur local_amount = EX_WITHTAX local_currency = bkpf-hwaer type_of_rate = 'M' IMPORTING foreign_amount = EX_WITHTAX EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = REPID IT_FIELDCAT = XFIELD I_SAVE = 'A' "1418586 To get "Save Layout" in ALV IS_LAYOUT = X_LAYOUT IT_EVENTS = GT_XEVENTS TABLES T_OUTTAB = ALVTABLE.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_filename parameter_1 = sy-cprog CHANGING physical_filename = file_nap EXCEPTIONS OTHERS = 1.

VIEW_VBADR CALL FUNCTION 'VIEW_VBADR' EXPORTING INPUT = VBPA NRART = 'LI' IMPORTING ADRESSE = VBADR EXCEPTIONS ERROR = 4.

AC_DOCUMENT_RECORD CALL FUNCTION 'AC_DOCUMENT_RECORD' "#EC *
EXPORTING I_AWTYP = 'RMRP' I_AWREF = EX_REBZG I_AWORG = ls_AWORG I_AWSYS = SPACE I_AWTYP_INCL = SPACE I_AWTYP_EXCL = SPACE I_BUKRS = BKPF-BUKRS I_VALUTYP = '0' X_DIALOG = SPACE TABLES T_DOCUMENTS = lt_BKPF EXCEPTIONS NO_REFERENCE = 0 NO_DOCUMENT = 0.

AC_DOCUMENT_RECORD CALL FUNCTION 'AC_DOCUMENT_RECORD' "#EC *
EXPORTING I_AWTYP = 'RMRP' I_AWREF = EX_REBZG I_AWORG = ls_AWORG2 I_AWSYS = SPACE I_AWTYP_INCL = SPACE I_AWTYP_EXCL = SPACE I_BUKRS = BKPF-BUKRS I_VALUTYP = '0' X_DIALOG = SPACE TABLES T_DOCUMENTS = lt_BKPF2 EXCEPTIONS NO_REFERENCE = 0 NO_DOCUMENT = 0.

ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING address_selection = addr1_sel IMPORTING address_value = addr1_val EXCEPTIONS parameter_error = 0 address_not_exist = 0 version_not_exist = 0.

ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING address_selection = addr1_sel IMPORTING address_value = addr1_val EXCEPTIONS parameter_error = 0 address_not_exist = 0 version_not_exist = 0.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' "#EC * exporting I_BUDAT = BKPF-BUDAT I_BUKRS = T001-BUKRS I_PERIV = T001-PERIV I_GJAHR = BKPF-GJAHR I_MONAT = BKPF-MONAT X_XMO16 = SPACE importing E_GJAHR = post_year E_MONAT = post_month E_POPER = post_peri EXCEPTIONS FISCAL_YEAR PERIOD PERIOD_VERSION POSTING_PERIOD SPECIAL_PERIOD VERSION POSTING_DATE.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE'"#EC * exporting I_BUDAT = BKPF-BLDAT I_BUKRS = T001-BUKRS I_PERIV = T001-PERIV * I_GJAHR = BKPF-GJAHR * I_MONAT = BKPF-MONAT X_XMO16 = SPACE importing E_GJAHR = docu_year E_MONAT = docu_month E_POPER = docu_peri EXCEPTIONS FISCAL_YEAR PERIOD PERIOD_VERSION POSTING_PERIOD SPECIAL_PERIOD VERSION POSTING_DATE.




HRGPBS_HESA_DATE_FORMAT CALL FUNCTION 'HRGPBS_HESA_DATE_FORMAT' EXPORTING p_date = alvtable-bldat IMPORTING datestring = filetable-docdate EXCEPTIONS OTHERS = 1.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = filename = str5 filetype = 'ASC' * APPEND = ' ' * write_field_separator = 'X' * HEADER = '00' * trunc_trailing_blanks = 'X' * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * DAT_MODE = ' ' * CONFIRM_OVERWRITE = ' ' * NO_AUTH_CHECK = ' ' * CODEPAGE = ' ' * IGNORE_CERR = ABAP_TRUE * REPLACEMENT = '#' * WRITE_BOM = ' ' * trunc_trailing_blanks_eol = ' ' * WK1_N_FORMAT = ' ' * WK1_N_SIZE = ' ' * WK1_T_FORMAT = ' ' * WK1_T_SIZE = ' ' * IMPORTING * FILELENGTH = TABLES data_tab = out_table * FIELDNAMES = 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 RFVEPBOOK or its description.