I Make a new Order. I Select "Sell-to Customer No."
(This Customer has various Ship-to Adress List), when I Press Enter it will open a Form where i can select a "Ship To Adress".
My question is what must i do for make similar proces in Purchases & Payables, when i make new Order i select the "Buy from Vendor No."
When i press Enter i would that open a form automatically so i can select Order Adresses (if the vendor have one or more Order Adresses).
Actually we must go to the Field "Order Address Code" and Select the "Order Adress", but our sales persons forget frequently fill out this field.
Thanks.
(Oo)=*=(oO)
0
Comments
I dont know the functionality in Standard that you are asking about, but what you are trying to do sounds simple enough.
OnAfterValidate trigger on the form of the field that you are entering (in your case "Buy From Vendor No.") enter the following code:
That is the code for running the form, but I would assume that you dont want to stop there. So, the next part is to GET the record and paste it back to the "Order Address Code".
Your code could now look something like this:
That should give you a solution that works. Ideally it should be done at table level, but I didn't have time to debug it :oops:
Hope it helps
Dean
In the Table 38 Purchase Header in the OnValidate Trigger from "Buy-Form Vendor No." i will be put this code and then it seem like to work so i would it:
Thanks for You Help !!