SAP Reports / Programs | Logistics - General | Global Trade | Trading Contract(LO-GT-TC) SAP LO

RWB2BRELF03 SAP ABAP INCLUDE - Include RWB2BRELF03







RWB2BRELF03 is a standard ABAP INCLUDE 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 RWB2BRELF03 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 RWB2BRELF03. "Basic submit
SUBMIT RWB2BRELF03 AND RETURN. "Return to original report after report execution complete
SUBMIT RWB2BRELF03 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Include RWB2BRELF03


INCLUDES used within this REPORT RWB2BRELF03

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:

RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING curr_report = sy-repid TABLES selection_table = int_rsparams EXCEPTIONS not_found = 1 no_report = 2 OTHERS = 3.

WB2_ERROR_MSG CALL FUNCTION 'WB2_ERROR_MSG' EXPORTING i_tkonn = -tkonn i_msgid = 'WB2B' i_msgty = 'E' i_msgno = '104' TABLES t_emsg = t_all_msg.

WB2_ERROR_MSG CALL FUNCTION 'WB2_ERROR_MSG' EXPORTING i_tkonn = l_error-tkonn i_tposn = l_error-tposn i_tposn_sub = l_error-tposn_sub i_msgid = l_error-msgid i_msgty = l_error-msgty i_msgno = l_error-msgno i_msgv1 = l_error-msgv1 i_msgv2 = l_error-msgv2 i_msgv3 = l_error-msgv3 i_msgv4 = l_error-msgv4 TABLES t_emsg = t_all_msg.

WB2_ERROR_MSG_INIT CALL FUNCTION 'WB2_ERROR_MSG_INIT' EXPORTING i_with_basis = 'X' i_with_content = 'X'.

WB2_ERROR_MSG_APP_LOG_INIT CALL FUNCTION 'WB2_ERROR_MSG_APP_LOG_INIT' EXPORTING i_extnumber = l_string i_uname = sy-uname i_repid = sy-repid EXCEPTIONS OTHERS = 0.

WB2_ERROR_MSG CALL FUNCTION 'WB2_ERROR_MSG' EXPORTING i_tkonn = l_error-tkonn i_tposn = l_error-tposn i_tposn_sub = l_error-tposn_sub i_msgid = l_error-msgid i_msgty = l_error-msgty i_msgno = l_error-msgno i_msgv1 = l_error-msgv1 i_msgv2 = l_error-msgv2 i_msgv3 = l_error-msgv3 i_msgv4 = l_error-msgv4 TABLES t_emsg = lt_error.

WB2_DISPLAY_MESSAGES_DATA CALL FUNCTION 'WB2_DISPLAY_MESSAGES_DATA' TABLES t_error_messages = lt_error.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_internal_tabname = 'KOMWBHK_LIST_DISPLAY' i_structure_name = 'KOMWBHK_LIST_DISPLAY' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS OTHERS = 0.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = 'RWB2BREL' i_callback_pf_status_set = 'PF_STATUS_SET' i_callback_user_command = 'USER_COMMAND' i_structure_name = 'KOMWBHK_LIST_DISPLAY' is_layout = l_layout i_save = 'A' is_variant = p_gs_disvariant it_except_qinfo = lt_except_qinfo it_fieldcat = lt_fieldcat TABLES t_outtab = pt_komwbhk_list EXCEPTIONS OTHERS = 4.

TH_USER_INFO CALL FUNCTION 'TH_USER_INFO' IMPORTING my_internal_session = my_internal_session.

WB2_BADI_ADD_DATA_INST_GET_TC CALL FUNCTION 'WB2_BADI_ADD_DATA_INST_GET_TC' IMPORTING e_add_data = g_add_data.

WB2_DOCUMENT_DISPLAY CALL FUNCTION 'WB2_DOCUMENT_DISPLAY' EXPORTING tradingcontractno = -tkonn EXCEPTIONS no_document_number = 1 document_header_read_error = 2 OTHERS = 3.

WB2_BADI_ADD_DATA_INST_GET_TC CALL FUNCTION 'WB2_BADI_ADD_DATA_INST_GET_TC' IMPORTING e_add_data = g_add_data.

WB2_DOCUMENT_CHANGE CALL FUNCTION 'WB2_DOCUMENT_CHANGE' EXPORTING tradingcontractno = -tkonn EXCEPTIONS no_document_number = 1 document_header_read_error = 2 OTHERS = 3.

WB2_RESET_EXTERNAL_DATA CALL FUNCTION 'WB2_RESET_EXTERNAL_DATA'.

WB2_UNCOMPLETION_LOG CALL FUNCTION 'WB2_UNCOMPLETION_LOG' EXPORTING i_komwbhk = l_komwbhk dialog = ' ' "no dialog at this point read_db = 'X' iv_only_error_log = ' ' TABLES return = return EXCEPTIONS document_is_complete = 1 OTHERS = 2.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = sy-msgid msgnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 IMPORTING message_text_output = return-scrtext_l.

WB2_CHECK_QUANTITIES CALL FUNCTION 'WB2_CHECK_QUANTITIES' EXPORTING i_tkonn = pt_komwbhk_list-tkonn i_use_case = pt_komwbhk_list-use_case read_items_from_db = 'X' output = 'X' EXCEPTIONS parameter_missmatch = 1 convert_data_missing = 2 OTHERS = 3.

AUTHORITY_CHECK_TCODE





CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = l_tcode EXCEPTIONS ok = 0 not_ok = 1 OTHERS = 2.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING textline1 = text-m01 titel = text-t01 cancel_display = 'X' IMPORTING answer = l_answer.

WB2_ERROR_MSG_INIT CALL FUNCTION 'WB2_ERROR_MSG_INIT' EXPORTING i_with_basis = 'X' i_with_content = 'X'.

WB2_ERROR_MSG CALL FUNCTION 'WB2_ERROR_MSG' EXPORTING i_tkonn = l_error-tkonn i_tposn = l_error-tposn i_tposn_sub = l_error-tposn_sub i_msgid = l_error-msgid i_msgty = l_error-msgty i_msgno = l_error-msgno i_msgv1 = l_error-msgv1 i_msgv2 = l_error-msgv2 i_msgv3 = l_error-msgv3 i_msgv4 = l_error-msgv4 TABLES t_emsg = lt_error.

WB2_DISPLAY_MESSAGES_DATA CALL FUNCTION 'WB2_DISPLAY_MESSAGES_DATA' TABLES t_error_messages = lt_error.

WB2_READ_CUSTOMIZING_SINGLE CALL FUNCTION 'WB2_READ_CUSTOMIZING_SINGLE' EXPORTING trading_contract_type = -tctyp langu = sy-langu IMPORTING document_type = l_tb2be EXCEPTIONS contract_type_missing = 1 status_group_missing = 2 OTHERS = 0.

WB2_READ_CUSTOMIZING_SINGLE CALL FUNCTION 'WB2_READ_CUSTOMIZING_SINGLE' EXPORTING trading_contract_type = l_komwbhk-tctyp langu = sy-langu IMPORTING document_type = l_tb2be TABLES application_status = lt_tb2ba application_status_text = lt_tb2bat EXCEPTIONS contract_type_missing = 1 status_group_missing = 2 OTHERS = 0.

DDIF_DTEL_GET CALL FUNCTION 'DDIF_DTEL_GET' EXPORTING name = 'BTBSTA' langu = sy-langu IMPORTING dd04v_wa = l_dd04v EXCEPTIONS illegal_input = 1 OTHERS = 2.

REUSE_ALV_POPUP_TO_SELECT CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT' EXPORTING i_title = l_title i_tabname = 'TB2BAT' it_fieldcat = lt_fieldcat[] IMPORTING es_selfield = ls_selfield e_exit = l_sel_exit TABLES t_outtab = lt_tb2bat EXCEPTIONS program_error = 1 OTHERS = 2.

WB2_ERROR_MSG_INIT CALL FUNCTION 'WB2_ERROR_MSG_INIT' EXPORTING i_with_basis = 'X' i_with_content = 'X'.

WB2_ERROR_MSG CALL FUNCTION 'WB2_ERROR_MSG' EXPORTING i_tkonn = l_error-tkonn i_tposn = l_error-tposn i_tposn_sub = l_error-tposn_sub i_msgid = l_error-msgid i_msgty = l_error-msgty i_msgno = l_error-msgno i_msgv1 = l_error-msgv1 i_msgv2 = l_error-msgv2 i_msgv3 = l_error-msgv3 i_msgv4 = l_error-msgv4 TABLES t_emsg = lt_error.

WB2_DISPLAY_MESSAGES_DATA CALL FUNCTION 'WB2_DISPLAY_MESSAGES_DATA' TABLES t_error_messages = lt_error.

WB2_STATUS_CHECK_AND_SET CALL FUNCTION 'WB2_STATUS_CHECK_AND_SET' EXPORTING i_tkonn = -tkonn i_with_commit = space EXCEPTIONS document_read_error = 1 internal_error = 2 customizing_error = 3 not_released = 4 OTHERS = 5.

WB2_DATA_REFRESH CALL FUNCTION 'WB2_DATA_REFRESH'.

WB2_DOCUMENT_FLOW_REFRESH CALL FUNCTION 'WB2_DOCUMENT_FLOW_REFRESH'.

WB2_WBHI_SELECT_RESET CALL FUNCTION 'WB2_WBHI_SELECT_RESET'.

WB2_WBHD_SELECT_RESET CALL FUNCTION 'WB2_WBHD_SELECT_RESET'.

WB2_STATUS_FI_CHECK_AND_SET CALL FUNCTION 'WB2_STATUS_FI_CHECK_AND_SET' EXPORTING i_tkonn = -tkonn i_with_commit = space i_refresh_buffer = 'X' TABLES e_error_messages = lt_error EXCEPTIONS document_read_error = 1 customizing_error = 2 internal_error = 3 status_not_complete = 4 OTHERS = 5.

WB2_READ_CUSTOMIZING_SINGLE CALL FUNCTION 'WB2_READ_CUSTOMIZING_SINGLE' EXPORTING trading_contract_type = -tctyp langu = sy-langu IMPORTING document_type = l_tb2be EXCEPTIONS contract_type_missing = 1 status_group_missing = 2 OTHERS = 0.

WB2_ERROR_MSG_INIT CALL FUNCTION 'WB2_ERROR_MSG_INIT' EXPORTING i_with_basis = 'X' i_with_content = 'X'.




WB2_ERROR_MSG CALL FUNCTION 'WB2_ERROR_MSG' EXPORTING i_tkonn = l_error-tkonn i_tposn = l_error-tposn i_tposn_sub = l_error-tposn_sub i_msgid = l_error-msgid i_msgty = l_error-msgty i_msgno = l_error-msgno i_msgv1 = l_error-msgv1 i_msgv2 = l_error-msgv2 i_msgv3 = l_error-msgv3 i_msgv4 = l_error-msgv4 TABLES t_emsg = lt_error.

WB2_DISPLAY_MESSAGES_DATA CALL FUNCTION 'WB2_DISPLAY_MESSAGES_DATA' TABLES t_error_messages = lt_error.

WB2_ERROR_MSG_INIT CALL FUNCTION 'WB2_ERROR_MSG_INIT' EXPORTING i_with_basis = 'X' i_with_content = 'X'.

WB2_DATA_REFRESH CALL FUNCTION 'WB2_DATA_REFRESH'.

WB2_DOCUMENT_FLOW_REFRESH CALL FUNCTION 'WB2_DOCUMENT_FLOW_REFRESH'.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = l_string.

BAL_GLB_MEMORY_REFRESH CALL FUNCTION 'BAL_GLB_MEMORY_REFRESH' EXPORTING i_refresh_all = 'X'.

BAPI_TRADINGCONTRACT_RELEASE CALL FUNCTION 'BAPI_TRADINGCONTRACT_RELEASE' EXPORTING tradingcontractno = -tkonn testrun = space IMPORTING headdataout = l_headdataout TABLES return = lt_return.

BAPI_TRANSACTION_ROLLBACK CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

WB2_READ_CUSTOMIZING_SINGLE CALL FUNCTION 'WB2_READ_CUSTOMIZING_SINGLE' EXPORTING trading_contract_type = -tctyp langu = sy-langu IMPORTING document_type = l_tb2be EXCEPTIONS contract_type_missing = 1 status_group_missing = 2 OTHERS = 0.

WB2_READ_CUSTOMIZING_SINGLE CALL FUNCTION 'WB2_READ_CUSTOMIZING_SINGLE' EXPORTING trading_contract_type = l_komwbhk-tctyp langu = sy-langu TABLES application_status = lt_tb2ba application_status_text = lt_tb2bat EXCEPTIONS contract_type_missing = 1 status_group_missing = 2 OTHERS = 0.

WB2_ERROR_MSG_INIT CALL FUNCTION 'WB2_ERROR_MSG_INIT' EXPORTING i_with_basis = 'X' i_with_content = 'X'.

WB2_DATA_REFRESH CALL FUNCTION 'WB2_DATA_REFRESH'.

WB2_DOCUMENT_FLOW_REFRESH CALL FUNCTION 'WB2_DOCUMENT_FLOW_REFRESH'.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = l_per_processed.

WB2_READ_CUSTOMIZING_SINGLE CALL FUNCTION 'WB2_READ_CUSTOMIZING_SINGLE' EXPORTING trading_contract_type = -tctyp langu = sy-langu IMPORTING document_type = l_tb2be EXCEPTIONS contract_type_missing = 1 status_group_missing = 2 OTHERS = 0.

WB2_READ_SYS_STATE CALL FUNCTION 'WB2_READ_SYS_STATE' EXPORTING i_btbsta = current_app_status IMPORTING e_btbsts = current_sys_status EXCEPTIONS not_found = 1 error = 2 OTHERS = 3.

BAPI_TRADINGCONTRACT_CHANGE CALL FUNCTION 'BAPI_TRADINGCONTRACT_CHANGE' EXPORTING tradingcontractno = -tkonn headdatain = l_headdatain headdatainx = l_headdatainx IMPORTING headdataout = l_headdataout TABLES return = lt_return.

BAPI_TRANSACTION_ROLLBACK CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

WB2_CONTRACT_RELEASE_AND_SAVE2 CALL FUNCTION 'WB2_CONTRACT_RELEASE_AND_SAVE2' DESTINATION 'NONE' EXPORTING i_tkonn = -tkonn i_status = target_app_status i_commit = space i_testrun = space i_call_source = 'A' i_with_status_change = 'X' "w/. OUTPUT update

RFC_CONNECTION_CLOSE CALL FUNCTION 'RFC_CONNECTION_CLOSE' EXPORTING destination = 'NONE' EXCEPTIONS destination_not_open = 0 OTHERS = 0.

WB2_ERROR_MSG CALL FUNCTION 'WB2_ERROR_MSG' EXPORTING i_tkonn = tkonn i_tposn = tposn i_tposn_sub = tposn_sub i_msgid = msgid i_msgty = msgty i_msgno = msgno i_msgv1 = msgv1 i_msgv2 = msgv2 i_msgv3 = msgv3 i_msgv4 = msgv4 TABLES t_emsg = t_error_messages.



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