Skip to end of metadata
Go to start of metadata

Example: Create service request

The following xml example data creates a service request (also called service notification) document in ERP for a given customer and a given equipment.

Prerequisites

The backend system contains the relevant master data: this  customer and this equipment exist and there is a catalog profile assigned to the equipment.
The example refers to customer with the ID 11712 and equipment 10003562 with catalog profile PC.

Example XML

Input parameters

<?xml version="1.0" encoding="UTF-8" ?>
 <ns1:ServiceRequestERPCreateRequest_sync xmlns:ns1="http://sap.com/xi/EA-APPL/SE/Global">
  <ServiceRequest>
   <IndividualMaterialID>10003562</IndividualMaterialID>
   <MaintenancePlantID>1200</MaintenancePlantID>
   <WorkCentreID>PC-SERV</WorkCentreID>
   <TypeCode>S1</TypeCode>
   <RequestedProcessingPeriod>
    <StartDateTime>2008-06-04T05:27:00.119+00:00</StartDateTime>
    <EndDateTime>2008-06-04T05:27:00.119+00:00</EndDateTime>
   </RequestedProcessingPeriod>
   <Description>Testing</Description>
   <Item>
    <DamageServiceIssueCategoryCatalogueID>C</DamageServiceIssueCategoryCatalogueID>
    <DamageParentServiceIssueCategoryID>PC</DamageParentServiceIssueCategoryID>
    <DamageServiceIssueCategoryID>E</DamageServiceIssueCategoryID>
    <ObjectPartServiceIssueCategoryCatalogueID>B</ObjectPartServiceIssueCategoryCatalogueID>
    <ObjectPartParentServiceIssueCategoryID>PC</ObjectPartParentServiceIssueCategoryID>
    <ObjectPartServiceIssueCategoryID>5</ObjectPartServiceIssueCategoryID>
    <OrdinalNumberValue>1</OrdinalNumberValue>
    <Cause>
     <CauseServiceIssueCategoryCatalogueID>5</CauseServiceIssueCategoryCatalogueID>
     <CauseParentServiceIssueCategoryID>PC</CauseParentServiceIssueCategoryID>
     <CauseServiceIssueCategoryID>5</CauseServiceIssueCategoryID>
     <OrdinalNumberValue>1</OrdinalNumberValue>
    </Cause>
   </Item>
   <ContactParty>
    <InternalID>11712</InternalID>
   </ContactParty>
  </ServiceRequest>
</ns1:ServiceRequestERPCreateRequest_sync>

Corresponding output parameters:

<ServiceRequest>
  <ID>200000978</ID>
</ServiceRequest>
<Log />
  • No labels