When you create a workflow for verifying journal entries or currency adjustment, it is required to define the rule for triggering verification, as we call it start conditions of a workflow. SAP provides the most frequently used conditions for you to choose and use, such as:
- Account Group
- Threshold Amount in Company Code Currency
- Threshold Amount in Global Currency
- Threshold Amount in Freely Defined Currency 1
- Cost Center
- Source Company Code
- Journal Entry Type
However, despite these default condition options, you may want to trigger the workflow with some other key fields. For example, you create a specific workflow and want it to be started only when journal entries are for one profiter center 1000 or a few more. What can you do with as a system administrator? Surely you can. Only with a few steps of implementing two BAdIs, you can add custom start conditions as many as you can. One of them is used to add additional fields as conditions, the other is used to check values and determine whether to trigger the workflow.
The general steps of implementing the BAdIs are listed as below:
- Open the Custom Logic app as an Administrator.
- Create an implementation of BAdI Providing additional conditions for scenarios.
a. Create a new an implementation entry.
b. In the New Enhancement Implementation dialogue box, provide the following values:
* Business Context: Journal Entry Verification in General Ledger
* BAdI Description: Providing additional conditions for scenarios
* Implementation Description: <add description>
- On the Filter tab, enter the following filter conditions:
Note: Scenarios ID WS02800046 is for verifying journal entries, and Scenarios ID WS78500019 is for verifying currency adjustments.
- On the Available Fields tab, edit the code to include fields you want to add. For example:
- Publish the logic.
- Create an implementation of BAdI Value evaluation of additional conditions for scenarios.
a. Create a new an implementation entry.
b. In the New Enhancement Implementation dialogue box, provide the following values:
* Business Context: Journal Entry Verification in General Ledger
* BAdI Description: Value evaluation of additional conditions for scenarios
* Implementation Description: <add description>
- Repeat step 3.
- On the Available Fields tab, edit the code to include fields you want to add. For example:
- Publish the logic.
Now you can go to the
Manage Workflows for Journal Entry Verification - In General Ledger app. On the page of creating or editing a workflow, you can choose more custom conditions to start the workflow.
For more informations about configuring workflows for verifing journal entries, please refer to the following links to the SAP Help Portal: