SAP ABAP Data Element WB2_BUSINESS_SCENARIO (Business Scenario)
Hierarchy
EA-GLTRADE (Software Component) SAP Enterprise Extension Global Trade
   LO-GT-TEW (Application Component) Trading Execution Workbench
     WB2B_TEW (Package) Trading Execution Workbench
Basic Data
Data Element WB2_BUSINESS_SCENARIO
Short Description Business Scenario  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type WB2_BUSINESS_SCENARIO    
Data Type CHAR   Character String 
Length 2    
Decimal Places 0    
Output Length 2    
Value Table      
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short 10 Scenario 
Medium 15 Scenario 
Long 20 Business Scenario 
Heading 10 Scenario 
Documentation

Definition

A business scenario is a series of business process steps. The importance of each business process step is most apparent in the business scenario context, for example, the "Delivery" business step differs greatly when used in the "Import" and "Export" business scenarios. One option for taking this differentiation into consideration is to create a new business process step for each contect. In the example detailed above, it is possible to define two new business process steps, one called "Export Delivery" and another called "Import Delivery". If this approach would be taken for all business process steps, a single business scenario could be used. Alternatively, it could also be possible to create two business scenarios, one called "Import" and one called "Export" and use a single business process step called "Delivery". From a technical perspective, the business scenario in the Trading Execution Workbench (TEW) part of the key for determining the subsequent action. Attributes "Step", "Session", "Previous step" and "Business scenario" clearly determine which action class is called. While "Step", "Session" and "Previous step" have to be entered in the TEW, the business scenario is determined automatically. BAdI "WB2_CALC_SCENARIO" is used to define the business scenario at item level. In the document data structures of the TEW, the business scenario is stored in the dynamic fields "SCENARIO_GT". This field is set using a enhancement class. The following enhancement classes are used to extract data from trading contracts:

  • CL_WB2_ENH_AGENCY_SCEN_WBGT Agency Documents
  • CL_WB2_ENH_AGENCYLST_SCEN_WBGT Agency Lists
  • CL_WB2_ENH_DELIVERY_SCEN_WBGT Delivery
  • CL_WB2_ENH_MD_SCEN_WBGT Material Documents
  • CL_WB2_ENH_PO_SCEN_WBGT Purchasing Documents
  • CL_WB2_ENH_SI_SCEN_WBGT Customer Billing Documents
  • CL_WB2_ENH_SO_SCEN_WBGT Sales Documents

All these enhancement classes read the business scenario data out of enhancement table "WBGT". For scenarios at header level, it is important to ensure that the processes have been designed to ensure that all items possess the same business scenario. If this is not the case, the enhancement classes listed above initialize the business scenario at header level. If a business scenario is not used, business scenario "00" with the following enhancement classes can be used:

  • CL_WB2_ENH_AGENCY_SCENARIO Agency Documents
  • CL_WB2_ENH_AGENCY_LST_SCENARIO Agency Lists
  • CL_WB2_ENH_DELIVERY_SCENARIO Delivery
  • CL_WB2_ENH_MD_SCENARIO Material Documents
  • CL_WB2_ENH_PO_SCENARIO Purchasing Documents
  • CL_WB2_ENH_SI_SCENARIO Customer Billing Documents
  • CL_WB2_ENH_SO_SCENARIO Sales Documents

History
Last changed by/on SAP  20020125 
SAP Release Created in