当前位置:网站首页>SAP value process & help request process-011

SAP value process & help request process-011

2022-06-22 16:22:00 Boating in rainy days

SAP Value process & Help request process -011

First , If you are interested in the screen flow logic and its application in SAP I know nothing about the use of , We recommend that you check out our dialog program tutorial

Now? , Let's study in detail POH and POV

Help request (POH) technological process : F1 help

  • Whenever pressed F1 when , Will execute the specified data elements POH event .
  • If there is no... In the process logic of the screen “HELP Process on request ” event , be ABAP The document for this field in the dictionary will be used as the basis and displayed . Even if you don't quit , No help will be displayed .
  • To display the field help document , Must be in POH The following screen stream logic is encoded in the event :
PROCESS ON HELP-REQUEST
FIELD <f> [MODULE <mod>] WITH <num>
  • If the field Documents with screen specific data elements , You can display it by specifying its number .
  • Numbers It can be text or variables . Must be in the corresponding ABAP The variable is declared and filled in the program .
  • Please note that ,FIELD Statement does not change the screen field Transfer the content of to “ Process help requests ” In the event ABAP Program . It just displays the help document . this is it .

Modules in ABAP Defined in the procedure , It's just like ordinary PAI The modules are the same . The processing logic of the module must ensure that sufficient help is displayed for the relevant fields . Instead of calling an extra screen with text fields , Instead, use one of the following function modules to display the appropriate SAPscript file

HELP_OBJECT_SHOW_FOR_FIELD

  • This function module displays ABAP A data element document for any component of a structure or database table in a dictionary .
  • Pass the name of the component and structure or table to the import parameter FIELD and TABLE.

HELP_OBJECT_SHOW

  • Use this function module to display any SAPscript file .
  • The document class must be ( for example ,TX For general text ,DE For data element documents ) And the document name are passed to the import parameter DOKCLASS and DOKNAME.
  • For technical reasons , You must also type the row as TLINE The empty inner table of is passed to the function module tables Parameters .

Value processing (POV):F4

  • When the user selects a possible entry (F4) When the function , The system will display the possible input values for the field ( value , Check list , Match code ), Provided they are stored by the developer .
  • If the user calls “ Possible entries ”, The event process on the value request is always handled .
  • To define the possible values of the fields on the screen , You need to stream logic on the screen POV Event defines the following :
PROCESS ON VALUE-REQUEST

FIELD field name MODULE module name
  • For possible values , In the module defined above , Regular function modules should be used HELP_VALUES_GET_WITH_TABLE from ABAP Get possible values from the dictionary .

There are other functions that can also be used to enter help :

F4IF_FIELD_VALUE_REQUEST

  • Dynamic invocation ABAP Dictionary input help .
  • Can be ABAP The structure of the dictionary or the component name of the database table is passed to the import parameter TABNAME and FIELDNAME Function module in .
  • The function module starts the... Of this component ABAP Dictionary input help . Read all relevant screen fields .
  • If you specify import parameters DYNPPROG、DYNPNR and DYNPROFIELD, The user's selection will return to the corresponding field on the screen .
  • If the table parameter is specified RETURN_TAB, The selected content will be returned to the table .
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 shows you in ABAP List of values created in the program .
  • The value list is passed to the function module as a table parameter VALUE_TAB.
  • If you specify import parameters DYNPPROG、DYNPNR and DYNPROFIELD, The user's selection will return to the corresponding field on the screen .
  • If the table parameter is specified RETURN_TAB, The selected content will be returned to the table .
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD         =  'CONNID'
DYNPPROG         =  PROGNAME
DYNPNR           =  DYNNUM
DYNPROFIELD      =  'CONNECTION'
VALUE_ORG        = 'S'
TABLES
VALUE_TAB        = VALUES_TAB.

This is it. POH and POV The whole content of . If you have any questions , Please leave your comments .

Reference resources :https://www.guru99.com/process-on-value-help.html

原网站

版权声明
本文为[Boating in rainy days]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221500489038.html