cancel
Showing results for 
Search instead for 
Did you mean: 

Read values from a survey

Former Member
0 Kudos

Hi all,

I have a problem to read the values of a survey. I need to do this into an ORDER_SAVE implementation when the "Check Before Save " method is invoked.

Now if I create a transaction, complete it with all data inserting a survey and click on save I found that if I create an istance of the CL_CRM_SVY_RUNTIME class, this is not bound the first time

CREATE OBJECT lr_survey_runtime

EXPORTING

  • I_RUNTIME_MODE = 'INBOUND'

i_application_id = lv_application_id

i_survey_id = ls_survey-SURVEYID

i_survey_version = ls_survey-SURVEYVERSION

i_language = SY-LANGU

i_media_type = lc_svydb_mtype_bsp

i_valueguid = ls_survey-VALUEGUID

i_valueversion = ls_survey-VALUEVERSION

  • i_no_value_save = 'X'

  • ir_survey = gr_survey

EXCEPTIONS

survey_not_found = 1

values_not_found = 2

survey_outdated = 3

others = 4.

So I'm not able to read all datas of the survey in the ORDER_SAVE BADI implementation . What's happening? How can I read the values? Before this operation I read the VALUEGUID and VALUEVERSION using the CRM_ORDER_READ funcion.

Can you help me? .... Roberto

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I think below link would help:

Regards,

BJ

Former Member
0 Kudos

Thank you,

but I have the same problem: I tried to use the funcion 'CRM_SVY_DB_SV_READ' but the return values are empty. First time, when I create an opportunity containing a completed survey, this has not saved yet. Probably it's present into some buffers but I don't understand how I can read it during "check before save" process.

Regards, Roberto