Functions | |
int | sig_cfg_edt () |
Writes field values into the config parameters, if "store" was choosen. More... | |
int | tol_edit_act () |
Edit-action userexit to calculate fields of the current mask. More... | |
int | xartic_action () |
Edit-action userexit for item masks. More... | |
int | xartst_action (const char *param1, const char *param2) |
More... | |
int | xatt_eda (const char *param1, const char *param2) |
More... | |
int | xchg_cre_eav_men (const char *param1, const char *param2) |
More... | |
int | xchg_ins_new_wdg (const char *param1, const char *param2) |
More... | |
int | xcnf_app_r11_eda (const char *param1, const char *param2) |
More... | |
int | xcnf_cps_elm_eda (const char *param1, const char *param2) |
More... | |
int | xcnf_cps_elm_str_eda (const char *param1, const char *param2) |
More... | |
int | xcnf_cps_hie_sol_edt (const char *param, const char *ignore) |
More... | |
int | xcnf_cps_sol_eda (const char *param1, const char *param2) |
More... | |
int | xcnf_ord_eda (const char *param1, const char *param2) |
More... | |
int | xcnf_ord_spc_eda (const char *param1, const char *param2) |
More... | |
int | xcnf_prd_cla_eda (const char *param1, const char *param2) |
More... | |
int | xcnf_spc_str_agg_eda (const char *param1, const char *param2) |
More... | |
int | xcnf_spc_str_ref_eda (const char *param1, const char *param2) |
More... | |
int | xcnf_spc_var_fin_edt (const char *param1, const char *param2) |
More... | |
int | xcpa_ali_eda () |
Edit-action userexit for the Alias IDs constraint lists, e.g. EDB-CPA-ART-CNS-SLI. More... | |
int | xcpa_eda () |
Edit-action userexit on cooperation partner and organization forms and lists. More... | |
int | xcpa_obj_eda (const char *param1, const char *param2) |
More... | |
int | xcps_alt_eda (const char *param1, const char *param2) |
More... | |
int | xcps_clr_spc_rul_eda (const char *param1, const char *param2) |
More... | |
int | xcps_cmp_eda (const char *param1, const char *param2) |
More... | |
int | xcps_elm_eda (const char *param1, const char *param2) |
More... | |
int | xcps_flt_eda (const char *param1, const char *param2) |
More... | |
int | xcps_fnc_cmp_eda (const char *param1, const char *param2) |
More... | |
int | xcps_prl_elm_eda (const char *param1, const char *param2) |
More... | |
int | xcps_prl_set_vie_eda (const char *param1, const char *param2) |
More... | |
int | xcps_sol_eda (const char *param1, const char *param2) |
More... | |
int | xcps_sol_mul_eda (const char *param1, const char *param2) |
More... | |
int | xcps_sol_upd_ctl_lev (const char *param1, const char *param2) |
More... | |
int | xctx_ctx_eda (const char *param1, const char *param2) |
More... | |
int | xctx_eda (const char *param1, const char *param2) |
More... | |
int | xdfv_get_val_eda (const char *param1, const char *param2) |
More... | |
int | xdocfi_eda () |
Edit-action userexit for document-file relation masks. More... | |
int | xdocst_action () |
Edit-action userexit for document structures. More... | |
int | xdocty_action () |
Edit-action userexit for document type widget. More... | |
int | xdocum_action () |
Edit-action userexit for document master masks. More... | |
int | xedb_eda () |
Basic edit-action userexit. More... | |
int | xedb_max_pnr (const char *param1, const char *param2) |
More... | |
int | xedb_nop_ins_eda () |
Basic edit-action userexit. More... | |
int | xedb_put_dfv_eda () |
Edit-action userexit to set the default values of some fields. More... | |
int | xedb_rel_eda (const char *param1, const char *param2) |
More... | |
int | xedb_rpl_eda () |
Replace a position in the structure (edit action). More... | |
int | xedb_ulk_fat_eda () |
Basic edit-action userexit for refine widgets. More... | |
int | xgroup_action () |
Edit-action-USX for class form or list (e.g. More... | |
int | xgrpst_action () |
Edit-action userexit for classification group structure. More... | |
int | xhisto_action () |
Edit-action userexit for object history relation widgets. More... | |
int | xntm_eda () |
Edit-action userexit for notes administration widgets. More... | |
int | xord_action () |
Edit-action userexit for list of the order specific bill of material. More... | |
int | xpac_edit_act () |
Edit-action userexit at the master and type list of the element packet. More... | |
int | xpac_multyp_edit_act () |
Edit-action userexit at the relation mask of the element packet In insert mode all fields with corresponding type fields in the element packet are pre-set with the values of the master entity. More... | |
int | xpdw_obj_chk_cur_pro (const char *param1, const char *param2) |
More... | |
int | xpdw_obj_eda (const char *param1, const char *param2) |
More... | |
int | xpdw_pro_eda (const char *param1, const char *param2) |
More... | |
int | xpdw_rel_eda (const char *param1, const char *param2) |
More... | |
int | xprm_chk_task_a (const char *param1, const char *param2) |
More... | |
int | xproje_action () |
Edit-action userexit for project masks. More... | |
int | xprost_action () |
Edit-action userexit for project structures. More... | |
int | xrel_edt_act () |
Sets the field access (or post-field userexit). More... | |
int | xsml_edt_action () |
Edit-action userexit for type classification lists and forms (e.g. More... | |
int | xsmldf_action () |
Edit-action userexit for class definition mask.More... | |
int | xstare_eda () |
Edit-action userexit for the vault definition mask. More... | |
int | xstate_set_ini_lev (const char *param1, const char *param2) |
More... | |
int | xstate_set_lev_men (const char *param1, const char *param2) |
More... | |
int | xtask_chk_eda () |
Checks for permission for a given privilege. More... | |
int | xtrf_eda () |
Clears the reference number field of transformation record in copy mode. More... | |
int | xtxt_ins_eda (const char *param1, const char *param2) |
More... | |
int | xtxt_ins_sel_pre_edt (const char *param1, const char *param2) |
More... | |
int | xtxt_tpl_eda (const char *param1, const char *param2) |
More... | |
int | xtyp_eda () |
Edit-action userexit for type widget. More... | |
int | xunit_action () |
Deletes the active menu from the screen when it is in insert mode (parameter[0] = I). More... | |
int | xutil_cch_upd_mas_joi (const char *param1, const char *param2) |
More... | |
int | xutil_chk_ins (const char *param1, const char *param2) |
More... | |
int | xutil_exec_sto_proc (const char *param1, const char *param2) |
More... | |
int | xutil_set_wdg_buf (const char *param1, const char *param2) |
More... | |
int | xvar_edt_action () |
Edit-action userexit to check the user access to the variant list.More... | |
int | xvardf_vfl_act () |
Edit-action userexit for variants (e.g. More... | |
int | zag_fld_put_dfv_eda () |
Edit-action-USX to set the default values of some fields. More... | |
int sig_cfg_edt | ( | ) |
Writes field values into the config parameters, if "store" was choosen.
cpPar | standard parameters |
cpIgn | not used |
0 | ok |
---|---|
1 | error |
int tol_edit_act | ( | ) |
Edit-action userexit to calculate fields of the current mask.
cp_par | Standard parameter defining working mode and current row |
0 | OK |
---|---|
Else | Error |
int xartic_action | ( | ) |
Edit-action userexit for item masks.
If working mode is 'C'opy or 'U'pdate:
EDB-ART-VAR-UPD
to 1. xedb_eda
with the parameter string passed to this userexit. If no parameter string was passed, then call xedb_eda
with the parameter /FIELD_TYPE=ENTITY
.CpPar | Standard parameter with working mode and current row. |
CpArgument | Defines for which field(s) the default value shall be set. Please refer to the userexits xedb_put_dfv_eda and xedb_eda . |
0 | OK |
---|---|
1 | Variants must not be updated in the current mask |
2 | Error in xedb_eda |
int xartst_action | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for the item structure.
xtrf_eda
to clear the reference number field for transformation. xedb_rel_eda
. ctx | The action userexit context. |
param | The parameters passed to the userexit. This parameter is passed to both xtrf_eda and xedb_rel_eda . Please refer to these userexits for possible parameters. |
0 | OK |
---|---|
<> 0 | Error in either xtrf_eda or xedb_rel_eda . |
int xatt_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit action userexit for classification lists. The userexit prevents insert, copy, update and delete operations in the classification lists of conatiner classes (abstract classes which have only sub-classes but no directly assigned objects. In this case, the parameter /SUB is given.
context | Userexit context. |
cp_UserPar | Parameter for the edit-action userexit, syntax like: "/TABLE=table_name /SUB /VAR" where:
|
0 | OK |
---|---|
1 | insert, update, copy and delete operations are not allowed |
int xchg_cre_eav_men | ( | const char * | param1, |
const char * | param2 | ||
) |
Creates menus for all entities and views under the Change Management control and adds it to the corresponding fields. Edit action userexit to create the menus for entity and view names, avoiding double entries and adding this menu to the EDB_EN1_NAM/EDB_VIE_NAM field of the change operation form. This menu is used only in query mode to see all possible entities under the Change Management control.
context | The context of the userexit |
param | /ENT1_MEN=MenuName /VIEW_MEN=AnotherMenuName (Menu names should be unknown in the db/repository) |
0 | OK |
---|---|
Else | Error |
int xchg_ins_new_wdg | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit action usx to insert the entry(s) into the edited new widget of the so called monster form. The insert is made in several steps to have a definite start condition:
The steps are done in this order to have a definite and reproducible state after opening the monster form and to avoid side effects to other regular operations (specially the setting of defaults and afterwards deleting some of them is due to this: simply removing defaults from the mask/field could have effects on other operations)
context | The userexit context. | |||
param | Parameter to control the behaviour of this function. Syntax like: "[/NODEF=<list of field names>]" with possible arguments:
|
int xcnf_app_r11_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for Replace 1-1 list.
In 'I'nsert, 'C'opy mode:
Copies the position id from the origin widget into the new widget.
private edit-action
cpAction | Standard action userexit parameter |
cpArguments | Not used yet |
int xcnf_cps_elm_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for order specific product structure element widgets. Checks if it is allowed to update the order element. Only order specific elements can be updated.
context | Standard parameter defining working mode and current row. |
param | Standard userexit parameter, (reserved). |
0 | OK |
---|---|
1 | Error |
int xcnf_cps_elm_str_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for order specific product structure element structure widgets.
'U'pdate | Checks if it is allowed to update the structure element. Only order specific elements can be updated. |
---|---|
'I'insert | Sets the reference to the product component. |
context | Standard parameter defining working mode and current row. |
param | Standard userexit parameter (reserved). |
0 | OK |
---|---|
1 | Error |
int xcnf_cps_hie_sol_edt | ( | const char * | param, |
const char * | ignore | ||
) |
Select-Menu userexit for product structure element for add and update positions.
param | Standard userexit parameter (reserved). |
0 | OK |
---|---|
1 | Error |
int xcnf_cps_sol_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for product structure element structure.
context | Standard parameter defining working mode and current row. |
param | Standard userexit parameter (reserved). |
0 | OK |
---|---|
1 | Error |
int xcnf_ord_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for configuration order widgets. The userexit covers the following actions:
'C'opy | The userexit clears the following fields "T_ORD_DAT.EDB_SPEC_CHECK", "T_ORD_DAT.EDB_DERIVED", "T_ORD_DAT.EDB_LAST_CHANGE" |
---|
context | Standard parameter defining working mode and current row. |
param | Standard userexit parameter (reserved). |
0 | OK |
---|---|
1 | Error |
int xcnf_ord_spc_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for order specification aggragate list. Checks if it is allowed to change the assignment of the specifications in current state of the related order. It is not allowed to change the Order specification assignment if the the State of the order has the approved/releases or the inactive flag set.
context | Standard parameter defining working mode and current row. |
param | Standard userexit parameter (reserved). |
0 | OK |
---|---|
Else | Error |
int xcnf_prd_cla_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for product variant widgets.
'C'opy | Clears T_PRD_VAR_DAT.C_ID |
---|---|
'I'nsert | Mode the cooperation partner code from the product family is copied to the current product variant record. |
'U'pdate | Mode the access could be checked and restricted if the parameter PRDVARSTATE is set. |
context | Standard parameter defining working mode and current row. |
param | /PRDVARSTATE string of product state abbreviations where the update of the product variant is allowed. Valid characters are: 'W' in work 'A' approved 'R' released 'V' versionized 'I' inactive If parameter /S for strict mode is passed, also manager users are forced to limited update possibilities. |
0 | OK |
---|---|
1 | Error |
int xcnf_spc_str_agg_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for specification structure aggregate list.
'I'nsert | Checks if the current specification (field T_AVL_DAT.INTERN) is external (value = "n"), otherwise a message is displayed. |
---|
context | Standard action userexit parameter |
param | (reserved) |
0 | OK |
---|---|
1 | Current specification is not an external |
int xcnf_spc_str_ref_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for specification structure refine widget. This userexit covers the following actions:
'I'nsert | Checks if the current specification (field T_AVL_DAT.INTERN) is internal (value = "y"), otherwise a message is displayed. |
---|
context | Standard action userexit parameter |
param | (reserved) |
0 | OK |
---|---|
1 | Current specification is not internal |
int xcnf_spc_var_fin_edt | ( | const char * | param1, |
const char * | param2 | ||
) |
Pre-field userexit for specification product variant select widget.
param |
0 | OK |
---|---|
1 | Error |
int xcpa_ali_eda | ( | ) |
Edit-action userexit for the Alias IDs constraint lists, e.g. EDB-CPA-ART-CNS-SLI.
'C'opy | Deletes the old value of the field <aliasid tablename>="">.C_DEFAULT of the new Alias ID record. |
---|
param | Additional argument string (reserved). |
0 | OK |
---|---|
1 | Field not found |
2 | No record in edit mode |
3 | No widget is active |
Edit-action userexit on masks which support Alias IDs.
int xcpa_eda | ( | ) |
Edit-action userexit on cooperation partner and organization forms and lists.
'C'opy | Deletes the current value of the field T_ORG_DAT.STEP_INT_ID (Code). |
---|
cpPar | Standard parameter with working mode and current row. |
cpArg | Additional argument string. |
0 | OK |
---|---|
1 | Field not found |
2 | No record in edit mode |
3 | No widget is active |
int xcpa_obj_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for objects that support Alias ID (for example item or document).
'C'opy | Clears the view fields of the Alias Id view of the current record. |
---|
context | Standard parameter defining working mode and current row. | |||||||||
param | Additional argument string. Syntax is: "ARG /TABLE=<view table> /ENTITY=<entity name>" With possible arguments:
|
0 | OK |
---|---|
1 | No parameters set. |
2 | No record in edit mode. |
3 | Key TABLE not set. |
4 | No widget is active. |
int xcps_alt_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for variant mask (modular BOM solutions).
This userexit deals with the following actions:
'I'nsert | Gets the component EDB_ID from the parent widget and stores it in the buffer of the current widget(sublist), which is needed later by the pre-mask userexit of the select widget for item solutions. Sets the field access by using the userexit (xutil_acc_fld ). |
---|---|
'U'pdate | Gets the component EDB_ID from the parent widget and stores it in the buffer of the current widget(sublist), which is needed later by the pre-mask userexit of the select widget for item solutions. Sets the field access by using the userexit (xutil_acc_fld ). |
'C'opy | Clears the specification rule fields. Gets the component EDB_ID from the parent widget and stores it in the buffer of the current widget(sublist), which is needed later by the pre-mask userexit of the select widget for item solutions. Sets the field access by using the userexit (xutil_acc_fld ). |
context | Action userexit context |
param | Reserved |
0 | OK |
---|---|
Else | Error |
int xcps_clr_spc_rul_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Clears specification rule reference fields.
This userexit deals with the following actions:
'C'opy | Creates a specification rule and assigns the specification rule to the variant. |
---|
context | Action userexit context |
param | Reserved |
0 | OK |
---|---|
Else | Error |
int xcps_cmp_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for product components.
This userexit deals with the following actions:
'I'nsert | Checks if the combined widget is displayed as main form. |
---|---|
'C'opy | Checks if the combined widget is displayed as main form, clears the constraint fields and resets the field defaults. |
context | Action userexit context |
param | Reserved |
0 | OK |
---|---|
Else | Error |
int xcps_elm_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for product structure elements.
This userexit deals with the following actions:
'I'nsert | Sets a reference to the parent record (EDB_STR_REF) if called in combined form and sets the field access. |
---|---|
'U'pdate | Sets a reference to the parent record (EDB_STR_REF) if called in combined form and sets the field access. |
'C'opy | Clears constraint fields. |
context | Action userexit context |
param | Reserved |
0 | Ok |
---|---|
Else | Error |
int xcps_flt_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for filters.
This userexit deals with the following actions:
'I'nsert | Copies the value of the EDB_ID field of the product structure element of the parent mask into the EDB_ELM_REF field. |
---|
context | Action userexit context |
param | Reserved |
0 | OK |
---|---|
Else | Error |
int xcps_fnc_cmp_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for function - product component aggregate form. The standard behavior is to suppress insert and copy operations in the aggregate form. If for any reason an insert or copy operation should be allowed (this is not recommended), then set the flags /INSERT or /COPY.
The userexit supports the following modes:
'I'nsert | Returns 1 to prevent insert (if flag /INSERT is not set). |
---|---|
'C'opy | Returns 1 to prevent copy (if flag /COPY is not set). |
context | Action userexit context | ||||
param | Parameter to control the behavior of this function. Syntax like: "[/INSERT][/COPY]" with possible arguments:
|
0 | OK |
---|---|
1 | Insert/Copy not allowed |
int xcps_prl_elm_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit action userexit for parallel structure - product component widgets.
This userexit deals with the following actions:
'I'nsert | Set top level parallel structure element. |
---|---|
'C'opy | Set top level parallel structure element. |
context | Action userexit context |
param | Reserved |
0 | OK |
---|
int xcps_prl_set_vie_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit action userexit for parallel structure (node) widgets.
This userexit deals with the following actions:
'I'nsert | Write value of T_CPS_PRL_DAT.EDB_VIEW of record in parent widget to current record. |
---|---|
'C'opy | Write value of T_CPS_PRL_DAT.EDB_VIEW of record in parent widget to current record. |
'++' (double click) | Write value of T_CPS_PRL_DAT.EDB_VIEW of record in parent widget to current record. |
context | Action userexit context |
param | Reserved |
0 | OK |
---|
int xcps_sol_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for solutions list of neutral product structure elements.
This userexit deals with the following actions:
'I'nsert, 'U'pdate, 'C'opy | Reads the default EDB-CPS-SOL-PRD and writes value to V_CPS_PRD_SOL.PART_ID. Prepares widget to work with select widgets assigned to mask fields. |
---|
context | Action userexit context | ||
param | Parameter to control the behavior of this function. Syntax is: "[/DEF]" With possible arguments:
|
0 | OK |
---|---|
Else | Error |
int xcps_sol_mul_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for multi-edit solution list.
This userexit deals with the following actions:
'U'pdate | Sets the field access which is defined by using the information of the field userexit 'xutil_acc_fld'. |
---|
context | Action userexit context |
param | Reserved |
0 | OK |
---|---|
Else | Error |
int xcps_sol_upd_ctl_lev | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for solution list.
This userexit deals with the following actions:
'I'nsert, 'U'pdate, 'C'opy | Updates the control level attribute of the current object. Checks if the effective object is a work order and sets the control level to OFF. |
---|
context | Action userexit context |
param | Reserved |
0 | OK |
---|---|
Else | Error |
int xctx_ctx_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for the list of contexts.
This userexit deals with the following actions:
'I'nsert, 'C'opy | Creates a new slot ID and writes the slot ID into the field EDB_SLOT . |
---|
ctx | Action userexit context. |
param | Reserved. |
0 | OK |
---|---|
Else | Error |
int xctx_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for all relation lists that use the context.
This userexit deals with the following actions:
'I'nsert, 'C'opy | Initializes the context assignment of the new record to determine in which contexts the record is initially visible. |
---|
Algorithm to determine in which contexts the record is visible:
ctx | Action userexit context. | |||
param | Parameter to control the behavior of this function. Syntax is: "[/CTX=context]" With possible arguments:
|
0 | OK |
---|---|
Else | Error |
int xdfv_get_val_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for setup forms. For all (calculatory and visible) fields of the current form on which the post-field userexit xdfv_set_val_pof()
' is called, the existing default values are written into the field.
ctx | Action userexit context. |
param | Reserved. |
0 | Ok |
---|
int xdocfi_eda | ( | ) |
Edit-action userexit for document-file relation masks.
The userexit supports the following modes:
'I'nsert | Executed tasks:
|
---|---|
'U'pdate | Executed tasks:
|
'C'opy | Executed tasks:
|
'D'elete | Executed tasks:
|
cp_Parameter | standard action parameter |
cp_Arguments | not used |
0 | OK |
---|---|
Else | Error |
int xdocst_action | ( | ) |
Edit-action userexit for document structures.
Calls the userexit xtrf_eda
to clear the reference number field for transformations. If the working mode is 'C'opy, 'I'insert or 'U'pdate, call the usrexit xedb_rel_eda
to check if the document is reserved and if write access on the parent is granted.
par | Standard parameter defining working mode and current row. |
cp_Arguments | String with (optional) arguments to control this userexit, e.g.: /XEDB_NO_CHK_RES to avoid reservation check. The userexit itself does not evaluate any parameters, but the parameter string is passed to xedb_rel_eda . |
0 | OK |
---|---|
1 | Document reserved or no write access on parent element |
else | Other error |
xedb_rel_eda
int xdocty_action | ( | ) |
Edit-action userexit for document type widget.
Calls the standard edit-action userexit xedb_eda
with the parameter /FIELD_TYPE=ENTITY
or the given argument string.
This userexit covers the following actions:
'I'nsert | Writes the current document type into the field DOC_TYPE by calling zag_fld_put_typ . Then sets the query buffer of the field DOC_TYPE to the document type of the widget. |
---|---|
'C'opy | Writes the current document type into the field DOC_TYPE by calling zag_fld_put_typ . |
'U'pdate | Locks the parent record. |
cp_Par | Standard parameter with working mode and current row. |
cp_Argument | Argument string to define for which field(s) the default value shall be set. Please refer to the userexit xedb_put_dfv_eda '. |
0 | OK |
---|---|
1 | Document is reserved. |
int xdocum_action | ( | ) |
Edit-action userexit for document master masks.
Prevents from inserting or copying a document master record. Documents must be created in one of the type specific lists or forms.
par | Standard parameter with working mode and current row |
0 | OK |
---|---|
1 | Insert / copy not permitted |
int xedb_eda | ( | ) |
Basic edit-action userexit.
This userexit deals with the following actions:
'I'nsert | Check if current widget is displayed in main form if it is a combined form and the widget is not a virtual widget (see 'bvb_usx_chk_mfr'). |
---|---|
'C'opy | Check if element is reserved. This check can be disabled by inserting the key NO_CHK_RES into the widget buffer. Check if current widget is displayed in main form, if it is a combined form and the widget is not a virtual widget (see 'bvb_usx_chk_mfr'). Field default values are set according to given argument string. The widget buffer will be set to "STA_COP" = 1. |
'U'pdate | Check if element is reserved. |
@note To check for the current widget, if the working mode is 'C', you may use the function 'zag_get_buf_elm'. @param cp_Parameter Standard parameter with working mode and current row. @param cp_Arguments Argument string to define for which field(s) the default value shall be set. Please refer to documentation of the userexit 'xedb_put_dfv_eda'. @return <table><tr><th> 0 </th><td> Ok. </td></tr><tr> <th> 1 </th><td> Element is reserved. </td></tr><tr> <th> 2 </th><td> Current widget is a combined widget and not displayed as main form. </td></tr></table> @par Example:
@see zag_get_buf_elm, xedb_put_dfv_eda
int xedb_max_pnr | ( | const char * | param1, |
const char * | param2 | ||
) |
Sets the position number for the current relation record. The default value EDB-POS-INCREMENT is used to increment the current highest value. The userexit needs the constraint name if the relation is a constraint.
This userexit deals with the following actions:
'I'nsert | Calculates the next position number and writes it into the field POS_NO. |
---|---|
'C'opy | Calculates the next position number and writes it into the field POS_NO. |
context | Action userexit context. | |||
param | Parameter to control the behavior of this function. Syntax is: "/CNS=<name>" With possible arguments:
|
0 | OK |
---|---|
1 | Error |
int xedb_nop_ins_eda | ( | ) |
Basic edit-action userexit.
This userexit deals with the following action:
'I'nsert | Prevent insert operation if current widget is an interactive one but allow it for virtual widgets. |
---|---|
'C'opy | Prevent copy operation if current widget is an interactive one but allow it for virtual widgets. |
cp_Parameter | Standard parameter with working mode and current row. |
cp_Arguments | Reserved. |
0 | OK |
---|---|
1 | No insert allowed. |
int xedb_put_dfv_eda | ( | ) |
Edit-action userexit to set the default values of some fields.
This userexit deals with the following actions:
'C'opy | Copies the defaults values for fields. |
---|
cp_Par | Standard parameter with working mode and current row. | ||||||||||||
cpArguments | Parameter to control the behavior of this function. Syntax is: "{/NAME=<fieldlist> | /FIELD_TYPE={ALL_JOIN|ALL|ENTITY}}" With possible arguments:
|
0 | OK |
---|---|
1 | Error |
int xedb_rel_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Basic edit-action userexit for relation widgets.
This function checks if the user may insert (or update resp. copy) a record in a relation list.
This userexit deals with the following actions:
'I'nsert | Checks the reservation state of the element if the Change Management is not active. |
---|---|
'C'opy | Checks the reservation state of the element and resets the reservation state of the newly created element. |
'U'pdate | Checks the reservation state and access of the element if it is not controlled by the Change Management. |
ctx | Action userexit context. | ||
param | Parameter to control the behavior of this function. Syntax is: "[/XEDB_NO_CHK_RES]" With possible arguments:
|
0 | OK |
---|---|
1 | Error |
2 | Virtual mode active. |
int xedb_rpl_eda | ( | ) |
Replace a position in the structure (edit action).
This userexit deals with the following action:
'U'pdate | Write the master c_id in the widget buffer under the key RPLyyyPOS, where yyy is the current row. Set the record as 'm'odified in order to call the pre-action userexit in 'Q'uery mode (abort mode is 'Qrow') if the user cancels the action. |
---|
cpParameter | Standard parameter with working mode and current row. |
cpArguments | Reserved. |
0 | OK |
---|---|
1 | Error |
int xedb_ulk_fat_eda | ( | ) |
Basic edit-action userexit for refine widgets.
This userexit deals with the following actions:
'I'nsert | Unlock parent of the current record. When you unlock the parent record, more than one user can insert a record in the structure list at the same time. |
---|
@note If two users enter the same position number in the structure and save the record at the same time, the two position numbers are identical. @param cp_Parameter Standard parameter with working mode and current row. @return <table><tr><th> 0 </th><td> Ok. </td></tr><tr> <th> 1 </th><td> No records locked. </td></tr><tr> <th> 2 </th><td> Lock-release is switched off. </td></tr><tr> <th> 3 </th><td> No active widget. </td></tr><tr> <th>-1 </th><td> Database error during unlock of the records. </td></tr></table>
int xgroup_action | ( | ) |
Edit-action-USX for class form or list (e.g.
EDB-GRP-CFR, EDB-GRP-SLI). Calls the userexit xedb_eda with the argument /FIELD_TYPE=ENTITY or current argument string. In 'C'opy mode, copies the container flag settings of the copied class.
context | Userexit context. |
cp_Argument | Argument string for yedb_eda (e.g. to define for which fields the default value will be set. Please refer to documentation of the userexits 'xedb_eda' and 'xedb_put_dfv_eda'. |
0 | OK |
---|---|
otherwise | Error code of xedb_eda |
int xgrpst_action | ( | ) |
Edit-action userexit for classification group structure.
Checks that class is not assigned to a product component.
cp_Par | Standard parameter defining working mode and current row. |
0 | OK |
---|---|
2 | The parent class cannot become a container class as it is assigned to a product component. |
int xhisto_action | ( | ) |
Edit-action userexit for object history relation widgets.
This userexit performs the following actions:
'I'nsert | Check for write access to parent record, set field defaults, and set work order reference to ECO_REF . |
---|---|
'U'pdate | Allow update only for "MEMO" entries and check for write access to parent record. |
'C'opy | Check for write access to parent record and set field defaults. |
cpParameter | Standard parameter with working mode and current row. | ||||||||||||
cpArguments | Parameter to control the behavior of this function. Syntax is: "{/NAME=fieldlist] | /FIELD_TYPE={ALL_JOIN|ALL|ENTITY}}" With possible arguments:
|
0 | OK |
---|---|
1 | Error |
int xntm_eda | ( | ) |
Edit-action userexit for notes administration widgets.
Allows only inserts if parent relation to this note is known.
This userexit deals with the following actions:
'I'nsert | Create new note id number and check for number conflict. |
---|---|
'C'opy | Create new note id number and check for number conflict. |
par | Standard parameter with working mode and current row. | |||
cp_Arguments | Parameter to control the behaviour of this function. Syntax like: "[/NO_POS]" With possible arguments:
|
0 | OK |
---|---|
1 | Error |
int xord_action | ( | ) |
Edit-action userexit for list of the order specific bill of material.
This userexit deals with the following actions:
'C'opy | Sets default values. |
---|
cp_Parameter | Standard parameter defining working mode and current row. | ||||||||||||
cp_Arguments | Parameter to control the behavior of this function. Syntax like: "{/NAME=<fieldlist>] | /FIELD_TYPE={ALL_JOIN|ALL|ENTITY}}" With possible arguments:
|
0 | OK |
---|---|
1 | Error |
int xpac_edit_act | ( | ) |
Edit-action userexit at the master and type list of the element packet.
The flag STA_COP is attached to the widget buffer during copying. If the flag already exists in the widget buffer it will be deleted at the beginning of this function.
Since this flag is needed in the PRE-ACTION as well as in the POST-ACTION userexit and the POST-ACTION userexit is not necessarily called, the widget buffer cannot be reset at the end of this function.
Insert: Fills the field T_PAC_DAT.ELM_TYPE with the appropriate type name. Fills the fields T_PAC_DAT.EDB_ID and T_PAC_DAT.PAC_ID. Field value for T_PAC_DAT.EDB_ID is created via number server, afterwards the value is copied into the field T_PAC_DAT.PAC_ID.
Copy : If the mask is a type mask, the C_ID of the master and join table is deleted, and a new record is created while saving. (Only when copying within a widget.) The field T_PAC_DAT.ELM_TYPE is filled with the appropriate type name. The original CIDs are temporarily saved in the field buffer when copying with content in the Post-Act-Trigger. Fills the fields T_PAC_DAT.EDB_ID and T_PAC_DAT.PAC_ID. Field value for T_PAC_DAT.EDB_ID is created via number server, afterwards the value is copied into the field T_PAC_DAT.PAC_ID.
par | Default parameter from DTV with working mode and row |
0 | OK |
---|---|
1 | Error |
int xpac_multyp_edit_act | ( | ) |
Edit-action userexit at the relation mask of the element packet In insert mode all fields with corresponding type fields in the element packet are pre-set with the values of the master entity.
par | Default parameter from DTV with working mode and current row |
0 | OK |
---|---|
1 | Error |
int xpdw_obj_chk_cur_pro | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit to check if a current project or organizational unit is set. The check is performed in 'C'opy and 'I'nsert mode only. This userexit is similar to xpdw_obj_eda
but can be used for widgets where, when creating a new record, an object under control of Multi Access Rights is created in the background. The user is informed immediately that it is not possible to create the record and before the background creation is performed.
ctx | The userexit context. |
param | Additional userexit parameters. Currently none. |
0 | OK |
---|---|
PDW_NO_ACCESS (730) | Access denied |
Else | Error |
int xpdw_obj_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for object widgets. If no current principal is selected, then the insertion of a new object is not allowed. Before the update of a record it is checked that you have PDW access to the record.
PDW access: Check if the origin principal of the record is visible from the current selected principal.
The entity specific configuration parameters are grouped under configuration rubric EDB-PDW-ENT-n with n representing a sequence number for the entities under PDW control (e.g. EDB-PDW-ENT-2 / EDB-PDW-CHK-OBJ-ACC-ENT-2 represent the settings for entity EDB-ARTICLE).
If configuration parameter EDB-PDW-CHK-OBJ-ACC-ENT-n for the parent entity has value "no" the PDW access check is skipped.
This userexit deals with the following actions:
'I'nsert | Checks that a current principal is set. |
---|---|
'C'opy | Checks that a current principal is set. |
'U'pdate | Checks for PDW access. |
cpParameter | Standard parameter defining working mode and current row. |
cpArguments | Additional userexit parameters. Currently none. |
0 | OK |
---|---|
PDW_NO_ACCESS (730) | Access denied |
Else | Error |
public edit-action
int xpdw_pro_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
PDW edit-action userexit for project widgets.
OLD_PRO
.usxContext | The userexit context. |
param | Additional userexit parameters. Currently none. |
0 | OK |
---|---|
1 | Error |
int xpdw_rel_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for object relation widgets. PDW access: Check if the origin principal of the parent record is visible from the current selected principal.
The entity specific configuration parameters are grouped under configuration rubric EDB-PDW-ENT-n with n representing a sequence number for the entities under PDW control (e.g. EDB-PDW-ENT-2 / EDB-PDW-CHK-OBJ-ACC-ENT-2 represent the settings for entity EDB-ARTICLE).
If configuration parameter EDB-PDW-CHK-OBJ-ACC-ENT-n for the parent entity has value "no" the PDW access check is skipped.
If configuration parameter EDB-PDW-CHK-OBJ-BY-EDB has value "yes" the PDW access is skipped here but done by xedb_rel_eda. Depending on the value of default EDB_REL_ACT_INS the following access checks are done: Check for access by LogiView decision table EP/Insert_Str. If access is denied then check for "w"rite access to parent record. If access is still denied then check for PDW access to parent record (when EDB-PDW-CHK-OBJ-ACC-ENT-n for parent entity has value "yes").
This userexit deals with the following actions:
'I'nsert | Checks for PDW access to parent record. |
---|---|
'C'opy | Checks for PDW access to parent record. |
'U'pdate | Checks for PDW access to parent record. |
cpParameter | Standard parameter defining working mode and current row. |
cpArguments | Additional userexit parameters. Currently none. |
0 | OK |
---|---|
Else | Error |
public edit-action
int xprm_chk_task_a | ( | const char * | param1, |
const char * | param2 | ||
) |
Action 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 xproje_action | ( | ) |
Edit-action userexit for project masks.
Calls xedb_eda
with the given argument string, or with /FIELD_TYPE=ENTITY
, when no argument string is provided.
cp_Par | Standard parameter defining working mode and current row. |
cp_Arguments | Any parameters to pass to xedb_eda . If an empty string is provided, the parameter for xedb_eda defaults to /FIELD_TYPE=ENTITY . |
0 | OK |
---|---|
Else | Return code of xedb_eda . |
int xprost_action | ( | ) |
Edit-action userexit for project structures.
This userexit covers the following actions:
xedb_chk_ide_acc
. If access is granted, the field access for the field T_PRO_DAT.PROJ_ID
is set to "w" in 'I'nsert mode and to "r" in 'U'pdate mode. T_PRO_DAT.PROJ_ID
is set to 'w'. par | Standard parameter defining working mode and current row. |
0 | OK |
---|---|
1 | No write access on parent element or other error |
int xrel_edt_act | ( | ) |
Sets the field access (or post-field userexit).
cp_Parameter | Parameter of the calling function. |
0 | OK |
---|---|
<>0 | Error from edit-action userexit |
-1 | Repeated reference not defined |
-2 | Only records with the same reference could work |
-3 | OK from query |
int xsml_edt_action | ( | ) |
Edit-action userexit for type classification lists and forms (e.g.
SML1-L or SML1-F).
This userexit covers the following actions:
'I'nsert | Forbids the insert operation in classification forms. |
---|---|
'C'opy | Activates the field default values. |
par | Userexit context. |
cp_Arguments | Defines the fields for which the default value has to be set. Please see also xedb_put_dfv_eda. |
0 | OK |
---|---|
Else | Error |
int xsmldf_action | ( | ) |
Edit-action userexit for class definition mask.
This userexit covers the following actions:
'I'nsert | |
---|---|
'U'pdate | |
'C'opy | Checks if the user has 'w'rite access for the current class. If the user has no 'w'rite access, then an error message is displayed and the record cannot be edited. |
par | Userexit context. |
0 | OK |
---|---|
Else | Error, the current user has no 'w'rite access for the class. |
int xstare_eda | ( | ) |
Edit-action userexit for the vault definition mask.
Deletes the current menu from the screen, in insert mode.
cp_Parameter | standard parameter with working mode and current row |
cp_Arguments | none |
0 | OK |
---|---|
Else | Error |
int xstate_set_ini_lev | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit that sets the initial progress indicator for new and versionized objects. In insert and copy mode, sets the progress indicator to the initial progress indicator defined for the lifecycle of the current object. First, the default initial progress indicator is looked up. If no default initial progress indicator is found, the lowest initial progress indicator which is defined for new or versionized objects is taken. If no initial progress indicators are defined at all, the lowest progress indicator of the lifecycle is taken. Additionally, in this case, if the configuration parameter Entity-VER-LEV
(e.g. EDB-ARTICLE-VER-LEV
) is set to "RetainPhase", the lowest progress indicator within the current phase of the object is taken. Otherwise, the lowest progress indicator of the whole lifecycle is used.
The userexit uses the fully qualified fieldnames with the origin table to access the fields LEV_IND and CHK_NAME. This is necessary to ensure that the correct fields are used when the userexit is attached to a relation widget. For example, on the item BOM list, the userexit uses the fields T_MASTER_STR.LEV_IND and T_MASTER_STR.CHK_NAME, even if the corresponding fields of the child (T_MASTER_DAT.LEV_IND and T_MASTER_DAT.CHK_NAME) exist in the mask. If one of these fields is missing, the userexit silently returns and remains inactive.
usxContext | The userexit context. |
param | Reserved. |
0 | OK |
---|---|
Else | Error occurred. |
int xstate_set_lev_men | ( | const char * | param1, |
const char * | param2 | ||
) |
Creates a menu containing all defined progress indicators and attaches it to any number of fields. The edit mode in which the menu is attached to the fields can be defined by an additional parameter. The default behavior is to attach the menu to the field LEV_IND in all edit modes.
usxContext | The userexit context. | ||
param | Parameter to control the behavior of this userexit. Syntax like: "/FIELDS=field1[,field2[,...]][/UPDATE][/INSERT][/QUERY]" with possible arguments:
|
UPDATE
The menu is attached to the given fields in update mode.
INSERT
The menu is attached to the given fields in insert mode.
QUERY
The menu is attached to the given fields in query mode
If none of the parameters /UPDATE, /INSERT or /QUERY is given, the menu is attached to the field in any mode.
0 | OK |
---|---|
Else | Error occurred |
int xtask_chk_eda | ( | ) |
Checks for permission for a given privilege.
Can only be called as edit action userexit.
cpParameter | Standard parameter defining working mode and current row. |
cpArguments | Name of privilege to check |
0 | Permission granted |
---|---|
Else | Permission denied |
int xtrf_eda | ( | ) |
Clears the reference number field of transformation record in copy mode.
This userexit deals with the following actions:
'C'opy | Clears reference number field of transformation record. |
---|
cp_Parameter | Standard parameter with working mode and current row. |
0 | OK |
---|---|
1 | Error |
int xtxt_ins_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit checks if the main form is open.
cpParameter | Standard parameter with working mode and current row. |
cpArguments | Parameter to control the behavior of this function. Not currently used. |
0 | OK |
---|---|
Else | Error |
int xtxt_ins_sel_pre_edt | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit for Text-Instance-Editor which hides the fields, which do not matche to the selected Text-Template.
ctx | Field userexit context. |
param | Reserved parameter for the pre-field userexit. |
0 | Ok. |
---|---|
Else | Error |
int xtxt_tpl_eda | ( | const char * | param1, |
const char * | param2 | ||
) |
Checks if the main form is open.
cpParameter | Standard parameter with working mode and current row. |
cpArguments | Parameter to control the behavior of this function. Not currently used. |
0 | OK |
---|---|
Else | Error |
int xtyp_eda | ( | ) |
Edit-action userexit for type widget.
Calls the standard edit-action userexit xedb_eda
with the parameter /FIELD_TYPE=ENTITY
or the given argument string.
This userexit covers the following actions: || 'C'opy | Clear DataView's id attributes. ]
Using this trigger as edit-action trigger on a type widget ensures a 1:1 relation of master record and type record. Hence copying a type record doesn't assign the newly created type record to the same master record.
cp_Par | Standard parameter with working mode and current row. |
cp_Argument | Argument string to define for which field(s) the default value shall be set. Please refer to the userexit xedb_put_dfv_eda '. |
0 | OK |
---|---|
Else | return code of xedb_eda |
int xunit_action | ( | ) |
Deletes the active menu from the screen when it is in insert mode (parameter[0] = I).
cp_Parameter | action parameter |
0 | OK |
---|---|
Else | Error |
int xutil_cch_upd_mas_joi | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit action userexit, updates fields which depend on the mask join of the current mask.
This userexit deals with the following actions:
'I'nsert | Updates mask join dependent fields. |
---|---|
'C'opy | Updates mask join dependent fields. |
'U'pdate | Updates mask join dependent fields. |
context | Action userexit context. |
param | Reserved. |
0 | OK |
---|---|
1 | Error |
int xutil_chk_ins | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit-action userexit to limit the parallel inserts into a mask.
The userexit could be used to limit the parallelly inserted (copied) rows within the mask.
ctx | Action userexit context. | ||||||
param | Parameter to control the behavior of this function. Syntax is: "/COUNT=<count> [/MSG=<msg>]" With possible arguments:
|
0 | Insert allowed. |
---|---|
1 | No further insert is allowed at this time. |
int xutil_exec_sto_proc | ( | const char * | param1, |
const char * | param2 | ||
) |
Edit action userexit, executes a database stored procedure.
This trigger deals with the following actions:
'I'nsert | Executes stored procedure. |
---|---|
'C'opy | Executes stored procedure. |
'U'pdate | Executes stored procedure. |
'T'emporary delete | Executes stored procedure. |
'D'elete | Executes stored procedure. |
context | Userexit context |
param | Parameter to control the behavior of this function. Syntax like: "Name_of_stored_procedure" |
0 | Success |
---|---|
Else | Error |
int xutil_set_wdg_buf | ( | const char * | param1, |
const char * | param2 | ||
) |
Sets a key value pair into the widget buffer.
This userexit deals with all edit action types.
cpParameter | Action userexit context. | ||||||
cpArguments | Parameter to control the behavior of this function. Syntax is: "/NAME=<key_name> /VALUE=<key_value>" With possible arguments:
|
0 | OK |
---|
int xvar_edt_action | ( | ) |
Edit-action userexit to check the user access to the variant list.
This userexit covers the following actions:
'I'nsert | If the user does not have manager rights, then check 'w'rite access for the join table fields. |
---|---|
'C'opy | Check user manager right and the access to join fields. Set field default values. |
par | Userexit context. |
cp_Arguments | Userexit parameter to define field(s) in which the default value must be set. |
0 | OK |
---|---|
Else | Error |
int xvardf_vfl_act | ( | ) |
Edit-action userexit for variants (e.g.
mask EDB-ART-VAR-SLI or EDB-ART-VAR-SFR).
This userexit covers the following actions:
'I'nsert | |
---|---|
'U'pdate | |
'C'opy | Checks the user access to the variant record. |
cp_Parameter | Userexit context. |
cp_Arguments | Userexit parameter, reserved. |
0 | OK |
---|---|
Else | Error |
int zag_fld_put_dfv_eda | ( | ) |
Edit-action-USX to set the default values of some fields.
This userexit deals with the following actions:
'C'opy | Copy the defaults values for fields (depending on userexit parameter). |
---|
cp_Par | Standard parameter with working mode and current row. | ||||||||||||
cpArguments | Parameter to control the behavior of this function. Syntax like: "{/NAME=<fieldlist>] | /FIELD_TYPE={ALL_JOIN|ALL|ENTITY}}" With possible arguments:
|
0 | OK |
---|---|
1 | Error |