Back to connectors… Back to Sage 300...

Sage 300 Connector Q: Multiple Shipments, one invoice? (8 replies and 2 comments)

Arline Welty
6 years ago
Arline Welty 6 years ago

Does the Sage 300 connector support creating a single O/E invoice from multiple shipments? I do see that I could map the 'shipment' field to the O/E connector at the header level. Would I map multiple shipment numbers to the 'Shipment' field? Or does IMAN support the native Sage functionality to create a single invoice from multiple shipments?

Thanks for helping me understand this a bit better.

Arline

 

Version of IMAN:

Config Version: 3.01

DB Version: 3.07

Assembly Versions:

Realisable.IManWebUI.DLL 3.0.0.0
Support
6 years ago
Support 6 years ago
Arline Welty
6 years ago
Arline Welty 6 years ago

Very cool. Thank you!

Arline Welty
6 years ago
Arline Welty 6 years ago

Ok I'm at the correct version and looking for a little advice about how to get the shipments that have been created against a single order all joined into a single concatenated field. Is there an example I could reference? If not could I get some advice?

So far I've:

Done a DB read to pull the relevant shipments and orders

Added a MAP transform to add a new header field, 'SHIPMENTS' - this is where I'm wanting to concatenate the list of shipments, stored in the 'ShipNo' field.

HIERARCHY - Hierarchized by Order number, effectively grouping the shipments by order number

FLATTEN - I was thinking I'd need to do this to make the 'ShipNo' field appear at the header level.

I'm just looking for some advice to get me pointed in the right direction at this point. There could be 2 or there could be 8 shipments against the order. How do I tell IMAN to grab any ShipNo field associated with this order and separate with a comma?

Thanks for any suggestions.

Support
6 years ago
Support 6 years ago

Arline, try the following steps:

  1. DB Read - No changes.
  2. Hiearchy Transform - Create the hierarchy as if you're creating the invoice. If you're creating a single invoice against multiple shipments hierarchise the data so that you have the invoice (header) with all the lines from the shipments you wish to invoice.
  3. You need to specify each of the shipments that you wish to invoice. In a map transform use the consolidate function. I.e. 

    Consolidate("ShipmentNumberField", "DetailLevelId", ",")

    This function will return all the shipment numbers delimited by a comma. There will be duplicates, but don't worry about these.

  4. In you Sage300 connector map the field created in the previous step to the Shipment Number field on the header. If you need to map the details you can, but it's not mandatory.
Arline Welty
6 years ago
Arline Welty 6 years ago

Thanks for the advice- couple clarifications.

I'm assuming you mean Concatenate function? I didn't find anything on the Consolidate function and when I tried it, IMAN threw an error that the function was invalid.

I had given Concatenate a try yesterday and ran into issues- maybe I'm still doing it wrong. I have the SHIPMENTS field on the header. The SHIPMENTS field is where I want to have my string of ShipNo values separated by a comma.

I tried this on the detail and header lines but still need a little help please with the formula for the SHIPMENTS field. I've tested with a few versions of the below:

Concatenate("%ShipNo", "Shipments", ",")

Concatenate(%ShipNo, "Shipments", ",")

Concatenate("%Shipments.ShipNo", "Shipments", ",")

 

Image attached. I don't get why  the "ShipNo" field is invalid. Thanks for any ideas!

Arline

https://www.realisable.co.uk/wp-content/uploads/2018/10/Concatenate.jpg
Support
6 years ago
Support 6 years ago

Arline, yes Concatenate, apologies.

Alter your function to:

Concatenate("ShipNo", "Shipments", ",")

The aggregate function requires the name of the field it's referring not the value of the field.

Arline Welty
6 years ago
Arline Welty 6 years ago

I must be close but now it's telling me "Object Required". So something is still not right in that formula- help?

Error whilst evaluating field [SHIPMENTS] on transaction type [Shipments].
Resolved Function - Concatenate("SH1025828", "Shipments", ",")
Error - Description: Object required

https://www.realisable.co.uk/wp-content/uploads/2018/10/Shipments.jpg
Arline Welty
6 years ago

This is in the SHIPMENTS field on the header: Concatenate("ShipNo", "Shipments", ",")

Arline Welty
6 years ago

Scratch that- once I added the formula to both header and detail values it seems to be resolving. So- is that what's normally recommended? Put the formula in both header and detail levels?

Support
6 years ago
Support 6 years ago

You just want it in the header.

Contact

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Request Demo

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Access Downloads

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close