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

RVEXSBPR SAP ABAP Report - Print Foreign Trade Documents







RVEXSBPR is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Print Foreign Trade Documents This report enables you to issue foreign trade output as a printout...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 RVEXSBPR 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

VIB5 - Print Transaction: Repeat Procg
VIB6 - Print Transaction: Error in Procg
VIB7 - Send IDoc Output - Initial Procg
VIB4 - Print Transaction: Initial Procg
VIB8 - Send IDoc Output - Repeat Procg
VIB9 - Send IDoc Output - Error in Procg
VIBA - Send IDoc Output-AES-Initial Procg
VIBB - Send IDoc Output-AES-Repeat Procg
VIBC - Send IDoc Output-AES-Error in Procg
VE72 - Export - Billing Documents
VIB2 - Call Print Program From VI10/VI14
VIB1 - Send IDoc Output


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 RVEXSBPR. "Basic submit
SUBMIT RVEXSBPR AND RETURN. "Return to original report after report execution complete
SUBMIT RVEXSBPR 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: RG_VBTYP = SD document category
Selection Text: RG_VBELN = Billing document
Selection Text: RG_KUNRG = Payer
Selection Text: RG_KUNAG = Sold-to party
Selection Text: RG_KSCHL = Output type
Selection Text: RG_FKDAT = Billing date
Selection Text: P_FTEXP = Foreign trade billing docs
Selection Text: PM_VSZTP = D Time of shipping
Selection Text: PM_VERMO = Processing mode
Selection Text: PM_NACHA = Transmission medium
Selection Text: PM_LAND1 = Destination country
Title: Print Foreign Trade Documents
Text Symbol: T18 = Document &1, output &2 being processed...
Text Symbol: T17 = Error processing
Text Symbol: T16 = Repeat processing
Text Symbol: T15 = First processing
Text Symbol: T12 = Incorrectly processed
Text Symbol: T11 = Successfully processed
Text Symbol: T10 = Not processed
Text Symbol: G10 = Item &1
Text Symbol: G02 = Manual entries
Text Symbol: G01 = Form structure will be created... &1 %
Text Symbol: C20 = No text found!
Text Symbol: C09 = Standard
Text Symbol: C08 = Version
Text Symbol: C07 = Do you want to process the last version that has been printed or manually changed or the SAP version?
Text Symbol: C06 = Select output version...
Text Symbol: C05 = Do you want to continue processing without entering a document number?
Text Symbol: C04 = No
Text Symbol: C03 = Yes
Text Symbol: C02 = Have you inserted paper for printing output '&1 - &2'?
Text Symbol: C01 = Confirmation prompt...
Text Symbol: 007 = Additional bill.doc.data
Text Symbol: 006 = Org. data
Text Symbol: 003 = Cust. data
Text Symbol: 002 = FT billing documents
Text Symbol: 001 = Message Data


INCLUDES used within this REPORT RVEXSBPR

INCLUDE CNT4DEFS.




INCLUDE SIMAGECONTROLCLASSDEF.
INCLUDE SIMAGECONTROLCLASSIMPL.
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:

CONTROL_SET_WINDOW_PROPERTY call function 'CONTROL_SET_WINDOW_PROPERTY' exporting h_control = &1 propid = &2 value = &3.

RV_HELP call function 'RV_HELP' exporting key = con_kappl_v3 number = '035' importing field = rg_kschl-low.

RV_HELP call function 'RV_HELP' exporting key = con_kappl_v3 number = '035' importing field = rg_kschl-high.

WFMC_MESSAGES_SELECT call function 'WFMC_MESSAGES_SELECT' exporting pi_application = con_kappl_v3 pi_processing = pm_vermo tables ri_medium = rg_nacha ri_type = rg_kschl ri_object = rg_objky tx_messages = msgs.

RV_FTT_COM_DOC_NUMB_TO_MEMO call function 'RV_FTT_COM_DOC_NUMB_TO_MEMO' exporting document_number = msgs-doknu print_transaction = true repeat_processing = msgs-repro tables exclude_items = exclude_items exceptions others = 1.

RV_FTT_COM_CHANGES_TO_MEMO call function 'RV_FTT_COM_CHANGES_TO_MEMO' tables ftcomt_log = ftcomt_log.

RV_FTT_COM_REFRESH_SET call function 'RV_FTT_COM_REFRESH_SET' exporting i_refresh = false i_refresh_form_data = true.

RV_FTT_COM_REFRESH_SET call function 'RV_FTT_COM_REFRESH_SET' exporting i_refresh = false i_refresh_form_data = false.

RV_FTT_COM_DOC_NUMB_TO_MEMO call function 'RV_FTT_COM_DOC_NUMB_TO_MEMO' exporting document_number = msgs-doknu print_transaction = true repeat_processing = msgs-repro tables exclude_items = exclude_items exceptions others = 1.

RV_FTT_COM_DOC_NUMB_TO_MEMO call function 'RV_FTT_COM_DOC_NUMB_TO_MEMO' exporting document_number = msgs-doknu print_transaction = true exit_after_data_get = true tables exclude_items = exclude_items.

RV_FTT_COM_REFRESH_SET call function 'RV_FTT_COM_REFRESH_SET' exporting i_refresh = false i_refresh_form_data = true.

RV_FTT_COM_CHANGES_TO_MEMO call function 'RV_FTT_COM_CHANGES_TO_MEMO' tables ftcomt_log = ftcomt_log.

RV_FTT_COM_DOC_NUMB_TO_MEMO CALL FUNCTION 'RV_FTT_COM_DOC_NUMB_TO_MEMO' exporting print_transaction = true exit_after_data_get = false tables exclude_items = exclude_items.

RV_FTT_COM_GET_FORM_DATA call function 'RV_FTT_COM_GET_FORM_DATA' tables data_v55eeudc = t_v55eeudc data_v55efeeu = t_v55efeeu data_v55efetr = t_v55efetr data_v55efeco = t_v55efeco data_v55efet5 = t_v55efet5 data_v55enaft = t_v55enaft data_v55eprin = t_v55eprin data_v55epack = t_v55epack.

CONTROL_INIT call function 'CONTROL_INIT'.

RV_FTT_COM_REFRESH_SET call function 'RV_FTT_COM_REFRESH_SET' exporting i_refresh = false i_refresh_form_data = true.

RV_FTT_COM_CHANGES_TO_MEMO call function 'RV_FTT_COM_CHANGES_TO_MEMO' tables ftcomt_log = ftcomt_log.






RV_FTT_COM_REFRESH_SET call function 'RV_FTT_COM_REFRESH_SET' exporting i_refresh = false i_refresh_form_data = true.

RV_FTT_COM_CHANGES_TO_MEMO call function 'RV_FTT_COM_CHANGES_TO_MEMO' tables ftcomt_log = hlp_ftcomt_log.

RV_FTT_COM_DOC_NUMB_TO_MEMO call function 'RV_FTT_COM_DOC_NUMB_TO_MEMO' exporting print_transaction = true exit_after_data_get = false tables exclude_items = exclude_items.

RV_FTT_COM_REFRESH_SET call function 'RV_FTT_COM_REFRESH_SET' exporting i_refresh = false i_refresh_form_data = false.

RV_FTT_COM_DOC_NUMB_TO_MEMO call function 'RV_FTT_COM_DOC_NUMB_TO_MEMO' exporting print_transaction = false exceptions others = 1.

POPUP_TO_CONFIRM call function 'POPUP_TO_CONFIRM' exporting titlebar = text-c01 text_question = hlp_text text_button_1 = text-c03 icon_button_1 = 'ICON_OKAY' text_button_2 = text-c04 icon_button_2 = 'ICON_CANCEL' default_button = '1' display_cancel_button = ' ' start_column = 18 start_row = 6 importing answer = popup_answer exceptions text_not_found = 1 others = 2.

RV_FTT_COM_DOC_NUMB_TO_MEMO call function 'RV_FTT_COM_DOC_NUMB_TO_MEMO' exporting document_number = msgs-doknu print_transaction = true repeat_processing = msgs-repro tables exclude_items = exclude_items exceptions others = 1.

RV_FTT_COM_CHANGES_TO_MEMO call function 'RV_FTT_COM_CHANGES_TO_MEMO' tables ftcomt_log = ftcomt_log.

RV_FTT_COM_REFRESH_SET call function 'RV_FTT_COM_REFRESH_SET' exporting i_refresh = false i_refresh_form_data = true.

RV_FTT_COM_REFRESH_SET call function 'RV_FTT_COM_REFRESH_SET' exporting i_refresh = false i_refresh_form_data = false.

RV_FTT_COM_FTCOMT_UPDATE_PREPA call function 'RV_FTT_COM_FTCOMT_UPDATE_PREPA' exporting i_vbeln = msgs-vbeln i_kappl = msgs-kappl i_kschl = msgs-kschl i_spras = msgs-spras i_parnr = msgs-parnr i_erdat = nast-erdat "!! i_eruhr = nast-eruhr "!! i_parvw = msgs-parvw i_nacha = msgs-nacha i_ahbas = con_ahbas_2fa i_ftcomt_log = ftcomt_log[] tables t_ftcomt = t_ftcomt exceptions time_zone_not_found = 1 others = 2.

RV_FTT_COM_FTCOMT_POSTING call function 'RV_FTT_COM_FTCOMT_POSTING' tables t_ftcomt = t_ftcomt exceptions insert_error = 1 others = 2.

RV_FTT_COM_DOC_NUMB_FROM_MEMO call function 'RV_FTT_COM_DOC_NUMB_FROM_MEMO' importing document_to_number = msgs-doknu.

WFMC_PROTOCOL_REFRESH call function 'WFMC_PROTOCOL_REFRESH'.

WFMC_PROTOCOL_LOAD call function 'WFMC_PROTOCOL_LOAD' exporting cps_nast = nast.

WFMC_PROTOCOL_SHOW call function 'WFMC_PROTOCOL_SHOW' exporting cps_kalsm = msgs-kalsm cps_nast = nast.

TELECOMMUNICATION_NUMBER_CHECK call function 'TELECOMMUNICATION_NUMBER_CHECK' exporting number = telnr country = kna1-land1 service = 'TELEFAX'.

TELECOMMUNICATION_NUMBER_CHECK call function 'TELECOMMUNICATION_NUMBER_CHECK' exporting number = telnr country = kna1-land1 service = 'TELETEX'.

TELECOMMUNICATION_NUMBER_CHECK call function 'TELECOMMUNICATION_NUMBER_CHECK' exporting number = telnr country = kna1-land1 service = 'TELEX'.

EDI_PARTNER_TEST_OUTGOING



* call function 'EDI_PARTNER_TEST_OUTGOING' * exporting * edi_parvw = msgs-parvw * edi_parnr = msgs-parnr * edi_kappl = msgs-kappl * edi_kschl = msgs-kschl * edi_aende = msgs-aende * exceptions * no_entry_in_tpar = 01 * no_partner_declaration_found = 02.

NUMBER_GET_INFO call function 'NUMBER_GET_INFO' exporting nr_range_nr = t609p_tab-nkrnr object = hlp_nkobj importing interval = nriv exceptions interval_not_found = 1 object_not_found = 2 others = 3.

ICON_CREATE call function 'ICON_CREATE' exporting name = c_icon_yellow info = l_info importing result = p_icon exceptions others = 0.

ICON_CREATE call function 'ICON_CREATE' exporting name = c_icon_green info = l_info importing result = p_icon exceptions others = 0.

ICON_CREATE call function 'ICON_CREATE' exporting name = c_icon_red info = l_info importing result = p_icon exceptions others = 0.

NUMBER_CHECK call function 'NUMBER_CHECK' exporting nr_range_nr = t609p_tab-nkrnr number = v55edynp-doknu object = hlp_nkobj importing returncode = returncode exceptions interval_not_found = 1 number_range_not_extern = 2 object_not_found = 3 others = 4.

NUMBER_GET_INFO call function 'NUMBER_GET_INFO' exporting nr_range_nr = t609p_tab-nkrnr object = hlp_nkobj importing interval = nriv exceptions interval_not_found = 1 object_not_found = 2 others = 3.

RS_REFRESH_FROM_SELECTOPTIONS call function 'RS_REFRESH_FROM_SELECTOPTIONS' exporting curr_report = curr_report tables selection_table = selection_table exceptions not_found = 01 no_report = 02.

POPUP_TO_CONFIRM call function 'POPUP_TO_CONFIRM' exporting titlebar = text-c01 text_question = text-c05 text_button_1 = text-c03 icon_button_1 = 'ICON_OKAY' text_button_2 = text-c04 icon_button_2 = 'ICON_CANCEL' default_button = '1' display_cancel_button = ' ' start_column = 18 start_row = 6 importing answer = popup_answer exceptions text_not_found = 1 others = 2.

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting percentage = 0 text = hlp_text.

POPUP_TO_CONFIRM call function 'POPUP_TO_CONFIRM' exporting titlebar = text-c06 diagnose_object = 'FT_COM_DIALOG_001' text_question = text-c07 text_button_1 = text-c08 * ICON_BUTTON_1 = 'ICON_OKAY' text_button_2 = text-c09 * ICON_BUTTON_2 = 'ICON_CANCEL' default_button = '1' display_cancel_button = 'X' start_column = 18 start_row = 6 importing answer = p_popup_answer exceptions text_not_found = 1 others = 2.

READ_FORM_ELEMENTS call function 'READ_FORM_ELEMENTS' exporting form = sapscript_form language = language status = space tables elements = element_tab exceptions form = 1 unopened = 2 others = 3.

READ_FORM_ELEMENTS call function 'READ_FORM_ELEMENTS' exporting form = sapscript_form language = hlp_language status = space tables elements = element_tab exceptions form = 1 unopened = 2 others = 3.

READ_FORM_LINES call function 'READ_FORM_LINES' exporting element = 'BS200173_CONTROL_46A' form = p_sapscript_form language = p_hlp_language window = 'F000' tables lines = line_tab exceptions element = 1 form = 2 unopened = 3 others = 4.

READ_FORM_LINES call function 'READ_FORM_LINES' exporting element = 'BS200173_CONTROL_46A' form = p_sapscript_form language = stxh-tdospras window = 'F000' tables lines = line_tab exceptions element = 1 form = 2 unopened = 3 others = 4.

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting percentage = proz text = guitxt.

READ_FORM_LINES * CALL FUNCTION 'READ_FORM_LINES' * EXPORTING * ELEMENT = ELEMENT_TAB-ELEMENT * FORM = SAPSCRIPT_FORM * LANGUAGE = P_FORM_LANGUAGE * WINDOW = ELEMENT_TAB-WINDOW * TABLES * LINES = LINE_TAB.

DDIF_FIELDINFO_GET call function 'DDIF_FIELDINFO_GET' exporting tabname = tname fieldname = fname langu = sy-langu tables dfies_tab = tabinf exceptions not_found = 1 internal_error = 2 others = 3.

READ_FORM_ELEMENTS call function 'READ_FORM_ELEMENTS' exporting form = sapscript_form language = p_form_language tables elements = element_tab exceptions form = 1 unopened = 2 others = 3.

READ_FORM_LINES call function 'READ_FORM_LINES' exporting element = element_tab-element form = sapscript_form language = p_form_language window = element_tab-window tables lines = line_tab exceptions element = 1 form = 2 unopened = 3 others = 4.

DDIF_FIELDINFO_GET * CALL FUNCTION 'DDIF_FIELDINFO_GET' * EXPORTING * TABNAME = TNAME * FIELDNAME = FNAME * LANGU = SY-LANGU * TABLES * DFIES_TAB = TABINF * EXCEPTIONS * NOT_FOUND = 1 * INTERNAL_ERROR = 2 * OTHERS = 3.

SPLITTERCONTROL_CREATE call function 'SPLITTERCONTROL_CREATE' exporting "'SAPMSSY0' owner_repid = p_owner_repid owner_dynnr = con_dynnr_100 changing h_control = control_handle_split_100 exceptions create_error = 1 others = 2.

DDIF_FIELDINFO_GET call function 'DDIF_FIELDINFO_GET' exporting tabname = tname fieldname = fname langu = sy-langu tables dfies_tab = tabinf exceptions not_found = 1 internal_error = 2 others = 3.

CONTROL_INIT * CALL FUNCTION 'CONTROL_INIT'.

TREEV_CREATE_LIST_TREE call function 'TREEV_CREATE_LIST_TREE' exporting owner_repid = 'RVEXSBPR' dynnr = con_dynnr_100 left = 0 top = 0 width = 100 height = 100 no_flush = true link_repid = p_link_repid parentid = control_handle_split_100-shellid register_event_item_dbl_click = true register_event_node_dbl_click = true * REGISTER_EVENT_NODE_CONTEXT_M = ' ' * REGISTER_EVENT_ITEM_CONTEXT_M = ' ' register_event_link_click = true register_event_button_click = true * REGISTER_EVENT_CHECKBOX_CHANGE = ' ' with_headers = false item_selection = true node_selection_mode = treev_node_sel_mode_single * GROUP_HEADERS = * HIDE_SELECTION = * HIERARCHY_HEADER = * LIST_ITEM_HEADER = item_table_structure_name = 'V50GTREE' tables node_table = node_table item_table = item_table changing handle = control_handle_tree exceptions create_error = 1 tree_control_not_existing = 2 control_has_no_headers = 3 cntl_system_error = 4 failed = 5 illegal_node_selection_mode = 6 illegal_header_type = 7 illegal_header_alignment = 8 missing_item_structure_name = 9 empty_node_table = 10 error_in_tables = 11 dp_error = 12 illegal_owner_repid = 13 table_structure_name_not_found = 14 others = 15.

TREEV_EXPAND_NODE call function 'TREEV_EXPAND_NODE' exporting handle = control_handle_tree node_key = 'ME#' level_count = 0 expand_all_children = ' ' exceptions others = 6.

CONTROL_REGISTER_EVT_CB call function 'CONTROL_REGISTER_EVT_CB' exporting event = treev_eventid_link_click callback_form = 'HANDLE_TREE_NODE_LINK_0100' is_system_callback = 'X' changing h_control = control_handle_tree exceptions cb_not_found = 1 inv_callback_definition = 2 others = 3.

CONTROL_REGISTER_EVT_CB call function 'CONTROL_REGISTER_EVT_CB' exporting event = treev_eventid_button_click callback_form = 'HANDLE_TREE_BUTTON_CLICK_0100' is_system_callback = 'X' changing h_control = control_handle_tree exceptions cb_not_found = 1 inv_callback_definition = 2 others = 3.

TREEV_GET_EP_LINK_CLICK call function 'TREEV_GET_EP_LINK_CLICK' exporting handle = control_handle_tree importing node_key = node_key item_name = item_name exceptions failed = 1 cntl_system_error = 2 others = 3.

DDIF_FIELDINFO_GET call function 'DDIF_FIELDINFO_GET' exporting tabname = tname fieldname = fname langu = sy-langu tables dfies_tab = tabinf exceptions not_found = 1 internal_error = 2 others = 3.

TREEV_UPDATE_NODES_AND_ITEMS call function 'TREEV_UPDATE_NODES_AND_ITEMS' exporting handle = control_handle_tree item_table_structure_name = con_struc_mtreeuite_ft tables node_table = update_node_table item_table = update_item_table exceptions failed = 1 missing_item_table_struct_name = 2 instance_not_found = 3 not_allowed_for_simple_tree = 4 cntl_system_error = 5 error_in_tables = 6 dp_error = 7 table_structure_name_not_found = 8 others = 9.

TREEV_GET_EP_BUTTON_CLICK call function 'TREEV_GET_EP_BUTTON_CLICK' exporting handle = control_handle_tree importing node_key = node_key item_name = item_name exceptions failed = 1 instance_not_found = 2 not_allowed_for_simple_tree = 3 buttons_not_allowed = 4 cntl_system_error = 5 others = 6. "#EC CALLED

TREEV_DELETE_ALL_NODES call function 'TREEV_DELETE_ALL_NODES' exporting handle = control_handle_tree no_flush = true exceptions failed = 1 cntl_system_error = 2 others = 3.

TREEV_ADD_NODES_AND_ITEMS call function 'TREEV_ADD_NODES_AND_ITEMS' exporting handle = control_handle_tree item_table_structure_name = 'V50GTREE' no_flush = true tables node_table = sav_node_table item_table = sav_item_table exceptions failed = 1 missing_item_table_struct_name = 2 instance_not_found = 3 not_allowed_for_simple_tree = 4 cntl_system_error = 5 error_in_tables = 6 dp_error = 7 table_structure_name_not_found = 8 others = 9.

TREEV_EXPAND_NODE call function 'TREEV_EXPAND_NODE' exporting handle = control_handle_tree node_key = 'ME#' level_count = 0 expand_all_children = ' ' exceptions others = 6.

SAPGUI_SET_FUNCTIONCODE call function 'SAPGUI_SET_FUNCTIONCODE' exporting functioncode = 'SBAC' exceptions function_not_supported = 1 others = 2.

RV_FTT_COM_REFRESH_SET call function 'RV_FTT_COM_REFRESH_SET' exporting i_refresh = true.

CONTROL_DESTROY call function 'CONTROL_DESTROY' * EXPORTING * NO_FLUSH = changing h_control = control_handle_tree exceptions cntl_system_error = 1 cntl_error = 2 others = 3.

CONTROL_DESTROY call function 'CONTROL_DESTROY' changing h_control = control_handle_split_100 exceptions cntl_system_error = 1 cntl_error = 2 others = 3.

READ_FORM call function 'READ_FORM' exporting client = sy-mandt form = tnapr_tab-fonam language = msgs-spras throughclient = 'X' read_only_header = 'X' throughlanguage = 'X' importing form_header = ls_form_header found = lv_found.



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