on 09-26-2011 3:03 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.