BPM to set FOB in new order 10.0.700.4

Post your code and any error messages and we'll be happy to look at it JD.
 
Jonathan Lang
I.T Manager
Database Engineer



On Thursday, February 11, 2016 5:03 PM, "jdtrent@... [vantage]" <vantage@yahoogroups.com> wrote:


 
<div id="ygrps-yiv-1921673494yiv0560415135ygrp-text">
  
  
  <div>That did it.</div><div><br clear="none"></div><div>Thanks again.</div>

</div>
 


<div style="color:#fff;height:0;"></div></div>
#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135 -- #ygrps-yiv-1921673494yiv0560415135ygrp-mkp { border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-mkp hr {
border:1px solid #d8d8d8;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-mkp #ygrps-yiv-1921673494yiv0560415135hd {
color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-mkp #ygrps-yiv-1921673494yiv0560415135ads {
margin-bottom:10px;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-mkp .ygrps-yiv-1921673494yiv0560415135ad {
padding:0 0;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-mkp .ygrps-yiv-1921673494yiv0560415135ad p {
margin:0;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-mkp .ygrps-yiv-1921673494yiv0560415135ad a {
color:#0000ff;text-decoration:none;}
#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-sponsor #ygrps-yiv-1921673494yiv0560415135ygrp-lc {
font-family:Arial;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-sponsor #ygrps-yiv-1921673494yiv0560415135ygrp-lc #ygrps-yiv-1921673494yiv0560415135hd {
margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-sponsor #ygrps-yiv-1921673494yiv0560415135ygrp-lc .ygrps-yiv-1921673494yiv0560415135ad {
margin-bottom:10px;padding:0 0;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135actions {
font-family:Verdana;font-size:11px;padding:10px 0;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135activity {
background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135activity span {
font-weight:700;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135activity span:first-child {
text-transform:uppercase;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135activity span a {
color:#5085b6;text-decoration:none;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135activity span span {
color:#ff7900;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135activity span .ygrps-yiv-1921673494yiv0560415135underline {
text-decoration:underline;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 .ygrps-yiv-1921673494yiv0560415135attach {
clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 .ygrps-yiv-1921673494yiv0560415135attach div a {
text-decoration:none;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 .ygrps-yiv-1921673494yiv0560415135attach img {
border:none;padding-right:5px;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 .ygrps-yiv-1921673494yiv0560415135attach label {
display:block;margin-bottom:5px;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 .ygrps-yiv-1921673494yiv0560415135attach label a {
text-decoration:none;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 blockquote {
margin:0 0 0 4px;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 .ygrps-yiv-1921673494yiv0560415135bold {
font-family:Arial;font-size:13px;font-weight:700;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 .ygrps-yiv-1921673494yiv0560415135bold a {
text-decoration:none;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 dd.ygrps-yiv-1921673494yiv0560415135last p a {
font-family:Verdana;font-weight:700;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 dd.ygrps-yiv-1921673494yiv0560415135last p span {
margin-right:10px;font-family:Verdana;font-weight:700;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 dd.ygrps-yiv-1921673494yiv0560415135last p span.ygrps-yiv-1921673494yiv0560415135yshortcuts {
margin-right:0;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 div.ygrps-yiv-1921673494yiv0560415135attach-table div div a {
text-decoration:none;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 div.ygrps-yiv-1921673494yiv0560415135attach-table {
width:400px;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 div.ygrps-yiv-1921673494yiv0560415135file-title a, #ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 div.ygrps-yiv-1921673494yiv0560415135file-title a:active, #ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 div.ygrps-yiv-1921673494yiv0560415135file-title a:hover, #ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 div.ygrps-yiv-1921673494yiv0560415135file-title a:visited {
text-decoration:none;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 div.ygrps-yiv-1921673494yiv0560415135photo-title a, #ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 div.ygrps-yiv-1921673494yiv0560415135photo-title a:active, #ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 div.ygrps-yiv-1921673494yiv0560415135photo-title a:hover, #ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 div.ygrps-yiv-1921673494yiv0560415135photo-title a:visited {
text-decoration:none;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 div#ygrps-yiv-1921673494yiv0560415135ygrp-mlmsg #ygrps-yiv-1921673494yiv0560415135ygrp-msg p a span.ygrps-yiv-1921673494yiv0560415135yshortcuts {
font-family:Verdana;font-size:10px;font-weight:normal;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 .ygrps-yiv-1921673494yiv0560415135green {
color:#628c2a;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 .ygrps-yiv-1921673494yiv0560415135MsoNormal {
margin:0 0 0 0;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 o {
font-size:0;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135photos div {
float:left;width:72px;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135photos div div {
border:1px solid #666666;height:62px;overflow:hidden;width:62px;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135photos div label {
color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135reco-category {
font-size:77%;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135reco-desc {
font-size:77%;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 .ygrps-yiv-1921673494yiv0560415135replbq {
margin:4px;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-actbar div a:first-child {
margin-right:2px;padding-right:5px;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-mlmsg {
font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-mlmsg table {
font-size:inherit;font:100%;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-mlmsg select, #ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 input, #ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 textarea {
font:99% Arial, Helvetica, clean, sans-serif;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-mlmsg pre, #ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 code {
font:115% monospace;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-mlmsg * {
line-height:1.22em;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-mlmsg #ygrps-yiv-1921673494yiv0560415135logo {
padding-bottom:10px;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-msg p a {
font-family:Verdana;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-msg p#ygrps-yiv-1921673494yiv0560415135attach-count span {
color:#1E66AE;font-weight:700;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-reco #ygrps-yiv-1921673494yiv0560415135reco-head {
color:#ff7900;font-weight:700;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-reco {
margin-bottom:20px;padding:0px;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-sponsor #ygrps-yiv-1921673494yiv0560415135ov li a {
font-size:130%;text-decoration:none;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-sponsor #ygrps-yiv-1921673494yiv0560415135ov li {
font-size:77%;list-style-type:square;padding:6px 0;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-sponsor #ygrps-yiv-1921673494yiv0560415135ov ul {
margin:0;padding:0 0 0 8px;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-text {
font-family:Georgia;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-text p {
margin:0 0 1em 0;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-text tt {
font-size:120%;}

#ygrps-yiv-1921673494 #ygrps-yiv-1921673494yiv0560415135 #ygrps-yiv-1921673494yiv0560415135ygrp-vital ul li:last-child {
border-right:none !important;}
#ygrps-yiv-1921673494



Hey,

I thought this would be a simple task.

We want FOB to be set to "FACTORY" on all new orders. We have code "FACTORY", description "Factory" set up in FOB Maintenance.

I set up a BPM Method Directive under Erp.SalesOrder.GetNewOrderHed as post-process directive FOB with a Set Field that sets ttOrderHed.FOB field of the changed row to the "FACTORY" expression.

It doesn't set the field when I create a new record.

When I create the new record, the field says none selected. After I enter the customer number, it goes blank.

I can, however, change the field it sets to the PO and it works fine.

I tried it as a pre process and a base process too. Base process created an error.

Do I need to set this a different way?

Thanks,

Joe

--

Joe D. Trent

Bigham Ag Equipment



Hi Joe,

You have it correct if you use POST, however you are missing the FOBDescription that needs to be set also. There is one slight problem with doing it this way.. Changing the customer clears out the FOB even if you set it manually.  You'll probably want to throw this BPM on the ChangeSoldTo method instead.

Edit:  You can actually set this on Customer>Billing.
Okay, that makes sense. I'll give it a shot.

Thanks.
That did it.

Thanks again.