Openbravo Issue Tracking System - Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0040248 | Modules | SAP Connector Mappings | public | 2019-02-20 19:24 | 2019-03-08 12:43 |
Reporter | umartirena | ||||
Assigned To | markmm82 | ||||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Regression date | |||||
Regression introduced by commit | |||||
Regression level | |||||
Review Assigned To | Sandrahuguet | ||||
Support ticket | |||||
OBNetwork customer | |||||
Regression introduced in release | |||||
Summary | 0040248: WPUTAB export process return NPE error while exporting Cancel and Replace documents | ||||
Description | WPUTAB export process return NPE error while exporting Cancel and Replace documents | ||||
Steps To Reproduce | Install the following SAP Conector modules * org.openbravo.externaldata.integration * org.openbravo.service.external.integration * org.openbravo.service.integration.sapecc * org.openbravo.service.integration.sap.ecc.mappings Log in as Openbravo/openbravo in OB backoffice. Select "The White Vally Group Admin" role. Open "Initialize Entity Synchronization" window * External Type: SAP ECC * Start Integration From Time: Yesterday * Click Done Open "Commnunication with SAP ECC Server" window and create a record: * Commnunication Protocol: Debug * Path to iDoc Folder: /home/openbravo/sapidocs Open "EDL Configuration" window and create a new record: * EDL Process: BOB ID Based Export Process Create Output record: Output type, debug Add necessary SAP Codes: * Organization * Channel - Touchpoint * Payment Method * Tax Category * PriceList * Tax Rate Go to Pos Terminal and search by vbs10001. Activate the terminal. Navigate to Pos Terminal Type and configure it like below: Group orders in one invoice = Yes Generate Invoices for Orders = Yes Log in Web POS as Openbravo. Refresh if needed. Create a new sale/ticket for VBS Customer. Select 3 units of item "Avalanche transceiver". Confirm the sale and pay it by cash. Write down ticket number VBS1001/0000002. Go to backoffice, navigate to sales order window and verify that an order has been created there, same way check that an invoice has also been created for a quatity of 3 units. Check that the invoice is fully paid. Total Outstanding = 0.00 Go back to web POS. Select the option "Open Receipts". Select the receipt just created (VBS1001/0000002) and press Cancel and Replace. Add one unit of the product. Confirm the sale and pay it by cash. Write down ticket number VBS1001/0000002-1. Total amount paid is 602.00 Go to back office and verify that the corresponding orders have been created (VBS1001/0000002-1 for a quantity = 4, and VBS1001/0000002*R*" for a quantity = -3) Go to sales invoice and verify that a new invoice (i.e. VBS1000009) has been created there for an amount of 602.00 and 3 and 1 units of the same product. Go back to web POS. Do the cashup. Go to back office Open "Process Request" window and create a record: * Process: SAP ECC Export Synchronization Process * Timing: Run Immediately * Click on Schedule Go to EDL Request window and find for a record with Search Key "WPUTAB-SAPOBMP_CashUp". Realize that the EDL Request record is in Error status with the following stacktrace error: Entity is null: java.lang.Exception at org.openbravo.service.integration.sap.ecc.mappings.util.MappingUtils.getSAPCode(MappingUtils.java:162) at org.openbravo.service.integration.sap.ecc.mappings.javamapper.processor.AggregatedSalesByPaymentMethod.getPaymentMethodSapCode(AggregatedSalesByPaymentMethod.java:114) at org.openbravo.service.integration.sap.ecc.mappings.javamapper.processor.SalesByPaymentMethodProcessor.getSyncronizableBusinessObject(SalesByPaymentMethodProcessor.java:84) at org.openbravo.service.integration.sap.ecc.mappings.javamapper.processor.SalesByPaymentMethodProcessor.getSalesByPaymentMethod(SalesByPaymentMethodProcessor.java:67) at org.openbravo.service.integration.sap.ecc.mappings.javamapper.CashUpWPUTABJavaPropertyMppingHandler.getValueOfProperty(CashUpWPUTABJavaPropertyMppingHandler.java:60) at org.openbravo.service.integration.sap.ecc.mappings.javamapper.CashUpWPUTABJavaPropertyMppingHandler.getValueOfProperty(CashUpWPUTABJavaPropertyMppingHandler.java:1) at org.openbravo.service.integration.sap.ecc.mappings.javamapper.CashUpWPUTABJavaPropertyMppingHandler$Proxy$_$$_WeldClientProxy.getValueOfProperty(CashUpWPUTABJavaPropertyMppingHandler$Proxy$_$$_WeldClientProxy.java) at org.openbravo.service.external.integration.mapping.JavaPropertyMapping.getMappingValueForExport(JavaPropertyMapping.java:70) at org.openbravo.service.external.integration.mapping.PropertyMapping.addMappingValue(PropertyMapping.java:77) at org.openbravo.service.external.integration.mapping.PropertyMapper.createSynchronizableBusinessObject(PropertyMapper.java:121) at org.openbravo.service.external.integration.export.SynchronizableBusinessObjectExporter.exportToSynchronizableBusinessObject(SynchronizableBusinessObjectExporter.java:78) at org.openbravo.service.external.integration.edl.BaseExportItemProcessor.processItem(BaseExportItemProcessor.java:59) at org.openbravo.externaldata.integration.process.AsynchronousProcessor.processBatchWithInput(AsynchronousProcessor. | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | PUBON_20190308104021_FC0AD90C54.xml (1,495) 2019-03-08 12:42 https://issues.openbravo.com/file_download.php?file_id=12725&type=bug PUBON_20190308104021_3327ACB35F.xml (1,851) 2019-03-08 12:42 https://issues.openbravo.com/file_download.php?file_id=12726&type=bug WPUTAB_20190308104023_CB757F915B.xml (733) 2019-03-08 12:43 https://issues.openbravo.com/file_download.php?file_id=12727&type=bug WPUUMS_20190308104023_D6D2811F24.xml (823) 2019-03-08 12:43 https://issues.openbravo.com/file_download.php?file_id=12728&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2019-02-20 19:24 | umartirena | New Issue | |||
2019-02-20 19:24 | umartirena | Assigned To | => platform | ||
2019-02-20 19:24 | umartirena | Resolution time | => 1552431600 | ||
2019-02-21 12:20 | AugustoMauch | Assigned To | platform => aferraz | ||
2019-02-21 12:24 | aferraz | Assigned To | aferraz => Triage Finance | ||
2019-02-25 11:00 | Sandrahuguet | Assigned To | Triage Finance => markmm82 | ||
2019-02-25 15:11 | markmm82 | Status | new => scheduled | ||
2019-02-26 15:28 | umartirena | Issue Monitored: umartirena | |||
2019-03-03 16:53 | markmm82 | Note Added: 0110166 | |||
2019-03-04 15:47 | psanjuan | Category | SAP Connector => SAP Connector Mappings | ||
2019-03-08 11:11 | psanjuan | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=18410#r18410 | ||
2019-03-08 12:22 | psanjuan | Note Added: 0110315 | |||
2019-03-08 12:22 | psanjuan | Note Edited: 0110315 | bug_revision_view_page.php?bugnote_id=0110315#r18412 | ||
2019-03-08 12:23 | psanjuan | Note Added: 0110316 | |||
2019-03-08 12:34 | psanjuan | Note Edited: 0110316 | bug_revision_view_page.php?bugnote_id=0110316#r18414 | ||
2019-03-08 12:35 | psanjuan | Note Edited: 0110316 | bug_revision_view_page.php?bugnote_id=0110316#r18415 | ||
2019-03-08 12:37 | psanjuan | Note Edited: 0110316 | bug_revision_view_page.php?bugnote_id=0110316#r18416 | ||
2019-03-08 12:39 | hgbot | Checkin | |||
2019-03-08 12:39 | hgbot | Note Added: 0110317 | |||
2019-03-08 12:39 | hgbot | Status | scheduled => resolved | ||
2019-03-08 12:39 | hgbot | Resolution | open => fixed | ||
2019-03-08 12:39 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.service.integration.sap.ecc.mappings/rev/2f465d1cf3f5b828bfae8954bf11543d4adbf908 [^] | ||
2019-03-08 12:40 | Sandrahuguet | Review Assigned To | => Sandrahuguet | ||
2019-03-08 12:40 | Sandrahuguet | Note Added: 0110318 | |||
2019-03-08 12:40 | Sandrahuguet | Status | resolved => closed | ||
2019-03-08 12:42 | psanjuan | File Added: PUBON_20190308104021_FC0AD90C54.xml | |||
2019-03-08 12:42 | psanjuan | File Added: PUBON_20190308104021_3327ACB35F.xml | |||
2019-03-08 12:43 | psanjuan | File Added: WPUTAB_20190308104023_CB757F915B.xml | |||
2019-03-08 12:43 | psanjuan | File Added: WPUUMS_20190308104023_D6D2811F24.xml |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|