cancel
Showing results for 
Search instead for 
Did you mean: 

Create Surveys in SAP C4C

former_member261521
Discoverer

I have a requirement to develop a program in SAP ECC that can create Surveys in SAP C4C by making use of the OData services offered by SAP C4C. Has anyone come across a similar requirements? First thing i want to find out is whether I can use the ODATA Service provided by SAP C4C to create a new Survey via the ODATA Console but no success.

Can someone guide me on how to use OData console to create a new Survey.??

Thanks in advance.

Former Member
0 Kudos

I have a similar requirement...Have you found a solution for this?

former_member261521
Discoverer
0 Kudos

Hi Bradley,

Unfortunately no.

I learnt from SAP that the OData services for Survey still doesn't support posting data to C4C,

Regards,

Srini

marlosdamasceno
Participant

Hi Sriny,

Do you know if in this new release 1711 this has changed?
Moreover, can you show the JSON or XML of the POST you have tried using OData?
I am trying to understand the synchronous web service ManageQuestionnaireValuationCollectionIn, that according with the documentation it can fill the Questionnaire BO if an XML is sent through the tag XMLRepresentationBinaryObject.

However, I have no idea how this XML should be. The documentation isn't great and does not provide any details.

Only this: To update one or more questionnaire valuations using imported XML (encoded in BASE64).

Best regards,

Marlos Damasceno


marlosdamasceno
Participant
0 Kudos

Does someone may know this information?

horst.schaude, sorry to bother, but do you might know someone that can complete the documentation? In order to fill the gap of what xml should be sent to C4C.

Thanks in advance

Best regards

Marlos Damasceno

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Marlos,

As far as I know ODATA can currently only be used to retrieve data; the POST option is not supported up to now.

Do you have access to the SDK? In that case you derive the XML there.

HTH,
. Horst

marlosdamasceno
Participant
0 Kudos

Hi Horst,

Thank you very much!

Yes, I do have access to the SDK, however this XML is a tag inside the request.
This is the request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">
   <soapenv:Header/>
   <soapenv:Body>
      <glob:FoundationQuestionnaireBundleMaintainRequest_sync>
         <BasicMessageHeader>
            <ID schemeID="?" schemeAgencyID="?" schemeAgencySchemeAgencyID="?">?</ID>
            <UUID schemeID="?" schemeAgencyID="?">?</UUID>
            <ReferenceID schemeID="?" schemeAgencyID="?" schemeAgencySchemeAgencyID="?">?</ReferenceID>
            <ReferenceUUID schemeID="?" schemeAgencyID="?">?</ReferenceUUID>
         </BasicMessageHeader>
         <FoundationQuestionnaire actionCode="?">
            <ID>?</ID>
            <ValuationCollection actionCode="?">
               <ObjectNodeSenderTechnicalID>?</ObjectNodeSenderTechnicalID>
               <ChangeStateID>?</ChangeStateID>
               <UUID>?</UUID>
               <XMLRepresentationBinaryObject mimeCode="?" characterSetCode="?" format="?" fileName="?" uri="?">cid:529664063156</XMLRepresentationBinaryObject>
               <BusinessTransactionDocumentUUID>?</BusinessTransactionDocumentUUID>
               <BusinessTransactionDocumentTypeCode listID="?" listVersionID="?" listAgencyID="?">?</BusinessTransactionDocumentTypeCode>
            </ValuationCollection>
         </FoundationQuestionnaire>
      </glob:FoundationQuestionnaireBundleMaintainRequest_sync>
   </soapenv:Body>
</soapenv:Envelope><br>

I would like to fill the tag XMLRepresentationBinaryObject, how can I achieve that? Any suggetions?

Best regards

Marlos Damasceno

HorstSchaude
Product and Topic Expert
Product and Topic Expert

Hello Marlos,

I forwarded your question to the resp. colleague.

Stay tuned,
. Horst

marlosdamasceno
Participant
0 Kudos

Hi Horst,

Thanks!

Best

Marlos Damasceno

marlosdamasceno
Participant
0 Kudos

Hi horst.schaude,

Nothing until now?

Best regards

Marlos Damasceno

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello ayush.das ,

Please answer this question.

Thanks,
Horst

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi

Currently we don’t support post calls in OData. Instead you can use either our A2A service Manage_Survey_Response_ln or our A2X service to capture responses.

A2A service is an asynchronous call and it is currently enabled only checklist type of surveys. Please see(https://blogs.sap.com/2016/08/08/survey-a2a-service-managesurveyresponsein/) for reference.

For synchronous update, please use the A2X service

Regards,

Ashwini

Answers (0)