SAP Reports / Programs

RFIDMXVTOP SAP ABAP Report - Top Vendors Report (Mexico)







RFIDMXVTOP 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 RFIDMXVTOP 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 RFIDMXVTOP. "Basic submit
SUBMIT RFIDMXVTOP AND RETURN. "Return to original report after report execution complete
SUBMIT RFIDMXVTOP 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: COUNTMIN = Number of Vendors in List
Selection Text: DEF_PROZ = Default VAT Rate
Selection Text: FAC_NET = D .
Selection Text: FNAME = File name
Selection Text: FPATH = Application server file path
Selection Text: P_CALY = D .
Selection Text: P_CFILE = Create file?
Selection Text: P_GJAHR = D .
Selection Text: P_MIND = D .
Selection Text: S_GSBER = D .
Selection Text: S_MONATE = D .
Title: Top Vendors Report (Mexico)
Text Symbol: 905 = Variant
Text Symbol: 904 = Foreign Vendors
Text Symbol: 903 = Configure
Text Symbol: 902 = Domestic Vendors
Text Symbol: 901 = Display Variant
Text Symbol: 900 = Output List
Text Symbol: 899 = Layout Variants
Text Symbol: 800 = ******************** PROGRAM LOG ********************
Text Symbol: 703 = Business area
Text Symbol: 702 = Doc. number
Text Symbol: 701 = Company code
Text Symbol: 001 = Reporting period
Text Symbol: 002 = Further selections
Text Symbol: 003 = Number of vendors
Text Symbol: 007 = Create file
Text Symbol: 008 = Business area not used for file
Text Symbol: 020 = Total (all domestic vendors):
Text Symbol: 021 = Total (all foreign vendors):
Text Symbol: 100 = Items
Text Symbol: 101 = CURP number
Text Symbol: 200 = RFC number
Text Symbol: 201 = Name 1
Text Symbol: 202 = Name 2
Text Symbol: 300 = Net sales
Text Symbol: 301 = Activities
Text Symbol: 400 = Street





Text Symbol: 500 = Colonia
Text Symbol: 501 = Postal code
Text Symbol: 600 = Location
Text Symbol: 601 = Region
Text Symbol: 602 = Tel. no.
Text Symbol: 610 = Domestic vendors
Text Symbol: 611 = Foreign vendors


INCLUDES used within this REPORT RFIDMXVTOP

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 = fpath EXCEPTIONS LOGICAL_FILENAME_NOT_FOUND = 1 VALIDATION_FAILED = 2 OTHERS = 3 .

INITIALIZE_STRUCTURE CALL FUNCTION 'INITIALIZE_STRUCTURE' EXPORTING i_n_fill = 0 i_i_fill = 0 CHANGING c_workarea = gw_vend.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid i_structure_name = gc_structure it_fieldcat = lt_fcat i_save = gc_save is_variant = gs_variant TABLES t_outtab = temp_vend EXCEPTIONS program_error = 1 OTHERS = 2.

INITIALIZE_STRUCTURE CALL FUNCTION 'INITIALIZE_STRUCTURE' EXPORTING i_n_fill = 0 i_i_fill = 0 CHANGING c_workarea = gw_vend.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid i_structure_name = gc_structure it_fieldcat = lt_fcat i_save = gc_save is_variant = gs_variant TABLES t_outtab = gt_vend EXCEPTIONS program_error = 1 OTHERS = 2.

POPUP_NO_LIST CALL FUNCTION 'POPUP_NO_LIST'.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = FILENAME = s_filename FILETYPE = 'ASC' * APPEND = ' ' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * DAT_MODE = ' ' * IMPORTING * FILELENGTH = TABLES DATA_TAB = file_tab 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 .

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = lv_repid i_structure_name = gc_structure CHANGING ct_fieldcat = xt_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = lv_repid i_structure_name = gc_structure CHANGING ct_fieldcat = xt_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING I_GJAHR = P_GJAHR * I_MONMIT = 00 I_PERIV = T001-PERIV I_POPER = LCL_POPER IMPORTING E_DATE = LCL_BUDAT EXCEPTIONS INPUT_FALSE = 1 T009_NOTFOUND = 2 T009B_NOTFOUND = 3 OTHERS = 4.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING I_GJAHR = P_GJAHR * I_MONMIT = 00 I_PERIV = T001-PERIV I_POPER = LCL_POPER IMPORTING E_DATE = LCL_BUDAT EXCEPTIONS INPUT_FALSE = 1 T009_NOTFOUND = 2 T009B_NOTFOUND = 3 OTHERS = 4.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = lcl_day * I_MONMIT = 00 i_periv = wa_t009-periv IMPORTING E_BUPER = itab_gjahr-monate_low E_GJAHR = s_gjahr-low EXCEPTIONS OTHERS = 4.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = lcl_day * I_MONMIT = 00 i_periv = wa_t009-periv IMPORTING E_BUPER = itab_gjahr-monate_high E_GJAHR = s_gjahr-high EXCEPTIONS OTHERS = 4.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = iv_repid is_layout = is_layout it_fieldcat = it_fieldcat it_events = it_events i_save = gc_save is_variant = is_variant TABLES t_outtab = it_outtab EXCEPTIONS program_error = 1 OTHERS = 2.

BAL_LOG_MSG_ADD





CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = is_log_handle i_s_msg = ls_msg EXCEPTIONS log_not_found = 0 OTHERS = 1.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = xs_log IMPORTING e_log_handle = xs_log_handle EXCEPTIONS OTHERS = 1.

BAL_DSP_PROFILE_NO_TREE_GET CALL FUNCTION 'BAL_DSP_PROFILE_NO_TREE_GET' IMPORTING e_s_display_profile = xs_display_profile.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = xs_display_profile EXCEPTIONS profile_inconsistent = 1.

BAL_DSP_LOG_PRINT CALL FUNCTION 'BAL_DSP_LOG_PRINT' EXPORTING i_s_list_append = lc_x i_s_display_profile = xs_display_profile EXCEPTIONS profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4 OTHERS = 5.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = ls_variant i_save = gc_save IMPORTING e_exit = l_exit es_variant = l_variant_help.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = gc_save CHANGING cs_variant = ls_variant.



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