zoukankan      html  css  js  c++  java
  • 常用时间相关函数

     

    判断输入时间类型是numc类型的函数


      call function 'NUMERIC_CHECK'

        exporting

          string_in = p_date

        importing

          htype     = lv_type.



      if lv_type ne 'NUMC'.

        lv_error 'X'.

      endif.


    判断日期是否有效的函数



     lv_date = p_date+0(8).

      call function 'DATE_CHECK_PLAUSIBILITY'

        exporting

          date                      = lv_date

        exceptions

          plausibility_check_failed 1

          others                    2.

      if sy-subrc <> 0.

        lv_error 'X'.

      endif.

  • 相关阅读:
    第十一节 jQuery特殊效果
    第十节 使用index和一个点击事件实现选项卡
    synchronized和lock两种锁的比较
    常见的四种线程池和区别
    mybatis中的#和$的区别
    web 防止SQL注入
    GIT配置免密登录
    热点 Key 问题的发现与解决
    Redis缓存击穿
    面试必问之JVM原理
  • 原文地址:https://www.cnblogs.com/QIANQIANHAPPY/p/6905000.html
Copyright © 2011-2022 走看看