Skip to Content
avatar image
Former Member

Stock Transfer inconsistency through DI API

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:

	- 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:

	- 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!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers