RWB2_DOC_EXPENSE_WB 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 RWB2_DOC_EXPENSE_WB into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: DOC_NO = Document Number
Selection Text: DOC_TYP = Agency Business Document Type
Selection Text: FIS_YR = Fiscal Year
Selection Text: SEL_TYP = Select Internally
Title: Expense Workbench For New Documents
Text Symbol: 001 = Display Document
Text Symbol: 002 = Expenses
Text Symbol: 003 = BAdI WB2_EXP_DOC_HANDLING is not implemented
Text Symbol: 004 = Item data does not exists for Header data
Text Symbol: 005 = Customization field not in data table
Text Symbol: 006 = No Data Found
Text Symbol: 007 = Issue creating field catalog
Text Symbol: 008 = Item data does not exists for Header data
Text Symbol: T01 = Document Details
Text Symbol: T02 = SelectionType
INCLUDE RWB2_DOC_EXPENSE_WB_DATA_DECL.
INCLUDE RWB2_LCL_CLASS_DOC_WB.
No SAP DATABASE tables are accessed within this REPORT code!
WB2_CHECK_EXPENSES_ACTIVE CALL FUNCTION 'WB2_CHECK_EXPENSES_ACTIVE' EXCEPTIONS not_active = 1 OTHERS = 2.
VRM_SET_VALUES CALL FUNCTION 'VRM_SET_VALUES' EXPORTING id = name values = lt_dd.
WB2_VALIDATE_EXP_CUST_DATA CALL FUNCTION 'WB2_VALIDATE_EXP_CUST_DATA' EXPORTING i_document_no = doc_no-low i_ab_document_type = doc_typ i_select_internal = sel_typ i_check_cust = 'X' i_data_process = ' ' i_data_selection = ' ' IMPORTING e_map_fields = g_map_fields e_head_item = g_head_item et_item_cust = gt_item_cust et_head_cust = gt_head_cust e_header_table = g_header_table e_item_table = g_item_table e_document_type = g_document_type e_subrc = l_subrc.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RWB2_DOC_EXPENSE_WB - Expense Workbench For New Documents RWB2_DOC_EXPENSE_WB - Expense Workbench For New Documents RWB2_DISPLAY_CONSOL_TC_TOP - Include RWB2_DISPLAY_CONSOL_TC_TOP RWB2_DISPLAY_CONSOL_TC_S01 - Include RWB2_DISPLAY_CONSOL_TC_S01 RWB2_DISPLAY_CONSOL_TC_F01 - Include RWB2_DISPLAY_CONSOL_TC_F01 RWB2_DISPLAY_CONSOL_TC_E01 - Include RWB2_DISPLAY_CONSOL_TC_E01