Functions | |
int | cal_usx_cal () |
Interprets the content of the current field as a formula and calculates the value. More... | |
int | xatt_cnt_lis (const char *param, const char *ignore) |
More... | |
int | xcps_mdl_sel_bom_lis (const char *param, const char *ignore) |
More... | |
int | xcps_prd_sel_rec (const char *param, const char *ignore) |
More... | |
int | xcps_sol_chg_sel (const char *param, const char *ignore) |
More... | |
int | xdalobj_dlg_sel_rec (const char *param, const char *ignore) |
More... | |
int | xprm_chk_task (const char *param, const char *ignore) |
More... | |
int | xtxt_ins_edt_ctg_men (const char *param, const char *ignore) |
More... | |
int | xtxt_ins_edt_men (const char *param, const char *ignore) |
More... | |
int | xutil_iwf_exi_edt_upd (const char *param, const char *ignore) |
More... | |
int | zag_but_exi_edt () |
Edit button menu userexit for EXIT button to exit edit mode. More... | |
int cal_usx_cal | ( | ) |
Interprets the content of the current field as a formula and calculates the value.
The content of the current field is passed to the calculator and is interpreted provided that no syntax error occurs during the calculation.
CAL_INP
).If the formula in the field is not parsable, the result will be ERROR
.
The standard application provides this userexit also via keyboard shortcut ('CTRL-K' or 'F12').
A valid expression can be defined (recursively) as follows:
0 | OK |
---|
int xatt_cnt_lis | ( | const char * | param, |
const char * | ignore | ||
) |
Menu userexit for the edit menu to count entries in classification or variant lists. For classes or variants of type ATT, counting is implementedlocally. Otherwise the standard userexit wdh_cnt_lis is called.
context | Userexit context. |
param | /SUB - the count function is called from the classification list of container classes. In this case the query considers the sub-classes of the container class. |
0 | OK |
---|---|
else | error return code of wdh_cnt_lis |
int xcps_mdl_sel_bom_lis | ( | const char * | param, |
const char * | ignore | ||
) |
Edit-menu userexit for solution masks (neutral BOM). Opens a selection widget to choose a specific product for the currently edited solution.
context | Menu userexit context |
param | Reserved |
0 | Ok |
---|---|
Else | Error |
int xcps_prd_sel_rec | ( | const char * | param, |
const char * | ignore | ||
) |
Edit-menu userexit for solution masks (neutral BOM). Opens a selection widget to choose a specific product for the currently edited solution.
context | Menu userexit context |
param | Reserved |
0 | OK |
---|---|
Else | Error |
int xcps_sol_chg_sel | ( | const char * | param, |
const char * | ignore | ||
) |
Edit menu userexit to get the solution space for the current edited BOM position. The method displays the solution space in the standard itme list or in the passed mask.
context | the menu selection userexit context |
param | [/MASK=mask] the mask to display the solution space |
int xdalobj_dlg_sel_rec | ( | const char * | param, |
const char * | ignore | ||
) |
Edit-menu userexit to open a selection widget to choose a specific record. The userexit uses the field content of the current field as query for the selection widget. To perform a field mapping between the edited widget and the selection widget the source table name and the destination table name can be passed to the userexit. If no table name is passed for either one or both widgets, the userexit uses the field name as it is in that widget. (Table name mapping: source table –> destination table).
Source Table | Table name of the record of the edited field (In most cases a constraint field). |
---|---|
Destination Table | Table name of the record in the selection widget. |
The userexit copies all fields of the selection widget with the destination table name into the corresponding fields of the edited mask. During the copy operation the table name mapping destination table –> source table is used.
The ID fields are copied too.
context | The userexit context. | |||||||||||||||||||||||||||
param | Parameter to control the behavior of this function. Syntax: "/SRC_ID=<fld> /DST_ID=<fld> /ENTITY=<ent> [/SRC_TAB=<tab>] [/DST_TAB=<tab>] [/LIST=<mask>]" With possible arguments:
|
0 | OK |
---|---|
Else | Error |
int xprm_chk_task | ( | const char * | param, |
const char * | ignore | ||
) |
Menu userexit to check if the current user has the privilege to execute the given task.
usxCtx | The userexit context. | |||
param | Parameter to control the behavior of this userexit. Syntax is: "taskName" With possible arguments:
|
0 | The user has the right to execute the given task. |
---|---|
1 | The user does not have the right to execute the given task. |
<0 | Error while accessing the permission manager service. |
int xtxt_ins_edt_ctg_men | ( | const char * | param, |
const char * | ignore | ||
) |
Opens the glossary list EDB-TXT-GLS-CTG-QRY as a modal dialog list.
ctx | Field userexit context. |
param | Reserved parameter for the pre-field userexit. |
0 | Ok. |
---|---|
Else | Error |
int xtxt_ins_edt_men | ( | const char * | param, |
const char * | ignore | ||
) |
Edit-menu userexit for instance-editor to store newly created Text-Instance or sets mask in edit mode.
ctx | Field userexit context. | ||||
param | Parameter to control the behavior of this function. Syntax is: "/OK" With possible arguments:
|
0 | Ok. |
---|---|
Else | Error |
int xutil_iwf_exi_edt_upd | ( | const char * | param, |
const char * | ignore | ||
) |
Executes "iwf_exi_edt" and then performs a "wdh_upd_lis". This userexit can be used to end the insert or update mode (edit mode) and to refresh the mask in order to display new data which was created in the pre- or post-action userexit of the mask.
cpParameter | Parameter to control the behavior of this function (passed to iwf_exi_edt). |
0 | OK |
---|---|
1 | Error |
int zag_but_exi_edt | ( | ) |
Edit button menu userexit for EXIT button to exit edit mode.
Writes the passed exit option in the widget buffer (using the key 'EXIT'). Then the standard userexit 'iwf_exi_edt' is called to terminate the edit mode.
cp_Par | Parameter with the button exit mode. With possible arguments:
|
0 | OK |
---|---|
1 | Error |