terça-feira, 30 de agosto de 2022

Shelf Life Inspection Process- Option 1

 Purpose:

The main purpose of the Shelf-life inspection to provide solution on extension of Shelf-life of Raw materials as per SOP / QA (Quality Assurance) / QC (Quality Control) Decisions based on inspection of required material with required characteristics.

Shelf-life inspection concept has been introduced in SAP ECC & S/4HANA with purpose to simplify Shelf-life extension problem. The main objectives of the Shelf-life inspection to provide solution on extension of Shelf-life of Raw materials as per SOP / QA (Quality Assurance) / QC (Quality Control) Decisions based on inspection of required material with required characteristics.

 

Problem / Pain Area:

Some raw material (chemical / dyes) having expiry on specific dd-mm-yyyy but during inspection of material, it observed that material batch shelf life can be extended for certain dd-mm-yyyy due to multiple quality constrains.

Currently some industries are replacing shelf-life date manually in batch using MSC2N after decision taken by quality teams but in system nothing is recorded. Every data available in manually in data sheets only. So, in case of any deep dive study, it is very difficult to manage / understand concerns for consumed material batch.

 

Steps of Solution:

  • Configure Custom Inspection Type as Z9
    • Configure a new Task list usage

Within a task list group, you can create different task list types with different usages. For example, you can distinguish among the following usages: model inspections, goods receipt inspections, inspections for goods returned from a customer, product audits and goods issue inspections. With the task list usage, the system can find an appropriate task list for a certain inspection type.

    • Configure new inspection type as Z9

Define the inspection types and the controls associated with the inspection type.

    • Assign inspection type to Origin ‘9’

Make settings for inspection lot origins and assign inspection types.

Also The default values you define in this step are used for new materials having this inspection type assigned. The values are relevant for the inspection setup that is defined in the Quality Management view of the material master.

  • Create Custom Table
    • Custom table needs to create:
  1. Plant
  2. Material Group
  3. No of days (Shelf Life – Inspection Days)
  4. UD Code
  • Enhancement in MIGO to update batch next inspection date

Enhancement Implementation needs to execute :

BADI: MB_MIGO_BADI

Method: IF_EX_MB_MIGO_BADI~POST_DOCUMENT

  • MIGO%20EnhancementConfigure follow-up action
    • Create new FM

FM Need to develop for follow-up action assignment and master data updation:

    • Add new followup action

Several processing variations are possible for follow-up actions:

  • A manual trigger of activities to be carried out manually.
  • A manual trigger of activities to be processed by the system.
    • Assignment of follow up action with UD code

You are in complex table maintenance, which contains several subs

dialogs. The relationship among the dialogs is shown in the dialog

structure.

 

Execution Steps:

  • Maintain custom table as per business requirement

  • Next Inspection date should be updated during GRN in batch header value

  • Schedule job of Transaction QA07 for recurring inspection as mentioned fields per attached snapshot.

  • Inspection lot will be created after execution of this job if next inspection date is less than equal to current date.

  • Results recording will be executed by QA / QC team
  • Usage decision taken by QA team
  • Enter required SLED date for material batch
  • Check Follow-up action should be display after selection of UD code.

  • After Save data has been updated in Material / Batch
  • Stock moved to Unrestricted from Quality

 

Benefits:

  • All inspections / activities carried out through SAP inspection lots / results recording
  • No chance of manual mistakes
  • Specified Quality validation protocols in SAP system

 

Pls follow my profile for future blogs related to SAP Production Planning & Execution and Quality Management.

Do let me know your views and suggestion to make this blog post better. Thanks for taking your timeout to read this blog post.

Regards,

Ramanand Mittal.

Source: https://blogs.sap.com/2022/08/19/shelf-life-inspection-process-option-1/

SAP® Advanced Shipping & Receiving – Advanced Shipping Notification on Consignment Level

 Dear Logistics Community,

after two exhausting but also interesting and valuable years of development for Advanced Shipping & Receiving (Adv. SR) I want to dedicate this blog post to a very special but very important topic:

What have we learned during the Adv. SR development regarding the system architecture of SAP R/3 and what have we improved in the context of the so called “Advanced Shipping Notification“?

But let me illustrate the topic step by step…

In the existing SAP R/3 world and with the “old” Shipping & Receiving functionality without SAP Transportation Management and SAP Extended Warehouse Management, there are a number of limitations that SAP customers have often only been able to overcome through extensive in-house development. One of the biggest problem areas was the object structure with the LE-TRA Shipment, which was used semantically differently on the supplier and customer side, as well as the corresponding EDI messages (in the form of IDOCs):

LE-TRA%20Object%20and%20Message%20Structure

Figure 1: LE-TRA – Object and Message Structure

 

It is important to mention that this architecture has existed for a very long time and was sufficient at the time of its creation, but logistics and especially EDI communication has always evolved over the years. Therefore, customers were forced to build many of their own developments on the existing standard (and consulting solutions have been created on this basis as well). Looking at the object structure in SAP R/3 generally, it is immediately apparent that the shipment object was used as a consignment object on the supplier side, but as a bordero / load object on the customer side.

But why is the consignment object so important in general and why was the LE-TRA Shipment used as semantic Consignment on the supplier side (in SAP R/3)? This is relatively easy to explain if you take a look at the various message standards (such as EDIFACT).

Excerpt from the UN/EDIFACT message type “DESADV” (Advanced Shipping Notification):

“The message intent is to advise of the detailed contents of a consignment.”

The same applies to the UN/EDIFACT message type “IFTMIN”:

“The instruction results in a transport contract for a consignment and is primarily meant for administrative purposes. It will be the message from shipper to carrier or forwarder containing the final details of the consignment for which services are provided.”

If you look at the structural design of the “classic” EDI standards (such as DESADV / VDA4987) with this information, you quickly realize that not only the “Consignment” level was missing in the past, but there were also structural problems in the mapping between the Shipment and DESADV / VDA4987.

The following figure shows the rough message structure of the SHPMNT IDOC structure on the left, the VDA standard 4987 (same as Global DESADV) in the middle, and the structure of the TM web services on the right:

 

SHPMNT%20IDOC%20vs.%20EDIFACT%20/%20VDA%20vs.%20TM%20Web%20Service

Figure 2: SHPMNT IDOC vs. EDIFACT / VDA vs. TM Web Service

 

The picture shows that the IDOC structure is not really oriented to the VDA standard and that the message contents, especially those relating to delivery and handling unit information, involve a huge mapping effort. The TM Web Services, on the other hand, are based on the EDIFACT standard, which simplifies mapping to the EDIFACT/ VDA messages.

However, as part of the Advanced Shipping & Receiving initiative, the existing architecture was reviewed by SAP in general and the existing weaknesses were to be eliminated. By the way, there is also an excellent blog post from Joerg Michaelis as well as a really nice podcast session with Peter Flensberg and Joerg Michaelis.

At the latest with the introduction of the consignment object in the backend, we were now “READY” for future logistics processes and could also better represent the Advanced Shipping Notification structurally through the web service TransportationOrderGenericRequest.

From a conceptual point of view, we are now able to send a generic web service from each object level (Freight Unit, Consignment, Freight Order), which contains a so-called business scope (e.g. ASN, Bordero, …) and can thus also be used semantically for specific use cases.

 

Figure%203%3A%20Principle%20of%20One%20Generic%20Interface

Figure 3: Principle of One Generic Interface

 

Furthermore, beside the already existing information we have extended the web service TransportationOrderGenericRequest with the fields that are mandatory in the message standard DESADV / VDA4987. These include, for example:

  • (Un-)Loading Point
  • (Goods) Supplier
  • Batch Information (Date of Manufacture, Shelf Life Expiration Date, Country of Orign,…)
  • Serial Numbers
  • etc.

Even though the mappings are structurally simplified, there is also a certain effort to perform the mappings between EDI Standard and TM web service. For “new” mappings this should require little effort, but for the conversion of existing mappings this is of course somewhat more complex. Regardless of this, we wanted to support customers in doing the mapping in general, which is why we got active support from the project and market experienced colleagues of the SAP Premium Hub Center of Expertise (CoE), who reviewed the functionality on the one hand and on the other hand also worked out a mapping proposal, which we are now publishing in the form of a consulting note. This should generally make it easier to understand the fields of the TM Web Service TransportationOrderGenericRequest and to perform mappings to EDI standards. Even if features & functions are still missing to fulfil all customer requirements, we are now able to cover the current mandatory fields in the Global DESADV / VDA4987 with the TransportationOrderGenericRequest.

As already mentioned, this web service can also be used for other levels and business scopes (e.g. Bordero), so we have come a good step closer to our target vision. This then includes a clear object structure and communication on all levels, which is also graphically represented in the following figure:

Figure%203%3A%20Adv.%20SR%20-%20Object%20and%20Message%20Structure%20%28Supplier%20/%20Customer%20/%20Carrier%29

Figure 4: Adv. SR – Object and Message Structure (Supplier / Customer / Carrier)

 

By the way, there are also some more cool (rather technical) features which were not available for IDOCs:

Action Code Handling (Create, Update, Delete)
IDOC contains a qualifier in the control segment to tell the recipient that a message is an original, a duplicate, an update or a deletion. SOA based messages uses field <ActionCode> for this purpose. The action codes “01” (Create), “02” (Change), “03” (Delete), and “06” (No Action) model strict semantics that lead to errors at the recipient if the object requested by the sender exist (“01”) or do not exist (“02”, “03”, “06”) at the recipient. Using strict semantics, therefore, requires that the sender has and uses information about the messages it has already sent. The ActionCodes “04” (Save) and “05” (Remove) model soft semantics that do not lead to errors if the respective elements do not exist at the recipient. Currently soft semantics has been applied in TransportationOrderGenericRequest messages, but it is also possible to switch to hard action codes for specific use cases.

B2B Communication

In B2B communication, master data is communicated based on external IDs and address information. Examples for external IDs, which are also called Standard IDs, are the Dun & Bradstreet number, Standard Carrier Alpha Code (SCAC), Global Location Number (GLN), etc. In TM, the respective Standard IDs can be maintained in related master data for business partner, location and product.

Delta Handling

An important feature of the service interface is to support delta messages. In the past, only full updates were possible which means that all data needs to be sent. Missing data is interpreted as to be deleted. According to the concepts of Modular TM the sending system might only contain a subset of the documents. Thus, a full update would not be possible for the sender of the message and the receiver would remove the missing document from the addressed document which would be wrong, though.

Message Sequencing

In asynchronous communications it is important that the messages are processed by the receiver in the right sequence. For full messages it is possible that a newer message can be processed before an older one. The older one will be discarded when it arrives at a later point in time. Delta messages need to be processed strictly in the order in which the messages are sent, and no message must be skipped.

Service Groups

A service group is a mechanism to determine receivers (Web service providers). This is either based on logical or technical routing and configuration is possible for either one or multiple receivers:

  • Logical receiver determination (LRD) is based on the business context that is provided using an LRD filter. During configuration, routing rules are defined. It allows flexible routing of web service calls. At runtime, the consumer application passes the business context to route the calls to the correct provider application.
  • Technical receiver determination (TRD) determines the receivers based on technical IDs. It is used by the Web service consumer application if the application knows which receiver to address.


Error Tolerant Inbound Processing

This is perfectly outlined in an episode of the TM podcast, therefore nothing to explain specifically in this blog post.

 

Finally, here are some additional remarks:

  • The web service for ASN (TransportationOrderGenericRequest) is following all SOAP specifics
  • Technically, PPF is used to trigger the ASN (standard scheduling condition is goods issue posting of the entire Consignment)
  • We will further improve the EDI communication in the upcoming releases

 

I hope you enjoyed reading this. Looking forward to your comments!

Source: https://blogs.sap.com/2022/08/22/sap-advanced-shipping-receiving-advanced-shipping-notification-on-consignment-level/

Common Connectivity Issues: SAP Logistics Business Network – Freight Collaboration and SAP S/4HANA

 

Introduction

Customers trying to connect with SAP Logistics Business Network Freight Collaboration (LBN FC) from their SAP S/4HANA backend system or SAP Transportation Management often faces several connectivity issues. These B2B integration errors are mostly due to some misconfigurations either at LBN or at SAP S/4HANA backend system. This blog tries to capture the common connectivity errors we see that customers make when trying to connect to/from LBN using B2B SOAP messages from/to their backend system. For the sake of simplification, we’ll consider all backend systems as SAP S/4HANA in this blog.

Issue Index

Capturing the list of issues mentioned in this blog below

Inbound to LBN (S/4HANA to LBN)

1. Missing LBN Id in PreferredCarrierParty (StandardID with schemaAgencyId=310 and schemeID=LBN)
2. Relationship of Ordering Party (shipper) LBN Id: 1001000XXXX and Carrier Party LBN Id: 1001000YYYYY has not yet been established
3. Ordering Party LBN Id could not be validated
4. SSL Handshake Error

Outbound from LBN (LBN to S/4HANA)

1. java.lang.NullPointerException: while trying to invoke the method java.lang.CharSequence.length() of a null object loaded from field java.util.regex.Matcher.text of an object loaded from local variable ‘this’
2. 401 Unauthorized
3. 503 Service Unavailable – There is no SAP Cloud Connector (SCC) connected to your subaccount
4. 403: Forbidden when communicating with S/4 Services
5. Response was of unexpected text/html ContentType
6. Invalid SOAP Envelope name
7. 405 Method Not Allowed
8. org.apache.cxf.binding.soap.SoapFault: Server Error
9. org.apache.cxf.binding.soap.SoapFault: Authorization missing for service

Pre-Requisites

You’ve established connectivity between LBN and your backend SAP S/4HANA. You can follow LBN Application Help or the other blogs published to achieve the same.

Identifying the error

The following diagram depicts the various integration possibilities between LBN and customer’s backend system for inbound and outbound communications. This blog talks about the possible error scenarios in the following connections. Since we deal with a minimum of 3 systems – SAP S/4HANA or SAP PI/PO, SAP Cloud Connector, SAP LBN – we can assume that there’s a configuration error at either one of these places whenever you come across an error.

Inbound%20to%20LBN

Outbound%20from%20LBN

How to keep a track of the message flow in each system? You can check the following monitoring tools to check the status of message in each system.

  1. Tcode – SXI_MONITOR in SAP S/4HANA and SAP PI/PO system if you’re using Option 1 for inbound/outbound communication.
  2. In SAP PI/PO system, there’s an additional JAVA system used for integration as well. Please check the message monitor there as well. Start Integration Builder -> Configuration and Monitoring Home -> Message Monitor. Even if the messages completed from the previous step and not found in LBN’s Message Integration Logs (or vice-versa), you can check here for more details.
  3. Tcode – SRT_MONI in SAP S/4HANA system if you’re using Option 2 or 3 (direct SOAMANAGER configuration)
  4. Monitoring tool of the intermediate integration system if you’re using Option 2.
  5. Manage Integration Logs in LBN to check the logs in LBN integration System. This app is available for both shipper and carrier and the relevant parties involved in a message can see it in their app.
  6. Monitor tab in the subaccount added in your cloud connector for outbound from LBN

In the inbound scenario, if the messages are not triggered out of the system and you can’t find it in srt/sxi monitor, the issue is within the TM configurations. Please check the necessary configurations needed to be maintained for each services documented in LBN Application Help or the consolidated SAP Note for LBN customers. Listing them below:

If the messages are successfully sent out of S/4HANA and not received in LBN, you can check the Manage Integration Logs for error details. If the error is not self-explanatory, you can check this blog or reach out to LBN team via incidents.

For the outbound scenarios, a general thumb rule is, if the error is thrown from your backend S/4HANA system and the message can be tracked in cloud connector logs, it’s usually a pending configuration issue.

Common Connectivity Issues

Inbound to LBN (S/4HANA -> SAP LBN)

If the messages are successfully sent out of S/4HANA and not received in the LBN tenant, you can check for the error in Manage Integration Logs app. Please note that if the message payload doesn’t contain the shipper LBN Id, the shipper customer won’t be able to see any error at all. Also, any issues related to authentication can’t be seen in LBN as well. Here you need to check the logs in your backend srt/sxi monitors to get the actual error. You should find the errored messages and the detailed logs in Manage Integration Logs app as shown below:

MIL%20Overview%20app

MIL%20Detailed%20View

1. Missing LBN Id in PreferredCarrierParty (StandardID with schemaAgencyId=310 and schemeID=LBN)

Inbound processing in endpoint at /lbn/b2b/soap/v1 failed with message “Fault:javax.script.ScriptException: java.lang.Exception: java.lang.IllegalStateException: Missing LBN Id in PreferredCarrierParty (StandardID with schemaAgencyId=310 and schemeID=LBN)@ line 261 in AnalyzeInboundMessage.groovy”, caused by “IllegalStateException:Missing LBN Id in PreferredCarrierParty (StandardID with schemaAgencyId=310 and schemeID=LBN)”

This error is quite self-explanatory. As the name suggests, LBN can’t find a carrier LBN Id maintained in the payload. In the case of a B2B message, LBN expects the carrier to be sent in the MessageHeader.  In an A2A message such as tracking, the LBN Id is expected to come within the carrier placeholder.

2. Relationship of Ordering Party (shipper) LBN Id: 1001000XXXX and Carrier Party LBN Id: 1001000YYYYY has not yet been established

Inbound processing in endpoint at /lbn/b2b/soap/v1 failed with message “Fault:javax.script.ScriptException: java.lang.Exception: java.lang.IllegalStateException: Relationship of Ordering Party (shipper) LBN Id: 1001000XXXX and Carrier Party LBN Id: 1001000YYYY has not yet been established@ line 134 in SetMessageHeaderExchangePropertyPartnerDirectory.groovy”, caused by “IllegalStateException:Relationship of Ordering Party (shipper) LBN Id: 1001000XXXX and Carrier Party LBN Id: 1001000YYYY has not yet been established”

3. Ordering Party LBN Id could not be validated

Fault:javax.script.ScriptException: java.lang.Exception: java.lang.IllegalStateException: Ordering Party LBN Id could not be validated. Check the PID: 69dc489f-8afd-4129-9966-c712a1822edd and Ordering Party LBN Id: 1001000XXXX@ line ZZZ in SetMessageHeaderExchangePropertyPartnerDirectory.groovy”

LBN authenticates inbound SOAP messages using the client certificate uploaded in shipper’s System Connections app. LBN maintains a mapping between the client certificate and the shipper LBN id in the integration layer. The above validation error is thrown when customers are trying to send a message to LBN using another certificate configured for a different shipper LBN tenant (almost always this is when customers try to re-use a single certificate for their multiple shipper tenants or a misconfiguration at the backend for test and production tenants).

4. SSL Handshake Error

This issue generally occurs when the new SSL client created by customer is missing LBN integrations system’s root certificates (Option 3 in the Inbound Communication diagram)
For the other inbound connection scenarios as well (Option 1 and 2), you can use the above blog to fetch the root certificates and update your PI system/intermediate integration system.

Outbound from LBN (S/4HANA -> SAP LBN)

1. java.lang.NullPointerException: while trying to invoke the method java.lang.CharSequence.length() of a null object loaded from field java.util.regex.Matcher.text of an object loaded from local variable ‘this’

java.lang.NullPointerException: while trying to invoke the method java.lang.CharSequence.length() of a null object loaded from field java.util.regex.Matcher.text of an object loaded from local variable ‘this’
In System Connections application, shipper hasn’t maintained a Destination Detail for the specific service interface or ‘Default’ interface. Once maintained, this issue should be resolved.

2. 401 Unauthorized

org.apache.cxf.interceptor.Fault: Could not send Message., cause: org.apache.cxf.transport.http.HTTPException: HTTP response ‘401: Unauthorized. <InvalidClientException><error>invalid_client</error><error_description>The client certificate is not configured in a service key of a Process Integration Runtime service instance. Client certificate: &apos;xxx

This specific error occurs when customer chooses to authenticate the outbound calls from LBN to their intermediate integration system using client certificate that’s provided by SAP LBN. And this certificate got expired and shipper hasn’t updated it yet. Once updated this issue should get resolved.

The client certificates is provisioned by LBN’s integration system and usually has a validity of one year or less. LBN informs customers using the Cloud System Notifications for all product alerts. Customers need to subscribe to this in order to receive such notifications. We also have published a blog on how to update certificates if you’re using SAP Cloud Integration (SAP CPI) as the intermediate integration system. There’s also a new feature in LBN where customers can authenticate the calls to intermediate integration system using Basic authentication. This’ll help the customer to avoid the trouble of updating the certificate every year. Linking all these informations below:

3. 503 Service Unavailable – There is no SAP Cloud Connector (SCC) connected to your subaccount

org.apache.cxf.interceptor.Fault: Could not send Message., cause: org.apache.cxf.transport.http.HTTPException: HTTP response ‘503: Service Unavailable. There is no SAP Cloud Connector (SCC) connected to your subaccount. Requested opening of a tunnel for subaccount &quot;a46089868&quot; and SCC location ID &quot;LBN_S4_LocationID&quot;. Check the configuration on SCC and cloud side.’ when communicating with https://ADDRESS_IS_SET_VIA.HEADER

Usually 503 Service Unavailable issues are related to cloud connector misconfigurations. Cloud connector is an SAP solution that enables customers to facilitate inbound and outbound communications from their On-Premise ABAP systems with SAP’s own cloud solutions.

LBN uses the cloud connector to integrate outbound calls from LBN to customer’s SAP backend systems.In order to facilitate this, customers should add LBN’s integration subaccount (a46089868) in their cloud connector instance. This is because we use a common integration system to communicate to all the customers. This is clearly mentioned in the shipper admin guide and connectivity blog published (Step 6.2).

Customers often get confused and add their LBN shipper tenant subaccount, which results in a 503 service unavailable. Please follow the above blog and first maintain the configuration in System Connections app and then follow the steps to add LBN integration subaccount in your cloud connector. Once you add your S-User in System Connections app (Outbound from Network -> Configure Connections), LBN will add this S-User in our integration system’s sub-account with the necessary roles. This enables the S-User to add LBN’s integration sub-account in the customer’s cloud connector.

Please ensure that the S-User you’re using in System Connections and the one used for adding LBN integration sub-account in your cloud connector is the same.

Cloud%20Connector%20Configuration%20in%20System%20Connections
Adding%20LBN%20integration%20system%20sub-account%20in%20customer%20cloud%20connector

4. 403: Forbidden when communicating with S/4 Services

Type – 1: org.apache.cxf.interceptor.Fault: Could not send Message., cause: org.apache.cxf.transport.http.HTTPException: HTTP response ‘403: Forbidden. Access denied to resource /sap/bc/srt/xip/scmtms/torci/400/transportationorderconfirmation/transportationorderconfirmation_in on system xxxx-yy.zzzz.test:8001. In case this was a valid request, ensure to expose the resource correctly in your cloud connector.’ when communicating with https://ADDRESS_IS_SET_VIA.HEADER

Type – 2: org.apache.cxf.interceptor.Fault: Could not send Message., cause: org.apache.cxf.transport.http.HTTPException: HTTP response ‘403: Forbidden’ when communicating with http://xxxx-yy.zzzz.test:8001/sap/bc/srt/xip/scmtms/torci/400/transportationorderconfirmation/transportationorderconfirmation_in?MessageId=BF636364-1677-49BC-9721-66F4CE4C9D85

The Type-1 is mostly an issue with CloudConnector config. Type-2 could be either a configuration issue or a simple case of the technical user used for authentication not having necessary roles.
  • Type-1: First at cloud connector because the necessary resources are not exposed. In such cases we get the following error:Check if all the steps mentioned in this note is maintained correctly by the customer. https://launchpad.support.sap.com/#/notes/0002473005 – This is the configuration in Cloud Connector to maintain ‘Path and All Sub-Paths’
  • Type-2: In SOAMANAGER configurations for the inbound service (Option 3 in Outbound from LBN diagram), if the transport level security is maintained as ‘SSL’, ensure that the HTTPS port is used for the connection in Cloud to On-Prem configuration in your Cloud Connector.SOAMANAGER%20Inbound%20Service%20Config
    Use the virtual host name and port number from the HTTPS host in Cloud Connector when creating the destination detail the System Connections application (the protocol in destination detail ‘System Url’ can be ‘http’. Just ensure that the port and host name is used of the HTTPS one in cloud connector).Additional points:

    • Customer can also use the ‘None (http)’ security. Then the HTTP port should be configured in System Connections and Cloud Connector
    • You can use SMICM tcode to get the host and port number for CloudConnector/SysConShipper configs. In SMICM, Goto -> Services.
  • Useful transactions in S/4 to debug the authorization errors: ST01, STAUTHACCESS, SU53.

5. Response was of unexpected text/html ContentType

org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: (none)

Issue could be a typo in the service endpoint correctly, especially when other document types are getting forwarded to the same S/4HANA backend. (You can confirm this by checking whether communication to other service interfaces in the system is working in Manage Integration Logs).

Compare the path url maintained in your SOAMANAGER or PI system and the System URL matinained in Destination Detail in System Connections app.

Access%20URL%20from%20SOAMANAGER%20configuration

6. Invalid SOAP Envelope name

org.apache.cxf.binding.soap.SoapFault: Invalid SOAP Envelope name

In the destaination detail in System Connection app, customer must’ve maintained the SOAP binding url and not the actual service interface url (from SOAMANAGER transport binding for path and SMICM/Cloud Connector for host).

This is where you’ll find the SOAP binding url (which is the incorrect config). THIS IS THE INCORRECT CONFIG. PLEASE CHECK BELOW FOR THE CORRECT CONFIGURATION.

SOAP%20Binding

SOAP%20Binding%20URL

FOLLOWING IS THE CORRECT CONFIGURATION

Instead this should be taken from the Cloud Connector for host and SOAMANAGER binding -> Transport Settings for path url.

Binding
Binding%20url

7. 405 Method Not Allowed

org.apache.cxf.binding.soap.SoapFault: Error writing to XMLStreamWriter., cause: java.io.IOException: Unable to tunnel through proxy. Proxy returns “HTTP/1.1 405 Method Not Allowed”

This is most likely a caching issue and a restart of ICM should resolve.
PLEASE CONSULT WITH YOUR BASIS TEAM BEFORE DOING THIS STEP.

Go to transaction SMICM
Administration -> ICM -> Exit Soft -> Global

8. org.apache.cxf.binding.soap.SoapFault: Server Error

org.apache.cxf.binding.soap.SoapFault: Server Error

This mostly come when customers uses an intermediate SAP PI/PO system in between LBN and S/4HANA system.

Check if the connectivity to the PI system is achieved for other message types. (By checking in Manage Integration Logs). If there are other successful message types configured to the same destination url (compare the urls with Completed and Escalated scenario) the following is the most probable scenario:
This most likely is an issue at the customer’s PI system. Eg: the ESR message repository in SAP PI system might not have this payload. Customer must’ve missed to import the same in their production landscape for example. The SOAP message type is not present in the directory of the SAP PI system and hence the failure.

9. org.apache.cxf.binding.soap.SoapFault: Authorization missing for service

org.apache.cxf.binding.soap.SoapFault: Authorization missing for service “http://sap.com/xi/TMS/Global TransportationOrderConfirmation_In”, operation “TransportationOrderConfirmation”; more details in the web service error log on
provider side (UTC timestamp 20220822100416; Transaction ID eafeb020846549c98c35b7e8ef60cb85)
Technical user used for authentication doesn’t have the necessary roles. If the customer has another tenant-backend system setup already working, ask them to check and compare the roles.
Check SU53 for authorization errors
PFCG – Check the roles for the technical user and see if you can find the services.
SU56 – Check if the user buffer is valid for the technical user. If invalid, fix the same.

Conclusion

This blog attempts to capture some of the common connectivity issues that arise when trying to connect between SAP S/4HANA or SAP Transportation Management and SAP LBN. Let us know if this helped you to gain some insights into the errors that you face. If there are any additional error types that you want to capture, do mention it in the comments. We’ll try to update the blog with the same.


Source: https://blogs.sap.com/2022/08/24/common-connectivity-issues-sap-logistics-business-network-freight-collaboration-and-sap-s-4hana/