cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to interpret 15.09.2010 08:55:00 as a number.

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Use the get_property_as_value method instead of get_property_as_string.

Regards,

Sarat

former_member189678
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

former_member189678
Active Contributor
0 Kudos

Check the entity first whether it has the attribute whose value you are trying to fetch!

Rg,

Harshit

Former Member
0 Kudos

Hi,

i did, do you have any sample code for this issue.if you have any sample code please provide to me.

jemmi,