SAP Reports / Programs

RWB2B007_PROFIT_SIM SAP ABAP Report - Trading Contract: Profit Simulation







RWB2B007_PROFIT_SIM 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 RWB2B007_PROFIT_SIM 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

WB29_PROFIT - Trading Contract: Profit Simulation


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 RWB2B007_PROFIT_SIM. "Basic submit
SUBMIT RWB2B007_PROFIT_SIM AND RETURN. "Return to original report after report execution complete
SUBMIT RWB2B007_PROFIT_SIM 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_BUDAT = D .
Selection Text: S_COMP = Only Incomplete Documents
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_MATNR = D .
Selection Text: S_MAXL = Maximum Number of Hits (Item)
Selection Text: S_NO_DEL = Only active items
Selection Text: S_QTY_CP = Only Docs with Qty Differences
Selection Text: S_RESWK = D .
Selection Text: S_SPART = 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_BTBSTA = D .
Selection Text: S_BSTNK = D .
Selection Text: P_VARI = D .
Selection Text: P_RELEAS = Release Functions
Title: Trading Contract: Profit Simulation
Text Symbol: 100 = Profit Simulation Report
Text Symbol: 101 = As of
Text Symbol: 102 = Executed by
Text Symbol: 105 = Current Data
Text Symbol: B00 = Trading Contract Type
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: 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 RWB2B007_PROFIT_SIM

INCLUDE 2B007TOP_PROFIT_SIM.


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

WB2_READ_CUSTOMIZING_SINGLE call function 'WB2_READ_CUSTOMIZING_SINGLE' exporting trading_contract_type = s_tctyp langu = sy-langu importing document_type_text = g_tb2bet tables application_status = g_tb2ba application_status_text = g_tb2bat exceptions contract_type_missing = 1 status_group_missing = 2 uncompletion_group_missing = 3 position_types_missing = 4 others = 5.

WB2_READ_PROFIT_FIELDS_CUST call function 'WB2_READ_PROFIT_FIELDS_CUST' exporting i_tctyp = s_tctyp clear_buffer = ' ' "X tables profit_pop = l_profit_pop exceptions no_record_found = 1 others = 2.

WB2_READ_PROFIT_POPUP_TEXT2 call function 'WB2_READ_PROFIT_POPUP_TEXT2' exporting clear_buffer = ' ' "X tables popup_data = tprofit_popup2 popup_text = tprofit_popup2_t exceptions no_record_found = 1 others = 2.

REUSE_ALV_POPUP_TO_SELECT call function 'REUSE_ALV_POPUP_TO_SELECT' exporting * i_title = 'Simulated Rate Decision' i_tabname = 'tprofit_popup2_t' it_fieldcat = gt_fieldcat[] importing es_selfield = es_selfield e_exit = l_exit tables t_outtab = tprofit_popup2_t exceptions program_error = 1 others = 2.

WB2_READ_PROFIT_POPUP_TEXT2 call function 'WB2_READ_PROFIT_POPUP_TEXT2' exporting clear_buffer = ' ' "X tables popup_data = tprofit_popup2 popup_text = tprofit_popup2_t exceptions no_record_found = 1 others = 2.

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 tables t_komwbhk_list = gt_komwbhk_list t_komwbhk = l_t_komwbhk t_tkonn = s_tkonn t_tkonn_ex = s_tk_ex 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 exceptions no_data_found = 1 others = 2.

WB2_DISPLAY_PROFIT_WITHOUT_ALV call function 'WB2_DISPLAY_PROFIT_WITHOUT_ALV' exporting i_tkonn = l_t_komwbhk-tkonn i_tctyp = l_t_komwbhk-tctyp clear_buffer = ' ' "X i_read_db = 'X' "X tables e_t_profit = l_t_profit changing i_read_ex = g_rate_index i_sim_index = g_sim_index i_base_curr = g_base_curr i_base_rate = g_base_rate i_base_type = g_base_type exceptions document_read_error = 1 calculation_error = 2 display_error = 3 custmizing_error = 4 others = 5.

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.



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