Having set up AIF based on the SCM scenario from Microsoft site I got a few questions regarding the following scheme of SCM process:
Customer GTM (Global Trading Company) sends Purchase Requisition to vendor DUO (DUO Company) and after having it posted gets Purchase Invoice.
1. Sending Outbound Documents Automatically
MSDN Library How to send and receive documents electronically tells us there are two ways of sending documents either automatically or manually by using Send Electronically button on appropriate forms, e.g. for Purchase Order it is
1. Click Accounts payable > Inquiries > Journals > Purchase order.
2. Click Send electronically, and then click Original or Copy.
and it really works, and in Queue Manager we can see the message ready for outbound sending.
What really intrigues me it is the other option which allows to send it automatically.
As far as I can see everything is set up correctly since the same document after posting was sent electronically. I mean all settings of Endpoints and others are correct. Using batch gives the same result - Purchase Order is printed but not sent to Queue Manager.
What should I do in order to initiate the process automatically?
I guess many questions happen to arise to me due to lack of experience in the system and patience to read the manual attentively. But anyway, the way to do this is the following.
First of all, read it:
The record must be updated with the print option, and there is no method for sending the document in the posting form.
If you want to send a document electronically, the Print check box on the corresponding print form must be selected, and the option to print to the screen must not be selected. Otherwise, the record will be posted and the document will be displayed on the screen, but it will not be sent electronically to the endpoint.
In other words we have at least three options to send our outbound documents:
- manually, after posting (see the above);
- automatically, during the posting choosing Print requisition and Use print management destination if those were set up in advance or just pressing Printer setup to choose any destination but Screen;
- it is also possible to send that later by means of batch processing.
What regards Print management destination we can set the parameters for receiving company DUO in order to send purchase orders to this vendor always automatically.
Accounts Payable>Vendors>Duo Engineering and Trade>Setup>Print Management
In the example we just to keep all purchase orders sent automatically in Print Archive (Basics>Setup>Inquiries>Print Archive).
Finally, I do not understand why it is important not to send automatically outbound documents when Screen option is chosen but just in case this is the place in the code that should be changed to pass by this restriction:
protected void sendAsXML()
if (new PrintJobSettings(printerSettingsFormletter, true).getTarget() != PrintMedium::Screen && !this.proforma())
newLine = journalList.first(vendPurchOrderJour);
newLine = journalList.next(vendPurchOrderJour);
Thank you for posting your findings. I was able to do automatic posting for Sales Order Packing Slip after reading the information you have provided. I no longer need to continue to bang my head on the keyboard. I am new to AX so, I spent about 30 minutes looking for how to create the destination on Order print management for the purchase order screen shot to be "print archive". I realized that you have to create a new record and select "Original" and save it to be "Screen" for the destination, then once saving the new record the "Printer Setup" button is enabled, at which point you can change the destination from "Screen" to "print archive". Thanks again.
Good job, this article was worth reading keep up the good work.
thank you for posting, it' very helpful.
I thought also
"...Finally, I do not understand why it is important not to send automatically outbound documents when Screen option is chosen..."
I think, this settings should allow the user to see and print the report without sending it immediately.
Better solution were the ability to set all reporting options separatelly: Printer/Display/Electronically
Post a Comment