Kazakhstan MPT Note 2023_01_2
Document History
Version | Changes | Effective Date |
1.0 | First approved version 3Keys Kazakhstan MPT Add-On Note 2023_01_2 | 14-Dec-2022 |
1. Overview
This document describes changes in the 3Keys Kazakhstan MPT connector ABAP part.
2. Description
Runtime error occurs on sending notification to MPT in case IMPORT notification contains field DecisionDateTime with Datetime value in future.
Response contains code 400 with the following JSON: {“code”:400,”description”:”ru.crpt.trueapi.exception.document…<JSON part deleted>”}
This JSON can not be saved to DB field error_text due to its length. Additional logic is implemented to trim error_text value before save to database. If value length is more than 1300 characters first 1297 characters + “…” will be saved.
Implementation error
Function “Navigate to reporting event” works incorrectly at transaction /K3TKZ/DOC_MONITOR. Transaction /STTP/COCKPIT is opened without related reporting event opening due to ABAP code error.
Implementation error
Import 3rd country message created incorrectly. The attribute itemNumber value of node <product> contains incorrect value different from declaration item number.
New event attribute ZR_KZ_DECL_POS created to use as attribute itemNumber value. New attribute is mandatory and empty value is not allowed. In case event has no ZR_KZ_DECL_POS property message will stop with status 05-Missing Data. Popup screen for “Missing data“ enhanced to include new field “Reg.Doc Item Number”.
Single value for all product lines is expected.
New feature
Missed event attributes ZR_KZ_DECL_POS, ZR_KZ_IMPORTER_ID, ZR_KZ_IMPORTER_NAME, ZR_KZ_OPER_TYPE, ZR_KZ_PARTIC_ID, ZR_KZ_PARTIC_NAME added into transformation /K3TKZ/EPCIS_SAPEXT.
Implementation error
Notification field mapping corrected for all notification types to process Participant ID and Participant Name (exact field name depends on notification type) fields with the following logic:
step 1: if event has event attributes participant ID and participant Name (for example Importer ID and Importer name for Import from 3rd countries) use this values and skip other participant ID determination steps
step 2: if event has attribute mapping (transaction /K3TKZ/ATTR_MAP) find participant ID and participant Name from attribute mapping function. New registration type ZKZ_PAR_NM created to maintain Participant name at Business Partner level. If customising is found /K3TKZ/ATTR_MAP skip other participant ID determination steps
step 3: find Business partner from Read Point GLN (or Biz location GLN in case Read point GLN is empty), use registration number from Business Partner
New feature
3. Solution
Import related to the transport request.
3.1 Correction instruction ATTP 3.0
Transport request | Description / Dependencies |
A1DK900416 | 3Keys Kazakhstan MPT Add-On 3.0 Note 2023_01_02 Required transport SAPK-300COINK3TKZ2 |
3.2 Correction instruction ATTP 3.1
Transport request | Description / Dependencies |
A2DK900401 | 3Keys Kazakhstan MPT Add-On 3.1 Note 2023_01_02 Required transport A2DK900353 |
3.3 Correction instruction ATTP 3.2
Transport request | Description / Dependencies |
A3DK900052 | 3Keys Kazakhstan MPT Add-On 3.2 Note 2023_01_02 Required transport A3DK900050 or SAPK-302COINK3TKZ2 |
4. Recommendation
Add event attribute ZR_KZ_DECL_POS to EPCIS message to trigger Import 3rd country message correctly
5. Source code objects
Short description | Program | Object type | Object name |
Translation for: BC Set or Customizing Profile | LANG | SCP1 | /K3TKZ/CUST_MPT_3_0_2023_01_02 |
Translation for: BC Set or Customizing Profile | LANG | SCP1 | /K3TKZ/CUST_MPT_3_1_2023_01_02 |
Translation for: BC Set or Customizing Profile | LANG | SCP1 | /K3TKZ/CUST_MPT_3_2_2023_01_02 |
Class Definition (ABAP Objects) | LIMU | CLSD | /K3TKZ/CL_DOC_CONST |
Protected Header (ABAP Objects) | LIMU | CPRO | /K3TKZ/CL_IMPORT_MAPPER |
Public Header (ABAP Objects) | LIMU | CPUB | /K3TKZ/CL_DOC_CONST |
Domain Definition | LIMU | DOMD | /K3TKZ/D_OPER_TYPE |
Screen | LIMU | DYNP | /K3TKZ/SAPLUI_POPUP_NOTIF 0001 |
Function Module | LIMU | FUNC | /K3TKZ/NAVIGATE_COCKPIT |
Function Module | LIMU | FUNC | /K3TKZ/UI_POPUP_NOTIF |
Method (ABAP Objects) | LIMU | METH | /K3TKZ/CL_ACT_MAPPER MAP_STRUCTURE |
Method (ABAP Objects) | LIMU | METH | /K3TKZ/CL_IMPORT_MAPPER CHECK_NOTIF_MSG |
Method (ABAP Objects) | LIMU | METH | /K3TKZ/CL_IMPORT_MAPPER MAP_STRUCTURE |
Method (ABAP Objects) | LIMU | METH | /K3TKZ/CL_INTEAEU_MAPPER MAP_STRUCTURE |
Method (ABAP Objects) | LIMU | METH | /K3TKZ/CL_MPT_DOCUMENT CONVERT_TO_EVT_PROPERTIES |
Method (ABAP Objects) | LIMU | METH | /K3TKZ/CL_MPT_DOCUMENT SEND |
Method (ABAP Objects) | LIMU | METH | /K3TKZ/CL_MPT_DOCUMENT SET_DEFAULT_DATA_FOR_UI |
Method (ABAP Objects) | LIMU | METH | /K3TKZ/CL_WRITEOFF_MAPPER MAP_STRUCTURE |
Report Source Code | LIMU | REPS | /K3TKZ/MPT_RESPONSE_C01 |
Table Definition | LIMU | TABD | /K3TKZ/S_DM_EVT_DAT_EXT |
Table Definition | LIMU | TABD | /K3TKZ/S_MPT_UI_IMP |
Data Element | R3TR | DTEL | /K3TKZ/E_REG_DOC_POS |
BC Set or Customizing Profile | R3TR | SCP1 | /K3TKZ/CUST_MPT_3_0_2023_01_02 |
BC Set or Customizing Profile | R3TR | SCP1 | /K3TKZ/CUST_MPT_3_1_2023_01_02 |
BC Set or Customizing Profile | R3TR | SCP1 | /K3TKZ/CUST_MPT_3_2_2023_01_02 |
Transformation | R3TR | XSLT | /K3TKZ/EPCIS_SAPEXT |