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

RWB2_EXPENSE_WORKBENCH SAP ABAP Report - Trading Expense Workbench







RWB2_EXPENSE_WORKBENCH 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_EXPENSE_WORKBENCH 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

WB2_EWB - Expense Workbench (Trading)


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_EXPENSE_WORKBENCH. "Basic submit
SUBMIT RWB2_EXPENSE_WORKBENCH AND RETURN. "Return to original report after report execution complete
SUBMIT RWB2_EXPENSE_WORKBENCH 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: P_VARI = D .
Selection Text: S_ACC = D .
Selection Text: S_BSTNK = D .
Selection Text: S_BTBSTA = D .
Selection Text: S_BUDAT = D .
Selection Text: S_CAP = Collective Accrual Processing
Selection Text: S_DOCTY = D .
Selection Text: S_ED_RB = Choose Expense 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_KUNNR = D .
Selection Text: S_MATKL = D .
Selection Text: S_WERKS = D .
Selection Text: S_VTWEG = D .
Selection Text: S_VKORG = D .
Selection Text: S_TK_EX = D .
Selection Text: S_TKSACH = D .
Selection Text: S_TKONN = D .
Selection Text: S_TEW_T = D .
Selection Text: S_TC_REL = D .
Selection Text: S_TCTYP = D .
Selection Text: S_TCCAT = D .
Selection Text: S_SPART = D .
Selection Text: S_SET = Expenses Not Settled
Selection Text: S_SAP = Single Accrual Processing
Selection Text: S_MAXL = Maximum Number of Hits (Item)
Selection Text: S_MATNR = D .
Title: Trading Expense Workbench
Text Symbol: T10 = Nomination
Text Symbol: T09 = Expenses Not Settled
Text Symbol: T08 = Expenses Not Accrued
Text Symbol: T07 = Enter a User ID
Text Symbol: T06 = To (Date/Time)
Text Symbol: T05 = Address
Text Symbol: T04 = From (Date/Time)





Text Symbol: T03 = Do you really want to continue with Collective Accrual Processing?
Text Symbol: T02 = Do you really want to continue with Single Accrual Processing?
Text Symbol: T01 = Accrual Processing
Text Symbol: L17 = Inbound
Text Symbol: A01 = Processing
Text Symbol: A02 = Logging
Text Symbol: A03 = Expense
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 = Main Level Of Display
Text Symbol: B08 = Expense Status
Text Symbol: B09 = Background Processing
Text Symbol: B10 = Background Logging
Text Symbol: B11 = Background
Text Symbol: BJ1 = Expense Creation
Text Symbol: CM0 = Can not be selected
Text Symbol: CM1 = Follow-on Document List
Text Symbol: CM2 = Expense Document List
Text Symbol: CM3 = Create Expense Document
Text Symbol: CM4 = Accrual Expense Settlement
Text Symbol: CM5 = Release to Accounting
Text Symbol: CM6 = Cancel Expense Document
Text Symbol: CM7 = Change Expense Document
Text Symbol: D03 = Log Triggered By
Text Symbol: D04 = Time Restriction
Text Symbol: E01 = Follow-on document(s)
Text Symbol: L01 = Trading Contract
Text Symbol: L02 = Goods Receipt
Text Symbol: L03 = Outbound Delivery
Text Symbol: L04 = Billing Document
Text Symbol: L05 = Select "Expense Not Accrued"
Text Symbol: L06 = TEW Type
Text Symbol: L07 = Trad. Exec. WorkBench Type
Text Symbol: L08 = Display Document
Text Symbol: L09 = Expense Document List





Text Symbol: L10 = Follow-on Document List
Text Symbol: L11 = Display Follow-on Document List
Text Symbol: L12 = Expense Doc List
Text Symbol: L13 = Follow-on Doc List
Text Symbol: L14 = TEW_TYPE
Text Symbol: L15 = Inbound Delivery
Text Symbol: L16 = Outbound


INCLUDES used within this REPORT RWB2_EXPENSE_WORKBENCH

INCLUDE RWB2B_EXPENSE_WORKBENCHTOP.
INCLUDE WB2_EXPENSE_COMMON_CONSTANTS.
INCLUDE RWB2B_EXPENSE_WORKBENCHCLASS.
INCLUDE RWB2B_EXPENSE_WORKBENCHO01. "#EC INCL_OK
INCLUDE RWB2B_EXPENSE_WORKBENCHA01. "#EC INCL_OK


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_PASS_DATA_CREATE_EXPENSE CALL FUNCTION 'WB2_PASS_DATA_CREATE_EXPENSE' EXPORTING i_enh_exp_active = g_enh_exp_active i_exp_nom = gv_exp_nom.

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

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_CHECK_EXPENSES_ACTIVE CALL FUNCTION 'WB2_CHECK_EXPENSES_ACTIVE' EXCEPTIONS not_active = 1 OTHERS = 2.

WB2_TWGTA_READ CALL FUNCTION 'WB2_TWGTA_READ' IMPORTING ex_twgta = ls_twgta.

WB2_CHECK_ENHANCE_ACTIVE CALL FUNCTION 'WB2_CHECK_ENHANCE_ACTIVE' EXCEPTIONS addon_tc_active = 1 addon_all_active = 2 addon_not_active = 3 OTHERS = 4.

WB2_CHECK_TEW_ACTIVE CALL FUNCTION 'WB2_CHECK_TEW_ACTIVE' EXCEPTIONS not_active = 1 OTHERS = 2.

TH_USER_INFO CALL FUNCTION 'TH_USER_INFO' IMPORTING my_internal_session = my_internal_session.

WB2_BADI_ADD_DATA_INSTANCE_GET CALL FUNCTION 'WB2_BADI_ADD_DATA_INSTANCE_GET' IMPORTING e_additional_data = g_additional_data.

JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING jobname = job_name IMPORTING jobcount = job_count EXCEPTIONS cant_create_job = 1 invalid_job_data = 2 jobname_missing = 3 OTHERS = 4.

JOB_CLOSE CALL FUNCTION 'JOB_CLOSE' EXPORTING jobcount = job_count jobname = job_name strtimmed = yes IMPORTING job_was_released = job_released EXCEPTIONS cant_start_immediate = 1 invalid_startdate = 2 jobname_missing = 3 job_close_failed = 4 job_nosteps = 5 job_notex = 6 lock_failed = 7 invalid_target = 8 OTHERS = 9.



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