Introduction
In the manufacturing process, timely access to detailed instructions is vital for smooth operations. SAP Digital Manufacturing (SAP DM) users face a common issue where Operation Long Text, critical for understanding operational steps, is not included in the iDocs (LOIPRO) transferred from SAP ERP. Although this information is available via SOAP messages in SAP ERP, the standard integration between SAP ERP and SAP DM relies on iDocs, leading to missing long text data on the shop floor.
This blog explores two approaches to solve this issue:
Regardless of the chosen method, the SAP DM segment `<pp:LongText>` will be used to map the custom field from the iDoc.
Understanding the Challenge
SAP ERP uses LOIPRO iDocs to send production and process order information to SAP DM. However, by default, these iDocs do not contain Operation Long Text, which includes crucial instructions for shop floor operators. Although SAP ERP provides this information through SOAP messages, integrating SOAP-based data adds unnecessary complexity, as SAP DM primarily relies on iDocs.
To bridge this gap, you can either extend the LOIPRO iDoc to include a custom field for long text or use a custom BAPI with SAP CPI to retrieve and enrich the iDoc with this information. In either approach, the SAP DM segment `<pp:LongText>` will be used for mapping the long text, but the field name in the iDoc can be customized according to customer preferences.
Approach 1: Extending the iDoc in SAP ERP
A simple solution to this issue is extending the LOIPRO iDoc to include a custom field that holds the Operation Long Text. The customer can define the name of this custom field as per their business requirements.
Example of SAP DM Payload Mapping:
<pp:LongText pp:languageCode="" pp:MIMECode="text/plain" pp:TextCategory="">
{CustomFieldFromIDocContainingLongText}
</pp:LongText>
In this case, the custom field from the iDoc is mapped to the `<pp:LongText>` segment in SAP DM. This will be displayed in SAP DM in the Operation/Phase details for the Routing/Recipe.
Approach 2: Custom BAPI with PreXSLT iFlow in SAP CPI
For customers seeking more flexibility, another approach involves using a custom BAPI to retrieve the Operation Long Text and enriching the iDoc using a PreXSLT iFlow in SAP CPI.
Why This Solution Matters
Both approaches—extending the iDoc or using a custom BAPI—ensure that Operation Long Text is included in the data transfer between SAP ERP and SAP DM. Here are the key benefits:
Conclusion
The absence of Operation Long Text in iDocs (LOIPRO) poses a challenge for SAP DM users. While SOAP messages can provide this data, relying on SOAP adds complexity. The solution lies in either extending the iDoc to include a custom field for long text or using a custom BAPI to enrich the iDoc via SAP CPI. In both cases, the custom iDoc field is mapped to the `<pp:LongText>` segment in SAP DM using a XSLT transformation in integration layer.
This approach streamlines the integration between SAP ERP and SAP DM, allowing shop floor operators to access critical instructions and improving overall production efficiency.
Note: This above blog is only applicable for SAP ECC and SAP S4Hana, not for S4HC.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
16 | |
11 | |
10 | |
8 | |
8 | |
4 | |
3 | |
2 | |
2 | |
2 |