Functions | |
int | edb_ief_calc_pos_pof () |
Calculates the end position of the field from the start position and the EDB field position. | |
int | tol_post_fld () |
Post-field userexit to calculate fields of the current mask. | |
int | tpr_lpad_pof () |
Post-field userexit for fields of type string (character) that right-justifies char fields by inserting leading blanks. | |
int | xatt_calc_formula () |
calculates a formula within within the classification list. | |
int | xatt_wid_pof () |
| |
int | xchg_set_def_ewo (const char *param, const char *ignore) |
| |
int | xchg_set_def_ews (const char *param, const char *ignore) |
| |
int | xcls_chk_set_pof (const char *param, const char *ignore) |
| |
int | xcls_chk_typ_pof (const char *param, const char *ignore) |
| |
int | xcls_clr_set_pof (const char *param, const char *ignore) |
| |
int | xcnf_cps_rul_srt_pof (const char *param, const char *ignore) |
| |
int | xcnf_ord_cmp_pof (const char *param, const char *ignore) |
| |
int | xcnf_ord_edb_prd_dat_pof (const char *param, const char *ignore) |
| |
int | xcnf_ord_edb_vie_pof (const char *param, const char *ignore) |
| |
int | xcnf_ord_fam_id_pof (const char *param, const char *ignore) |
| |
int | xcnf_ord_mod_id_pof (const char *param, const char *ignore) |
| |
int | xcnf_ord_org_code_pof (const char *param, const char *ignore) |
| |
int | xcnf_ord_spc_rst_vie_pof (const char *param, const char *ignore) |
| |
int | xcnf_ord_var_id_pof (const char *param, const char *ignore) |
| |
int | xcnf_spc_chk_chr (const char *param, const char *ignore) |
| |
int | xcpa_step_int_id_pof (const char *param, const char *ignore) |
| |
int | xcps_alt_grp_pof (const char *param, const char *ignore) |
| |
int | xcps_alt_typ_pof (const char *param, const char *ignore) |
| |
int | xcps_elm_fnc_pof (const char *param, const char *ignore) |
| |
int | xcps_elm_pos_typ_pof (const char *param, const char *ignore) |
| |
int | xcps_flt_nam_pof (const char *param, const char *ignore) |
| |
int | xcps_flt_val_pof (const char *param, const char *ignore) |
| |
int | xcps_prd_sel_rec_pof (const char *param, const char *ignore) |
| |
int | xcps_prl_chk_fld_pof (const char *param, const char *ignore) |
| |
int | xcps_sol_prd_pof (const char *param, const char *ignore) |
| |
int | xcps_sol_upd_id (const char *param, const char *ignore) |
| |
int | xctx_set_ctx (const char *param, const char *ignore) |
| |
int | xdalobj_dlg_sel_rec_pof (const char *param, const char *ignore) |
| |
int | xdfv_lng_pof (const char *param, const char *ignore) |
| |
int | xdfv_set_val_pof (const char *param, const char *ignore) |
| |
int | xedb_agg_max_pnr () |
Determines a new position number for the current relation in aggregate widgets. | |
int | xedb_cch_get_rec () |
Post-field userexit. | |
int | xedb_get_rec () |
Post-field userexit to search all master records for the current field content when creating a new record in a relation list. | |
int | xedb_rpl_id_pof () |
Post-field userexit for the ID field in structure widgets. | |
int | xedb_vie_set_prd () |
Sets internal CRM variables. | |
int | xewm_pac_pst_fld () |
Postfield userexit at the field T_PAC_DAT.PAC_ID. | |
int | xknl_bom_uni_ich (const char *param, const char *ignore) |
| |
int | xknl_chk_itr_uni_chg (const char *param, const char *ignore) |
| |
int | xknl_set_def_uni (const char *param, const char *ignore) |
| |
int | xknl_set_qua_cal (const char *param, const char *ignore) |
| |
int | xknl_set_uni_des (const char *param, const char *ignore) |
| |
int | xpac_mul_pst_fld () |
Post-field userexit at the field C_PAC_LEVEL Checks if the first character of the field entry is valid for menu EDB-PAC-MUL-CHO-ENT. | |
int | xsmlc_fld () |
Post-field userexit for the class code field in ATC classification lists. | |
int | xstate_chk_usr_grp () |
Checks if user or group entry is correct (transition definition). | |
int | xstr_post_chk_fld (const char *param, const char *ignore) |
| |
int | xtask_chk_abs () |
Checks if inserted role is an abstract role. | |
int | xtxt_cpy_gls_ter (const char *param, const char *ignore) |
| |
int | xtxt_ctg_men_pof (const char *param, const char *ignore) |
| |
int | xtxt_ine_plh_chk_pof (const char *param, const char *ignore) |
| |
int | xtxt_ins_fin_pof (const char *param, const char *ignore) |
| |
int | xtxt_ins_plh_chk_pof (const char *param, const char *ignore) |
| |
int | xtxt_ins_plh_pof (const char *param, const char *ignore) |
| |
int | xtxt_ins_tmp_nam_pof (const char *param, const char *ignore) |
| |
int | xtxt_pos_typ_pof (const char *param, const char *ignore) |
| |
int | xtxt_set_fld_acc_pof (const char *param, const char *ignore) |
| |
int | xtxt_tpl_plh_pof (const char *param, const char *ignore) |
| |
int | xutil_chk_typ_pof (const char *param, const char *ignore) |
| |
int | xutil_upd_cns_fld (const char *param, const char *ignore) |
| |
int | zag_dat_cpl_dat_pof () |
Completes data value in current field based on passed MIN/MAX arguments. | |
int | zag_dat_cpl_tim_pof () |
Completes time value in current field. | |
int | zag_fld_cch_get_rec () |
Post-field userexit to search all master records for the current field content when creating a new record in a relation list. | |
int | zag_fld_clr_cns () |
Deletes reference field values from constraint if user clears field manually. |
int edb_ief_calc_pos_pof | ( | ) |
Calculates the end position of the field from the start position and the EDB field position.
0 | OK |
---|
int tol_post_fld | ( | ) |
Post-field userexit to calculate fields of the current mask.
This userexit might be used to realize functions similar to that of a simple spread sheet system.
int tpr_lpad_pof | ( | ) |
Post-field userexit for fields of type string (character) that right-justifies char fields by inserting leading blanks.
0 | OK |
---|---|
Else | Error |
int xatt_calc_formula | ( | ) |
calculates a formula within within the classification list.
This function calculates the value of an attribute with a formula within the classification list. The formula is composed of operands and operators. Operand can be any integer or float number or an attribute id (EDB_ID column) put between {}, for example {324} Operator:
- add '+' |
---|
- subtract '-' |
- multiply '*' |
- divide '/' |
cpPar | Attribute id and formula separated by blank |
string)
Define formula for an attribute value in attribute pool. Then you can choose the formula from attribute menu for this attribute in classification list, the result is calculated and writen in the attribute field. e.g. {23}*200 means attribute with EDB_ID=23 will be multiplied by 200 e.g. {1}+{2} means attribute with id 1 (field name is C_1) plus attribute with id
0 | Ok. |
---|---|
-1 | Error |
int xatt_wid_pof | ( | ) |
This userexit deals with the following actions:
'I'nsert 'C'opy or 'U'pdate | Checks if the visible width is greater than the maximal width of the attribute |
---|
E.g. if the attribute is defined with the field type S20 then the attribute width is not allowed to be greater than 20.
param | - Reserved parameter, not used yet. |
0 | OK |
---|---|
1 | visible attribute width is greater than absolute attribute width |
int xchg_set_def_ewo | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit to set the default Work Order for subsequent change operations.
This userexit reads the value of the Work Order's EDB_ID attribute from the currently active mask. It then sets the default EDB-CHG-CUR-EWO to this value and the default EDB-CHG-CUR-EWO-ELEMID to the Work Order's ELEM_ID attribute value (the ELEM_ID is visible in the GUI).
Setting the default Work Order resets the default change operation automatically if the default Work Order does not match the current one.
If a single non-released Work Set is assigned to the Work Order, this Work Set will be used as default Work Set as well. Otherwise the default Work Set will be reset.
context | The field context of the userexit |
param | Reserved |
0 | OK |
---|---|
Else | Error |
int xchg_set_def_ews | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit to set the default Work Set for subsequent change operations.
This userexit reads the value of the Work Set's POS_NO attribute and the value of the Work Order's EDB_ID attribute from the currently active mask. It then determines the corresponding EDB_ID of the Work Set via EPQ and updates the Work Set's EBD_ID mask field accordingly. Finally the default EDB-CHG-CUR-SET is set to the Work Set's EDB_ID value and the default EDB-CHG-CUR-SET-POSNO is set to the Work Set's POS_NO value (the POS_NO is visible in the GUI).
If the Work Set's POS_NO field has no write access, the userexits does neither write to any field nor does it set the default Work Set.
context | The field context of the userexit |
param | Reserved |
0 | OK |
---|---|
Else | Error |
int xcls_chk_set_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for attribute set field in class attributes mask.
Checks if the given primary attribute set is valid and if the attribute is assigned to this set. It also writes the corespondent set id into the set reference field.
cpArguments | userexit parameter, not yet used. |
0 | Success | Else | Error |
---|
cpArguments | Reserved userexit parameter, not used yet. |
0 | Success | Else | Error |
---|
int xcls_chk_typ_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post -field userexit for T_GRP_CLA.C_CHK_TYP in the class attribute refine list.
It prohibits the 'M' type for logic attributes.
cpArguments | Reserved userexit parameter, not used yet. |
0 | Success | Else | Error |
---|
int xcls_clr_set_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for the field T_CLA_DAT.C_TITLE in the class attribute refine list to clear the attribute set reference.
cpArguments | Reserved userexit parameter, not yet used. |
0 | Success | Else | Error |
---|
int xcnf_cps_rul_srt_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for rule field EDB_RULE_SHORT.
This userexit is used on the field T_CPS_RUL_DAT.EDB_RULE_SHORT to check the syntax of the rule when the field is modified. When the syntax is wrong, a message is displayed.
param | Post-field userexit parameter ,(reserved). |
0 | OK |
---|---|
1 | Rule syntax error |
int xcnf_ord_cmp_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for selecting component.
param | Standard parameter (reserved). |
0 | OK |
---|---|
1 | Error |
int xcnf_ord_edb_prd_dat_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-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 "write" if the field T_ORD_DAT.EDB_VIEW was set to production view.
param | Post-field userexit parameter, (reserved). |
0 | OK |
---|---|
1 | Error |
int xcnf_ord_edb_vie_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for the field T_ORD_DAT.EDB_VIEW in configuration order widgets.
This userexit is used on the field T_ORD_DAT.EDB_VIEW to clear the content of the field T_ORD_DAT.EDB_PROD_DATE when the version view is development or set the current date when the version view is production.
param | Standard userexit parameter (reserved). |
0 | OK |
---|---|
1 | Error |
int xcnf_ord_fam_id_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-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 clear the content of the next field(s) when changing the content of the current field.
When changing the content of V_CNF_GRP_VAR.EDB_FAMILY_ID the content of the fields V_CNF_GRP_VAR.EDB_VARIANT_ID and V_CNF_VAR_MOD.EDB_MODEL_ID will be cleared.
param | Post-field userexit parameter (reserved). |
0 | OK |
---|---|
1 | Error |
int xcnf_ord_mod_id_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for 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_pof().
param | Post-field userexit parameter (reserved). |
0 | OK |
---|---|
1 | Error |
int xcnf_ord_org_code_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for order 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 clear the content of the next field(s) when changing the content of the current field. When changing the content of V_CNF_GRP_VAR.EDB_ORG_CODE the content of the fields V_CNF_GRP_VAR.EDB_FAMILY_ID, V_CNF_GRP_VAR.EDB_VARIANT_ID and V_CNF_VAR_MOD.EDB_MODEL_ID will be cleared.
param | Post-field userexit parameter, (reserved) |
0 | OK |
---|---|
1 | Error |
int xcnf_ord_spc_rst_vie_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Reset the view in the specification postfield usx the view which was set in the prefield usx setOrderViewPrf.
Resets the view in the specification post-field userexit which was set in the pre-field userexit xcnf_ord_spc_set_vie_prf.
param | Standard userexit parameter (reserved). |
0 | OK |
---|---|
1 | Error |
int xcnf_ord_var_id_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for 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 clear the contents of the next field(s) when changing the contents of the current field.
When changing the contents of V_CNF_GRP_VAR.EDB_VARIANT_ID the contents of the field V_CNF_VAR_MOD.EDB_MODEL_ID will be cleared.
param | Post-field userexit parameter (reserved). |
0 | OK |
---|---|
1 | Error |
int xcnf_spc_chk_chr | ( | const char * | param, |
const char * | ignore | ||
) |
This function is a listener for requests sent by the axalant process.
The following requests are defined so far:
Mod_REQUEST_START - axalant wants to start the module Mod_REQUEST_STOP - axalant wants to stop the module Mod_REQUEST_EXIT - axalant wants to terminate the module Mod_REQUEST_SHUTDOWN - axalant wants to terminate
If the module does not support on-demand termination, it may reject the EXIT requests (for example to keep its userexits alive).
If the function receives an unknown request, it should return Mod_ACCEPT_REQUEST to be compatible with future requests.
eRequest | request sent by the axalant process |
int xcpa_step_int_id_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for field T_ORG_DAT.STEP_INT_ID in Cooperation Partner widgets.
This Post-field userexit can only be called on the field T_ORG_DAT.STEP_INT_ID in the widgets for Cooperation Partner otherwise you get an error message. This userexit checks the current field value if exist already in the database after leaving the field. When inserting more than one field at the same time with the same value this will be checked in the Pre-action userexit xcpa_pra() before the record is stored in the database.
'I'nsert | Checks if the current value already exists in the database. |
---|---|
'U'pdate | Sets write access on the field T_ORG_DAT.STEP_INT_ID. |
param | Additional argument string (reserved). |
0 | OK |
---|---|
1 | Record with value already exist. |
public post-action
int xcps_alt_grp_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for product variant field in variant mask (modular BOM solutions).
Sets the correct SML_NUM for the selected product variant (T_GROUP_DAT.CLASS_CODE).
context | Field userexit context |
param | Reserved |
0 | OK |
---|---|
Else | Error |
int xcps_alt_typ_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for variant masks (modular BOM solutions).
Assigns the "EDB-NULL-ITEM" item to the variant if the EDB_POS_TYPE field value marks the variant as a text position.
context | Field userexit context |
param | Reserved |
0 | OK |
---|---|
Else | Error |
int xcps_elm_fnc_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit to check if field value is one of the menu values.
context | Field userexit context | |||
param | Parameter to control the behavior of this function. Syntax like: "[/Columns=Column[,Column]*]" With possible arguments:
|
0 | Ok |
---|---|
EDB_CPS_INTERNAL | No widget |
EDB_CPS_NO_ACT_ROW | No current row |
int xcps_elm_pos_typ_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for EDB_POS_TYPE to set access to dependent fields like EDB_UNIT.
If the position type is a text position then set the access "w" to UNIT and "m" to EDB_TXT_TEMPLATE_REF.
context | Field userexit context |
param | Reserved |
0 | Ok |
---|---|
Else | Error |
int xcps_flt_nam_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for the attribute name field in filter list.
Sets the mandatory fields if user inserted value directly instead of using field menu.
context | Field userexit context |
param | Reserved |
0 | OK |
---|---|
Else | Error |
int xcps_flt_val_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for the attribute value field in filter list.
Checks the value for data type fields and in update mode copies the current value of the attribute field to all other language fields of this attribute (this is used to simulate single language fields).
context | Field userexit context |
param | Reserved |
0 | OK |
---|---|
Else | Error |
int xcps_prd_sel_rec_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit to choose a product.
Searches the entered record in the specified entity (EDB-ARTICLE). If the record was found, the userexit updates the mask fields with the values of the found record, otherwise the userexit opens the select widget.
context | Field userexit context |
param | Reserved |
0 | OK |
---|---|
Else | Error |
int xcps_prl_chk_fld_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for parallel structure - product component widgets.
If widget buffer does not contain the key "v_name" then the current value of T_CPS_VIE_LUT. SHORT_TEXT is stored in the widget buffer else checks if the buffer value and row value for this field are different. If different then the buffer value is updated.
context | Field userexit context |
param | Reserved |
0 | OK |
---|---|
1 | Error |
int xcps_sol_prd_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for solution masks.
Updates the reference of the solution to the effectivity based object. The EDB_ID of the effectivity based object will be stored into the field EDB_EFF_REF of the solutiuon record. Creates the effectivity based object for the product if it does not exists.
context | Field userexit context |
param | Reserved |
0 | OK |
---|---|
Else | Error |
int xcps_sol_upd_id | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for solution masks.
Updates the EDB_ID of the object whose attribute has been changed. If a corresponding EDB_ID column exists in the mask, then get the EDB_ID value from database and write it into mask field.
context | Field userexit context | ||
param | Parameter to control the behavior of this function. Syntax is: "[/CLR]" With possible arguments:
|
0 | OK |
---|---|
Else | Error |
int xctx_set_ctx | ( | const char * | param, |
const char * | ignore | ||
) |
Menu userexit to set the currently effective context.
A module-static variable will be set to save the value of the context. Additionally the DataView default 'EDB-CTX' will be set to this value.
ctx | Menu userexit context. | ||
param | Parameter to control the behavior of this function. Syntax is: "<contextId>" With possible arguments:
|
0 | OK |
---|---|
Else | Error |
int xdalobj_dlg_sel_rec_pof | ( | const char * | param, |
const char * | ignore | ||
) |
The post-field to fill the corresponding fields of the found record.
The post-field userexit is similar to the userexit xdalobj_dlg_sel_rec(). The userexit uses the entered field content to find the matching record in the hidden selection mask. If no or more than one record matches the entered field content the userexit shows an error message and the selection mask is displayed. If the record was found, the userexit updates the fields in the edited mask with the values of this record.
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 xdfv_lng_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for system language field in setup mask.
If the field content has changed, a message is displayed to inform the user that the change is valid after restart.
ctx | Field userexit context. |
param | Reserved. |
0 | OK |
---|
int xdfv_set_val_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for setup forms to set the value of a default in the widget buffer.
The userexit xdfv_wri_def_val()
writes the values from the widget buffer into the corresponding defaults. If a menu for choosing the current field exists, the parameter of the matching menu entry is used to set the value for the default. If no field menu exists, the entered value itself will be set as default value.
This userexit must be defined as post-field userexit. It is not permitted to call this userexit from within another function (otherwise the existing values will not be displayed when opening the setup form).
ctx | Field userexit context. | |||
param | Parameter to control the behavior of this function. Syntax is: "DEFAULT_NAME:<typ>" With possible arguments:
|
0 | OK |
1 | Error |
Post-Field userexit: xdfv_set_val_pof BG_COLOR:I Field menu: Selection | Text | Parameter ----------|---------|---------- BGC_1 | Yellow | 1 BGC_2 | Green | 2 BGC_3 | Blue | 3
If "Green" has been entered (or chosen from the menu), 2 will be set as integer value for the default "BG_COLOR". <endcode>
int xedb_agg_max_pnr | ( | ) |
Determines a new position number for the current relation in aggregate widgets.
Post-field userexit for master field in aggregate lists to determine a new maximum position/sequence number for current relation.
cpParameter | Reserved. |
0 | OK |
---|---|
Else | Error |
int xedb_cch_get_rec | ( | ) |
Post-field userexit.
0 | OK |
---|
int xedb_get_rec | ( | ) |
Post-field userexit to search all master records for the current field content when creating a new record in a relation list.
When only one record was found, the data from the master record is written into the master fields of the relation record. Otherwise a selection menu is displayed. If no record was found, an error message is issued and the field cannot be quit. To quit the field you have to delete the field value.
0 | OK |
---|---|
Else | Return code of cch_get_rec. |
int xedb_rpl_id_pof | ( | ) |
Post-field userexit for the ID field in structure widgets.
Replaces in 'U'pdate mode a position in the structure with another master record chosen by the user. The configuration parameter 'Entity-RPL' must be set to value REPLACE_POS (for example 'EDB-ARTICLE-RPL' - value REPLACE_POS).
cp_IwfPar | Parameter to open aggregate list. Syntax like: "[<usx_par>]" With possible arguments:
|
0 | OK |
---|---|
1 | Error |
int xedb_vie_set_prd | ( | ) |
Sets internal CRM variables.
Post-field userexit to read the value of default EDB-VER-PROD and set the internal production date variable to this value.
cp_Arguments | Reserved. |
0 | Ok. |
---|
int xewm_pac_pst_fld | ( | ) |
Postfield userexit at the field T_PAC_DAT.PAC_ID.
If the content of the field is empty, the field XXX.PAC_REF has to be cleared.
0 | OK |
---|---|
else | Error |
int xknl_bom_uni_ich | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field for unit field.
Checks if the field value of EDB_UNIT has changed (dirty flag is set) and updates the field with the newly calculated quantity.
context | Field userexit context. |
param | Reserved parameter for the pre-field userexit. |
0 | Ok. |
---|---|
otherwise | Error |
int xknl_chk_itr_uni_chg | ( | const char * | param, |
const char * | ignore | ||
) |
Checks if the field UNIT of the BVB-ARTICLE has changed, and prints a message.
context | Context of the userexit |
param | Standard parameter with working mode and current row |
0 | OK |
---|---|
1 | Error (error in post field userexit of current field (if exist.)) |
int xknl_set_def_uni | ( | const char * | param, |
const char * | ignore | ||
) |
Sets the default unit of the item master in the Unit field.
context | Action userexit context |
param | The usual user defined userexit parameter. |
0 | Ok. |
---|---|
Else | Error |
int xknl_set_qua_cal | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for quantity field.
Checks if the field-value of QUANTITY_BOM has been changed (dirty flag is set) and updates the field value with the newly calculated nominal quantity.
context | Context of the userexit |
param | Standard parameter (reserved) |
0 | OK |
---|---|
Else | Error |
int xknl_set_uni_des | ( | const char * | param, |
const char * | ignore | ||
) |
Sets the description according to the unit.
context | Context of the userexit |
param | Standard parameter with working mode and current row |
0 | OK |
---|---|
Else | Error |
Sets the description according to the unit.
int xpac_mul_pst_fld | ( | ) |
Post-field userexit at the field C_PAC_LEVEL Checks if the first character of the field entry is valid for menu EDB-PAC-MUL-CHO-ENT.
0 | No entry or correct entry |
---|---|
1 | Entry does not correspond to any menu selection |
int xsmlc_fld | ( | ) |
Post-field userexit for the class code field in ATC classification lists.
This userexit deals with the following actions:
'I'nsert | If the class is not a container class, the field title and access are changed. Displays an error message for container classes. |
---|
0 | OK |
---|---|
Else | Error |
int xstate_chk_usr_grp | ( | ) |
Checks if user or group entry is correct (transition definition).
0 | Valid user/group |
---|---|
1 | Invalid user/group |
int xstr_post_chk_fld | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit for the field '[tablename].CHK_NAME' on relation records.
Checks the field contents and determines the new level indicator if the field has been changed.
usxContext | The userexit context. |
param | Reserved. |
0 | OK |
---|---|
Else | Error occurred. |
int xtask_chk_abs | ( | ) |
Checks if inserted role is an abstract role.
If role is an abstract role then insert is not allowed.
cp_Par | Reserved. |
0 | Non-abstract role. |
---|---|
XROLE_ABSTRACT_ROLE | Abstract role. |
int xtxt_cpy_gls_ter | ( | const char * | param, |
const char * | ignore | ||
) |
Copies the glossary term corrsponding to the glossary ID in field EDB_TXT_GLS_REF_[x] to field T_TXT_DUM_PLH.EDB_TXT_PLH_[x] of the current mask.
cpParameter | Parameter to control the behavior of this function. Syntax is: "/FIELDID=<field_x>" With possible arguments:
|
0 | OK |
---|---|
Else | Error |
int xtxt_ctg_men_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Copies the EDB_ID of the selected category in the default category field of the template/glossary and shows the main category name immediately.
cpParameter | Standard parameter with working mode and current row. |
cpArguments | Parameter to control the behavior of this function. Not currently used. |
0 | Always OK |
---|
int xtxt_ine_plh_chk_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Checks the value type of the entered value in the current field in the Text-Instance-Editor.
ctx | Field userexit context. | ||
param | Parameter to control the behavior of this function. Syntax is: "/FIELDID" With possible arguments:
|
0 | Ok. |
---|---|
Else | Error |
int xtxt_ins_fin_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit to check if it is a valid text component and to copy the text value and refernce ID.
This userexit is used in general in combination with the pre-field userexit xtxt_fin_prf. There is a special check for classification attribute values. If the attribute is a single value attribute then the multi language field is invisible and the single value (T_AVL_DAT.C_EXACT_VALUE_SL) field is visible. Therefore, the value has to be copied into the visible field! If no value is in the current field the text and the reference field are also cleared. Checks the text field name so that the userexit could be used also if no text field must be copied like in the CPS-Structure list.
ctx | Context of the userexit |
param | Parameter to control the behavior of this function. Not currently used. |
0 | OK |
---|---|
Else | Error |
int xtxt_ins_plh_chk_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Handle multi-lingual placeholder values.
Checks for multi-language mask. Gets the current (actual language) row of the current mask. Checks the data value depending on the data type. Checks for glossary entry. Sets the cursor on the glossary field. Checks for data type Float, Integer, Logic. If data type equals Float, Integer, Logic copies the current value in the multi-lingual fields.
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_plh_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Updates the field which shows the Text-Instance-Text EDB_TXT_INST_[LANG] with the currently entered placeholder values.
ctx | Field userexit context. |
param | Reserved parameter for the pre-field userexit. |
0 | Ok. |
---|---|
Else | Error |
int xtxt_ins_tmp_nam_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Updates the Text-Instance-Editor with the newly selected Text-Template definitions.
ctx | Field userexit context. |
param | Reserved parameter for the pre-field userexit. |
0 | Ok. |
---|---|
Else | Error |
int xtxt_pos_typ_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Handles text position type and EDB_NULL_ITEM in T_MASTER_STR.
Checks, if the field "PART_ID" is in mask: | |||
---|---|---|---|
TRUE | If current field value equals "T" (Text): | ||
TRUE | Check, if the EDB_NULL_ITEM exists: | ||
TRUE | Set value of PART_ID to EDB_NULL_ITEM. | ||
FALSE | Create EDB_NULL_ITEM. | ||
Set value of QUANTITY_BOM and EDB_UNIT to ''. | |||
Set access of QUANTITY_BOM and EDB_UNIT to r(ead). | |||
If current field value does not equals "T" (Text) | |||
and T_MASTER_DAT.EDB_ID equals '-1' (EDB_NULL_ITEM): | |||
TRUE | Write message "EDB-TXT-TYP-TXT". | ||
Return 1 | |||
ELSE: | Set menu type of field PART_ID to 'W' | ||
Set access of QUANTITY_BOM and EDB_UNIT to r(ead) |
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_set_fld_acc_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Post-field userexit to restore the field access that was set by the pre-field userexit xtxt_set_fld_acc_prf.
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_tpl_plh_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Checks the type and format of a place holder.
I1-I18 | Default:I10 | |
---|---|---|
S1-S100 | Default:S20 | |
F1.1-F38.19 | Default:F10.3 | |
D | val2 | |
L | val2 |
cpParameter | Standard parameter defining working mode and current row. |
cpArguments | Parameter to control the behavior of this function. Not currently used. |
0 | OK |
---|---|
Else | Error |
int xutil_chk_typ_pof | ( | const char * | param, |
const char * | ignore | ||
) |
Checks if the current field value has the correct field datatype format.
cpParameter | Parameter to control the behavior of this function. Syntax like: "/FMT=format | /FMTFLD=fieldname" With possible arguments:
|
0 | Success |
---|---|
Else | Error |
int xutil_upd_cns_fld | ( | const char * | param, |
const char * | ignore | ||
) |
Updates mask fields which value depend on other constraint fields.
The dependency can either be defined explicitly (using both the /KEY and /OTHERKEY parameter, or can be determined from the constraints defined in the repository (in which case the OTHERKEY parameter must be omitted). Usually it is better to only use the /KEY parameter and let the system retrieve the other key by querying the constraints, but when no constraint is defined in the repository (for example when a mask join is used) the other key must be defined by the /OTHERKEY parameter.
cpParameter | Parameter to control the behavior of this function. Syntax like: "/KEY1=key [/KEY2=otherkey] [/VISIBLE]" With possible arguments:
|
0 | Success |
---|---|
1 | Error |
int zag_dat_cpl_dat_pof | ( | ) |
Completes data value in current field based on passed MIN/MAX arguments.
cpParameter | Parameter to control the behavior of this function. Syntax like: "/MIN=min_value /MAX=max_value" with possible arguments:
|
0 | Success |
---|---|
-1 | Date cannot be completed. |
int zag_dat_cpl_tim_pof | ( | ) |
Completes time value in current field.
cpParameter | Currently not available. |
0 | Success |
---|
int zag_fld_cch_get_rec | ( | ) |
Post-field userexit to search all master records for the current field content when creating a new record in a relation list.
When only one record was found, the data from the master record is written into the master fields of the relation record. Otherwise a selection menu is displayed. When switching to another mask, the relation record to the selected master record is created. If no record was found, an error message is issued and the field cannot be quit (exception for empty field).
0 | OK |
---|---|
1 | No record found |
int zag_fld_clr_cns | ( | ) |
Deletes reference field values from constraint if user clears field manually.
It has the same effect as the selection "Clear entry" in the context menu of a recursive widget, but only if the field is empty and dirty, i.e. only when the field has been cleared by the user!
0 | OK |
---|