zoukankan      html  css  js  c++  java
  • ABAP如何将月份转化为对应文本(代码摘抄)

    *&---------------------------------------------------------------------*
    *&      Form  GET_NAME_MONTH
    *&---------------------------------------------------------------------*
    *  Get the name of the month passed as parameter
    *----------------------------------------------------------------------*
    *      -->P_INT_MONTH_WA_MONTH   Month's Number
    *      <--P_MONTH_NAME           Month's Name
    *----------------------------------------------------------------------*
    form get_name_month using    p_int_month_wa_month like t247-mnr
                        changing p_month_name          like t247-ltx.
    *
      data: names_month like t247 occurs 0 with header line,
            subrc like sy-subrc.
    *

      call function 'MONTH_NAMES_GET'
           exporting
                language              = sy-langu
           importing
                return_code           = subrc
           tables
                month_names           = names_month
           exceptions
                month_names_not_found = 1
                others                = 2.
      if sy-subrc ne 0.
        retcode_r = 21.
      endif.

      if subrc ne pve00_ok.
        clear p_month_name.
      else.
        loop at names_month where mnr = p_int_month_wa_month. endloop.
        if sy-subrc ne pve00_ok.
          clear p_month_name.
        else.
          p_month_name = names_month-ltx.
        endif.
      endif.
    endform.                               " GET_NAME_MONTH
     

  • 相关阅读:
    华为交换机S5700设置远程ssh telnet登录
    华为交换机S5700 vty 0 4
    OpenStack--Cinder(G版)中的volume type
    nova volume-create的使用
    druid监控配置
    2PC之JTA原理与实现
    线上服务内存OOM问题定位
    分布式系统事务一致性解决方案
    Spring MVC异常统一处理的三种方式
    Git回滚到历史节点(SourceTree篇)
  • 原文地址:https://www.cnblogs.com/xiaomaohai/p/6157146.html
Copyright © 2011-2022 走看看