SAP Reports / Programs | Logistics - General | Global Trade | Expenses(LO-GT-TE) SAP LO

RWB2_DOC_EXPENSE_WB SAP ABAP Report - Expense Workbench For New Documents







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


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 RWB2_DOC_EXPENSE_WB. "Basic submit
SUBMIT RWB2_DOC_EXPENSE_WB AND RETURN. "Return to original report after report execution complete
SUBMIT RWB2_DOC_EXPENSE_WB 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: 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


INCLUDES used within this REPORT RWB2_DOC_EXPENSE_WB

INCLUDE RWB2_DOC_EXPENSE_WB_DATA_DECL.
INCLUDE RWB2_LCL_CLASS_DOC_WB.


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:

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.



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