0

Cancelled Inbound Services in C4C

 9 months ago
source link: https://blogs.sap.com/2023/08/22/cancelled-inbound-services-in-c4c/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
August 22, 2023 2 minute read

Cancelled Inbound Services in C4C

Hello Developers!!!

I hope you’re doing well.

This blog is all about the Inbound services getting Cancelled automatically in C4C, especially on the updation of a record from the source system.

Below is a sample screenshot of how the issue looks like from the WSMM.

SS2-2.jpg

Screenshot of WSMM with Canceled Messages

One of the main reasons for the Services getting cancelled automatically is due to the field <SenderSequenceNumberValue>.

As per the standard process, the value sent in this field should be greater than the one sent earlier. In case the number is not greater than the previous one; the web service request will be automatically cancelled by the C4C System.

Usually, the <SenderSequenceNumberValue> field will be a Date field or else it will be an integer field that will draw the latest number while triggering the outbound service from the source system/middleware.

In below payload reference, you will be able to view the number generated/sent to the C4C system:

  <BusinessPartnerSUITEReplicateRequestMessage>
    <MessageHeader>
      <ID>Cx000000000000000000000xD</ID>
      <UUID>7000-000-000-00005</UUID>
    </MessageHeader>
    <BusinessPartner actionCode="04" addressInformationListCompleteTransmissionIndicator="true" commonListCompleteTransmissionIndicator="true" roleListCompleteTransmissionIndicator="true" taxNumberListCompleteTransmissionIndicator="true">
      <ExternalID>X000000X</ExternalID>
      <SenderSequenceNumberValue>20230810064752</SenderSequenceNumberValue>
      <CategoryCode>X</CategoryCode>

In the above sample payload, the value is in Date format (refer to SC2). Therefore, whenever an update is sent to the system it will contain a number greater than the previous number as the system will send the current date and timestamp in the service.

Blogs-SAP-1.jpg

The number is divided in date format (SC2)

Resolution:

Here our issue was in middleware as the value was hardcoded in CPI.

I asked the middleware consultant to pass the “Current Date & Time” in the field using a function & then the Issue was resolved. Thereafter, the messages were falling into the successful queue.

So, whenever you face such issues always have a look at the mapping as well as what value is being passed from the external system to C4C.

SS3-2.jpg

Successful Screenshot of WSMM

Hope you enjoyed the blog. We have a lot more coming, so do like and follow for more such content.

Bye bye!! 🙂

Ananthu R Biju

Senior C4C Consultant


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK