SAP Reports / Programs

RWB2B001 SAP ABAP Report - Trading Contract: General Document Overview







RWB2B001 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Display and Mass Data Handling of Trading Contracts You can use report RWB2B001 to: Release or to change the status of Trading Contracts manually or in batch mode without having to process each document individually...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 RWB2B001 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

WB24 - Trading contract: Coll. status proc.
WB25 - Trad. contract list: Contracts lists
WB25_COMP - Trad. Contract List: Contracts Lists


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 RWB2B001. "Basic submit
SUBMIT RWB2B001 AND RETURN. "Return to original report after report execution complete
SUBMIT RWB2B001 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: S_CPSTAT = Check and Set Status
Selection Text: S_EKGRP = D .
Selection Text: S_EKORG = D .
Selection Text: S_ELIFN = D .
Selection Text: S_ERDAT = D .
Selection Text: S_ERNAM = D .
Selection Text: S_FUTURE = D .
Selection Text: S_KUNNR = D .
Selection Text: S_MATKL = D .
Selection Text: S_MATNR = D .
Selection Text: S_MAXL = Maximum Number of Hits (Item)
Selection Text: S_NO_DEL = Only active items
Selection Text: S_PURP = D .
Selection Text: S_QTY_CP = Only Docs with Qty Difference
Selection Text: S_REF = D .
Selection Text: S_RESWK = D .
Selection Text: S_SPART = D .
Selection Text: S_TCCAT = D .
Selection Text: S_TCTYP = D .
Selection Text: S_TC_REL = D .
Selection Text: S_TKONN = D .
Selection Text: S_TKSACH = D .
Selection Text: S_TK_EX = D .
Selection Text: S_VKORG = D .
Selection Text: S_VTWEG = D .
Selection Text: S_WERKS = D .
Selection Text: S_COMP = Only Incomplete Documents
Selection Text: S_COMC = D .
Selection Text: S_BUDAT = D .
Selection Text: S_BTBSTA = D .
Selection Text: S_BSTNK = D .
Selection Text: S_BATCH = D .
Selection Text: P_VARI = D .
Selection Text: P_TC_REL = Collective Release Document
Selection Text: P_RELEAS = Release functions
Selection Text: P_FISTAT = FI Set Clearance Check Status
Selection Text: P_BTBSTA = Collective Status Change
Title: Trading Contract: General Document Overview





Text Symbol: B00 = Automatic Processing Parameter
Text Symbol: B01 = Trading Contract Data
Text Symbol: B02 = Partner Data
Text Symbol: B03 = Organizational data
Text Symbol: B04 = Material data
Text Symbol: B05 = Administrative Data
Text Symbol: B06 = Additional data
Text Symbol: B07 = Commodity Items
Text Symbol: C01 = Open or Not Approved
Text Symbol: C02 = Released
Text Symbol: C03 = Closed
Text Symbol: C04 = More...
Text Symbol: M01 = Do you want to release selected documents?
Text Symbol: M02 = Document processing may take a long time. Release?
Text Symbol: T01 = Confirmation Prompt


INCLUDES used within this REPORT RWB2B001

INCLUDE 2B001TOP.
INCLUDE RWB2BO01.
INCLUDE RWB2BF01.


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 = 'RWB2B001' tables selection_table = int_rsparams exceptions not_found = 1 no_report = 2 others = 3.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' exporting textline1 = text-m02 titel = text-t01 cancel_display = 'X' importing answer = l_answer.

REUSE_ALV_VARIANT_F4 call function 'REUSE_ALV_VARIANT_F4' exporting is_variant = ls_disvariant i_save = 'A' importing es_variant = ls_disvariant exceptions not_found = 1 program_error = 2 others = 3.

WB2_SELECT_FOR_LIST call function 'WB2_SELECT_FOR_LIST' exporting i_comp = s_comp i_filter_del_items = l_filter_del_items i_qty_cp = s_qty_cp i_maxl = s_maxl i_max_lines_message = 'X' iv_with_texts = l_with_texts it_fields = it_fields tables t_komwbhk_list = gt_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 t_tccat = s_tccat t_purpose = s_purp t_future = s_future t_ext_ref = s_ref t_com_cat = s_comc t_batch = s_batch exceptions no_data_found = 1 others = 2.

WB2_READ_WBHK_MULTIPLE call function 'WB2_READ_WBHK_MULTIPLE' exporting i_dynsel = l_selopt_dynsel i_maxlines = s_maxl tables t_wbhk = lt_komwbhk t_wbhd = lt_komwbhd t_requested_tables = lt_requested_tables exceptions limit_ds = 1 others = 2.

WB2_CHECK_AUTHORITY call function 'WB2_CHECK_AUTHORITY' exporting i_actv = 'A' i_komwbhk = i_komwbhd = exceptions no_authority = 1 others = 2.

WB2_READ_VENDOR_NAME call function 'WB2_READ_VENDOR_NAME' exporting vendor = -elifn changing vendor_name_display = -bezei_lifnr exceptions vendor_not_found = 1 others = 2.

WB2_READ_CUSTOMIZING_SINGLE call function 'WB2_READ_CUSTOMIZING_SINGLE' exporting trading_contract_type = l_tctyp langu = sy-langu importing document_type_text = l_tb2bet tables application_status_text = lt_tb2bat exceptions contract_type_missing = 1 status_group_missing = 2 uncompletion_group_missing = 3 position_types_missing = 4 others = 5.

WB2_READ_CUSTOMER_NAME call function 'WB2_READ_CUSTOMER_NAME' exporting customer = l_kunnr changing customer_name_display = l_bezei_kunnr exceptions customer_not_found = 1 others = 2.

REUSE_ALV_POPUP_TO_SELECT





call function 'REUSE_ALV_POPUP_TO_SELECT' exporting i_title = l_title i_selection = space i_zebra = 'X' i_tabname = 'WB2_ERROR_LI' i_structure_name = 'WB2_ERROR_LI' it_fieldcat = lt_fieldcat[] it_excluding = lt_cua_exclude tables t_outtab = lt_error_with_text exceptions program_error = 0 others = 0.

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 = 'RWB2B001' 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.



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