POPUP_TO_DECIDE_WITH_MESSAGE 类同POPUP_TO_DECIDE,程序员可以多传入With this function module you create a dialog box in which you inform the user about a specific decision point via a diagnosis text, during an action. He or she can choose one of two alternative actions offered or cancel the action.
The action, the diagnosis text, the question and the alternative actions are passed as parameters.
The user action (Alternative 1, Alternative 2, or Cancel) is returned in a parameter.
2.3、Function group SPO4
POPUP_GET_VALUES This function module sends a dialog box for data display and input.
The input fields are passed in a structure and must be defined in the Dictionary. You can also specify individual field display attributes and a field text, if the key word from the Dictionary is not to be displayed as field text in the dialog box, in the structure.
The standard help functionality (F1, F4) is supported.
POPUP_GET_VALUES_DB_CHECKED This function module sends a dialog box for data to be input und checked against the database.
The input fields are passed in a structure and must be defined in the Dictionary. You can also specify individual field display attributes and a field text in the structure, if the key word from the Dictionary is not to be displayed as field text in the dialog box.
A comparison operator for checking the input data in the database is passed. You can specify whether the check is for the existence or absence of an object. A foreign key relationship check is supported.
The standard help functionality (F1, F4) is supported.
The user action is returned in a parameter.
POPUP_GET_VALUES_USER_CHECKED This function module sends a dialog box for data to be input and checked in an external sub-routine (user exit). The input fields are passed in a structure and must be defined in the dictionary. You can also specify individual field display attributes and a field text in the structure, if the key word from the Dictionary is not to be displayed as field text in the dialog box.
The Data input by the user in the dialog box are passed to the sub-routine specified in the interface for checking. Errors found by the check are entered in an error structure and are evaluated on return from the sub-routine by the function module.
The standard help functionality (F1, F4) is supported.
The user action (Continue or Cancel) is returned in a parameter.
POPUP_GET_VALUES_USER_HELP This function module sends a dialog box for data to be input with the possibility of a check in an external sub-routine (user exit) and branching in a user F1 or F4 help.
The input fields are passed in a structure and must be defined in the Dictionary. You can also specify individual field display attributes and a field text in the structure, if the key word from the Dictionary is not to be displayed as field text in the dialog box.
You can pass the data which are entered by the user in a dialog box to a sub-routine which must be specified in the interface for checking. Errors occurring in the check are stored in an error structure and are analyzed by the function module upon return from the sub-routine. The data, and an error message, if appropriate, are displayed again.
The standard help functionality (F1, F4) is supported.
User exits for a user F1 or F4 help can also be specified.
The user action (Continue or Cancel) is returned in a parameter.
POPUP_GET_VALUES_USER_BUTTONS This function module is like the previous function module POPUP_GET_VALUES_USER_HELP, with the additional possibility of passing one or two additional pushbuttons and a standard pushbutton, which the user can name.
POPUP_GET_VALUES_SET_MAX_FIELD With this function module you can specify the maximum number of fields which can be displayed in dialog boxes for this function group (SPO4). The specified value is stored in the function group local memory and applies for the rest of the application. Dialog boxes which display more then this number of fields are displayed with a scroll bar.
2.4、Function group SPO6
POPUP_DISPLAY_TEXT
With this function module you display a text which exists in the system in a dialog box.
POPUP_DISPLAY_TEXT_WITH_PARAMS
With this function module you display a text which exists in the system with parameters in a dialog box. The parameter values are passed in a table. The use of numbered texts is recommended, to make the parameter values translatable.
The parameter names must be passed in upper-case letters.