Get the F4 help of a fiel based on the avlue of another help For Mulitple selection Field(联动的搜索帮助)
来源:互联网 发布:企业网站seo外包 编辑:程序博客网 时间:2024/06/05 06:17
...
TABLES: tvko.SELECT-OPTIONS: s_bukrs FOR tvko-bukrs, s_vkorg FOR tvko-vkorg.*custom F4 help for Sales Org.AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_vkorg-low. PERFORM form_f4help_vkorg.AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_vkorg-high. PERFORM form_f4help_vkorg.*&---------------------------------------------------------------------**& Form form_f4help_vkorg*&---------------------------------------------------------------------** text*----------------------------------------------------------------------*FORM form_f4help_vkorg . DATA: BEGIN OF ty_vkorg, vkorg TYPE tvko-vkorg, END OF ty_vkorg. DATA: lt_dynpfields TYPE TABLE OF dynpread, ls_dynpfields TYPE dynpread, l_bukrs_low TYPE tvko-bukrs, l_bukrs_high TYPE tvko-bukrs, li_tab LIKE TABLE OF ty_vkorg, li_ret LIKE TABLE OF ddshretval. CLEAR: ls_dynpfields, lt_dynpfields. REFRESH: lt_dynpfields.*1)Add the fields to be fetched from the screen to dynpread table. ls_dynpfields-fieldname = 'S_BUKRS-LOW'. APPEND ls_dynpfields TO lt_dynpfields. CLEAR: ls_dynpfields. ls_dynpfields-fieldname = 'S_BUKRS-HIGH'. APPEND ls_dynpfields TO lt_dynpfields.*2)Fetch the values from the screen CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-repid dynumb = sy-dynnr TABLES dynpfields = lt_dynpfields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 invalid_parameter = 7 undefind_error = 8 double_conversion = 9 stepl_not_found = 10 OTHERS = 11. READ TABLE lt_dynpfields INTO ls_dynpfields WITH KEY fieldname = 'S_BUKRS-LOW'. IF sy-subrc = 0. l_bukrs_low = ls_dynpfields-fieldvalue. CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = l_bukrs_low IMPORTING output = l_bukrs_low. ENDIF. READ TABLE lt_dynpfields INTO ls_dynpfields WITH KEY fieldname = 'S_BUKRS-HIGH'. IF sy-subrc = 0. l_bukrs_high = ls_dynpfields-fieldvalue. CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = l_bukrs_high IMPORTING output = l_bukrs_high. ENDIF.*3)Select the data from the database table SELECT vkorg FROM tvko INTO TABLE li_tab WHERE bukrs >= l_bukrs_low AND bukrs <= l_bukrs_high.*4) Display the data in the F4 help CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'VKORG' dynpprog = sy-repid dynpnr = '1000' dynprofield = 'S_VKORG' window_title = text-t01 value_org = 'S' TABLES value_tab = li_tab return_tab = li_ret EXCEPTIONS parameter_error = 1 no_values_found =2 OTHERS = 3.ENDFORM. " form_f4help_vkorg
0 0
- Get the F4 help of a fiel based on the avlue of another help For Mulitple selection Field(联动的搜索帮助)
- Get the F4 help of a field based on the value of another field in the selction screen(联动的搜索帮助)
- F4 help functionality for a dynpro screen field using the PROCESS ON VALUE-REQUEST statement
- F4 help functionality for a dynpro screen field using the PROCESS ON VALUE-REQUEST statement
- Help of the linux commands
- 【Size Classes Design Help】- Changing the Size or Position of a View for a Size Class
- Filtering F4 Help Values in Table Control, Based On Other Field Value
- How to show/hide a control in the Column's DataItemTemplate based on the value of another control
- get the offset of field
- The help information of Squirrel.Nutz
- How to get the field descriptions of a table?
- How to get the field descriptions of a table
- Refreshing One Column based on the value of Another Column in ADFdi Table
- My first first program of the DirectX 10.0 , looking for help!
- The promise of MOM based on XMPP
- A good tool help none Chinese speaking people learn the pronunciation of pinyin
- MMSEG: A Word Identification System for Mandarin Chinese Text Based on Two Variants of the Maximum M
- Sun Apr 10 The help system of Emacs
- 第一次开通博客
- query.nicescroll页面初始化无滚动条,等到撑开到应该出现滚动条的时候还是不出现
- KVM CPU虚拟化
- .\和..\的区别
- Java中获取日期及相应字段
- Get the F4 help of a fiel based on the avlue of another help For Mulitple selection Field(联动的搜索帮助)
- 使用wxpython开发windows界面
- Android中Handler详解,线程间通信机制
- DLL入门浅析(3)——从DLL中导出变量
- jquery总结--有道笔记整理
- android canvas画图
- Windows 安装 Mongodb,可随服务启动
- CentOS下安装Redmine
- Gradle打包android 项目