Hi Experts!!,
I am using class CL_CRM_SVY_DOM, i am getting parsing error from method "create_survey_dom".
my code as below for your reference.
Its littlebit urgent....
type-pools: SURVY.
data: lcl_dom type ref to CL_CRM_SVY_DOM.
class lCL_CRM_SVY_DOM definition
inheriting from CL_CRM_SVY_DOM_DEFINE
final
create public .
*"* public components of class CL_CRM_SVY_DOM
*"* do not include other source files here!!!
public section.
methods CONSTRUCTOR
importing
I_APPLICATION_ID type CRM_SVY_DB_APPL_ID
i_survey_id type string.
data: survey_xml type xstring.
endclass.
class lCL_CRM_SVY_DOM IMPLEMENTATION.
method: CONSTRUCTOR.
data: application type string,
survey type string.
move i_application_id to application.
move i_survey_id to survey.
call method super->constructor
exporting
i_application = application
i_service = survey.
*cleate xml for using dom tree
call method me->create_survey_dom
exporting
i_xml_xstring = survey_xml
exceptions
error_in_parsing = 1
others = 2.
break-point.
if sy-subrc <> 0.
message id sy-msgid type 'I' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
" raising error_in_parsing.
endif.
endmethod.
endclass.
data: oref type ref to lCL_CRM_SVY_DOM.
data: im_tree_tab type SURVY_T_DOM_TREE.
DATA: gr_document TYPE REF TO IF_IXML_DOCUMENT.
data: xml_table type wff_t_xml.
start-of-selection.
CREATE OBJECT oref
exporting
i_application_id = 'CRM_SURVEY_ACTIVITY' "application
i_survey_id = 'TEST FOR ACTIVITIES'.