ABAP中年月搜索帮助的实现
2010-12-15 15:58
489 查看
parameters p_yrmn1 type isellist-month.
at selection-screen on value-request for p_yrmn1.
perform yrmn_help_f4 changing p_yrmn1.
*&---------------------------------------------------------------------*
*& Form YRMN_HELP_F4
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->PA_YRMN text
*----------------------------------------------------------------------*
form yrmn_help_f4 changing pa_yrmn.
data l_date type isellist-month.
l_date = sy-datum+0(6).
call function 'POPUP_TO_SELECT_MONTH'
exporting
actual_month = l_date
importing
selected_month = pa_yrmn
exceptions
factory_calendar_not_found = 1
holiday_calendar_not_found = 2
month_not_found = 3
others = 4.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. "YRMN_HELP_F4
at selection-screen on value-request for p_yrmn1.
perform yrmn_help_f4 changing p_yrmn1.
*&---------------------------------------------------------------------*
*& Form YRMN_HELP_F4
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->PA_YRMN text
*----------------------------------------------------------------------*
form yrmn_help_f4 changing pa_yrmn.
data l_date type isellist-month.
l_date = sy-datum+0(6).
call function 'POPUP_TO_SELECT_MONTH'
exporting
actual_month = l_date
importing
selected_month = pa_yrmn
exceptions
factory_calendar_not_found = 1
holiday_calendar_not_found = 2
month_not_found = 3
others = 4.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. "YRMN_HELP_F4
相关文章推荐
- ABAP 用户选择屏幕 搜索帮助 实现代码
- SE11建立的搜索帮助来实现关联搜索帮助。
- ABAP search help (搜索帮助) 五种方法
- BU_DATE_CHAR abap screen 日期字段搜索帮助
- ABAP中SELECTION-SCREEN 内表直接作为搜索帮助
- abap:alv (oo)自定义搜索帮助
- ABAP 搜索帮助
- WEB DYNPRO ABAP 如何实现时间型数据的输入帮助
- ABAP:ALV中自定义搜索帮助
- FM实现F4帮助系列二:联动的搜索
- 如何通过程序实现搜索帮助
- ABAP 搜索帮助的建立F4IF_INT_TABLE_VALUE_REQUEST
- ABAP 搜索帮助
- ALV通过F4事件,实现自定义搜索帮助F4
- ABAP search help (搜索帮助) 五种方法
- 用户选择屏幕搜索帮助的代码实现
- FM实现F4帮助系列二:联动的搜索
- 关于F4搜索帮助返回多列值的实现方法
- abap:非主键搜索帮助创建删除重复项的方法
- 使用matchcode object + 搜索帮助 实现F4