Documente Academic
Documente Profesional
Documente Cultură
Hi,Guest
LogOn
JoinUs
Products
Services&Support
AboutSCN
Downloads
Industries
Training&Education
Partnership
DeveloperCenter
Activity
LinesofBusiness
UniversityAlliances
Events&Webinars
Innovation
Browse
SAPCloudforCustomer
SURVEYA2ASERVICE:
Manage_Survey_Response_In
PostedbyAyushDasinSAPCloudforCustomeron08Aug201611:29:15
Share
Tweet
Store
SearchtheCommunity
Like 6
SURVEYA2ASERVICE
Manage_Survey_Response_In
1BusinessContext:
Thisserviceprovidesaproceduretocapturetheanswer/responses
fromthirdpartysystem(anativeexternalapplication)totheC4C
Survey.
SurveyA2AenablestheexternalapplicationtosendAsynchronous
responsesofthesurveyintheCloudforCustomersystemthroughan
externalportal(whichispartofintegratedsoftwaresystemofthe
businessenterprise).
2ResponseCaptureServiceDetails
IntheSurveyA2Aservice,thestructurefieldsarederivedfromthe
QuestionnaireBO.
QueryalltheQuestionswithAnswersforaResponseItem:
ToqueryallthequestionsinthesurveywecanusethebelowURL:
https://<C4CSystem>/sap/c4c/odata/v1/survey/ResponseCollection('<key1>')/ResponseItem(<key2>)/QuestionAnswers
<Key1>>correspondstoQuestionnaire>Valuation_CollectionNode
<Key2>>correspondstoQuestionnaire>ValuationNode
BelowisthesampleXMLtocaptureresponses
Note:1)ThisA2AWebservicealsosupportstheinclusionofnew
surveystoVisitwhileatthesametimeresponsescanbe
captured
2)OnlySurveyType'Checklists'aresupportedwiththisA2A
webservice
Communications
Actions
<n0:SurveyResponseMaintainBundleRequestxmlns:n0="http://sap.com/xi/SAPGlobal20/Global">
<MessageHeader>
<UUID>1234567890ABCDEF0123456789ABCDEF</UUID>
<ReferenceUUID>1234567890ABCDEF0123456789ABCDEF</ReferenceUUID>
<CreationDateTime>20160523T12:00:00.1234567Z</CreationDateTime>
<SenderBusinessSystemID>Q9CCLNT400</SenderBusinessSystemID>BusinessSystem(Sender
ID)Messagecommunicationarrangementshouldbeconfigured
</MessageHeader>
<SurveyResponseRequestMessage>
<MessageHeader>
<UUID>1234567890ABCDEF0123456789ABCDEF</UUID>
<ReferenceUUID>1234567890ABCDEF0123456789ABCDEF</ReferenceUUID>
<CreationDateTime>20160523T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<ID>1161</ID>SurveyRootID
<!Zeroormorerepetitions:>
<ValuationCollection>
<ValuationCollectionUUID>00163E12BA691EE5B9C5
182304D5BB97</ValuationCollectionUUID>ThishastobeanewUUIDwhenattachingthesurveytothe
Visitforthefirsttime
<!Zeroormorerepetitions:>
<Valuation>
<!Optional:>
<ValuationUUID>00163E12BA691EE5B9C5182304D5DB97</ValuationUUID>
ValuationUUIDcanbeblankwhenattachingsurveyforthefirsttime,butmustbefilledforupdatecases
<Answers>
<QuestionUUID>00163E12BA691EE5B9C4C5E9F681DA63</QuestionUUID>Survey>Element
UUID
<QuestionOptionUUID>00163E12BA691EE5B9C4
CA74CB0D5A95</QuestionOptionUUID>>Survey>ElementValueUUID
<Indicator>true</Indicator>
</Answers>
<Answers>
<QuestionUUID>00163E12BA691EE5B9C4D0DDE0E65AA5</QuestionUUID>
<QuestionOptionUUID>00163E12BA691EE5B9C4D16FFC4F3AA6</QuestionOptionUUID>
<AmountcurrencyCode="USD">234</Amount>
</Answers>
</Valuation>
<BusinessTransactionDocumentUUID>00163E12BA401EE68898
FB33BD4F54C2</BusinessTransactionDocumentUUID>VisitsUUID,thisistheimportantfieldwhen
attachingthesurveytoaVisit,notneededforupdatecaseswheresurveyisalreadyattachedtothecorrespondingvisit
<BusinessTransactionDocumentTypeCode>12</BusinessTransactionDocumentTypeCode>
VisitsBTDTypeCode,asmentionedaboveinthesamemannerthisisalsonotneededforupdatecaseswhere
surveyisalreadyattachedtothecorrespondingvisit
</ValuationCollection>
</SurveyResponseRequestMessage>
</n0:SurveyResponseMaintainBundleRequest>
3CommunicationArrangement
Inthecommunicationarrangement,communicationsettingsmustbemade
forbothinboundandoutboundcommunications
ItisanAsynchronousservicethusitsendstheresponsebackonlyfor
successfulwebservicecallsviaaseparatemessagefortheconfirmationof
posting
Note:forfailedmessages/failedpostingsthereisnoresponsebacktothe
callingapplication(InC4CgeneralA2AAsynchronousservicesdonotsend
theerrormessages/failurenotificationoffailedmessages/webservicescall)
Wehaveattachedtwofiles"SurveyA2AManageResponseStructure.txt",
"CommunicationArrangementOverview.JPG"foryourreference,and
alsotheabovesamplexmlshouldguideyouthroughtheformingofweb
servicecallstructure
Ihopethisdocumenthasbeenhelpful.Pleaseleaveacommentincaseyouwantusto
explainanythingmoreaboutthistopic.
SurveyA2AManageResponseStructure.txt.zip(845bytes)
CommunicationArrangementOverview.JPG
114.4K
310Views
Tags:survey,pdi,surveys,sap_cloud_applications_studio,c4c1608
AverageUserRating
(1rating)
Share
Tweet
Like 6
1Comment
AshwiniKumarDalai08Aug201612:30
ThanksAyushforputtingthistogether....
Regards,
Ashwini
Like(0)
SiteIndex
Privacy
ContactUs
TermsofUse
SAPHelpPortal
LegalDisclosure
Copyright
FollowSCN