cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hello,

I've the following problem:

I try to import orders using a file-adapter. This orders may have addresses that are not in the BP Master Data. This means, we have to empty the ShipToCode and/or BillToCode and write our address to the Address or Address2-field.

Inserting the values to the Address/Address2-fields works perfect, but do not know how to empty the ShipToCode/BillToCode. If the Reciever-Payload does not hold a value for this fields, the system always uses the defaulf value from the BP Master Data.

Best regards,

Thomas

0 Likes
View Entire Topic
marcus_schmalz2
Participant
0 Likes

Hi Thomas,

if you use the tags <address> (BillTo) and <address2> (ShipTo) in your receiver payload, then it should work. (I tested it in B1 8.8)

For example the following code would generate a sales order with "Test" as ship to address and complete empty bill to address:

<BOM>
	<BO>
		<AdmInfo>
			<Object>17</Object>
			<Version>2</Version>
		</AdmInfo>
		<Documents>
			<row>
				<DocType>dDocument_Items</DocType>
				<DocDate>20100426</DocDate>
				<DocDueDate>20100426</DocDueDate>
				<CardCode>C20000</CardCode>
				<TaxDate>20100426</TaxDate>
				<Address> </Address>
				<Address2>Test</Address2>
			</row>
		</Documents>
		<Document_Lines>
			<row>
				<ItemCode>A00001</ItemCode>
				<Quantity>1</Quantity>
			</row>
		</Document_Lines>
	</BO>
</BOM>

As soon as you use these fields to owerwrite the default addresses, the corresponding BillToCode / ShipToCode are automatically empty.

Regards,

Marcus