Ansicht
Dokumentation

WB2_VC_TC_PF_METHOD - Define Execution Methods

WB2_VC_TC_PF_METHOD - Define Execution Methods

BAL_S_LOG - Application Log: Log header data   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

In this activity you can define your own execution logic for follow-on documents from a trading contract.

The method is assigned to each action code defined in the activityProcessing Type Definition.

An execution class or check class performs a single execution or check. Multiple execution classes and check classes can be assigned under one method in the desired sequence. This allows you to flexibly design an execution method according to your business needs.

Using parameters, you can assign parameter values in each method and pass them to the execution class/check class under importing parmeter "IT_PARAMETER".

Requirements

If you need an additional execution or check, you can create your own execution class/check class using iterface "IF_WB2_TC_PROCESSING_EXEC".

If you raise exception "CX_WB2_ERROR", the system does not perfom any further execution or check . You can restart the process from the point where it was terminated.

Logistics document generation processes, such as goods receipt, delivery, and goods issue generation from a trading contract are pre-defined.

For goods receipt generation from a trading contract, the following checks and executions are triggered:

  • Check: Trading contract is ready for release (must be approved)
  • Check: Trading contract must not be a precontract but a contract with follow-on document
  • Execution: Release of trading contract if necessary
  • Check: Follow-on purchase order must exist
  • Execution: Create goods receipt for remaining quantity in purchase order

The process above is defined under Method "0100".

Standard execution classes are provided using naming convention "CL_WB2_TC_PF_EXE_xxxx".

Standard check classes are provided using naming convention "CL_WB2_TC_PF_CHK_xxxx".

  1. Define execution class and check class.
  2. Define method.
  3. Assign execution class and check class to method.
  4. Assign parameter (optional).






BAL_S_LOG - Application Log: Log header data   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 2487 Date: 20240523 Time: 190518     sap01-206 ( 36 ms )