SAP Reports / Programs

RVFTFTIM SAP ABAP Report - Foreign Trade: Analysis Import Purchase Orders







RVFTFTIM is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program supports three different core functions for both import purchase orders and for export billing documents: Journals Incompletion status Incompletion reorganization The individual functions are described in detail below...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 RVFTFTIM into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

FTIM - Import Order Analysis


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 RVFTFTIM. "Basic submit
SUBMIT RVFTFTIM AND RETURN. "Return to original report after report execution complete
SUBMIT RVFTFTIM 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_BEDAT = D Document date
Selection Text: P_BSART = D Purchasing document type
Selection Text: P_BUKRS = D Company Code
Selection Text: P_CURR = D Currency
Selection Text: P_EBELN = D Purchasing Document
Selection Text: P_EKORG = D Purchasing organization
Selection Text: P_ERNAM = D Created by
Selection Text: P_ILAND = D Country
Selection Text: P_LIFNR = D Vendor
Selection Text: P_LLIEF = D Supplying vendor
Selection Text: P_REORG = D Reorg. Incompleteness
Selection Text: P_RESWK = D Delivering plant
Selection Text: P_VARI = D Layout
Selection Text: P_WERKS = D Plant
Selection Text: S_COIMP = D Import code no.
Selection Text: S_EXART = D Business transaction type
Selection Text: S_EXPRF = D Procedures
Selection Text: S_EXPVZ = D ModeOfTrnsprt-Border
Selection Text: S_HERKL = D Country of origin
Selection Text: S_IEVER = D DomestModeOfTransp.
Selection Text: S_STAWN = D Comm./Imp. code no.
Selection Text: S_ZOLLA = D Customs office
Title: Foreign Trade: Analysis Import Purchase Orders
Text Symbol: L07 = Address
Text Symbol: P01 = Read purch.order
Text Symbol: P02 = Generate ALV list
Text Symbol: P04 = Process: System status
Text Symbol: P05 = Process: Manual status
Text Symbol: P06 = Generate: Tree Cont.
Text Symbol: S01 = Document
Text Symbol: S02 = blocked by
Text Symbol: T01 = Level
Text Symbol: T02 = Quality criteria
Text Symbol: T12 = Customs Office: Office of Entry for FT
Text Symbol: V01 = Journals
Text Symbol: V02 = Import Journal
Text Symbol: V10 = Monitoring
Text Symbol: V11 = Journals





Text Symbol: V12 = or a receiving plant
Text Symbol: V13 = Ctry
Text Symbol: V14 = Vendor
Text Symbol: V16 = Payer
Text Symbol: V17 = Sold-to
Text Symbol: V18 = Ship-to party
Text Symbol: V19 = Reorganization
Text Symbol: V20 = Import
Text Symbol: V21 = Export
Text Symbol: EA5 = A general error has occurred
Text Symbol: EA4 = Internal error has occurred
Text Symbol: EA3 = Version does not exist
Text Symbol: EA2 = Address does not exist
Text Symbol: EA1 = Incorr. parameter transf.
Text Symbol: E09 = Receipt / Import and Dispatch / Export
Text Symbol: E08 = Dispatch / Export
Text Symbol: E07 = Receipt / Import
Text Symbol: E02 = Error while reading the parameter addr
Text Symbol: C02 = Incomplete
Text Symbol: C01 = Complete
Text Symbol: B09 = Item
Text Symbol: B08 = Manual status
Text Symbol: B07 = OverallStatus(system)
Text Symbol: B06 = Fld Selectn
Text Symbol: B05 = Hdr
Text Symbol: B04 = List Format
Text Symbol: B03 = Further doc. data
Text Symbol: B02 = Geography - Import
Text Symbol: B01 = Geography-Departure
Text Symbol: 003 = Pur. Order
Text Symbol: 002 = BillDoc
Text Symbol: 001 = Pur. Order
Text Symbol: G01 = CtryOfDeprt
Text Symbol: L06 = A general error has occurred
Text Symbol: L05 = Internal error has occurred
Text Symbol: L04 = Version does not exist
Text Symbol: L03 = Address does not exist
Text Symbol: L02 = Incorr. parameter transf.
Text Symbol: L01 = Error reading customer address:





Text Symbol: K04 = ApprovlNo.
Text Symbol: K03 = Date:
Text Symbol: K02 = Created by
Text Symbol: K01 = Import order analysis
Text Symbol: I06 = @3R@
Text Symbol: I05 = @3P@
Text Symbol: I04 = @02@
Text Symbol: I03 = @01@
Text Symbol: I02 = @0A@
Text Symbol: I01 = @08@
Text Symbol: G40 = Graphic: Import order analysis
Text Symbol: G21 = Key fig.
Text Symbol: G12 = Statistical Value
Text Symbol: G11 = Invoice value
Text Symbol: G04 = GoodsNo./CodeNo.
Text Symbol: G03 = Plnt
Text Symbol: G02 = Purch. Organization


INCLUDES used within this REPORT RVFTFTIM

INCLUDE FTCODATA.
INCLUDE FTCODALV.
INCLUDE FTFTIMSE.
INCLUDE FTCOSALV.
INCLUDE FTFTKOPF.
INCLUDE FTFTPOSI.
INCLUDE FTFTIMAT.
INCLUDE FTCOATAL.
INCLUDE FTCOFORM.


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:

FT_COCKPIT_IMP_ORDERS_SELECT CALL FUNCTION 'FT_COCKPIT_IMP_ORDERS_SELECT' TABLES i_range_iland = p_iland i_range_ebeln = p_ebeln i_range_bukrs = p_bukrs i_range_bsart = p_bsart i_range_ernam = ranges_ernam i_range_bedat = p_bedat i_range_ekorg = p_ekorg i_range_lifnr = p_lifnr i_range_llief = p_llief i_range_werks = p_werks i_range_reswk = p_reswk itab_ekko = itab_ekko itab_ekpo = itab_ekpo itab_lfa1 = itab_lfa1 EXCEPTIONS no_data_selected = 1 OTHERS = 2.

EXPIMP_TABLES_REFRESH CALL FUNCTION 'EXPIMP_TABLES_REFRESH'.

EXPIMP_MASS_DATA_READ CALL FUNCTION 'EXPIMP_MASS_DATA_READ' EXPORTING i_ahbas = con_1be i_updkz = 'U' i_t_range_expvz = s_expvz[] i_t_range_iever = s_iever[] i_t_range_zolla = s_zolla[] i_t_range_stawn = s_stawn[] i_t_range_coimp = s_coimp[] i_t_range_exprf = s_exprf[] i_t_range_exart = s_exart[] i_t_range_herkl = s_herkl[] TABLES i_t_ekko = itab_ekko EXCEPTIONS wrong_update_flag = 1 no_ft_data_found = 2 OTHERS = 3.

EXPIMP_MASS_DATA_RETRIEVE CALL FUNCTION 'EXPIMP_MASS_DATA_RETRIEVE' TABLES i_t_ft_header = itab_eikp i_t_ft_line_item = itab_eipo EXCEPTIONS no_ft_data_found = 1 OTHERS = 2.

FT_LIST_COCKPIT_IMPEXP_MONITOR CALL FUNCTION 'FT_LIST_COCKPIT_IMPEXP_MONITOR' EXPORTING i_variant = p_vari i_reportname = con_report_ftim i_ahbas = con_1be TABLES t_alv_ko = alv_itab_ko t_alv_po = alv_itab_po EXCEPTIONS alv_error = 1 OTHERS = 2.

REUSE_ALV_VARIANT_DEFAULT_GET



CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = 'A' CHANGING cs_variant = gx_variant EXCEPTIONS not_found = 4.

EXPIMP_TABLES_REFRESH CALL FUNCTION 'EXPIMP_TABLES_REFRESH'.

EXPIMP_MASS_DATA_READ CALL FUNCTION 'EXPIMP_MASS_DATA_READ' EXPORTING i_ahbas = con_1be i_updkz = 'U' i_invoice_creation = ' ' i_t_range_expvz = s_expvz[] i_t_range_iever = s_iever[] i_t_range_zolla = s_zolla[] i_t_range_stawn = s_stawn[] i_t_range_coimp = s_coimp[] i_t_range_exprf = s_exprf[] i_t_range_exart = s_exart[] i_t_range_herkl = s_herkl[] TABLES i_t_ekko = lt_itab_ekko EXCEPTIONS wrong_update_flag = 1 no_ft_data_found = 2 OTHERS = 3.

EXPIMP_POSTING_TRIGGER CALL FUNCTION 'EXPIMP_POSTING_TRIGGER' EXPORTING i_ahbas = con_1be TABLES i_t_ekko = lt_itab_ekko.

ENQUEUE_EMEKKOE CALL FUNCTION 'ENQUEUE_EMEKKOE' EXPORTING mode_ekko = 'E' mandt = sy-mandt ebeln = lt_itab_ekko-ebeln EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DEQUEUE_EMEKKOE CALL FUNCTION 'DEQUEUE_EMEKKOE' EXPORTING mode_ekko = 'E' mandt = sy-mandt ebeln = lt_itab_ekko-ebeln.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = lv_datlo foreign_amount = f_wert foreign_currency = f_curr local_currency = l_curr type_of_rate = 'M' IMPORTING exchange_rate = l_rate * FOREIGN_FACTOR = local_amount = l_amnt * LOCAL_FACTOR = * EXCHANGE_RATEX = * FIXED_RATE = * DERIVED_RATE_TYPE = EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.



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