SAP Knowledge Base Article - Public

3627721 - BatchSplitType field is not displayed as "X" in CDS View I_PRODUCTIONORDEROPCOMPONENTTP

Symptom

For a batch-managed production order component, the Batch Key indicator is "X" in the component detail screen. However, in CDS view I_ProductionOrderOpComponentTP, the BatchSplitType property value is displayed as empty. In the meanwhile, if you fetch the data from API API_PRODUCTION_ORDER_2_SRV, the "X" can be successfully retrieved.

Environment

SAP S/4HANA Cloud Public Edition

Cause

This is standard system behavior. 
The Batch Key indicator of the component has four values:

  • empty;
  • X - batch permitted;
  • 1 - Batch totals record;
  • 2 - Individual batch record. 

For values empty and X, they are determined dynamically from the material master Batch Management indicator and are not reflected in the database table RESB.
For values 1 and 2, they are set based on the actual batch split situation of the component and will be reflected in table RESB.
In other words, it is designed that the Batch Key in RESB table never displays as "X", only empty, 1 and 2 are possible.
Since the Batch Key in table RESB is the source data for BatchSplitType in CDS view I_ProductionOrderOpComponentTP, the BatchSplitType in the CDS view also doesn't reflect the Batch Key indicator "X" in the production order. Only when the Batch Key is 1 or 2, the corresponding BatchSplitType will be reflected in the CDS view.

Resolution

When the batch split has been done, which means the BatchSplitType is 1 or 2, CDS view I_ProductionOrderOpComponentTP can be used to fetch the data.
When the batch split hasn't been done, which means the BatchSplitType is empty or X, use the API API_PRODUCTION_ORDER_2_SRV to fetch the data.

Keywords

Batch Key, I_ProductionOrderOpComponentTP, BatchSplitType, RESB, CDS view, Production Order, API_PRODUCTION_ORDER_2_SRV, batch management , KBA , PP-SFC-2CL , Production Orders (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions