on 2010 Sep 15 10:08 AM
Hi,
■The following error text was processed in the system : Unable to interpret 15.09.2010 08:55:00 as a number.
■The error occurred on the application server *** and in the work process 1 .
■The termination type was: RABAX_STATE
■The ABAP call stack was:
Method: IF_BOL_BO_PROPERTY_ACCESS~GET_PROPERTY_AS_STRING of program CL_CRM_BOL_ABSTR_BO===========CP
Method: GET_ENDTIME of program ZL_BT126H_A_APPTDETAILS_CN0412CP
Method: IF_BSP_MODEL_BINDING~GET_ATTRIBUTE of program CL_BSP_MODEL==================CP
Method: RESOLVE_MODEL_BINDING of program CL_THTMLB_SELECTION_BOX=======CP
Method: IF_BSP_ELEMENT~DO_AT_BEGINNING of program CL_THTMLB_SELECTION_BOX=======CP
when i am creating activity if i select category is call i need to add 10 min to end time based on start time .
ex: end time = start time + '600'.
technical information :
UI Component : BT126H_APPT
View : BT126H_APPT/ApptDetails
Context Node : BTACTIVITYH
Attribute : CATEGORY
for Start Time :
Contex node : BTDATE
Attribute : TIME
for End Time :
Context node : BTDATE
Attribute : ENDTIME
please advice me how to procedue below the code i redefine get_endtime
method GET_ENDTIME.
*CALL METHOD SUPER->GET_ENDTIME
* EXPORTING
* ATTRIBUTE_PATH =
** ITERATOR =
* RECEIVING
* VALUE =
* .
***************************************************************8888
DATA lr_btactivityh TYPE REF to cl_crm_bol_entity.
DATA lr_endtime TYPE REF to cl_crm_bol_entity.
DATA : lv_time TYPE p,
value1 type p,"TZNTSTMPL,
lv_category type string.
lr_endtime ?= owner->ztyped_context->BTDATE->collection_wrapper->get_current( ).
************read category
lr_btactivityh ?= owner->ztyped_context->btactivityh->collection_wrapper->get_current( ).
CALL METHOD lr_btactivityh->get_property_as_string
EXPORTING
iv_attr_name = 'CATEGORY'
receiving
rv_result = lv_category
.
IF lv_category = 'Y10'. " check the actual value
******************
CALL METHOD lr_endtime->get_property_as_string
EXPORTING
iv_attr_name = 'TIMESTAMP_FROM' " 'TIME' "DATE
receiving
rv_result = lv_time
.
CALL METHOD cl_abap_tstmp=>add
EXPORTING
tstmp = lv_time "-->20100404100000 ( input details 2010/04/04 10:00:00)
secs = 600 " -->600 seconds
RECEIVING
r_tstmp = value1." -->20100404101000
ENDIF.
value = value1.
endmethod.
jemmi.
Hi,
Use the get_property_as_value method instead of get_property_as_string.
Regards,
Sarat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Declare lv_time as String first and make sure that all refrence Objects are checked for Bound condition so as to avoid exception.
Rg,
Harshit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,Harshit Kumar.
Thanks for your valuable support
i changed DATA : lv_time TYPE string,
and also change to
CALL METHOD lr_endtime->get_property_as_string
EXPORTING
iv_attr_name = 'TIME'
receiving
rv_result = lv_time
.
value = lv_time + 500.
but it's showing error like
 
Cannot display view BT126H_APPT/ApptDetails of UI Component BT126H_APPT
An exception has occurred Exception Class CX_CRM_CIC_PARAMETER_ERROR - Entry parameter of method CL_CRM_BOL_ENTITY->GET_PROPERTY contains value TIME, which is not allowed
Method: CL_CRM_BOL_ENTITY=>IF_BOL_BO_PROPERTY_ACCESS~GET_PROPERTY
Source Text Row: 19
please guide me how to solve this issue.
jemmi.
User | Count |
---|---|
13 | |
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.