Skip to Content
0
Former Member
Sep 15, 2010 at 09:08 AM

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

69 Views

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.