Parameter | Reference | Type | Length | Default | Optional | Text |
---|---|---|---|---|---|---|
FORMNAME | 0 | Name of external subroutine | ||||
NO_CHECK_FOR_FIXED_VALUES | 0 | SPACE | X | Flag: Deactivate check on fixed values (X) | ||
POPUP_TITLE | 0 | Text of title line | ||||
PROGRAMNAME | TRDIR-NAME | C | 40 | Name of module pool of external subroutine | ||
START_COLUMN | 0 | '5' | X | Start column of the dialog box | ||
START_ROW | 0 | '5' | X | Start line of the dialog box |
Parameter | Reference | Type | Length | Text |
---|---|---|---|---|
RETURNCODE | 0 | User response |
Parameter | Reference | Length | Optional | Text |
---|---|---|---|---|
FIELDS | SVAL | 278 | Table fields, values and attributes |
Exception | Text |
---|---|
ERROR_IN_FIELDS | FIELDS were transferred incorrectly |
INCLUDE 'DOCU_HAS_TO_BE_ELABORATED' OBJECT DOKU ID TX Function INCLUDE 'POPUP_GET_VALUES_BASE' OBJECT DOKU ID TX The user input is copied and can be sent to an external subroutine (userexit), which can be specified in the interface of this function module.If you do not specify an external subroutine, the data is returnedwithout being checked. If you specify an external subroutine, then its interface must consistof the table FIELDS and an error structure. The external subroutineanalyzes the data, processes it as required, and, if an error occurs,fills the error structure accordingly. The function module analyzes theerror structure and either stops the processing or sends an errormessage and lets the user enter new data. You can use this function module to do the following:
Examples For examples, see the program RSSPO430. Notes INCLUDE 'POPUP_GET_VALUES_NOTES_02' OBJECT DOKU ID TX The user action is returned in the parameter. Itcan take the following values: The user wants to perform the action, the user exit did notreturn errors, FIELDS contains the input values The user cancelled the action, FIELDS contains theoriginal values Names of external subroutines (user exit) which are called at eventPAI, after value entry. Define the form routine as follows: FORM CHANGING ERROR STRUCTURE SVALE. * copy the values from FIELDS into internal structures * process internal structure and possibly call other dialog boxes IF error. ERROR handling ENDIF: ENDFORM. INCLUDE 'SPO_PAR_NO_CHECK_FOR_FIXED_V' OBJECT DOKU ID TX Dialog box title line text. It must be translatable (e.g. use numberedtexts). Name of the program or module pool in which the form routine FORMNAMEis defined. Column in which the dialog box starts. Default value 5. Row in which the dialog box starts. Default value 5. The table contains the fields, values and attributes for the layout ofthe dialog box. The fields appear in the sequence that they have inthe FIELDS table. For each field that is to appear in the dialog boxone line must be filled: The table must be active in the Data Dictionary. The field must belong to Table TABNAME. VALUE can be assigned a value when the function module is called up.This value is displayed. If the user does not cancel the action, VALUEcontains the value entered by the user. INCLUDE 'FU_POPUP_GET_VALUES_1' OBJECT DOKU ID TX The field attribute determines the layout attribute of the field andmust have one of the following values: " " (Space) normal display, ready for input " " " " obligatory. The indicator determines whether or not the field isobligatory and must have one of the following values: " " (Space) field is optional " In FIELDTEXT the keyword for the field can be specified unless thedictionary keyword is to be used. Field not required for this function module Field not required for this function module Field not required for this function module This indicator specifies whether the value help button should bedisplayed, and must have one of the following values. " " = The value help button is permanently displayed " |