materialstammhistory
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| materialstammhistory [2023/02/15 09:44] – [Vertrieb/Aufträge] kalaschnikow | materialstammhistory [2023/04/13 11:11] (current) – [ToDo] kalaschnikow | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Materialstamm History ====== | ||
| + | My first productive task by W & G for [[efc ERP]]. | ||
| + | |||
| + | * Implement the History functionality for " | ||
| + | * ***** MATBAS (Materialbasisdaten) | ||
| + | * the solution already exists => I can copy it for others | ||
| + | * **-** MATSAL (Materialvertriebsdaten) | ||
| + | * is the repository existing? | ||
| + | * **-** MATPUR (Einkaufsdaten) | ||
| + | * is the repository existing? | ||
| + | * **-** MATFIN (Finanzdaten) | ||
| + | * is the repository existing? | ||
| + | * This functionality exists now for : | ||
| + | * Materialstamm " | ||
| + | * " | ||
| + | |||
| + | |||
| + | ===== Materialstamm ===== | ||
| + | At the moment Materialstamm contains the History functionality for " | ||
| + | |||
| + | * Business Object: '' | ||
| + | * '' | ||
| + | * The layout is contained in '' | ||
| + | |||
| + | ===== Materialstammbasisdaten (MatBas) ===== | ||
| + | |||
| + | * Database tables: | ||
| + | * EFC_MATBAS | ||
| + | * EFC_MATBAS_HIST | ||
| + | |||
| + | * Repository | ||
| + | * '' | ||
| + | * The implementation is in '' | ||
| + | |||
| + | * Service | ||
| + | * '' | ||
| + | * contains | ||
| + | * '' | ||
| + | * '' | ||
| + | * method '' | ||
| + | ===== Vertriebsdaten (MatSal) ===== | ||
| + | |||
| + | ==== Code ==== | ||
| + | |||
| + | * Database tables: | ||
| + | * EFC_MATSAL | ||
| + | * EFC_MATSAL_HIST | ||
| + | |||
| + | * efcbl | ||
| + | * ''/ | ||
| + | |||
| + | * Data structures | ||
| + | * '' | ||
| + | * Listenelement für verdichtete Vertriebs-Stammdaten | ||
| + | * '' | ||
| + | * '' | ||
| + | * Listenelement Material-Vertriebsdaten | ||
| + | * Anzeige von Daten aus HIST-Tabelle. | ||
| + | * '' | ||
| + | * Data container(? | ||
| + | * '' | ||
| + | * SuBdata-frame to show '' | ||
| + | |||
| + | * ''/ | ||
| + | * XML description to show table with '' | ||
| + | |||
| + | ==== ToDo ==== | ||
| + | |||
| + | * Service '' | ||
| + | * **-** add repositories to '' | ||
| + | * **+** '' | ||
| + | * **+** '' | ||
| + | |||
| + | * **-** add methods | ||
| + | |||
| + | * add the menu point | ||
| + | * Menus for " | ||
| + | < | ||
| + | private EFCAdditionalAction aaInfoMatSalHist | ||
| + | //... initialize the action | ||
| + | aaInfoMatSalHist = new EFCAdditionalAction(tr(" | ||
| + | //... add action to the menu | ||
| + | viewManager.addToMenuInfo(tr(" | ||
| + | (ArrayList) [aaInfoMatBasHist, | ||
| + | //... do something if the action was selected | ||
| + | public void handleAction(String ident, Object param) { | ||
| + | //... | ||
| + | switch (ident.toString()) { | ||
| + | //... | ||
| + | case aaInfoMatSalHist.getIdent(): | ||
| + | // do something... (at the moment it is the copy from aaInfoMatBasHist) | ||
| + | setSysParamBaseKey() | ||
| + | openChildWindow(SfDcMatBasHist.class) | ||
| + | break | ||
| + | //... | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | * **-** translate wordings -> should be done by Klaus | ||
| + | |||
| + | |||
| + | ===== Einkaufsdaten (MatPur) ===== | ||
| + | |||
| + | ==== Code ==== | ||
| + | |||
| + | * Database tables: | ||
| + | * EFC_MATPUR | ||
| + | * EFC_MATPUR_HIST | ||
| + | |||
| + | * efcbl | ||
| + | * ''/ | ||
| + | |||
| + | * Data structures | ||
| + | * data structures are declared in | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * Listenelement Material-Einkaufsdaten | ||
| + | * '' | ||
| + | * '' | ||
| + | * Listenelement Material-Einkaufsdaten | ||
| + | * Anzeige von Daten aus HIST-Tabelle. | ||
| + | * '' | ||
| + | * Data container(? | ||
| + | * '' | ||
| + | * SuBdata-frame to show '' | ||
| + | |||
| + | * ''/ | ||
| + | * XML description to show table with '' | ||
| + | |||
| + | |||
| + | ===== Finanzdaten (MatFin) ===== | ||
| + | |||
| + | * Database tables: | ||
| + | * EFC_MATFIN | ||
| + | * EFC_MATFIN_HIST | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Samples ===== | ||
| + | |||
| + | ==== Vertrieb/ | ||
| + | |||
| + | Sample data containing history: | ||
| + | |||
| + | * Belegnr.: 00189448 (Belegart: AB, Belegnr.: 00189448, Kunde: 5010000) | ||
| + | |||
| + | |||
| + | Here is described how this functionality is implemented for " | ||
| + | |||
| + | * SoLiDocHist | ||
| + | |||
| + | * **-** Data objects (in '' | ||
| + | * '' | ||
| + | * contains: | ||
| + | * key fields | ||
| + | * company | ||
| + | * docKey | ||
| + | * docNum | ||
| + | * '' | ||
| + | * '' | ||
| + | * is a data container object representing one position in the LEFT table " | ||
| + | * contains: | ||
| + | * position key fields | ||
| + | * dockey | ||
| + | * docnum | ||
| + | * docitem | ||
| + | * docitemkey | ||
| + | * ... | ||
| + | * '' | ||
| + | * '' | ||
| + | * is a data container representing one item in the RIGHT table " | ||
| + | * contains: | ||
| + | * quantity | ||
| + | * createdBy | ||
| + | * createdAt | ||
| + | * editedBy | ||
| + | * editedAt | ||
| + | |||
| + | * **-** Important methods | ||
| + | * '' | ||
| + | * fetches the complete history for DocObj | ||
| + | * this means the history of all positions | ||
| + | |||
| + | * **-** Database | ||
| + | * DB table: [EFCOZ].[dbo].[EFC_DOCITEM_HIST] | ||
| + | | ||
| + | * **-** Service | ||
| + | * '' | ||
| + | * The implementation is in '' | ||
| + | | ||
| + | * **-** Repository | ||
| + | |||
| + | ==== Materialstammdaten ==== | ||
| + | |||
| + | * Sample data containing history: | ||
| + | * Mat.-Nr.: 110.2207.20 | ||
| + | |||
| + | |||
| + | * At the moment it is important to have the proper " | ||
| + | |||
| + | |||
| + | ==== Vertrieb/ | ||
| + | |||
| + | * Sample data containing history: | ||
| + | * Belegnummer: | ||
| + | |||
| + | |||
| + | * the functionality can be seen at " | ||
| + | * choose " | ||
| + | |||
| + | |||
| + | * fetching data for compare can be viewed at: '' | ||
| + | |||
| + | | ||
| + | |||
| + | ===== Misc ===== | ||
| + | |||
| + | ==== '' | ||
| + | |||
| + | * After adding of '' | ||
| + | < | ||
| + | matHist.matbashistList = soLiMatBasHistRepository.getListMatBasHistForMat(company, | ||
| + | </ | ||
| + | * the cause is the method delivers '' | ||
| + | * to fix it: copy the objects | ||
