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

RWB2MASSF01 SAP ABAP INCLUDE - Liste Trading-Kontrakte







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


Text pool values


Title: Liste Trading-Kontrakte


INCLUDES used within this REPORT RWB2MASSF01

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:

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.

WB2_BADI_ADD_DATA_INST_GET_TC CALL FUNCTION 'WB2_BADI_ADD_DATA_INST_GET_TC' IMPORTING e_add_data = g_add_data.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_interface_check = ' ' i_callback_program = 'RWB2BMAS' i_callback_pf_status_set = 'SET_STATUS' i_callback_user_command = 'USER_COMMAND' i_structure_name = 'KOMWBHK_LIST_DISPLAY' is_layout = l_layout i_save = 'X' is_variant = p_gs_disvariant it_except_qinfo = lt_except_qinfo TABLES t_outtab = p_komwbhk_list EXCEPTIONS OTHERS = 4.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-t01 text_question = text-m02 display_cancel_button = 'X' IMPORTING answer = answer.

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.

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

WB2_RESET_EXTERNAL_DATA CALL FUNCTION 'WB2_RESET_EXTERNAL_DATA'.

WB2_SELECT_FOR_LIST CALL FUNCTION 'WB2_SELECT_FOR_LIST' EXPORTING i_comp = s_comp i_qty_cp = s_qty_cp i_maxl = s_maxl i_max_lines_message = 'X' it_fields = it_fields TABLES t_komwbhk_list = pt_komwbhk_list t_tkonn = s_tkonn t_reswk = s_reswk t_tkonn_ex = s_tk_ex t_tctyp = s_tctyp t_tc_rel = s_tc_rel t_btbsta = s_btbsta t_kunnr = s_kunnr t_elifn = s_elifn t_vkorg = s_vkorg t_vtweg = s_vtweg t_spart = s_spart t_ekorg = s_ekorg t_ekgrp = s_ekgrp t_werks = s_werks t_matkl = s_matkl t_matnr = s_matnr t_erdat = s_erdat t_budat = s_budat t_bstnk = s_bstnk t_tksachb = s_tksach t_ernam = s_ernam EXCEPTIONS no_data_found = 1 OTHERS = 2.

WB2_STATUS_CHECK_AND_SET CALL FUNCTION 'WB2_STATUS_CHECK_AND_SET' EXPORTING i_tkonn = p_komwbhk_list-tkonn i_with_commit = ' ' EXCEPTIONS OTHERS = 1.

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 = p_komwbhk_list-tkonn i_refresh_buffer = 'X' EXCEPTIONS OTHERS = 1.

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

WB2_ERROR_MSG





CALL FUNCTION 'WB2_ERROR_MSG' EXPORTING i_tkonn = p_komwbhk_list-tkonn i_msgid = 'WB2B' i_msgty = 'E' i_msgno = '114' TABLES t_emsg = collect_table.

WB2_READ_CUSTOMIZING_SINGLE CALL FUNCTION 'WB2_READ_CUSTOMIZING_SINGLE' EXPORTING trading_contract_type = p_komwbhk_list-tctyp langu = sy-langu clear_buffer = 'X' IMPORTING document_type = i_tb2be TABLES application_status = i_tb2ba application_status_text = i_tb2bat EXCEPTIONS contract_type_missing = 1 status_group_missing = 2 OTHERS = 0.

WB2_ERROR_MSG CALL FUNCTION 'WB2_ERROR_MSG' EXPORTING i_tkonn = p_komwbhk_list-tkonn i_msgid = 'WB2B' i_msgty = 'E' i_msgno = '066' TABLES t_emsg = collect_table.

WB2_DATA_REFRESH CALL FUNCTION 'WB2_DATA_REFRESH'.

WB2_DOCUMENT_FLOW_REFRESH CALL FUNCTION 'WB2_DOCUMENT_FLOW_REFRESH'.

WB2_CONTRACT_RELEASE_AND_SAVE CALL FUNCTION 'WB2_CONTRACT_RELEASE_AND_SAVE' EXPORTING i_tkonn = p_komwbhk_list-tkonn i_status = p_btbsta i_commit = 'X' i_call_source = 'A' i_with_status_change = 'X' TABLES t_error_messages = e_table EXCEPTIONS OTHERS = 1.

WB2_READ_CUSTOMIZING_SINGLE CALL FUNCTION 'WB2_READ_CUSTOMIZING_SINGLE' EXPORTING trading_contract_type = p_komwbhk_list-tctyp TABLES application_status = i_tb2ba application_status_text = i_tb2bat EXCEPTIONS contract_type_missing = 1 status_group_missing = 2 OTHERS = 0.

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

WB2_ERROR_MSG CALL FUNCTION 'WB2_ERROR_MSG' EXPORTING i_tkonn = p_komwbhk_list-tkonn i_msgid = 'WB2B' i_msgty = 'E' i_msgno = '389' i_msgv1 = p_komwbhk_list-tkonn TABLES t_emsg = collect_table.

WB2_DATA_REFRESH CALL FUNCTION 'WB2_DATA_REFRESH'.

WB2_DOCUMENT_FLOW_REFRESH CALL FUNCTION 'WB2_DOCUMENT_FLOW_REFRESH'.

WB2_CONTRACT_RELEASE_AND_SAVE CALL FUNCTION 'WB2_CONTRACT_RELEASE_AND_SAVE' EXPORTING i_tkonn = p_komwbhk_list-tkonn i_status = p_komwbhk_list-btbsta i_commit = 'X' i_call_source = 'A' TABLES t_error_messages = e_table EXCEPTIONS OTHERS = 1.



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