Hi Experts,
I have created Custom Genil component by referring below links,but when i am executing by using GENIL_BOL_BROWSER,i am getting dump as below.
:http://harelgilor.blogspot.in/2010/06/sap-crm-how-to-create-your-own-bol.html
DUMP :
An exception occurred which is explained in detail below.
The exception, which is assigned to class 'CX_CRM_CIC_PARAMETER_ERROR', was not
caught and
therefore caused a runtime error.
The reason for the exception is:
Entry parameter ES_KEY of method CL_CRM_GENIL_CONTAINER_OBJECT->GET_KEY
contains value , which is not allowed
The occurrence of the exception is closely related to the occurrence of
a previous exception "CX_SY_IMPORT_MISMATCH_ERROR", which was raised in the
program "CL_CRM_GENIL_CONT_SIMPLE_OBJ==CP",
specifically in line 18 of the (include) program
"CL_CRM_GENIL_CONT_SIMPLE_OBJ==CM007".
------------------------------------------------------------------------------------------------------------------------------------
GET_OBJECTS code:
method IF_GENIL_APPL_INTLAY~GET_OBJECTS.
**TRY.
*CALL METHOD SUPER->IF_GENIL_APPL_INTLAY~GET_OBJECTS
* EXPORTING
* IT_REQUEST_OBJECTS =
* IV_ROOT_LIST =
* .
**ENDTRY.
DATA : lr_root TYPE REF TO if_genil_cont_root_object,
lt_cust_no TYPE ZTATTR_CUST_key,
* lr_api TYPE REF TO ZCL_CUSTOMER_API,
lt_cus_attr TYPE ZTATTR_CUST,
lr_attr_props TYPE REF TO if_genil_obj_attr_properties.
*DATA : ls_cust_no LIKE LINE OF lt_cust_no.
CHECK iv_root_list IS BOUND.
* all entries in the root list have the same type/name -> take first
lr_root = iv_root_list->get_first( ).
* Note: the object from the root list must be either a root or
* access object. Dependent objects will never be part of
* the root list.
WHILE lr_root IS BOUND.
IF lr_root->check_attr_requested( ) = abap_true.
* Getting the first entity key
lr_root->get_key( IMPORTING es_key = lt_cust_no ).
IF lt_cust_no IS NOT INITIAL.
*Get all customer details from API class
CALL METHOD ZCL_CUSTOMER_API=>GET_CUSTOMER
EXPORTING
IV_CUS_KEY = lt_cust_no-custno
IMPORTING
ET_CUS_ATTR = lt_cus_attr.
IF lt_cus_attr IS NOT INITIAL.
lr_root->set_attributes( lt_cus_attr ).
ENDIF.
ENDIF.
lr_attr_props = lr_root->get_attr_props_obj( ).
CHECK lr_attr_props IS BOUND.
lr_attr_props->set_all_properties( if_genil_obj_attr_properties=>read_only ).
ENDIF.
lr_root = iv_root_list->get_next( ).
ENDWHILE.
endmethod.
Please help me on this issue.
Regards,
Gayathri A.