In SAP S/4HANA, the Unit of Measure (UoM) is a critical aspect of various business processes, including sales orders. When you are using Create Sales Order – Automatic Extraction solution, a very important thing is extracted UoM info from PDF purchase order files and then map it to your system UoM. This blog will introduce the determination strategy in this app for UoM. But before to introduce the strategy itself, let’s first learn more about UoMs.
UoM Formats
A UoM may exist in various formats in your system:
SAP Internal code: A language-independent code used internally for various transactions and processes.ISO code: A standardized code defined by the International Organization for Standardization (ISO) and used to ensure consistency and standardization across different systems and countries. You can maintain a description for each ISO code.
Language-dependent code: A language-specific code used for external display (for example, in master data and business documents) of the corresponding internal code. You can maintain a business key, a technical key, and a description for each language.
For example, piece is a UoM. Its internal code is ST, ISO code is PCE (Piece) and language-dependent code in English is PC (Piece).
Relationship Between Internal Codes and ISO Codes
SAP provides a mapping between the internal codes and ISO codes for UoMs. This mapping ensures that when data is exchanged between SAP and other systems or when reports are generated, the units of measure are consistent and standardized according to ISO standards.
Configuring UoMs
To configure and manage UoMs in your system, you can follow these steps:
Access the configuration activity.
Open app Manage Your Solution (business role SAP_BR_BPC_EXPERT)
Filter the Application Area by “Application Platform and Infrastructure” and Sub Application Area by “General Settings”. Select “Basic Setting”.
Choose configuration step 2.Units of measurement.
Check/Define ISO Codes for UoMs.
Choose ISO Codes.
Check/Define SAP internal codes for UoMs. For each internal code, you can check/define its mappings to other UoM formats.
Choose Units of Measurement.
SAP has defined a list of internal codes. You can also define new ones or adjust existing ones.
For each internal code, you can define language-dependent codes (Commercial and Technical) and a description and assign an ISO code.
You can also set up unit conversion factors.
Only language-dependent codes and related descriptions are displayed in business transactions (for example, product master).
Note: ISO codes are not used in business transactions.
UoM Determination in Sales Order Request
After you upload a file to the Create Sales Orders – Automatic Extraction app, the system performs UoM determination for a sales order request item based on the following data:
UoM data returned from the data extraction service
UoM data in your configuration environment
When the system can match the returned UoM data to an SAP internal code, a UoM (displayed in language-dependent code in the sales order request) is successfully proposed for the sales order request item.
The system considers the following UoM configurations during the determination:
ISO code and related UoM description
Language-Dependent code (commercial code) and related UoM description
For example, the data extraction service extracts UoM texts from the purchase order and attempts to translate them into ISO codes. For instance, if “Kilogram” is found, the service returns the ISO code “KGM”.
Based on the returned data (“Kilogram” and “KGM”), the system initially searches for an internal code that has been assigned to the returned ISO code (that is, “KGM”). If there is a match, the system proposes a UOM for the item. If not, further searches are made based on the language-dependent code (commercial code) and UoM descriptions (including the description for ISO code and that for language-dependent code).
You can also create custom logic for UoM determination. For more information on custom implementations, you can refer to Create Sales Orders – Automatic Extraction (IV): BAdI for Modifying Sales Order Request Data
Related info
You can find series of blogs about this solution in below link.
The Link Collection for Create Sales Orders – Automatic Extraction | SAP Blogs
In SAP S/4HANA, the Unit of Measure (UoM) is a critical aspect of various business processes, including sales orders. When you are using Create Sales Order – Automatic Extraction solution, a very important thing is extracted UoM info from PDF purchase order files and then map it to your system UoM. This blog will introduce the determination strategy in this app for UoM. But before to introduce the strategy itself, let’s first learn more about UoMs.UoM FormatsA UoM may exist in various formats in your system:SAP Internal code: A language-independent code used internally for various transactions and processes.ISO code: A standardized code defined by the International Organization for Standardization (ISO) and used to ensure consistency and standardization across different systems and countries. You can maintain a description for each ISO code.Language-dependent code: A language-specific code used for external display (for example, in master data and business documents) of the corresponding internal code. You can maintain a business key, a technical key, and a description for each language.For example, piece is a UoM. Its internal code is ST, ISO code is PCE (Piece) and language-dependent code in English is PC (Piece). Relationship Between Internal Codes and ISO CodesSAP provides a mapping between the internal codes and ISO codes for UoMs. This mapping ensures that when data is exchanged between SAP and other systems or when reports are generated, the units of measure are consistent and standardized according to ISO standards. Configuring UoMsTo configure and manage UoMs in your system, you can follow these steps:Access the configuration activity.Open app Manage Your Solution (business role SAP_BR_BPC_EXPERT)Filter the Application Area by “Application Platform and Infrastructure” and Sub Application Area by “General Settings”. Select “Basic Setting”.Choose configuration step 2.Units of measurement.Check/Define ISO Codes for UoMs. Choose ISO Codes.Check/Define SAP internal codes for UoMs. For each internal code, you can check/define its mappings to other UoM formats.Choose Units of Measurement.SAP has defined a list of internal codes. You can also define new ones or adjust existing ones.For each internal code, you can define language-dependent codes (Commercial and Technical) and a description and assign an ISO code.You can also set up unit conversion factors.Only language-dependent codes and related descriptions are displayed in business transactions (for example, product master).Note: ISO codes are not used in business transactions.UoM Determination in Sales Order RequestAfter you upload a file to the Create Sales Orders – Automatic Extraction app, the system performs UoM determination for a sales order request item based on the following data:UoM data returned from the data extraction serviceUoM data in your configuration environmentWhen the system can match the returned UoM data to an SAP internal code, a UoM (displayed in language-dependent code in the sales order request) is successfully proposed for the sales order request item.The system considers the following UoM configurations during the determination:ISO code and related UoM descriptionLanguage-Dependent code (commercial code) and related UoM descriptionFor example, the data extraction service extracts UoM texts from the purchase order and attempts to translate them into ISO codes. For instance, if “Kilogram” is found, the service returns the ISO code “KGM”.Based on the returned data (“Kilogram” and “KGM”), the system initially searches for an internal code that has been assigned to the returned ISO code (that is, “KGM”). If there is a match, the system proposes a UOM for the item. If not, further searches are made based on the language-dependent code (commercial code) and UoM descriptions (including the description for ISO code and that for language-dependent code).You can also create custom logic for UoM determination. For more information on custom implementations, you can refer to Create Sales Orders – Automatic Extraction (IV): BAdI for Modifying Sales Order Request DataRelated infoYou can find series of blogs about this solution in below link.The Link Collection for Create Sales Orders – Automatic Extraction | SAP Blogs Read More Technology Blogs by SAP articles
#SAP
#SAPTechnologyblog