SAP Reports / Programs | Sales and Distribution | Foreign Trade | Basic Functions(SD-FT-PRO) SAP SD

RVIVST00 SAP ABAP Report - INTRASTAT: Select Data for Receipt via SD Intercompany Billing







RVIVST00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report selects data based on billing documents for creating INTRASTAT statistics later...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 RVIVST00 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

VI98 - Receipt-Basis for Intercomp.Billing


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 RVIVST00. "Basic submit
SUBMIT RVIVST00 AND RETURN. "Return to original report after report execution complete
SUBMIT RVIVST00 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: AU_BUKRS = Company Code
Selection Text: LS_BUKRS = Company Code
Selection Text: LS_WERKS = Plant
Selection Text: P_GJAHR = Reporting Year
Selection Text: P_MILND = Country of Declaration
Selection Text: P_MONAT = Reporting Month
Selection Text: P_PROTO = Log Type
Selection Text: P_SAVOIE = Deletion Type
Selection Text: P_TYPKU = INTRASTAT exchange rate type
Selection Text: P_UVMEI = Issue Addnl Info Incompl.
Selection Text: P_UVMEW = Issue Warnings Incompl.
Selection Text: P_VARIA = Display variant
Selection Text: P_WAERS = Declaration Currency
Title: INTRASTAT: Select Data for Receipt via SD Intercompany Billing
Text Symbol: F09 = Customer EIN ;
Text Symbol: F10 = Incoterms ;
Text Symbol: F11 = Vendor currency ;
Text Symbol: F12 = Vendor EIN ;
Text Symbol: F13 = BO Code (Netherlands) ;
Text Symbol: F14 = Invoice Value ;
Text Symbol: F15 = Domestic/Foreign ID ;
Text Symbol: F16 = Commodity Code ;
Text Symbol: F17 = Country of origin ;
Text Symbol: F18 = Region of origin ;
Text Symbol: F19 = Export/Import procedure ;
Text Symbol: F20 = Mode of Transport ;
Text Symbol: P01 = Loss of Data...
Text Symbol: P02 = Do you want to keep manually changed declaration data?
Text Symbol: P03 = Yes
Text Symbol: P04 = No
Text Symbol: T01 = Processing will be terminated
Text Symbol: T02 = France
Text Symbol: T20 = Incompleteness check - document &1
Text Symbol: T21 = Check and update - document &1
Text Symbol: X01 = Organizational Units
Text Symbol: Y01 = Log Type
Text Symbol: Y02 = Display variant
Text Symbol: 001 = ;No. ;CoCd;BillingDoc;Type;Item ;HgItm;CommodityCode;Inv.value ;Stat.value ;





Text Symbol: 005 = ; ;
Text Symbol: 006 = No log of incomplete items was generated
Text Symbol: 007 = ;BillingDoc;Item ;01;02;03;04;05;06;07;08;09;10;11;12;13;14;15;16;17;18;19;20;
Text Symbol: 008 = Selection Log - Month & / &
Text Symbol: 009 = Log of incomplete items - Month & / &
Text Symbol: 010 = Key to Log of Incomplete Items
Text Symbol: 011 = Selection Log by Commodity Code - Month & / &
Text Symbol: 012 = ;CommCode ;CCod;BillingDoc;Type;Item ;HgItm;Inv.value ;Stat.value ;No. ;
Text Symbol: 015 = ;Field;Explanation ;
Text Symbol: 030 = Currncy
Text Symbol: B01 = Additional specifications ;
Text Symbol: E01 = INTRASTAT - General
Text Symbol: E02 = INTRASTAT: Federal Republic of Germany
Text Symbol: E03 = Ordering Organizational Units
Text Symbol: E04 = Dispatching Organizational Units
Text Symbol: E12 = Issue / Update
Text Symbol: E13 = Country key
Text Symbol: E14 = Add. specfns
Text Symbol: E16 = Date Origin
Text Symbol: E20 = Reporting Month
Text Symbol: E21 = Reporting Year
Text Symbol: E22 = Origin of selection date
Text Symbol: E23 = Numeric Country Key
Text Symbol: E24 = Country of Dec.
Text Symbol: E25 = Decl. Currency
Text Symbol: E26 = Euro Ind.
Text Symbol: E30 = Issue Warnings Incompl.
Text Symbol: E31 = Issue Addnl Info Incompl.
Text Symbol: F01 = Business Transaction Type ;
Text Symbol: F02 = Special Unit of Measure ;
Text Symbol: F03 = Country of Destination ;
Text Symbol: F04 = State of destination ;
Text Symbol: F05 = Own Federal State ;
Text Symbol: F06 = Tare mass ;
Text Symbol: F07 = Loading port/ airport ;
Text Symbol: F08 = Statistical value ;


INCLUDES used within this REPORT RVIVST00

INCLUDE RVVBTYP.
INCLUDE RVEXIEKS.
INCLUDE RVEXF0ST.






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:

FTRADE_DATA_SWITCH_INITIALIZE CALL FUNCTION 'FTRADE_DATA_SWITCH_INITIALIZE'.

RV_FTT_GOV_MEMORY_HANDLING CALL FUNCTION 'RV_FTT_GOV_MEMORY_HANDLING' EXPORTING MODE = 'E' PROGRAM = CON_REPID_SAPLV50G TABLES SELECTION_LOG_OPEN = SELECTION_LOG_OPEN EXCEPTIONS ILLEGAL_MODE = 1 EXPORT_FAILED = 2 IMPORT_FAILED = 3 OTHERS = 4.

RV_FTT_GOV_MEMORY_HANDLING CALL FUNCTION 'RV_FTT_GOV_MEMORY_HANDLING' EXPORTING MODE = 'E' PROGRAM = CON_REPID_SAPLV50G TABLES SELECTION_LOG = SELECTION_LOG EXCEPTIONS ILLEGAL_MODE = 1 EXPORT_FAILED = 2 IMPORT_FAILED = 3 OTHERS = 4.

RV_FTT_GOV_MEMORY_HANDLING CALL FUNCTION 'RV_FTT_GOV_MEMORY_HANDLING' EXPORTING MODE = 'E' PROGRAM = CON_REPID_SAPLV50G TABLES INCOMPLETION_DATA_HEADER = INCOMPLETION_DATA_HEADER EXCEPTIONS ILLEGAL_MODE = 1 EXPORT_FAILED = 2 IMPORT_FAILED = 3 OTHERS = 4.

RV_FTT_GOV_MEMORY_HANDLING CALL FUNCTION 'RV_FTT_GOV_MEMORY_HANDLING' EXPORTING MODE = 'E' PROGRAM = CON_REPID_SAPLV50G TABLES INCOMPLETION_DATA_ITEM = INCOMPLETION_DATA_ITEM EXCEPTIONS ILLEGAL_MODE = 1 EXPORT_FAILED = 2 IMPORT_FAILED = 3 OTHERS = 4.

ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING ADDRESS_SELECTION = SELECTION ADDRESS_GROUP = 'BP' IMPORTING SADR = SADR "SADR40A EXCEPTIONS PARAMETER_ERROR = 1 ADDRESS_NOT_EXIST = 2 VERSION_NOT_EXIST = 3 INTERNAL_ERROR = 4 OTHERS = 5. "SADR40A

RV_FTT_GOV_TABLE_REORGANIZE CALL FUNCTION 'RV_FTT_GOV_TABLE_REORGANIZE' EXPORTING DATUMMONA = P_MONAT DATUMJAHR = P_GJAHR REPORTING_COUNTRY = P_MILND APPLICATION = AUS_SD_FUER_MM ARRIVDEPA = CON_IMPORT DELETE_MODE = P_SAVOIE TABLE_NAME = CON_VEIAV IMPORTING NEXT_FREE_LINE = ZAEHLER TABLES WERKE = AU_WERKS BUCHUNGSKREISE = AU_BUKRS S_VKORG = AU_VKORG UNDELETED_ITEMS = UNDELETED_ITEMS EXCEPTIONS DATABASE_ERROR = 1 INTERNAL_TABLE_ERROR = 2 ILEGAL_MONTH = 3 ILEGAL_YEAR = 4 ILEGAL_APPLICATION = 5 ILEGAL_ARRIVDEPA = 6 ILEGAL_DELETE_MODE = 7 OTHERS = 8.

RV_FTT_GOV_ID_CODES_READ CALL FUNCTION 'RV_FTT_GOV_ID_CODES_READ' EXPORTING I_COMPANY_CODE = BELIEFBUKRS I_COUNTRY = REPORTING_COUNTRY I_REPORTING_TYPE = 'I' IMPORTING E_INTRASTAT_COMPANY_ID = EIGUINR E_INTRASTAT_COMPANY_ADD_ID = ZUSATZN EXCEPTIONS COMPANY_CODE_INITIAL = 1 COUNTRY_INITIAL = 2 WRONG_REPORTING_TYPE = 3 OTHERS = 4.

GET_FIELDTAB CALL FUNCTION 'GET_FIELDTAB' EXPORTING TABNAME = CON_VEIAV WITHTEXT = SPACE TABLES FIELDTAB = TABLE_STRUCTURE_TAB EXCEPTIONS INTERNAL_ERROR = 1 NO_TEXTS_FOUND = 2 TABLE_HAS_NO_FIELDS = 3 TABLE_NOT_ACTIV = 4 OTHERS = 5.



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