All About Process On Value and Process On Help

本文详细介绍了SAP系统中POHandPOV的概念、功能及其实现方式,包括如何通过F1键触发帮助请求、显示字段帮助文档,以及如何定义可能的输入值;同时提供了具体的屏幕流程逻辑示例,帮助开发者更好地理解和应用这些功能。

First ,to begin with if you know nothing about Screen Flow logic and their uses in SAP ,we recommend you check our tutorial on Dialog Program

Now , lets look into POH and POV in detail

Process on Help-Request (POH) : F1 Help

  • Whenever F1 is pressed the POH event  for the specified data element  is executed.
  • If the PROCESS ON HELP-REQUEST event does not exist in the process logic of a screen, the documentation of the field in the ABAP Dictionary is taken as a basis and displayed.  Even if that does not exit no help is displayed.
  • To display field help documentation, you must code the following screen flow logic in the POH event:
PROCESS ON HELP-REQUEST
FIELD <f> [MODULE <mod>] WITH <num>
  • If there is screen-specific data element documentation for the field <f>, you can display it by specifying its number <num>.
  • The number <num> can be a literal or a variable. The variable must be declared and filled in the corresponding ABAP program.
  • Note, the FIELD statement does not transfer the contents of the screen field <f> to the ABAP program in the PROCESS ON HELP-REQUEST event. It just shows help documentation. That’s it.

The module <mod> is defined in the ABAP program like a normal PAI module. The processing logic of the module must ensure that adequate help is displayed for the field in question. Instead of calling an extra screen with text fields, you should use one of the following function modules to display a suitable SAPscript document

HELP_OBJECT_SHOW_FOR_FIELD

  • This function module displays the data element documentation for components of any structure or database table from the ABAP Dictionary.
  • You pass the name of the component and structure or table to the import parameters FIELD and TABLE.

HELP_OBJECT_SHOW

  • Use this function module to display any SAPscript document.
  • You must pass the document class (for example, TX for general texts, DE for data element documentation) and the name of the document to the import parameters DOKCLASS and DOKNAME.
  • For technical reasons, you must also pass an empty internal table with the line type TLINE to the tables parameter of the function module.

Process on Value (POV): F4

  • When the user chooses the function Possible entries (F4), the system displays the possible input values for a field (values, check table, matchcode), provided they were stored by the developer.
  • The event PROCESS ON VALUE-REQUEST is always processed if the user has called “Possible entries”.
  • To define Possible values for a field on screen, you need to defined following in POV event of screen flow logic:

PROCESS ON VALUE-REQUEST

FIELD field name MODULE module name

  • For Possible values, within module defined above, you should use the general function module HELP_VALUES_GET_WITH_TABLE to get possible values from ABAP Dictionary.

There are some other functions that can also be used for input help :

F4IF_FIELD_VALUE_REQUEST

  • Calls the input help of the ABAP Dictionary dynamically.
  • You can pass the component names of a structure or database table of the ABAP Dictionary to the function module in the import parameters TABNAME and FIELDNAME.
  • The function module starts the ABAP Dictionary input help for this component.All of the relevant screen fields are read.
  • If you specify the import parameters DYNPPROG, DYNPNR, and DYNPROFIELD, the user’s selection is returned to the corresponding field on the screen.
  • If you specify the table parameter RETURN_TAB, the selection is returned into the table instead.

MODULE VALUE_CARRIER INPUT.

CALL FUNCTION ‘F4IF_FIELD_VALUE_REQUEST’

EXPORTING

TABNAME         = ‘DEMOF4HELP’

FIELDNAME     = ‘CARRIER1′

DYNPPROG       =  PROGNAME

DYNPNR            =  DYNNUM

DYNPROFIELD= ‘CARRIER’.

ENDMODULE.

F4IF_INT_TABLE_VALUE_REQUEST

  • This function module displays a value list that you created in an ABAP program.
  • The value list is passed to the function module as the table parameter VALUE_TAB.
  • If you specify the import parameters DYNPPROG, DYNPNR, and DYNPROFIELD, the user’s selection is returned to the corresponding field on the screen.
  • If you specify the table parameter RETURN_TAB, the selection is returned into the table instead.
CALL FUNCTION ‘F4IF_INT_TABLE_VALUE_REQUEST’
EXPORTING
RETFIELD         = ‘CONNID’
DYNPPROG         = PROGNAME
DYNPNR           = DYNNUM
DYNPROFIELD      = ‘CONNECTION’
VALUE_ORG        = ‘S’
TABLES
VALUE_TAB        = VALUES_TAB.

That’s all to POH and POV. Leave your comments in case of any doubts.

cmake后出现cmake version 2.8.12.2 Usage cmake [options] <path-to-source> cmake [options] <path-to-existing-build> Options -C <initial-cache> = Pre-load a script to populate the cache. -D <var>:<type>=<value> = Create a cmake cache entry. -U <globbing_expr> = Remove matching entries from CMake cache. -G <generator-name> = Specify a build system generator. -T <toolset-name> = Specify toolset name if supported by generator. -Wno-dev = Suppress developer warnings. -Wdev = Enable developer warnings. -E = CMake command mode. -i = Run in wizard mode. -L[A][H] = List non-advanced cached variables. --build <dir> = Build a CMake-generated project binary tree. -N = View mode only. -P <file> = Process script mode. --find-package = Run in pkg-config like mode. --graphviz=[file] = Generate graphviz of dependencies, see CMakeGraphVizOptions.cmake for more. --system-information [file] = Dump information about this system. --debug-trycompile = Do not delete the try_compile build tree. Only useful on one try_compile at a time. --debug-output = Put cmake in a debug mode. --trace = Put cmake in trace mode. --warn-uninitialized = Warn about uninitialized values. --warn-unused-vars = Warn about unused variables. --no-warn-unused-cli = Don't warn about command line options. --check-system-vars = Find problems with variable usage in system files. --help-command cmd [file] = Print help for a single command and exit. --help-command-list [file] = List available listfile commands and exit. --help-commands [file] = Print help for all commands and exit. --help-compatcommands [file]= Print help for compatibility commands. --help-module module [file] = Print help for a single module and exit. --help-module-list [file] = List available modules and exit. --help-modules [file] = Print help for all modules and exit. --help-custom-modules [file]= Print help for all custom modules and exit. --help-policy cmp [file] = Print help for a single policy and exit. --help-policies [file] = Print help for all policies and exit. --help-property prop [file] = Print help for a single property and exit. --help-property-list [file] = List available properties and exit. --help-properties [file] = Print help for all properties and exit. --help-variable var [file] = Print help for a single variable and exit. --help-variable-list [file] = List documented variables and exit. --help-variables [file] = Print help for all variables and exit. --copyright [file] = Print the CMake copyright and exit. --help,-help,-usage,-h,-H,/?= Print usage information and exit. --help-full [file] = Print full help and exit. --help-html [file] = Print full help in HTML format. --help-man [file] = Print full help as a UNIX man page and exit. --version,-version,/V [file]= Show program name/version banner and exit. Generators The following generators are available on this platform: Unix Makefiles = Generates standard UNIX makefiles. Ninja = Generates build.ninja files (experimental). CodeBlocks - Ninja = Generates CodeBlocks project files. CodeBlocks - Unix Makefiles = Generates CodeBlocks project files. Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 project files. Eclipse CDT4 - Unix Makefiles = Generates Eclipse CDT 4.0 project files. KDevelop3 = Generates KDevelop 3 project files. KDevelop3 - Unix Makefiles = Generates KDevelop 3 project files. Sublime Text 2 - Ninja = Generates Sublime Text 2 project files. Sublime Text 2 - Unix Makefiles = Generates Sublime Text 2 project files. 这些是什么意思,没有生成makefile文件,为什么?
最新发布
11-25
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值