cancel
Showing results for 
Search instead for 
Did you mean: 

Stock Transfer inconsistency through DI API

Former Member
0 Kudos

Hello, experts!

I'm trying to make a Stock Transfer by DI API. I have a Test DB that backs up the DB state at 3AM everyday. This way I can see the differences between a transfer made by my code and a transfer inside SAP B1.

I checked all rows fields and noticed the following discrepancies:

- OWTR:
	- DocRate: should be 0.000000, it's 1.000000;
	- DataSource: should be I, it's O;
	- TrnspCode, draftKey: should be -1, it's nothing;
	- VatFirst: should be nothing, it's N;
- WTR1:
	- TaxType, DistribExp: should be nothing, it's Y;
	- WtLiable, TaxOnly: should be nothing, it's N;
	- SpecPrice: should be N, it's R;

Although some of the fields I'd found previously were writable, those mentioned above aren't according to the SDK Help file. I manage to change some fields such as:

- OWTR:
	- SlpCode: using SalesPersonCode property of StockTransfer Object;
	- CnctCode: using ContactPerson property of StockTransfer Object;
	- GroupNum: using PriceList property of StockTransfer Object;

I believe my code should have an identical result to the manual work made by Warehouse Employees and I fear that disregarding the discrepancies mentioned above would compromise the database if my code is put to work.

I looked everywhere in the SDK Help file but couldn't find where or how to change those fields. GroupNum field for example corrected many discrepancies on WTR1 fields (such as Currency and Rate) and I wonder if I'm missing a Property with such a power.

Thank you for your time!

Accepted Solutions (0)

Answers (0)