Skip to Content
author's profile photo Former Member
Former Member

Regarding Survey and Questionairre

Hi all,

We have a system wherein the there is Questionairre tab and in which we have a survey type compensation claim, which has some fields and a save button.

now my requirement is to fill some of the fields in the questionairre tab automatically whenever the activity is saved, but i find that the data is encrypted in XML format..........

can any one please help me how to do this.......

Reward points are guaranteed.

Regards,

Ravi G

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 05:28 AM

    Hi Ravi,

    As per my knowledge, the data in CRM activity survey gets saved in CRM table, as an XML format on save button. So if you want to add some data in the questionairre field, then in BADI "order_save" we can maintain the changes over the XML file.

    For example, for mobile scenario, in table SMOXMLVAL in field "content", it stores the saved questionairre details.

    Regars,

    Saurabh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Saurabh,

      Thanks for ur quick response, here i am not having the Mobile Sales scenario and no data is saved in the specified table.

      can you please guide me how to proceed further, in Questionairre tab i have some fields say field1 and field2 i have to populate these field values with some values whenever the activity is saved, the data is in XML format how to convert that and change accordingly to meet my requirement.

      Can you please send me ur mail id so i can send u the screen shot so it will be easy for u to understand my requirement clearly.

      Its urgent............

      Regards,

      Ravi G

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 10:58 AM

    Hi Ravi,

    You 'll have to implement the Order_Save BADI wherein you can use the following function modules to read and update the survey data.

    Use CRM_SURVEY_DATA_GET to read the survey data from the order.

    Use CRM_SVY_SURVEY_READ to read the survey values

    Read the XML values from the above function module and convert them into text values by creating an object of type crm_svy_api_survey_text_t and using the mehtod get_all_texts.

    Thus you'll get the all the data entered in normal text form.

    Reward if this helps.

    Regards,

    Gaurav

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Saurabh,

      My problem of getting the texts is solved but now my problem is to change the data in one of the answer field of Questionnaire tab which i am not getting how to solve it can you please tell me how to change the data in Questionnaire tab on Order save.........

      Regards,

      Ravi G

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.