Ansicht
Dokumentation

BADI_FINCS_CUST_CONS - BAdI: Custom Task for Consolidation Monitor

BADI_FINCS_CUST_CONS - BAdI: Custom Task for Consolidation Monitor

PERFORM Short Reference   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

When you add a custom task using the "Manage Your Solution" app, and "Add Custom Task for Consolidation Monitor", you must implement a BAdI that will process your task. The BAdI supports multiple implementations, but you must ensure that the right implementation is called for your custom task. Therefore, you must set your custom task name as a filter value for CONSOLIDATIONTASK. The BAdI is called automatically for a base version, as well as for all the underlying extension versions. So you must set the CONSOLIDATIONTASKSTATUS for each BAdI call.

  1. Create the BAdI implementation using the "Custom Logic" app. The BAdI "Custom Task for Consolidation Monitor" is in the Business Context “Group Reporting: Journal Entry Item”. Please note that you can also implement the BAdI using developer extensibility in SAP S/4HANA Cloud.
  2. Set the filter value.

Please ensure that you set the CONSOLIDATIONTASK filter for your BAdI implementation. If there is no active implementation found for the given task, an error message is displayed.

Please note, if you don’t set any filter values, your implementation will be called for each custom task that is included in an active Task Group for Data Monitor. This could lead to unexpected behavior.

  1. Open the “Manage Your Solution” app and choose “Configure Your Solution”. Navigate to the application area “Finance” --> “Corporate Close” --> “Data Processing”.
  2. Select the “Add Custom Task for Consolidation Monitor” activity.
  3. Include your task in the active Task Group using the “Define Task Group” activity.
  4. Implement the BAdI and set the filter.

To carry out a custom task defined in the BAdI filter use the EXECUTE method.

  • CONSOLIDATIONTASK – Name of the custom task that is being executed
  • CONSOLIDATIONUNIT – Consolidation Unit
  • CONSOLIDATIONVERSION – Consolidation Version (could be a base version or an extension version)
  • FISCALYEAR – Fiscal Year
  • FISCALPERIOD – Fiscal Period
  • CONSOLIDATIONCHARTOFACCOUNTS – Consolidation Chart of Accounts
  • ISCONSOLIDATIONTASKTESTRUN – Indicator, if the execution runs as a test
  • CONSOLIDATIONTASKSTATUS – Execution Status of the Custom Task

You should set the execution status of your Custom Task in the parameterCONSOLIDATIONTASKSTATUS. The value passed to the parameter CONSOLIDATIONTASKSTATUS is ignored if parameter ISCONSOLIDATIONTASKTESTRUN is set to true (Custom Task runs in a test mode).

Please use one of the following status codes to set your task execution status in your BAdI implementation:

  • 6,,Task: Initial
  • 7,,Task: Incomplete
  • 8,,Task: Error(s)
  • 9,,Task: No errors
  • 10,,Task: Blocked
  • 11,,Task: Unblocked
  • 12,,Task: Irrelevant
  • 13,,Task: Pending Completion of Preceding Task
  • 14,,Task: Being copied
  • 15,,Task: Blocked by User Intervention
  • 16,,Task: Unblocked (After User Block)






TXBHW - Original Tax Base Amount in Local Currency   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 3813 Date: 20240523 Time: 223255     sap01-206 ( 81 ms )