Quantcast
Channel: SCN : Popular Discussions - ABAP和Java开发 (ABAP & Java Development)
Viewing all articles
Browse latest Browse all 4604

SCSM_TIME_DIFF_GET这个函数如何调用?

$
0
0

SCSM_TIME_DIFF_GET求时间差的函数,该函数如何调用?以下是我写的会提示出错:

 

DATA L_DATE_START LIKE TZONREF-TSTAMPS.

  DATA L_DATE_END LIKE TZONREF-TSTAMPS.

  DATA SECS TYPE I.

 

CONCATENATE IT_PRINT_001-DATE1 IT_PRINT_001-TIME1 INTO L_DATE_START.

CONCATENATE IT_PRINT_001-DATE2 IT_PRINT_001-TIME2 INTO L_DATE_END.

CALL FUNCTION 'SCSM_TIME_DIFF_GET'

EXPORTING

     UTC_START = L_DATE_START

CHANGING

     UTC_END      = L_DATE_END

     SECONDS     = SECS.

 

提示的错误是:

1、在做CONCATENATE时提示L_DATE_START的数据类型应是C/N/D/T/STRING,

      要如何将日期和时间加在一起变成yymmddhhmmss的形式呢?

2、提示函数调用错误,是不是所有的输出参数都要定义?

 

请大家指导一下,如何修改?谢谢

 

Edited by: xmhlhou on Nov 24, 2010 2:37 AM


Viewing all articles
Browse latest Browse all 4604

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>