Read Surveys in CRM
Hi Experts,
I need to display a survey information on a smartform.
I'm trying to extract the data using the function module CRM_ORDER_READ.
In the export parameter ET_SURVEY of this function module, the same is present, but in the HEX XML format.
Any idea how I can extract the text from this.
Or alternatively if you can suggest the db tables where it can be read from, it will be of great help.
Thanks in Advance,
Kris.
If an order is already saved, I can use the class CL_CRM_SVY_SURVEY_TEXTS.
But in my case, the smart form is being created before the service order is save dto the database.
Are there any function modules or classes that I could use to fetch the survey data?
Or are there any funciton modules to convert the HEX XML format of the text received in ET_SURVEY table to normal text?
Any pointers/suggestions in this regard would be of great help.
Thanks,
Kris.
Similar Messages
-
How to read data in CRM Activity relationship tab.
Hello friends,
I have a requirement to read data from CRM Activity relationship tab.
Mainly i have to read Transaction No/object refernced trans field of CRM Activity relationship tab.
Could anybody help me?
Thanks,
BunnyHi,
have you found in the meanwhile a good solution?
I have also a similar requirement.
At the moment I'm using the view CRMV_ACTFORGP to get the activities associated to a BP (by the way you have many filters that can be used) and then for each GUID (order guid - CRMD_ORDERADM_H-GUID) I call the fm BAPI_REL_GETRELATIONS to get the list of relationships.
Regards
Diego -
Hi all!
My task is to read categories of crm order (i.e. fields category_1 ... category_4 at the order header level).
May be someone could tell me some functionality to get this data?
I'll be appreciated.
Best regards,
Alexander KirillovHi, Oliver!
Below you'll see how-to-guide which will provide a step-by-step solution.
It's 100% works like 'CRM_ORDER_READ' (both for buffered values & DB ones).
How-to guide - reading order categorization
1. Create package ZCATEGORY (Categorization)
2. Create new dictionary objects:
2.1. Structure ZMDS_CATEGORIZATION_CAT ( u201CCategory from categorizationu201D) with fields:
CAT_GUID type CRM_ERMS_CAT_GUID
CAT_HI type CRMT_ERMS_CAT_HI
IT_CAT_CA type CRMT_ERMS_CAT_CA_BUF_TAB
IT_CAT_CA_LANG type CRMT_ERMS_CAT_CA_LANG_TAB
2.2. Structure ZMDS ZMDS_CATEGORIZATION_CATS ( u201CCategories from categorizationu201D) with fields:
CATEGORY1 type ZMDS_CATEGORIZATION_CAT
CATEGORY2 type ZMDS_CATEGORIZATION_CAT
CATEGORY3 type ZMDS_CATEGORIZATION_CAT
CATEGORY4 type ZMDS_CATEGORIZATION_CAT
3. Copy CL_CRM_CATEGORY_RUN_BTIL class to new ZMD_CL_CRM_CATEGORY_RUN_BTIL class. In newly created class do following:
3.1. u201CPropertiesu201D tab: <Create instance> = 2 u201CGeneralu201D
3.2. Change method u201CMAP_SUBJECT_TO_CATEGORYu201D to u201CPublicu201D
4. Create new class ZMD_CL_CATEGORIZATION (Categorization processing).
4.1. u201CPropertiesu201D tab: <Create instance> = 2 u201CGeneralu201D
4.2. Define constants:
4.2.1. C_LNK_TYPE_IS_CODE Constant Public Type CRM_ERMS_CAT_LN_TYPE Default link type 'IS_CODE'
4.2.2. C_OBJ_DDIC_CRM Constant Public Type CRM_ERMS_CAT_OB_DDIC External object name 'SUBJECTCODECRM'
4.2.3. C_TREE_TYPE_CAT Constant Public Type CRM_ERMS_CAT_HI_TYPE Kind of link 'CAT'
4.3. Create static public method u201CGET_ORDER_H_CATu201D with importing parameter IV_GUID (type CRMT_OBJECT_GUID = order GUID) & exporting parameter ES_CATEGORIES (type ZMDS_CATEGORIZATION_CATS).
5. Create report ZMDR_ORDER_CAT for displaying order categorization. -
Hi People,
I want to mainion survey questionnaire for CRM 7.3
I have created the questionnaire in CRM_SURVEY_SUITE Tcode for IC application but i am unable to save the questionnaire as it is showing below error.
StandardSurveyWithGenerators.getPreparedSurveyXml(
): can't create processor:
com.inqmy.lib.jaxp.TransformerFactoryImpl
(java.lang.ClassNotFoundException:
com.inqmy.lib.jaxp.TransformerFactoryImpl)
Tks GuysHi Willi,
For the sake of complying with SCN rules of engagement I'm adding the link to the official OSS note stating exactly the steps that you copied/pasted:
1653734 - Cannot create surveys in CRM Survey Suite and WebUI
Cheers,
Nicolas Busson -
The dev2dev Reader Survey + WebLogic Server Survey
Hi,
The 2005 dev2dev Reader Survey is underway:
http://dev2dev.bea.com/pub/a/2005/10/2005-dev2dev-survey.html
This is your opportunity to steer the dev2dev site by helping us
understand what you use, what you're interested in, and what can be
improved. Prizes included ;-)
It's being run in parallel with a WebLogic Server Survey too - help the
WebLogic Server team tailor WebLogic Server to your needs.
Please participate - we value your input!
Thanks,
Jon Mountjoy
Editor, dev2dev
<http://dev2dev.bea.com/blog/editors/>Hi,
The 2005 dev2dev Reader Survey is underway:
http://dev2dev.bea.com/pub/a/2005/10/2005-dev2dev-survey.html
This is your opportunity to steer the dev2dev site by helping us
understand what you use, what you're interested in, and what can be
improved. Prizes included ;-)
It's being run in parallel with a WebLogic Server Survey too - help the
WebLogic Server team tailor WebLogic Server to your needs.
Please participate - we value your input!
Thanks,
Jon Mountjoy
Editor, dev2dev
<http://dev2dev.bea.com/blog/editors/> -
How to read values of CRM Activity Survey
Hi Folks
In our CRM 3.1 system, our customizer has customized a Survey when creating af Activity.
And it works fine. Now She need a ABAP report, which among other values, is going to write out the values registered in the SUrvey. As far as I can see there are som tables CRMSVY and Function Modules CRMSVY But which one do I have to use.
I have found the GUID via FM: CRM_SURVEY_GET_LINK. BUt how do I get the saved values?
Have a mery Xmas
CarstenHi,
this code reads a certain survey within an order, change the order guid and survey name as you like.
REPORT zsb_survey .
DATA ls_values_xml TYPE xstring.
DATA ls_xml_string TYPE string..
DATA values TYPE REF TO cl_crm_svy_values.
DATA all_values TYPE survy_t_all_values.
DATA guid TYPE crmt_object_guid.
guid = '27B1FA473F55E52FE1000000914E2D8C'. "18100
DATA survey_ui_tab TYPE crmt_survey_ui_tab.
DATA survey_ui TYPE crmt_survey_ui.
DATA it_answers TYPE zcrm_qa_answers_tb.
DATA l_answer TYPE zcrm_qa_answers.
DATA texts TYPE crm_svy_api_survey_text_t.
DATA text TYPE crm_svy_api_survey_text.
DATA g_cust_data TYPE crmd_customer_h.
DATA dom_text TYPE dd07v.
DATA it_status TYPE crmt_status_wrkt.
DATA lv_error TYPE bapiret1.
DATA l_status TYPE crmt_status_wrk.
DATA it_service_os TYPE crmt_srv_osset_wrkt.
DATA l_service_os TYPE crmt_srv_osset_wrk.
DATA lt_osset TYPE crmt_srv_osset_wrkt1.
DATA l_osset TYPE crmt_srv_osset_wrk1.
DATA lt_subject TYPE crmt_srv_subject_wrkt.
DATA l_subject TYPE crmt_srv_subject_wrk.
DATA ev_application TYPE wff_application.
DATA ev_service TYPE wff_service.
DATA ev_survey_version TYPE crm_svy_db_svers.
DATA ls_crm_svy_db_s TYPE crm_svy_db_s.
DATA lt_crm_svy_db_s TYPE TABLE OF crm_svy_db_s.
SELECT SINGLE * FROM crmd_customer_h INTO g_cust_data
WHERE guid = guid.
*get the survey data
CALL FUNCTION 'CRM_SURVEY_DATA_GET'
EXPORTING
iv_object_kind = 'A'
iv_object_guid = guid
IMPORTING
et_survey_ui = survey_ui_tab
EXCEPTIONS
error_occurred = 1
OTHERS = 2.
READ TABLE survey_ui_tab INTO survey_ui
WITH KEY surveyid = 'Z_ZPRO_2_NOCFORMULIER NIEUW'.
CALL FUNCTION 'CRM_SVY_GET_SURVEY_TEXTS'
EXPORTING
SURVEY =
application_id = survey_ui-applicationid
survey_id = survey_ui-surveyid
language = sy-langu
IMPORTING
survey_texts = texts
CHANGING
survey_version = survey_ui-surveyversion"
EXCEPTIONS
survey_not_found = 1
OTHERS = 2
CALL FUNCTION 'CRM_SVY_DB_S_READ'
EXPORTING
surveyid = survey_ui-surveyid
surveyversion = survey_ui-surveyversion
IMPORTING
error = lv_error
TABLES
survey = lt_crm_svy_db_s.
READ TABLE lt_crm_svy_db_s INTO ls_crm_svy_db_s INDEX 1.
ev_application = ls_crm_svy_db_s-applicationid.
ev_service = survey_ui-surveyid.
ev_survey_version = survey_ui-surveyversion.
ls_values_xml = survey_ui-valuexml.
CALL FUNCTION 'CRM_SVY_DB_CONVERT_HEX2STRING'
EXPORTING
x = ls_values_xml
IMPORTING
s = ls_xml_string.
CREATE OBJECT values
EXPORTING
i_internal_values_xml = ls_xml_string.
CALL METHOD values->values_get_all
IMPORTING
et_all_values = all_values.
BREAK-POINT.
Cheers,
Stefan. -
Hello,
I have crated a survey at the CRM Survey suite.
I want that this survey will be dynamic by the customer answers
Which means: when someone enters a certain answer to a question in the survey, some specific options will open for him to continue with this survey and when entering other answers, different options will open.
1.Is it possible?
2.How it can be done?
Thanks,
Ohad.Hi,
In the Survey Suite, in the Technical Settings of your Survey Attributes, you can enter a Callback PBO and PAI FM. See ex. CRM_SVY_EXAMPLE_DYNAMIC_PBO and CRM_SVY_EXAMPLE_DYNAMIC_PAI.
You can enter javascript code which will be executed before or after processing.
Regards,
Jan
(Please award points if usefull. Tx) -
Customer Satifaction survey through CRM
In R17,Can we conduct after sale Customer satisfaction survey & do the analysis & reporting of the responses from customer collectively?
Checkout "ClickTools" a CRM On Demand partner that has integrated their solution with CRM On Demand for this purpose.
-
SharePoint 2010 client object model read survey list
Hello all,
please suggest me how to read
questions and answers in a survey list using
client object model
if possible some code is fine.
Like CricketHi,
below is the code for reading the items from survey list in .Net managed client object modal share point 2010
using (ClientContext context = new ClientContext("siteUrl"))
context.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;
Web web = context.Web;
context.Load(web);
List survey = web.Lists.GetByTitle("SurveyListName");
FieldCollection fldColl = survey.Fields;
context.Load(fldColl);
ListItemCollection coll = survey.GetItems(CamlQuery.CreateAllItemsQuery());
context.Load(survey);
context.Load(coll);
context.ExecuteQuery();
//Load the questions and answers in the dictionary object
Dictionary<string, List<string>> questionAnswers = new Dictionary<string, List<string>>();
foreach (Field fld in fldColl)
if (fld.FieldTypeKind == FieldType.Choice && !fld.FromBaseType)
foreach (ListItem item in coll)
if (item.FieldValues.ContainsKey(fld.InternalName))
string value = item.FieldValues[fld.InternalName].ToString();
if (!string.IsNullOrEmpty(value))
if (!questionAnswers.ContainsKey(fld.Title))
List<string> values = new List<string>();
values.Add(value);
questionAnswers.Add(fld.Title, values);
else
List<string> oldValues = questionAnswers[fld.Title];
oldValues.Add(value);
questionAnswers[fld.Title] = oldValues;
Thanks,
Anil
Anil -
Table for Reading Counter in CRM IBASE
Hi All,
I want the table link and table names for CRM Ibase counter reading value.
In CRMD_MPK_READING table i can get all counter values except Counter reading value.
Thanks in advance,
Regards,
MadhanHi Madhan
These tables might help.
CRMC_MPK_APPGRP
CRMD_MPK_MPOINT
Please refer these links.
http://scn.sap.com/thread/1394539
http://scn.sap.com/thread/1403552
Regards
Vivikta -
Hi
How to read the documents which are attached in CRM(Complaints) and send it via Email ?. I used ' CRM_ICSS_GET_SR_ATTACHMENTS " function Module to read the attachment . I was able to get only the attached file name, size,type, etc....but not the location where it is stored.
Can anyone pls help on this issue...Try using the class cl_crm_documents and methods get_info, GET_FILE_INFO, GET_DOCUMENT
Regards,
Shaik -
Reading Survey data in Layouts
Hi All,
I have an urgent requirement to read data saved in Surveys (SMOXMLVAL) table in Layouts.
Is this possible? If yes, how do we do that?
Thanks and Regards,
SandeepHi Sandeep,
I hope the below the link provides enough information on analysing surveys.
http://help.sap.com/saphelp_crm50/helpdata/en/ec/41b92c3b5f4dceafc59898194cd29a/frameset.htm
Best Regards,
Ramesh. -
Reading Attachments from CRM OD
I have a web portal that displays all the cases associated to the contact. I would like to showcase a section where the users can see and view any attachments are there for the case.
Service Request WSDL does not provide the ability to view attachments. Is there any workarounds for the same. Has anyone implemented similiar functionality if so please provide pointersThere is a section 'Retrieving or Quering File Attachments' section in the documentation. It looks like you can return the content of the attachement in base64 and it would be up to you to convert it back based on its type - they you would be able to display the content in your application.
-
Reading CRM Survey value from buffer
Hello Experts,
Does anybody know how to read survey values from the buffer? I've only found the function module to read from the database which it will be to late as I want to read the value in the save badi.
Thanks,
--Jamie.You can read the stored survey guid by passing the activity guid where the survey is stored.
call function 'CRM_SURVEY_DATA_GET'
exporting
iv_object_guid = Activity guid.
importing
et_survey_ui = lt_survey_ui
exceptions
error_occurred = 1
others = 2 .
Once you got the surver guids and version information in lt_survey_ui then pass the values to the below FM to get the stored XML data.
call function 'CRM_SVY_DB_SV_READ'
exporting
valuesguid = ls_survey_ui-valueguid
valuesversion = ls_survey_ui-valueversion
tables
surveyvalues = lt_surveyvalues
You should be able to read the Filtered XML data from the table
lt_surveyvalues.
Regards,
Krishna Murthy. -
XSLT transformation error when importing target group in CRM Survey cockpit
Hi,
I created a target group using the segment builder and exported that to a local file. Then when creating a survey using CRM survey cockpit (tcode: SURVEY) and trying to import the same target group from the local file; I get an error :
"Error when applying a XSLT transformation"
System Response
Data transformation cannot be executed. Application functions that depend on the transformation cannot be executed
I tried various file formats : RTF, TXT, XLS, HTML but still I get the same error. Export to XML option is neither available while exporting from segment builder nor while importing into Survey cockpit. The target group is not empty.
Are there any settings to be maintained to resolve the error ?????
Dhaval.Hi Suhel,
Thanks for the response... as far as my understanding goes, the crm survey suite can be used for maintaining questoinnaires that are transaction specific. also the functionality of question tables and rows is not available in the survey suite but is available in the survey cockpit (tcode: SURVEY).
However the same does not allow me to refer to the target groups created using the segment builder.... Is there a way I can use the target group created through the segment builder in the survey cockpit ????
Dhaval.
Maybe you are looking for
-
Can someone tell me how to make my screen full size on my Mac OSX 10.6.8. using safari. I know this is a simple question. I have always had it on full screen and recently had it worked on remotely and now I can't get the screen back to full size. I
-
Hi, I have Premiere CS 5.5.2 on Mac with Lion 10.7.2. System is Q6600, 8 GB DDR2, graphics is Nvidia GTX 560, 1 GB DDR5, 256 bit. AVCHD 1080i material exporting to PAL DV. CUDA works great on timeline playback but SOMETIMES (3rd time in 3 months) whe
-
How do I search a word document stored in a BLOB using PHP?
I have been successful at saving files in a blob field using oracle. I need to search through the word document, how can I do it using PHP? Please help!
-
Customer specific serial number
Hi, I am creating a customer specific 13 digitt serial number during production order creation. This serial number is getting populated in my production order. But i could not see this serial number in IQ02. In this 13 digit serial number last 5 digi
-
Hello experts, I have added one field using append structure in table MARC. I want to updated this field usnign BAPI_MATERIAL_SAVEDATA. can anybody tell me the procedure to do that? Thanks in advance.