# Userexits

Functions

## Pre-Field userexits
[Field userexits]

### Functions
static int | dos_cch_skp_fld ()
| Calls the DataView userexit `cch_skp_fld` only in insert or update mode.
int | tol_pre_fld ()
| Pre-field userexit to calculate fields of the current mask.
int | xartst_pre_art_fld ()
| Pre-field userexit for item master field in the structure list.
int | xartst_pre_pid_fld ()
| Pre-field userexit for the project key field `PART_ID` in the item structure list.
int | xcls_chk_set_prf (const char *param, const char *ignore)
int | xcls_set_acc_fld (const char *param, const char *ignore)
int | xcnf_ord_cmp_prf (const char *param, const char *ignore)
int | xcnf_ord_edb_prd_dat_prf (const char *param, const char *ignore)
int | xcnf_ord_fam_id_prf (const char *param, const char *ignore)
int | xcnf_ord_mod_id_prf (const char *param, const char *ignore)
int | xcnf_ord_org_code_prf (const char *param, const char *ignore)
int | xcnf_ord_spc_set_vie_prf (const char *param, const char *ignore)
int | xcnf_ord_var_id_prf (const char *param, const char *ignore)
int | xcnf_spc_var_fin_prf (const char *param, const char *ignore)
int | xcnf_var_spc_fin_prf (const char *param, const char *ignore)
int | xcpa_step_int_id_prf (const char *param, const char *ignore)
int | xcps_alt_grp_prf (const char *param, const char *ignore)
int | xcps_cmp_fnc_prf (const char *param, const char *ignore)
int | xcps_elm_fnc_prf (const char *param, const char *ignore)
int | xcps_fld_nam_prf (const char *param, const char *ignore)
int | xcps_prl_set_cat_prf (const char *param, const char *ignore)
int | xcps_sol_ctx_prf (const char *param, const char *ignore)
int | xcps_vrf_apl_prf (const char *param, const char *ignore)
int | xdir_dts_sel_fil ()
| Opens directory manager with passed path.
int | xdocst_pre_did_fld ()
| Pre-field userexit for the document key field (`DOCUMENT_ID`) in the document structure list.
int | xdocst_pre_doc_fld ()
| Pre-field userexit for document master field in the structure list.
int | xedb_cch_fld_ins ()
| Pre-field userexit.
int | xknl_bom_set_uni_buf (const char *param, const char *ignore)
int | xknl_itm_grp_uni_men (const char *param, const char *ignore)
int | xknl_itm_uni_con_men (const char *param, const char *ignore)
int | xknl_itm_uni_men (const char *param, const char *ignore)
int | xknl_itr_uni_men (const char *param, const char *ignore)
int | xpac_mul_pre_fld ()
| Pre-Field-Trigger to insert into the multi list.
int | xprost_pre_pid_fld ()
| Pre-field userexit for the project key field `PROJ_ID` in the project structure list.
int | xprost_pre_pro_fld ()
| Pre-field userexit for project master field in the structure list.
int | xstate_cre_lev_men (const char *param, const char *ignore)
int | xstate_cre_uni_men (const char *param, const char *ignore)
int | xstr_pre_chk_fld (const char *param, const char *ignore)
int | xtxt_fin_prf (const char *param, const char *ignore)
int | xtxt_ins_pli_prf (const char *param, const char *ignore)
int | xtxt_pli_acc_prf (const char *param, const char *ignore)
int | xtxt_prf_set_chk_fld (const char *param, const char *ignore)
int | xtxt_set_fld_acc_prf (const char *param, const char *ignore)
int | xtxt_tpl_roa_prf (const char *param, const char *ignore)
int | xutil_acc_fld (const char *param, const char *ignore)
int | xutil_ent_vie_men_prf (const char *param, const char *ignore)
int | zag_fld_cch_fld_ins ()
| Pre-field userexit which sets the entered field to WRITE-MUST mode for insert operations.
int | zag_mas_fld_fat_cpy ()
| Copies value of parent widget field in current field.

### Function Documentation

static int dos_cch_skp_fld | ( | ) | `[static]`

Calls the DataView userexit `cch_skp_fld` only in insert or update mode.

This userexit skips the current field if the mask is in insert or update mode, whereas `cch_skp_fld` ignores the mask mode and always skips the field when the tabulator key is used to navigate through the mask fields.

Parameters:

  cpPar | Reserved
  cpIgn | Reserved

Returns:

  0 | OK

int tol_pre_fld | ( | ) |

Pre-field userexit to calculate fields of the current mask.

Returns:

  0 | OK
  Else | Error

This userexit might be used to realize functions similar to that of a simple spread sheet system.

int xartst_pre_art_fld | ( | ) |

Pre-field userexit for item master field in the structure list.

Sets the field access of the current field to 'm'andatory if field PART_ID in the structure list is empty and work mode is 'I'nsert. Else field access to current field is set to 'r'ead.

Returns:

  0 | OK
  1 | No field is active

Deprecated:

int xartst_pre_pid_fld | ( | ) |

Pre-field userexit for the project key field `PART_ID` in the item structure list.

The field access for the field `PART_ID` is set, depending on the current work mode:

- 'I'nsert: The field access is set to 'm'andatory. If position type (C_POS_TYPE) has value 'T'ext position, then the access is set to 'r'ead.
- Otherwise, the field access is set to 'r'ead.

Returns:

  0 | OK
  1 | No field is active

int xcls_chk_set_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for attribute set field (T_ATT_SET_DAT.SET_ID) in class attributes mask.

Checks if an attribute is already assigned before a set is assigned to the class.

Parameters:

  cpArguments | Reserved userexit parameter, not used yet.

Returns:

  0 | Success |  | Else | Error

int xcls_set_acc_fld | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for class entity type field (T_GROUP_DAT.ENTNAM) in class form.

Enables updating the class entity if the class allows it. Checks in update mode if the superclass has no subclasses, superclasses, assigned objects (e.g. items in the classification list) or product components. If there are no entries, then the field access is set to 'w'rite, otherwise the field access is set to 'r'ead.

Parameters:

  context | Pre-field userexit context
  Reserved | parameter, not used yet

Returns:

  0 | Success |  | Else | Error

int xcnf_ord_cmp_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for field V_CPS_CMP_ELM.EDB_NAME in configuration order widgets.

The userexit creates a field select menu for assigning a valid module.

Parameters:

  param | Standard parameter (reserved).

Returns:

  0 | OK
  1 | Error

int xcnf_ord_edb_prd_dat_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for order field T_ORD_DAT.EDB_PROD_DATE in configuration order widgets.

This userexit is used on the field T_ORD_DAT.EDB_PROD_DATE to set the access of the field to read only when the version view production is not set.

Parameters:

  param | Pre-field userexit parameter, (reserved)

Returns:

  0 | OK
  1 | Error

int xcnf_ord_fam_id_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for field V_CNF_GRP_VAR.EDB_FAMILY_ID in configuration order widgets.

This userexit is used on the field V_CNF_GRP_VAR.EDB_FAMILY_ID to call the function xlut_set_men_prf(). The parameter /QueryMask and /Columns (for a description please refer to the xlut function) could be set, the default value is: /Columns=EDB_FAMILY_ID,EDB_ORG_CODE /QueryMask default mask of entity EDB-PRODUCT-FAMILY

Parameters:

  param | Parameter to control the behavior of this function. Syntax is: "param /Columns=<column list> /QueryMask=<mask name>" With possible arguments:
  | param | Main argument.
  Columns | column list | Defines which columns of the LUT widget shall be copied to the menu. If omitted, all columns of the LUT widget are used to create the menu entries.
  QueryMask | mask name | Defines a widget to be opened for LUT entries. The default list of the LUT entity is used if /QueryMask is not set. The widget has to contain the primary key of the LUT.

Returns:

  0 | OK
  1 | Error

int xcnf_ord_mod_id_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for order field V_CNF_VAR_MOD.EDB_MODEL_ID in configuration order widgets.

This userexit is used on the field V_CNF_VAR_MOD.EDB_MODEL_ID to call the function xlut_set_men_prf(). The parameter /QueryMask and /Columns (for a description please refer to the xlut function) can be set, the default is: /Columns==EDB_MODEL_ID,EDB_ORG_CODE /QueryMask default mask of entity EDB-CNF-FAM-VAR-MOD

Parameters:

  param | Parameter to control the behavior of this function. Syntax is: "param /Columns=<column list> /QueryMask=<mask name>" With possible arguments:
  | param | Main argument.
  Columns | column list | Defines which columns of the LUT widget shall be copied to the menu. If omitted, all columns of the LUT widget are used to create the menu entries.
  QueryMask | mask name | Defines a widget to be opened for LUT entries. The default list of the LUT entity is used if /QueryMask is not set. The widget has to contain the primary key of the LUT.

Returns:

  0 | OK
  1 | Error

See also:
  xlut Field userexits userexits.

int xcnf_ord_org_code_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for field V_CNF_GRP_VAR.EDB_ORG_CODE in configuration order widgets.

This userexit is used on the field V_CNF_GRP_VAR.EDB_ORG_CODE to call the function xlut_set_men_prf(). The parameter /QueryMask and /Columns (description see at the xlut function) can be set. When nothing is set the default is: /Columns=STEP_INT_ID,S_COMPANY /QueryMask=EDB-CPA-ORG-SLI

Parameters:

  param | Parameter to control the behavior of this function. Syntax is: "param /Columns=<column list> /QueryMask=<mask name>" With possible arguments:
  | param | Main argument.
  Columns | column list | defines which columns of the LUT widget shall be copied to the menu. If omitted all columns of the LUT widget are used to create the menu entries.
  QueryMask | mask name | defines a widget to be opened for LUT entries. The default list of the LUT entity is used if /QueryMask is not set. The widget has to contain the primary key of the LUT.

Returns:

  0 | OK
  1 | Error

int xcnf_ord_spc_set_vie_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Post-Mask userexit for the family module selector.

Parameters:

  param | Standard userexit parameter (reserved).

Returns:

  0 | OK
  1 | Error

int xcnf_ord_var_id_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for order field V_CNF_GRP_VAR.EDB_VARIANT_ID in configuration order widgets.

This userexit is used on the field V_CNF_GRP_VAR.EDB_VARIANT_ID to call the function xlut_set_men_prf(). The parameter /QueryMask and /Columns (for a description please refer to the xlut function) can be set. When nothing is, the default is: /Columns==EDB_VARIANT_ID,EDB_ORG_CODE /QueryMask default mask of entity EDB-PRODUCT-VARIANT

Parameters:

  param | Parameter to control the behavior of this function. Syntax is: "param /Columns=<column list> /QueryMask=<mask name>" With possible arguments:
  | param | Main argument.
  Columns | column list | Defines which columns of the LUT widget shall be copied to the menu. If omitted, all columns of the LUT widget are used to create the menu entries.
  QueryMask | mask name | Defines a widget to be opened for LUT entries. The default list of the LUT entity is used if /QueryMask is not set. The widget has to contain the primary key of the LUT.

Returns:

  0 | OK
  1 | Error

int xcnf_spc_var_fin_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for specification product variant select widgets.

Parameters:

  param | Standard userexit parameter (reserved).

Returns:

  0 | OK
  1 | Error

int xcnf_var_spc_fin_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for product var specification select widget.

Parameters:

  param | Standard userexit parameter (reserved).

Returns:

  0 | OK
  1 | Error

int xcpa_step_int_id_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for field T_ORG_DAT.STEP_INT_ID.

This Pre-field userexit can only be called on the field T_ORG_DAT.STEP_INT_ID for Cooperation Partners widgets otherwise you get an error message. This userexit checks if a reference exists with the current field value. When a reference exists the field access will be set to read only. When no reference exists and anybody makes a reference during the update of this record this will be checked in the Pre-action userexit xcpa_pra().

'U'pdate | Checks if the current value of the cooperation partner code (T_ORG_DAT.STEP_INT_ID) already exists in the database.

Parameters:

  param | Additional argument string (reserved).

Returns:

  0 | OK
  1 | No constraint found.
  2 | Record with value already exist.
  3 | Cannot read field value.
  4 | Wrong Post-field userexit on current field.

int xcps_alt_grp_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for product field in variant mask (modular BOM solutions).

Creates product variant field menu. The variant informations are cached for performance.

Parameters:

  context | Field userexit context
  param | Reserved

Returns:

  0 | OK
  Else | Error

int xcps_cmp_fnc_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit to switch the select widget for the selection of product components.

There are two lists: One shows all components (EDB-CPS-CMP-N-SLI) and the other shows only those components which have a specific function (EDB-CPS-CMP-FNC-SLI). The userexit switches the select widget to select a product component for a structure position between a widget which displays all product components and a widget which displays only those product components which have the preselected function.

Parameters:

  context | Field userexit context
  param | Reserved

Returns:

  0 | OK
  Else | Error

int xcps_elm_fnc_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit to create the select menu for product structure element.

Creates the function-select-menu for a product structure element. In the menu all functions are listed which are assigned to the selected product component.
Internally xlut_set_men_prf is called.
By default the menu contains values of T_CPS_FNC_DAT.EDB_NAME. You can use other columns of T_CPS_FNC_DAT using parameter "/Columns".

Parameters:

  context | Field userexit context
  param | Parameter to control the behavior of this function. Syntax like: "[/Columns=Column[,Column]*]" With possible arguments:
  Columns | fields | Comma separated list of T_CPS_FNC_DAT fields

Returns:

  0 | Ok
  EDB_CPS_INTERNAL | No widget
  EDB_CPS_NO_ACT_ROW | No current row

int xcps_fld_nam_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for filter attributes field in filter sublist.

Creates a menu for the field T_CPS_FLT_DAT.EDB_ATT_REF in the filter sublist of the "Module" form. The menu contains all visible item field names and the attribute field names from the classification assigned to the product component.

Parameters:

  context | Field userexit context
  param | Reserved

Returns:

  0 | OK
  Else | Error

int xcps_prl_set_cat_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for parallel structure widgets for T_TXT_TPL_DAT.EDB_TPL_ID.

If T_CPS_PRL_DAT.EDB_VIEW is empty then the user is asked to first select the view and then set widgetbuffer for key "CATEGORY" to "##" and the field access of the current field to 'r'. If T_CPS_PRL_DAT.EDB_VIEW has a value set, then set the field access of the current field to 'w' and put the value of T_CPS_VIE_LUT.EDB_KEY as value in widgetbuffer for key "CATEGORY".

Parameters:

  context | Field userexit context
  param | Reserved

Returns:

  0 | OK

int xcps_sol_ctx_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for solution masks.

Stores the solution context information into the object buffer of the widget. The buffer object is not accessible from LogiView or C!

Parameters:

  context | Field userexit context
  param | Reserved

Returns:

  0 | OK
  Else | Error

int xcps_vrf_apl_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for item widgets.

Sets the field access for field T_MASTER_DAT.CPS_APPLY_CPS (Verify flag). The verify structure flag value can be changed if the value is false or if it is true and no product component is verified yet.

Parameters:

  context | Field userexit context
  param | Reserved

Returns:

  0 | Ok
  Else | Error

int xdir_dts_sel_fil | ( | ) |

Opens directory manager with passed path.

User may choose a file (or cancel this function). Name (and path) of selected file will be inserted into the passed field(s).

Note:
  Userexit to be called by LogiView in edit mode.

Parameters:

  cp_par | Parameter to control the behavior of this function. Syntax like: "dirArg fldName [pathName]" With possible arguments:
  | dirArg | Argument for directory manager.
  | fldName | Name of field with filename.
  | pathName | Name of field with path.

Returns:

  0 | OK
  1 | Error

Example:

        // working example (Line in LGV procedure)
          RC = @xdir_dts_sel_fil("/tmp EDB-CENTRAL EDB-DIR-SLI", "T_DOC_DRW.FIL_NAM")
        // In this case the complete file name (including the path!)
        // will be inserted into the field "T_DOC_DRW.FIL_NAM".
        // If a third string is passed (e.g. "T_DOC_DRW.PATH") the
        // path will be inserted into this field, the filename itself
        // (without path!) into "T_DOC_DRW.FIL_NAM".

int xdocst_pre_did_fld | ( | ) |

Pre-field userexit for the document key field (`DOCUMENT_ID`) in the document structure list.

- In 'I'nsert mode, the field access is set to 'm'andatory.
- Otherwise, the field access is set to 'r'ead.

Returns:

  0 | OK
  1 | No active field

int xdocst_pre_doc_fld | ( | ) |

Pre-field userexit for document master field in the structure list.

Sets the field access of the current field to 'm'andatory if field DOCUMENT_ID in the structure list is empty and work mode is 'I'nsert. Else field access to current field is set to 'r'ead.

Returns:

  0 | OK
  1 | No field is active

Deprecated:

int xedb_cch_fld_ins | ( | ) |

Pre-field userexit.

Deprecated:
  Use zag_fld_cch_fld_ins instead.

Returns:

  0 | OK

See also:
  zag_fld_cch_fld_ins

int xknl_bom_set_uni_buf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Stores the current unit value (EDB_UNIT field) into the field buffer of the QUANTITY field.

Parameters:

  context | Field userexit context.
  param | Reserved parameter for the pre-field userexit.

Returns:

  0 | Ok.
  otherwise | Error

int xknl_itm_grp_uni_men | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-Field userexit to show a menu, which contains all units assigned to the item master.

Parameters:

  context | Context of the userexit
  param | Standard parameter with working mode and current row

Returns:

  0 | OK
  1 | Error

int xknl_itm_uni_con_men | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-Field userexit to show basic units menu concerning an item master restricted by the not already assigned units.

Parameters:

  context | Context of the userexit
  param | Standard parameter with working mode and current row

Returns:

  0 | OK
  1 | Error

int xknl_itm_uni_men | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-Field userexit to show the basic units menu containing all existing units.

Parameters:

  context | Context of the userexit
  param | Standard parameter with working mode and current row

Returns:

  0 | OK
  1 | Error

int xknl_itr_uni_men | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-Field userexit to show a menu, which contains all units assigned to the related item master.

If there is no Item-Master related (create a new Item-Revision), then all existing units can be selected.

Parameters:

  context | Context of the userexit
  param | Standard parameter with working mode and current row

Returns:

  0 | OK
  Else | Error (in pre field userexit of current field (if exist.))

int xpac_mul_pre_fld | ( | ) |

Pre-Field-Trigger to insert into the multi list.

Calls the userexit tools to select a record.

Returns:

  0 | OK
  1 | Error

int xprost_pre_pid_fld | ( | ) |

Pre-field userexit for the project key field `PROJ_ID` in the project structure list.

The field access for the field `PROJ_ID` is set, depending on the current work mode:

- 'I'nsert: The field access is set to 'm'andatory.
- Otherwise, the field access is set to 'r'ead.

Returns:

  0 | OK
  1 | No field is active

int xprost_pre_pro_fld | ( | ) |

Pre-field userexit for project master field in the structure list.

Sets the field access of the current field to 'm'andatory if field PROJ_ID in the structure list is empty and work mode is 'I'nsert. Else field access to current field is set to 'r'ead.

Returns:

  0 | OK
  1 | No field is active

Deprecated:

int xstate_cre_lev_men | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Creates a menu containing possible progress indicators.

This menu contains all progress indicators which are valid for the currently selected lifecycle and the operation which is executed (create or versionize). If the initial progress indicators are defined for the currently selected lifecycle and the operation, those will be used. Otherwise all progress indicators of the life cycle are added to the menu.

Remarks:
  This userexit does not work in the query mode because the field userexits are not executed by DataView in query mode. To attach the menu (with all defined states) in the query mode, the userexit `xstate_set_lev_men` must be attached to the mask as edit-action userexit.

Parameters:

  usxContext | The userexit context.
  param | Reserved.

Returns:

  0 | OK
  Else | Error occurred.

See also:
  xstate_set_lev_men

int xstate_cre_uni_men | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for T_MASTER_STR.EDB_UNIT.

Shows specific units for the BOM-Position.

Parameters:

  context | Field userexit context.
  param | Reserved parameter for the pre-field userexit.

Returns:

  0 | Ok.
  Else | Error

int xstr_pre_chk_fld | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit for the field '[tablename].CHK_NAME' on relation records.

Dependent on the state the access to the current field is set:

- to 'm' in insert mode
- to 'm' in update mode if access is deleted
- to 'r' in all other cases.

Parameters:

  usxContext | The userexit context.
  param | Reserved.

Returns:

  0 | OK
  Else | Error occurred.

int xtxt_fin_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field to store the category, constraint-field, text-field and field-value in the buffer.

Parameters:

  ctx | Context of the userexit
  param | Parameter to control the behavior of this function. Syntax is: "/CATEGORY=<cat1 | cat2 | cat3 ...> /ID=<contstraint field> /TEXT=<text field>" With possible arguments:
  CATEGORY | cat1 | cat2 | cat3 ... | Names of the categories separated by ' | ' which should be stored in the widget-buffer
  ID | constraint-field | Name of the field, in which the EDB_ID of the related object is copied.
  TEXT | ctext-field | Name of the field, in which the text of the related object is copied.

Returns:

  0 | OK
  Else | Error

int xtxt_ins_pli_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Sets the category filter that should be used.

Parameters:

  cpArguments | Parameter to control the behavior of this function. Syntax is: "[/CATEGORY=[cat1][ | cat2]*]" With possible arguments:
  CATEGORY | cat1 | cat2 | ... | The category/categories, used as a filter.
  | - | If category parameter is empty, the categories of the corresponding text template will be used.

Returns:

  0 | OK
  Else | Error

int xtxt_pli_acc_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Post-field userexit which sets the field access of T_TXT_DUM_PLH.EDB_TXT_PLH_[x].

Sets the field acces of the current field to read only, if the current field is multi-lingual, and the current field is not the field of the current language, and the entry-type of the field is I(nteger), or F(loat), or L(ogical)

Parameters:

  ctx | The post-action uerexit context.
  param | The userexit parameters. Parameter to control the behaviour of this function. Syntax like: "[/FIELDID=x]" x defines the constraint-(id) of the fields

Returns:

  0 | OK
  Else | Error

int xtxt_prf_set_chk_fld | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Set the check string for current field.

Software GmbH

Parameters:

  cpParameter |
  cpArguments | not used

Returns:

  0 | OK
  Else | Error

int xtxt_set_fld_acc_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit to check if a template reference is assigned to that record.

Note:
  By default the reference field name is "EDB_TEMPLATE_REF" but the name could be passed as argument /REF=xxx. If a reference is assigned, the field is set to Read-Only mode.

Parameters:

  cpParameter | Standard parameter with working mode and current row.
  cpArguments | Parameter to control the behavior of this function. Syntax is: "<arg> /REF=<ref>" With possible arguments:
  REF | ref | Name of field that should be cleared.
  | - | By default, the field "EDB_TXT_TEMPLATE_REF" will be used.

Returns:

  0 | OK
  Else | Error

References: xtxt_set_fld_acc_pof

int xtxt_tpl_roa_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Sets the active field to read-only.

Parameters:

  cpParameter | Standard parameter defining working mode and current row.
  cpArguments | Parameter to control the behavior of this function. Not currently used.

Returns:

  0 | always OK

int xutil_acc_fld | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Sets access for any mask field.

Note:
  If mode is 'm' then it must be combined with xutil_acc_pra.

Parameters:

  context | Userexit context
  cpParameter | Parameter to control the behavior of this function. Syntax like: "[m|w|r] " With possible arguments:
  m | Set field access to 'm'andatory.
  w | Set field access to 'w'rite.
  r | Set field access to 'r'ead.

Returns:

  0 | Success
  Else | Error

See also:
  xutil_acc_pra

int xutil_ent_vie_men_prf | ( | const char * | param,
|  | const char * | ignore
| ) |  |

Pre-field userexit, creates entity2, view or type field menu in a relation mask.

If the entity1 field is filled and "/EN2_FLD" parameter is NOT given, then the entity 2 menu is created with all possible entity2 names for the entity1 and view.
Pre-field userexit for view field to create a view menu: : If entity1 and entity2 field are filled and "/EN2_FLD" parameter is given, then the view field menu is created.
Pre-field userexit for view field to create a type menu: If entity1 is filled and entity2 field is empty but "/EN2_FLD" parameter is given, then the view field menu is created.

Parameters:

  context | Userexit context
  param | Parameter to control the behavior of this function. Syntax like: "/EN1_FLD=fieldname [/EN2_FLD=fieldname] /MENU=menuname" With possible arguments:
  EN1_FLD | fieldname | Name of the field containing the name of entity1.
  EN2_FLD | fieldname | Name of the field containing the entity2 name. |  | MENU | menuname | Name of the menu to be created.

Returns:

  0 | Success
  Else | Error

int zag_fld_cch_fld_ins | ( | ) |

Pre-field userexit which sets the entered field to WRITE-MUST mode for insert operations.

This userexit is used together with cch_get_rec() when the associated field is write protected due to the denial of editing master fields in the relation list.

Returns:

  0 | OK

See also:
  xedb_cch_fld_ins

References:
  This function was derived from xedb_cch_fld_ins and extended for update mode.

int zag_mas_fld_fat_cpy | ( | ) |

Copies value of parent widget field in current field.

Parameters:

  cp_Par | Parameter to control the behavior of this function. Syntax like: "/FLD_SOUR_FAT=source_field /FLD_DEST=dest_field With possible arguments:
  FLD_SOUR_FAT | source_field | Name of source field.
  FLD_DEST | dest_field | Name of destination field.

Returns:

  0 | OK
  1 | Error

Copyright © 2007-2012, Oracle and/or its affiliates.