Skip to Content
Author's profile photo Former Member

Create Follow up documents for C4C Ticket in ECC

In this blog we are going to create follow up documents for C4C ticket. The follow up document for ticket can be created in ECC or CRM system based on the processing type of line item.

Deploy the communication Scenario “Creation of Ticket follow up document in sap business suit” in C4C. And once that’s done your standard IDOC will flow to ECC and will create the standard documents like Credit memo, Debit memo, Good receipt based on the processing type of line item.

But in this blog we will be focusing on how we can create our own transaction (sales order document) as a follow up document of ticket.

If you want to add any custom field in ticket that to be flowed to ECC then check below link:

Let’s move further and check how we can create follow up documents:

1. login to your respective ECC client, and go to tcode SE18.

2.  Implement the enhancement spot COD_ERP_SERVICE_CONF.

3. Once implemented you will find a list of BADI methods which are triggered while creation of   standard documents. The below BADI methods are triggered based on the processing type of product in ticket.

4. Function Module COD_SERVICE_CONFIRMATION is used to trigger methods for creating documents in which above BADI methods are triggered. Is_message parameters contains all the details in form of tables.

5. BADI method IF_BADI_COD_SERVICE_CONF~MAP_IAOM is triggered every time as it created internal order for all the processing types of tickets. So we need to enhance and place our code in this method.

6. Check the processing type from item table as per required. The item for which document need to be created.

7. If item is found, check whether any document already exist for same line item, if yes then update else create a sales document using the function module COD_SALESORDER_CREATEFROMDAT2.

Note: If you want to stop/skip creation of any standard document then enhance the respective BADI method and pass the SKIP_STANDARD_PROCESS parameter as True.

Please do comment on this blog if you find any issue in creating C4C ticket follow up document.

Happy Learning

Gagan Gupta

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Frank Freitag
      Frank Freitag


      Very helpful! Thanks.

      Author's profile photo Former Member
      Former Member

      Hi Gagan,

      Will this also create Service order in ECC or Internal Order?

      Or it will only create the follow up documents ?

      Kindly let me know.


      Our requirement is to create Service Order in S/4 HANA wrt ticket creation in C4C.


      Also when a service Order status changes, we need to send that information back to C4C.

      Your guidance would be appreciable.

      Author's profile photo Suman Pattnaik
      Suman Pattnaik


      any documents on triggering credit memo from hybris C4C side?

      Author's profile photo Mathias Weber
      Mathias Weber

      Hi Community, Gagan Gupta,


      is there any sample implementation of the scenario described ad depicted above available for download? We're strongly interested in getting a sales order created in ERP based on the ticket confirmation from C4C.


      Thanks in advance for your support.