Hi all,
First, should I post in this forum or the CRM forum??
I'm trying to use the service AppointmentActivityCRMCreateRequest
I have based my example on:
https://help.sap.com/saphelp_crm700_ehp03/helpdata/en/d3/1ae618d4a511dc2b8d000f20fcb6a9/content.htm?frameset=/en/ae/c21f6099b911dd2b8d000f20fcb6a9/frameset.htm¤t_toc=/en/4f/97ac4196b94b21e10000000a42189b/plain.htm&node_id=22
Then modified the different IDs to fit our own data.
However, when executing the Request, I'm getting errors on the response even though the appointment is created.
When looking at my transaction in Web UI, I can see the transaction created but the partners are missing, just as the error says.
Has anyone experienced the same issue?
Request:
<?xml version="1.0" encoding="utf-8"?>
<n0:AppointmentActivityCRMCreateRequest_sync xmlns:n0="http://sap.com/xi/CRM/SE">
<MessageHeader>
<ID></ID>
<UUID></UUID>
<ReferenceID></ReferenceID>
<ReferenceUUID></ReferenceUUID>
</MessageHeader>
<AppointmentActivity>
<ProcessingTypeCode>0000</ProcessingTypeCode>
<AppointmentActivityAdministrationHeader>
<ProcessingTypeCode>0000</ProcessingTypeCode>
<Description>TESTING</Description>
<AppointmentActivityHeaderDates>
<AppointmentActivityHeaderPlannedDate>
<AppointmentTypeCode>ORDERPLANNED</AppointmentTypeCode>
<DurationIndicator>false</DurationIndicator>
<StartDateTime>2016-04-05T17:00:00Z</StartDateTime>
<EndDateTime>2016-04-05T17:10:00Z</EndDateTime>
</AppointmentActivityHeaderPlannedDate>
</AppointmentActivityHeaderDates>
<AppointmentActivityHeaderPartiesInvolved>
<AppointmentActivityHeaderAllPartiesInvolved>
<PartyUUID>57036f47-3521-0bf0-e100-80000a441e86</PartyUUID>
<RefPartyNoDisplayTypeCode>BP</RefPartyNoDisplayTypeCode>
<RefPartyNoTypeCode>BP</RefPartyNoTypeCode>
<PartyID>3272</PartyID>
<PartyRoleCode>15010668</PartyRoleCode>
<MainPartyIndicator>false</MainPartyIndicator>
</AppointmentActivityHeaderAllPartiesInvolved>
<AppointmentActivityHeaderAllPartiesInvolved>
<PartyUUID>57036f78-3521-0bf0-e100-80000a441e86</PartyUUID>
<RefPartyNoDisplayTypeCode>BP</RefPartyNoDisplayTypeCode>
<RefPartyNoTypeCode>BP</RefPartyNoTypeCode>
<PartyID>15010684</PartyID>
<PartyRoleCode>00000015</PartyRoleCode>
<MainPartyIndicator>false</MainPartyIndicator>
</AppointmentActivityHeaderAllPartiesInvolved>
<AppointmentActivityHeaderAllPartiesInvolved>
<PartyUUID>57036f17-3521-0bf0-e100-80000a441e86</PartyUUID>
<RefPartyNoDisplayTypeCode>BP</RefPartyNoDisplayTypeCode>
<RefPartyNoTypeCode>BP</RefPartyNoTypeCode>
<PartyID>15001710</PartyID>
<PartyRoleCode>00000022</PartyRoleCode>
</AppointmentActivityHeaderAllPartiesInvolved>
<MainPartyIndicator>false</MainPartyIndicator>
</AppointmentActivityHeaderPartiesInvolved>
<AppointmentActivityHeaderStatus>
<UUID>57036ee9-3521-0bf0-e100-80000a441e86</UUID>
<AppointmentActivityHeaderCurrentStatus>
<UUID>57036ee9-3521-0bf0-e100-80000a441e86</UUID>
<StatusCode>E0001</StatusCode>
<UserStatusProfileCode>CRMACTIV</UserStatusProfileCode>
<ActualStatusCode>E0001</ActualStatusCode>
<StatusName>Open</StatusName>
</AppointmentActivityHeaderCurrentStatus>
</AppointmentActivityHeaderStatus>
<AppointmentActivityHeaderTexts>
<AppointmentActivityHeaderFirstChangeableText>
<Text>first_changeable_note_create</Text>
</AppointmentActivityHeaderFirstChangeableText>
</AppointmentActivityHeaderTexts>
<AppointmentActivityHeader>
<AppointmentActivityLocationName>Office</AppointmentActivityLocationName>
<GroupCode>301</GroupCode>
<PriorityCode>5</PriorityCode>
<PrivateIndicator>false</PrivateIndicator>
</AppointmentActivityHeader>
<AppointmentActivityHeaderOrganization>
<UUID>57036ee9-3521-0bf0-e100-80000a441e86</UUID>
<SalesOrganizationName>Branches</SalesOrganizationName>
<SalesOrgUnitName>Branches</SalesOrgUnitName>
<SalesOrgUnitID>O 50004283</SalesOrgUnitID>
<SalesOrganizationID>O 50004283</SalesOrganizationID>
<DistributionChannelCode>01</DistributionChannelCode>
</AppointmentActivityHeaderOrganization>
</AppointmentActivityAdministrationHeader>
</AppointmentActivity>
</n0:AppointmentActivityCRMCreateRequest_sync>
Here is the response:
<?xml version="1.0" encoding="utf-8"?>
<nm:AppointmentActivityCRMCreateConfirmation_sync xmlns:nm="http://sap.com/xi/CRM/SE" xmlns:prx="urn:sap.com:proxy:CRX:/1SAI/TASFDF646AB4DB70F479D66:731">
<MessageHeader>
<ID>56F6E4E00DBA0BC0E10080000A441E86</ID>
<UUID>56f6e4e0-0dba-0bc0-e100-80000a441e86</UUID>
</MessageHeader>
<AppointmentActivity>
<ID>88358</ID>
<ProcessingTypeCode>0000</ProcessingTypeCode>
</AppointmentActivity>
<Log>
<BusinessDocumentProcessingResultCode>3</BusinessDocumentProcessingResultCode>
<MaximumLogItemSeverityCode>3</MaximumLogItemSeverityCode>
<Item>
<TypeID>000(CRMOST)</TypeID>
<SeverityCode>3</SeverityCode>
<Note>Object Name:PARTNER Attribute Name:PARTNER_NO</Note>
</Item>
<Item>
<TypeID>119(COM_PARTNER)</TypeID>
<SeverityCode>3</SeverityCode>
<Note>Enter Activity Partner</Note>
</Item>
<Item>
<TypeID>000(CRMOST)</TypeID>
<SeverityCode>3</SeverityCode>
<Note>Object Name:PARTNER Attribute Name:PARTNER_NO</Note>
</Item>
<Item>
<TypeID>119(COM_PARTNER)</TypeID>
<SeverityCode>3</SeverityCode>
<Note>Enter Contact Person</Note>
</Item>
</Log>
</nm:AppointmentActivityCRMCreateConfirmation_sync>
Thank you for your help,