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

RVEXKOMA SAP ABAP Report - Foreign trade: Consistency check - Material master







RVEXKOMA is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report checks whether data relevant to foreign trade is complete and valid in all material master records for a certain plant...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 RVEXKOMA 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

VE81X - Incompleteness: FT Material Data
VE83X - Incompleteness: Preference Material
VI81X - Check Report: CAP Products
VE82X - Incompleteness: Export Control Data


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 RVEXKOMA. "Basic submit
SUBMIT RVEXKOMA AND RETURN. "Return to original report after report execution complete
SUBMIT RVEXKOMA 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_STAWN = Commodity code/Import code no.
Selection Text: P_PREFE = Execute check
Selection Text: P_PMAST = D Indiv.maintenance matl master
Selection Text: P_ONLY_M = CAP products
Selection Text: P_NEGBES = Exemption certificate
Selection Text: P_MTVER = Export/Import group
Selection Text: P_MTEXT = D Material text
Selection Text: P_MOW = Execute check
Selection Text: P_LVORM = Deletion indicator not set
Selection Text: P_ITARK = D Military goods
Selection Text: P_HERKR = Region of origin
Selection Text: P_HERKL = Ctry of origin
Selection Text: P_GPNUM = PRODCOM no.
Selection Text: P_GGAKT = active legal regulations
Selection Text: P_FTGEN = Execute check
Selection Text: P_EXPCTR = Execute check
Selection Text: P_ERSDA = Mat. created as of
Selection Text: P_ERROR = Material to be maintained
Selection Text: P_EINK = Purchasing view
Selection Text: P_CHARG = Material batches
Selection Text: P_CASNR = CAS no.
Selection Text: P_BEMEH = Special unit of measure
Selection Text: P_T005S = Countries: Regions
Selection Text: S_VTWEG = D Distribution channel
Selection Text: S_VKORG = D Sales organization
Selection Text: S_STAWN = D Comm./imp. code no.
Selection Text: S_PRENG = D Vendor decl. date
Selection Text: S_PRENE = D Vendor decl. code
Selection Text: S_PREFE = Preference authoriz.
Selection Text: S_PREDA = D Pref. determination date
Selection Text: S_MTVER = D Export/Import group
Selection Text: S_MOWNR = D CAP product list no.
Selection Text: S_MOGRU = D CAP prod. group
Selection Text: S_MATNR = D Material
Selection Text: P_VERTR = Sales view
Selection Text: P_WEIGHT = Weight/Volume/Units
Selection Text: P_WERKS = D Plant
Selection Text: S_ALNUM = D Export control class





Selection Text: S_CASNR = D CAS number (pharm.)
Selection Text: S_EMBGR = D Grouping
Selection Text: S_GEGRU = Legal Regulation
Selection Text: S_GPNUM = D PRODCOM no.
Selection Text: S_GZOLX = D Preference zone
Selection Text: S_HERKL = D Ctry of origin
Selection Text: S_HERKR = D Region of origin
Title: Foreign trade: Consistency check - Material master
Text Symbol: T13 = Checked, not yet valid
Text Symbol: T12 = No. of entries for
Text Symbol: T11 = No further check of export control data
Text Symbol: T10 = No allowed domain fixed value
Text Symbol: T09 = (Date lies in the past)
Text Symbol: T08 = Checked but no longer valid
Text Symbol: T07 = Checked and OK
Text Symbol: T06 = Not valid
Text Symbol: T05 = Sort:
Text Symbol: T04 = Does not exist
Text Symbol: T03 = Not maintained
Text Symbol: T02 = Check:
Text Symbol: T01 = Import
Text Symbol: S60 = .
Text Symbol: S01 = You cannot branch to object maintenance!
Text Symbol: P26 = Short text
Text Symbol: P25 = Number of market organization in T618M
Text Symbol: P24 = Market organization in T618M
Text Symbol: P23 = EU mark.prod.no. not assigned to market org.
Text Symbol: P22 = EU Market: Market organizations
Text Symbol: P21 = EU market products group (internal)
Text Symbol: T14 = (Date in future)
Text Symbol: T15 = OK
Text Symbol: T16 = Problems
Text Symbol: T17 = Not checked
Text Symbol: T18 = Not assigned
Text Symbol: T19 = Not necessary
Text Symbol: T20 = Indiv. mainten. master data
Text Symbol: T21 = Permitted
Text Symbol: T22 = i.e. all material masters are subject to
Text Symbol: T23 = i.e. no material master is subject to





Text Symbol: T24 = per default of control through this
Text Symbol: T25 = according to legal regulations
Text Symbol: T26 = The flag in the material master has no meaning!
Text Symbol: T27 = Material is subject to legal control!
Text Symbol: T28 = No check because in country of origin,
Text Symbol: T29 = the definition object (T0055) does not
Text Symbol: T30 = have a maintained region!
Text Symbol: T31 = License data!
Text Symbol: W01 = The selection criteria which you have chosen
Text Symbol: W02 = may lead to long runtimes!
Text Symbol: Z01 = ;Status ;Description of action ;Object ;
Text Symbol: Z03 = --> ;
Text Symbol: P20 = EU market products no.
Text Symbol: I02 = the chosen selection criteria
Text Symbol: I03 = Processing has been completed
Text Symbol: L22 = .
Text Symbol: M01 = Grouping
Text Symbol: M02 = Export control class
Text Symbol: M03 = Combination: ExpControlClass/Grouping
Text Symbol: M04 = Material master data (plant level)
Text Symbol: M05 = Legal Regulation
Text Symbol: M06 = Active legal regs for country of plant
Text Symbol: M07 = Countries
Text Symbol: M08 = States
Text Symbol: M09 = Commodity code / Import code number
Text Symbol: M10 = Export/Import group
Text Symbol: M11 = Material number
Text Symbol: M12 = Ctry of origin
Text Symbol: M13 = Region of origin
Text Symbol: M14 = License data in material master
Text Symbol: M15 = Exemption certificate
Text Symbol: M16 = Status of exemption certificate
Text Symbol: M17 = No. of certificate
Text Symbol: M18 = Start of validity period
Text Symbol: M19 = Preference authoriz.
Text Symbol: E01 = The country of the plant
Text Symbol: E02 = has not been maintained in the plant tables!
Text Symbol: E05 = Mark only one type of consistency
Text Symbol: E06 = a type of consistency check



Text Symbol: E08 = Please select at least
Text Symbol: E09 = The special unit of measure can only be
Text Symbol: E10 = checked with the commodity code!
Text Symbol: E11 = This additional check can only be carried out
Text Symbol: E12 = with a regional check!
Text Symbol: E13 = with a country or region of origin check
Text Symbol: E14 = or with export/import group!
Text Symbol: E15 = Select at least the Sales view!
Text Symbol: G00 = Weights, volumes and units
Text Symbol: G01 = Gross weight
Text Symbol: G02 = Volume
Text Symbol: G03 = Net weight
Text Symbol: G04 = Volume unit
Text Symbol: G05 = Weight unit
Text Symbol: G07 = Base unit of measure
Text Symbol: G09 = Checked and OK
Text Symbol: G11 = Does not exist in the system
Text Symbol: I01 = No data record corresponds to
Text Symbol: M20 = Status of vendor declaration
Text Symbol: M43 = Sales organization
Text Symbol: M44 = Distribution channel
Text Symbol: M45 = CAS no.
Text Symbol: M46 = PRODCOM no.
Text Symbol: M47 = Control code (Brazil)
Text Symbol: M50 = Material no. (vendor ID set)
Text Symbol: P01 = Organizational data
Text Symbol: P02 = Legal control
Text Symbol: P03 = License data
Text Symbol: P04 = Checks exclusively for
Text Symbol: P05 = Foreign Trade processing
Text Symbol: P06 = General foreign trade data
Text Symbol: P07 = Preference
Text Symbol: P08 = Issue output to
Text Symbol: P09 = Preference data
Text Symbol: P10 = Check only if at least the following material master views are specified
Text Symbol: P11 = Additional checks
Text Symbol: P14 = Additional specifications
Text Symbol: P16 = Only check region of origin for countries for which regions are defined
Text Symbol: P17 = Deletion indicator
Text Symbol: P18 = CAP Products
Text Symbol: P19 = CAP product data
Text Symbol: M21 = Validity date of vendor decl.
Text Symbol: M22 = Description
Text Symbol: M23 = Preference situation
Text Symbol: M24 = Vendor declaration situation
Text Symbol: M25 = Customs area
Text Symbol: M26 = Preference data in material master
Text Symbol: M27 = Date of preference calculation
Text Symbol: M28 = Spec. unit of measure
Text Symbol: M29 = Base unit of quantity
Text Symbol: M30 = Conversion factors
Text Symbol: M31 = Numerator
Text Symbol: M32 = Denominator
Text Symbol: M33 = Batch number
Text Symbol: M34 = Batch management
Text Symbol: M35 = At plant level
Text Symbol: M36 = Cross-plant
Text Symbol: M37 = No batches have been found!
Text Symbol: M38 = Batch data
Text Symbol: M39 = Material master data (A segment)
Text Symbol: M40 = Material master data (sales data)
Text Symbol: M41 = Organizational units
Text Symbol: M42 = Sales org./dist. channel


INCLUDES used within this REPORT RVEXKOMA

INCLUDE RVEXKODI.


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_MMM_READ_MATERIALS CALL FUNCTION 'FT_MMM_READ_MATERIALS' EXPORTING i_purchasing_view = p_eink i_sales_view = p_vertr i_mat_created_as_of = p_ersda ******************* START OF DELETION - Note 304586 ******************** * I_DELETION_INDICATOR = P_LVORM ******************* END OF DELETION - Note 304586 ******************* ******************* START OF INSERTION - Note 304586 ******************* I_DELETION_INDICATOR = LV_DELETION_INDICATOR ******************* END OF INSERTION - Note 304586 ******************* i_spras = sy-langu i_marc = 'X' * I_MAEX = ' ' * I_MAPE = ' ' * I_MAKT = ' ' i_marm = p_bemeh i_mch1 = p_charg i_mcha = p_charg TABLES it_material_number = s_matnr it_plants = range_werks it_sales_organisation = s_vkorg it_distr_chni = s_vtweg it_commodity_code = s_stawn it_country_of_origin = s_herkl it_region_of_origion = s_herkr it_export_import_group = s_mtver it_cas_number = s_casnr it_prodcom_number = s_gpnum it_control_code_steuc = s_steuc et_mara = int_tab_mara et_marc = int_tab_marc_ah * et_makt = et_marm = int_tab_marm et_mch1 = int_tab_mch1 et_mcha = int_tab_mcha EXCEPTIONS no_materials_found = 1 OTHERS = 2.

DD_DOMVALUES_GET CALL FUNCTION 'DD_DOMVALUES_GET' EXPORTING domname = h_domname text = 'X' TABLES dd07v_tab = h_dd07v.

MAKT_SINGLE_READ CALL FUNCTION 'MAKT_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 matnr = int_tab_marc_ah-matnr spras = sy-langu IMPORTING wmakt = loc_struc_makt EXCEPTIONS wrong_call = 1 not_found = 2 OTHERS = 3.

MAKT_SINGLE_READ CALL FUNCTION 'MAKT_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 matnr = int_tab_marc_ah-matnr spras = sy-langu IMPORTING wmakt = loc_struc_makt EXCEPTIONS wrong_call = 1 not_found = 2 OTHERS = 3.

MAKT_SINGLE_READ CALL FUNCTION 'MAKT_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 matnr = int_tab_marc_ah-matnr spras = sy-langu IMPORTING wmakt = loc_struc_makt EXCEPTIONS wrong_call = 1 not_found = 2 OTHERS = 3.

MAKT_SINGLE_READ CALL FUNCTION 'MAKT_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 matnr = int_tab_marc_ah-matnr spras = sy-langu IMPORTING wmakt = loc_struc_makt EXCEPTIONS wrong_call = 1 not_found = 2 OTHERS = 3.

T006_SINGLE_READ CALL FUNCTION 'T006_SINGLE_READ' EXPORTING * KZRFB = ' ' t006_msehi = int_tab_mara-gewei * IMPORTING * WT006 = EXCEPTIONS not_found = 1 OTHERS = 2.

T006_SINGLE_READ CALL FUNCTION 'T006_SINGLE_READ' EXPORTING * KZRFB = ' ' t006_msehi = int_tab_mara-voleh * IMPORTING * WT006 = EXCEPTIONS not_found = 1 OTHERS = 2.

T006_SINGLE_READ CALL FUNCTION 'T006_SINGLE_READ' EXPORTING * KZRFB = ' ' t006_msehi = int_tab_mara-meins * IMPORTING * WT006 = EXCEPTIONS not_found = 1 OTHERS = 2.

HELP_START CALL FUNCTION 'HELP_START' EXPORTING help_infos = l_help_info TABLES dynpselect = l_dselc dynpvaluetab = l_dval.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = loc_dyname dynumb = loc_dynumb translate_to_upper = loc_translate_to_upper TABLES dynpfields = feld_tabelle.

RV_HELP CALL FUNCTION 'RV_HELP' EXPORTING field_in = loc_regio key = h_land key3 = loc_key3 number = loc_number IMPORTING field = loc_regio.

MAKT_SINGLE_READ CALL FUNCTION 'MAKT_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 matnr = int_tab_marc_ah-matnr spras = sy-langu IMPORTING wmakt = loc_struc_makt EXCEPTIONS wrong_call = 1 not_found = 2 OTHERS = 3.



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