*&---------------------------------------------------------------------*
*& 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
分享到:
相关推荐
ABAP - Keyword Documentation This documentation describes the syntax and meaning of the keywords of the ABAP language and its object-oriented part ABAP Objects. Alongside this, language frameworks ...
ABAP-培训教材附录 ABAP-培训教材ABAP-培训教材ABAP-培训教材ABAP-培训教材
CD260-ABAP-in-Eclipse-开发-CN CD260-ABAP-in-Eclipse-开发-CNCD260-ABAP-in-Eclipse-开发-CNCD260-ABAP-in-Eclipse-开发-CN
eclipse-abap-keywordcolors eclipse-abap-关键字颜色
ABAP-根据T-CODE找用户出口;ABAP-根据T-CODE找用户出口
ABAP-学习笔记-通用
SAP-ABAP-OO-实现-CL-SALV-TABLE
SAP方丈-ABAP-SAP增强应用实例
SAP-ABAP-Certification-Review.pdf
ABAP-选择屏幕 Dynpros 基础 通过这个屏幕实例可以了解屏幕元素的构成,及屏幕事件。
ABAP-数据类型学习笔记
ABAP-EXCEL编程 完整详细例子
SAP中文教材全系列之:ABAP中文标准教材-BC400_ZH_Col63_FV_Part_A4 陆续更新中。
SAP资料集有ABAP-PP-MM-RFC-BAPI-JCO等.rar
ABAP-透明表学习笔记.py
ABAP-SAP的几种(代)出口类型 Web_dynpro-关于WEBDYNPRO的编程开发(一) ABAP-FOR ALL ENTRIES IN 注意点 ABAP-根据T-CODE找BADI ABAP-根据T-CODE找BAPI ABAP-UPLOAD文件时常用的数据转换 关于using和changing ...
SAP初探之ABAP-数据库对象 解释说明 在ABAP里面 面向对象的概念
ABAP-OLE[借鉴].pdf
ABAP-子程序宏函数学习笔记.py