Symptom
The BAdI FINS_MARKET_SEGMENT_SUB is not triggered during billing document posting using the "Create Billing Documents" app in SAP S/4HANA Cloud Public Edition. Additionally, profitability segment redetermination does not always occur during the processing of a billing document, depending on specific conditions within CO (Controlling) account assignment handling.
Environment
SAP S/4HANA Cloud Public Edition
Cause
The "Create Billing Documents" app does not inherently trigger a redetermination of the profitability segment when profitability segment is the true account assignment. This behavior occurs because the current configuration and CO account assignment logic may not demand a recalculation or adjustment, unless specific elements like the profit center, functional area, or segment are missing or need to be updated.
In most cases, the profitability segment is inherited from the corresponding sales order item, and no redetermination is performed during billing unless account assignment changes.
Resolution
-
Understand the Redetermination Process:
The redetermination of profitability segments may only be triggered if the account assignment logic identifies missing or updated structural elements, such as:- Profit center
- Functional area
- Segment
If these elements are already populated or do not need updates, the app transfers the profitability segment inherited from the sales order without redetermination.
-
Understand the Impact of Cloud Editions:
- In SAP S/4HANA Cloud Public Edition, there is no functionality to directly enforce profitability segment rederivation. This limitation exists because the Public Cloud uses standard processes, and customers typically do not interact directly with profitability segment numbers or their underlying characteristic values.
- In SAP S/4HANA Private Cloud Edition, profitability segment rederivation can be enabled through Coding Block substitutions. These allow for custom adjustments to profitability segment derivation, but this method is currently unavailable in the Public Cloud.
-
Recommendation for Sell-from-Stock Scenarios:
For Sell-from-Stock processes, it is recommended to configure and perform profitability segment derivation accurately during the creation of the sales order in the "Create Sales Orders" app. This approach ensures a correct profitability segment assignment, avoiding downstream issues during billing in the "Create Billing Documents" app.
Keywords
Create Billing Documents, profitability segment redetermination, BAdI FINS_MARKET_SEGMENT_SUB, PAOBJNR_REDERIVE_LATE, Controlling, Sales Order Profitability Segment, Profit Center, SAP S/4HANA Cloud Public Edition, Coding Block substitution, CO Account Assignment Logic, Sell-from-Stock Scenario , KBA , CO-PA-2CL , Profitability Analysis (Public Cloud) , Problem
SAP Knowledge Base Article - Public