wilsonphilips
10th October 2005, 22:39
Hi Everybody:



Some one can give me a clue or an advice in order to create Sales Orders from an External Application to Baan ICVC2.

I want use AFS, but some one can help me with a piece of source or with a logic.?


Thanks




Wilson

mark_h
11th October 2005, 15:26
Just try searching on this forum. Excel, asp.net, ole, sales orders- you should be able to find some coding examples.

avm204
11th October 2005, 17:46
Hi,

To achieve your objective you can follow the following steps.

1. Make the list of BaaN mendetory fields in sales order header and lines. Like First free number, Customer Code, order date for header. For line Item master, Warehouse, Quantity and Price (If it is not defined in Price and discount level).

2. Import that data in some temp. table as header and line thru exchange scheme.

3. Write AFS (document you can find out somewhere on this site) code that will read your temp. table and pass on the data thru AFS to the Sales order header. Then you can call Sales Order Line session thru AFS where you have to pass on line level data.

4. You can execute Generate Localize data for sales order thru AFS and pass on the created order number to generate localization details.

I think these are the steps that you can follow. I have implemented same thing in my previous company but right now I don't have any code for that. But you can follow the same route to achieve your objective.

Regards,

Ajay Mishra