Skip to Content
avatar image
Former Member

Error creating CustomerRequirement via WebService-WSDL

Hi,

We try to create CustomerRequirementIn with multiple product items. After creating it, all materials has the same ProductID.

Ex: we create a CustomerRequirementIn with 2 items, one having id: 2000070 and the other 2000069

Here is the request:

 <CustomerRequirement ActionCode="01">
    <ObjectNodeSenderTechnicalID></ObjectNodeSenderTechnicalID>
    <ChangeStateID></ChangeStateID>
    <ID></ID>
    <ShipFromSiteID>19810</ShipFromSiteID>
    <ShipToSiteID>19850</ShipToSiteID>
    <ShipToLocationID>19850</ShipToLocationID>
    <CompleteDeliveryRequestedIndicator>false</CompleteDeliveryRequestedIndicator>
    <DeliveryPriorityCode>2</DeliveryPriorityCode>
    <ExternalRquestItem ActionCode="01">    
      <ProductKey>
        <ProductTypeCode>1</ProductTypeCode>
        <ProductIdentifierTypeCode>1</ProductIdentifierTypeCode>
        <ProductID>2000070</ProductID>
      </ProductKey>
      <RequestedQuantity unitCode="EA">1</RequestedQuantity>
      <RequestedLocalDateTime timeZoneCode="EST">2016-12-28T23:00:00Z</RequestedLocalDateTime>
      <PartialDeliveryControlCode>1</PartialDeliveryControlCode>  
    </ExternalRquestItem>
    <ExternalRquestItem ActionCode="01">
      <ProductKey>
        <ProductTypeCode>1</ProductTypeCode>
        <ProductIdentifierTypeCode>1</ProductIdentifierTypeCode>
        <ProductID>2000069</ProductID>
      </ProductKey>
      <RequestedQuantity unitCode="EA">1</RequestedQuantity>
      <RequestedLocalDateTime timeZoneCode="EST">2016-12-28T23:00:00Z</RequestedLocalDateTime>  
      <PartialDeliveryControlCode>1</PartialDeliveryControlCode>
    </ExternalRquestItem>
  </CustomerRequirement>

And the response, it says the CustomerRequirementIn was created

<n0:CustReqBundleMaintainConfirmation_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:LBP:/1SAI/TAE221F49E70D9648D7684D:804">
         <CustomerRequirement>
            <ID>00000000000000000000000000000014663</ID>
            <UUID>00163e0e-210b-1ee6-aef5-4a0ab03838b7</UUID>
         </CustomerRequirement>
      </n0:CustReqBundleMaintainConfirmation_sync>

The problem is that in the created object both item has the same id:

Query back the object

<CustomerRequirement>
            <ObjectNodeSenderTechnicalID>*</ObjectNodeSenderTechnicalID>
            <!--Optional:-->
            <CustomerRequirementID>14663</CustomerRequirementID>
           </CustomerRequirement>
      </glob:CustomerRequirementReadByUUIDRequest_sync>

Response

<n0:CustomerRequirementReadBundleResponse_Sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:LBP:/1SAI/TAE4BDD8B6FB8010F09674D:804">
         <CRReadResponse>
            <ObjectNodePartyTechnicalID>*</ObjectNodePartyTechnicalID>
            <BaseBusinessTransactionDocumentID>14663</BaseBusinessTransactionDocumentID>
            <SystemAdministrativeData>
               <CreationDateTime>2016-12-06T11:51:25.878603Z</CreationDateTime>
               <CreationIdentityUUID>00163e10-6e78-1ee6-acb1-1a51200d96d0</CreationIdentityUUID>
               <LastChangeDateTime>2016-12-06T12:30:38.199143Z</LastChangeDateTime>
               <LastChangeIdentityUUID>00163e08-f2b7-1ee5-88e7-f78b4dce0a9d</LastChangeIdentityUUID>
            </SystemAdministrativeData>
            <ShipFromSiteID>19810</ShipFromSiteID>
            <ShipFromSiteDescription languageCode="DE">Unica Luzern</ShipFromSiteDescription>
            <ShipToSiteID>19850</ShipToSiteID>
            <ShipToSiteDescription languageCode="DE">Unica Bern</ShipToSiteDescription>
            <ShipToLocationID>19850</ShipToLocationID>
            <ShipToLocationName>Unica Bern</ShipToLocationName>
            <DeliveryPriorityCode>2</DeliveryPriorityCode>
            
           
            <CustomerRequirementReadBundleExternalRequestItem>
               <ItemID>10</ItemID>
               <Status>
                  <ProductAvailabilityConfirmationStatusCode>4</ProductAvailabilityConfirmationStatusCode>
                  <AvailabilityConfirmationDateStatusCode>2</AvailabilityConfirmationDateStatusCode>
                  <AvailabilityConfirmationQuantityStatusCode>2</AvailabilityConfirmationQuantityStatusCode>
                  <BlockingStatusCode>1</BlockingStatusCode>
                  <CancellationStatusCode>1</CancellationStatusCode>
                  <LogisticsExecutionReleaseStatusCode>3</LogisticsExecutionReleaseStatusCode>
                  <LogisticsExecutionProcessingStatusCode>1</LogisticsExecutionProcessingStatusCode>
               </Status>
               <ProductKey>
                  <ProductTypeCode>1</ProductTypeCode>
                  <ProductIdentifierTypeCode>1</ProductIdentifierTypeCode>
                  <ProductID>000000000000000000000000000000000000000000000000000002000070</ProductID>
               </ProductKey>
               <ProductDescription>Ananas BIO_Selecta 40g</ProductDescription>
               <RequestedQuantity unitCode="EA">1.0</RequestedQuantity>
               <DateTimePeriod>
                  <StartDateTime timeZoneCode="CET">2016-12-28T23:00:00Z</StartDateTime>
                  <EndDateTime timeZoneCode="CET">2016-12-28T23:00:00Z</EndDateTime>
               </DateTimePeriod>
               <ActualValuesCumulatedFulfilledQuantity unitCode="EA">0.0</ActualValuesCumulatedFulfilledQuantity>
               
            </CustomerRequirementReadBundleExternalRequestItem>
            <CustomerRequirementReadBundleExternalRequestItem>
               <ItemID>20</ItemID>
               <Status>
                  <ProductAvailabilityConfirmationStatusCode>4</ProductAvailabilityConfirmationStatusCode>
                  <AvailabilityConfirmationDateStatusCode>2</AvailabilityConfirmationDateStatusCode>
                  <AvailabilityConfirmationQuantityStatusCode>2</AvailabilityConfirmationQuantityStatusCode>
                  <BlockingStatusCode>1</BlockingStatusCode>
                  <CancellationStatusCode>1</CancellationStatusCode>
                  <LogisticsExecutionReleaseStatusCode>3</LogisticsExecutionReleaseStatusCode>
                  <LogisticsExecutionProcessingStatusCode>1</LogisticsExecutionProcessingStatusCode>
               </Status>
               <ProductKey>
                  <ProductTypeCode>1</ProductTypeCode>
                  <ProductIdentifierTypeCode>1</ProductIdentifierTypeCode>
                  <ProductID>000000000000000000000000000000000000000000000000000002000070</ProductID>
               </ProductKey>
               <ProductDescription>Ananas BIO_Selecta 40g</ProductDescription>
               <RequestedQuantity unitCode="EA">1.0</RequestedQuantity>
               <DateTimePeriod>
                  <StartDateTime timeZoneCode="CET">2016-12-28T23:00:00Z</StartDateTime>
                  <EndDateTime timeZoneCode="CET">2016-12-28T23:00:00Z</EndDateTime>
               </DateTimePeriod>
               <ActualValuesCumulatedFulfilledQuantity unitCode="EA">0.0</ActualValuesCumulatedFulfilledQuantity>
              
            </CustomerRequirementReadBundleExternalRequestItem>
         </CRReadResponse>
      </n0:CustomerRequirementReadBundleResponse_Sync>


So the problem is that both created item has the same ID 2000070 instead (2000070, 2000069)

Please advise,

Thanks,

Hunor

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Dec 07, 2016 at 12:45 PM

    We found the problem. The Stock Transfer was created successfully and correctly. The problem was with the CustomerRequirementReadBundleResponse_Sync.

    Cheers

    Add comment
    10|10000 characters needed characters exceeded