F4 help functionality for a dynpro screen field using the PROCESS ON VALUE-REQUEST statement
来源:互联网 发布:boxers知乎 编辑:程序博客网 时间:2024/05/23 14:09
Pressing the F4 button on a dynpro screen field brings up a list of possible values you can enter into that field. This list of values is usually derived from the domain of the data dictionary definition the screen field is based on. Alternatively if you do not want this to happen or if the field does not reference a data dictionary field the F4 help functionality can be created manually. This is done by creating your own bespoke ABAP code and via the PROCESS ON VALUE-REQUEST event assigning it to the relevant screen field.
The below code shows you how to activate the PROCESS ON VALUE-REQUEST event for a specific field's F4 value help functionality. It then shows you how to point this event to your bespoke ABAP code, which will display the value help to the user. Finally it shows you how to return the value select by the user to the dynpro screen field.
* Screen flow logic........
process before output.
*MODULE PBO_MODULE.
process after input.
*MODULE PAI_MODULE.
process on value-request. "F4
field ekpo-ebelp module help_ekpo.
* populate screen field from within PROCESS ON VALUE-REQUEST(F4) call
*&------------------------------------------------------------------*
*& Module help_responsibility INPUT
*&------------------------------------------------------------------*
* text
*-------------------------------------------------------------------*
MODULE help_ekpo INPUT.
**Transport values to table dynpro/screen table control
DATA: l_stepl LIKE sy-stepl,
l_indx LIKE sy-stepl.
DATA: dynpfields LIKE dynpread OCCURS
5
WITH HEADER LINE.
* Adjust
for
scroling within table control
CALL FUNCTION
'DYNP_GET_STEPL'
IMPORTING
povstepl = l_stepl
EXCEPTIONS
stepl_not_found =
0
OTHERS =
0
.
l_indx = tc_ekpotable-top_line + l_stepl -
1
.
"tc_ekpotable should already have been declared
REFRESH dynpfields.
CLEAR dynpfields.
dynpfields-fieldname =
'EKPO-EBELN'
.
dynpfields-fieldvalue =
'00010'
"wa_ekpo-ebeln.
DYNPFIELDS-STEPL = L_STEPL.
APPEND dynpfields.
dynpfields-fieldname =
'EKPO-EBELP'
.
dynpfields-fieldvalue =
'00020'
"wa_ekpo-ebelp.
DYNPFIELDS-STEPL = L_STEPL.
APPEND dynpfields.
CALL FUNCTION
'DYNP_VALUES_UPDATE'
EXPORTING
dyname =
'SAPLZZ_EKKO'
"Program name
dynumb =
'0100'
"Screen number
TABLES
dynpfields = dynpfields
EXCEPTIONS
OTHERS =
0
.
ENDMODULE. " help_ekpo INPUT
- 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
- Get the F4 help of a field based on the value of another field in the selction screen(联动的搜索帮助)
- Get the F4 help of a fiel based on the avlue of another help For Mulitple selection Field(联动的搜索帮助)
- Filtering F4 Help Values in Table Control, Based On Other Field Value
- f4 OF DATE FIELD IN DYNPRO PROGRAME
- All About Process On Value and Process On Help
- All About Process On Value and Process On Help
- ABAP AT SELECTION-SCREEN ON VALUE-REQUEST / PROGRESS ON VALUE-REQUEST
- 在PROCESS ON VALUE-REQUEST事件中获取屏幕值
- SAP找表的18中技巧(方法) 18 Techniques for Locating the Underlying Data of a Screen Field
- The DirectFB screen driver functionality test failed
- 关于错误“BMXAA4195E - The Default Value field requires a value”
- Ortiz took a microphone on the field
- DYNPRO: FIELD
- How to set default value for a field
- 15.13 The using statement
- Using the Switch Statement
- SpringMVC整合fastjson
- Hdu 4497 GCD and LCM(数论)
- C++对象模型
- 深入讲解Android中Activity launchMode
- linux文件系统
- F4 help functionality for a dynpro screen field using the PROCESS ON VALUE-REQUEST statement
- django ifequal标签的使用方式
- mybities insert 的时候得到主键的值
- 不敢死队问题
- maven setting.xml配置说明
- HDU 5793 A Boring Question(快速幂&求逆元)
- POJ1328-Radar Installation
- 剑指offer - 旋转数组的最小数字
- ios--GCD实现单例模式