Skip to Content
Product Information
Author's profile photo Alice Ying

More Flexible Conditions to Trigger a Workflow

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:

  1. Open the Custom Logic app as an Administrator.
  2. 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>
  3. 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.
  4. On the Available Fields tab, edit the code to include fields you want to add. For example:
  5. Publish the logic.
  6. 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>
  7. Repeat step 3.
  8. On the Available Fields tab, edit the code to include fields you want to add. For example:
  9. 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:

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.