SAP material-data classification across four taxonomies

Objective

A multinational energy-technology company needed to improve SAP material-data quality by classifying materials automatically and consistently across four taxonomies that matter for procurement, logistics, and customs compliance.

Solution

We built a hybrid ML and LLM classification platform. For HS/CN customs codes, a two-step hierarchical classifier on AWS Bedrock (Claude) predicts the HS chapter first, then narrows to the full Combined Nomenclature code, returning ranked candidates with calibrated confidence and dynamic few-shot selection via KNN. Lead-time categories use Random Forest models per procurement category with confidence filtering. Material type and ECLASS combine Bedrock LLM and classic ML, with those outputs reused as features in the other models. The system was integrated with SAP and validated on Snowflake.

Results

All four taxonomies run in production in SAP, delivering calibrated-confidence classifications validated on the client's data platform and supporting procurement, logistics, and customs workflows.

Technologies used

Python
AWS Bedrock
Anthropic Claude
LangGraph
LangChain
Scikit-Learn
Random Forest
KNN
Pandas
NumPy
Snowflake
SAP
AWS Lambda
SQS
DynamoDB