Project:
View Revisions: Issue #40248 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0040248: WPUTAB export process return NPE error while exporting Cancel and Replace documents | ||
Revision | 2019-03-08 11:11 by psanjuan | ||
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. |
||
Revision | 2019-03-04 15:47 by psanjuan | ||
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 receipt. 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. |
Copyright © 2000 - 2009 MantisBT Group |