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

RWB2_EXPENSE_BACKGROUND SAP ABAP Report - Background Processing







RWB2_EXPENSE_BACKGROUND 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_BACKGROUND 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_EXPENSE_BACKGROUND. "Basic submit
SUBMIT RWB2_EXPENSE_BACKGROUND AND RETURN. "Return to original report after report execution complete
SUBMIT RWB2_EXPENSE_BACKGROUND 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_WERKS = Plant
Selection Text: S_VTWEG = Distribution Channel
Selection Text: S_VKORG = Sales Organization
Selection Text: S_TK_EX = External Number
Selection Text: S_TKSACH = Person responsible
Selection Text: S_TKONN = Trading contract
Selection Text: S_TEW_T = TEW Type
Selection Text: S_TC_REL = Release for Document
Selection Text: S_TCTYP = Contract Type
Selection Text: S_TCCAT = Contract Category
Selection Text: S_SPART = Division
Selection Text: S_SET = Expenses Not Settled
Selection Text: S_MAXL = Maximum Number of Hits (Item)
Selection Text: S_MATNR = Material
Selection Text: S_MATKL = Material Group
Selection Text: S_KUNNR = Sold-to party
Selection Text: S_ERNAM = Created by
Selection Text: S_ERDAT = Created on
Selection Text: S_ELIFN = Vendor
Selection Text: S_EKORG = Purch. Organization
Selection Text: S_EKGRP = Purchasing Group
Selection Text: S_ED_RB = Choose Expense Status
Selection Text: S_DOCTY = Document Type
Selection Text: S_BUDAT = Posting Date
Selection Text: S_BTBSTA = Application Status
Selection Text: S_ACC = Expenses Not Accrued
Selection Text: P_VARI = Layout
Selection Text: PROC_TYP = Processing Type
Selection Text: JOBNAME = Job Name
Selection Text: JOBCOUNT = Job Count
Title: Background Processing
Text Symbol: T08 = Expense Status
Text Symbol: T07 = Main Level Of Display
Text Symbol: T06 = Additional data
Text Symbol: T05 = Administrative Data
Text Symbol: T04 = Material data
Text Symbol: T03 = Organizational data
Text Symbol: T02 = Partner Data





Text Symbol: T01 = Trading Contract Data
Text Symbol: B04 = Program can only be run in background
Text Symbol: B03 = Logging
Text Symbol: B02 = Expense
Text Symbol: B01 = Trading Contract


INCLUDES used within this REPORT RWB2_EXPENSE_BACKGROUND

INCLUDE RWB2B_EXPENSE_BACKGROUNDTOP.
INCLUDE RWB2_EXPENSE_BACKGROUNDA01.


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 = yes.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = lslog IMPORTING e_log_handle = log_handle.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = log_handle i_s_msg = ls_msg.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = log_handle i_s_msg = ls_msg.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = log_handle i_s_msg = ls_msg.

BP_ADD_APPL_LOG_HANDLE CALL FUNCTION 'BP_ADD_APPL_LOG_HANDLE' EXPORTING loghandle = log_handle IMPORTING current_jobcount = jobcount current_jobname = jobname.

BAL_DB_SAVE CALL FUNCTION 'BAL_DB_SAVE' EXPORTING i_client = sy-mandt i_t_log_handle = log_t_handle.

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_wbhi = lt_komwbhi 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.



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