Bernard
27th March 2003, 11:21
We use internal EDI on a BaanIVc3 installation. 850.1 to be precise. PO (company 1 )--> to trigger a SO (in company 2) We now want to be able to specify the warehouse to which the PO/SO should be posted. We find that 850.1 format does not have warehouse. What can we do.
This becomes very important as we now want to move to external EDI and like to specify the warehouse in the generated message.
Any help / advice will be greatly aapreciated
pfsilva
27th March 2003, 11:32
Hi,
Baan by default assumes the warehouse that is in the item file. The only way you have to turnaround this problem is to develop a new format for the edi message that allows for a warehouse field.
Regards,
Bernard
27th March 2003, 11:38
Thx pfsilva
I agree with you and figured this out. What I'm asking is 'how' to do this. I need the instructions to carry out the changes ( new message ) and try.
BTW - the warehouse is picked from the defaults of the user carrying out the EDI session. We already verified this.
askajale
28th March 2003, 23:22
I can think of - This customization can be achieved by 2 ways.
Method-1
-----------
1. Change the conversion setup for IN / OUT message for the Line segement. Add the field of warehouse.
2. The OUT message DLL (Standard) may not require modification as the warehouse field must be already selected using select tdpur041.*
3. The IN message DLL nned to modify to read the field from in file and validate (you can think of introducing Code Conversion for Warehouse code) and convert (if required)
Method-2 (only if you have limited number of warehouses)
------------
1. Copy the EDI message with different names.
2. Add the Qualifier in Line segement and attach different evaluation expressions to each message for different warehouse codes.
-- Avinash
dnnslbrwn
30th March 2003, 19:57
Another thought: 'if it isn't broken, don't fix it'
Leave the EDI the way it is and create a new session to modify your SO with what ever rules you want. Have this session change the planned inventory movements as well and you should be good to go.
Cheers,
-Dennis
jroberts
31st March 2003, 18:54
Good call Dennis,
we wrote a custom session to do this, it updates the sales order warehouse field to be equal a warehouse field in the customer table (that we added).
Getting the code to work properly was a bit of a struggle. You need to update / check,
- items by warehouse
- planned inventory movements
- sales order tables
as well, things like phantoms, cost items, application locks, exceptions where the order should not be updated, need to be handled correctly.
As well we built error checking / exceptions reports that sit behind the update session.
A relatively tough personalization, but we use it on hundreds of lines a day.