on 08-21-2017 9:27 PM - last edited on 02-04-2024 12:46 AM by postmig_api_4
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!
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.