Skip to Content
0
Former Member
Sep 22, 2008 at 08:24 PM

Sales Order ShipToCode

942 Views

Good Day

Experts:

Well, I am back on this ol troublesome ShiptToCode issues on my SalesOrder generation. I have verified my code for using the oOrders object is correct as I have a SalesOrder that has the correct Bill-To and Ship-To.

However, that successful one was surrounded by one before and one after that was not correct. It apears that the Bill-To is being put in the Ship-To field. I compared the OCRD and CRD1 records for the success and failure thinking or hoping that there was a "flag" I was missing on the offending ones. But that netted nothing.

So, I know the code works but now I cannot figure if there is a "Setting" I am missing "somewhere" for the offending ones. I tried resetting them to the default and no luck.

Any kind of brainstorming ideas that I can try here would be great.

Thanks,

Ed

I am having a bit of trouble when I generate a SalesOrder. Specifically, "sometimes" the incorrect ShipToAddress is coming up on the order even though I am sending the correct ShipToCode to the SalesOrder object. The address also is coming up blank sometimes or even the BillTo address shows in the ShipTo Address. Now, since it does work correctly with other ShipToCodes, I am really confused as to how to approach any kind of debuggin efforts.

When I enter a SalesOrder manually, the correct ShipTo Address appears when I use the same CardCode that would fail when using my program

So, I ask myself what is different from the manual process compared to what I am passing in my program to the SalesOrder object. I could not find any differences. Is there anyone that may have experienced this odd behavior that has some insight? Ideas for tracking this down would be greatly appreciated.

Edited by: Ed Dobias on Sep 22, 2008 10:24 PM

Edited by: Ed Dobias on Sep 22, 2008 10:25 PM