Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How tp pass SY-UZEIT to BAPI_OBJCL_CREATE

Former Member
0 Likes
626

when iam passing system date TO IT_ALLOCVALUESNUM-VALUE_FROM .

IT_ALLOCVALUESNUM-CHARACT = 'CHANGE_TIME'.

IT_ALLOCVALUESNUM-VALUE_FROM = SY-UZEIT..

APPEND IT_ALLOCVALUESNUM.

CLEAR IT_ALLOCVALUESNUM.

after executing BAPI_OBJCL_CREATE it is giving error.

It is giving error , some out of bound time is coming like 04:88:78.

is there any method to convert.

when iam passing system date TO IT_ALLOCVALUESNUM-VALUE_FROM .

IT_ALLOCVALUESNUM-CHARACT = 'CHANGE_TIME'.

IT_ALLOCVALUESNUM-VALUE_FROM = SY-UZEIT..

APPEND IT_ALLOCVALUESNUM.

CLEAR IT_ALLOCVALUESNUM.

after executing BAPI_OBJCL_CREATE it is giving error.

It is giving error , some out of bound time is coming like 04:88:78.

is there any method to convert.

3 REPLIES 3
Read only

Former Member
0 Likes
571

VALUE_FROM is a floating point variable not a TIM.

-A

Read only

0 Likes
571

So what i have to use

Read only

0 Likes
571

I ahve never use this before. Stillu can try this way to convert it into float.

when 'NUM' or 'DATE' or 'TIME'.
      call function 'CKCVAL_COSTING_CHARVAL_CONVERT'
        exporting
          i_characteristic_name  = it_charact_valuation-characteristic
          i_characteristic_value = it_charact_valuation-chara_val
        importing
          e_value_internal_float = lt_valuesnum-value_from.