on 12-19-2017 12:49 PM - last edited on 02-04-2024 1:18 AM by postmig_api_4
Hi,
I receive this error:
STATUS: -4002
To generate this document, first define the numbering series in the Administration module
Numbering is defined and active. New BPs are created fine from the UI using autoincrement. User for the script is the same as in UI.
My code (php):
$vBpCard = $sapCom->GetBusinessObject(2);
$vBpCard->CardName = $vars_companyname;
$vBpCard->CardType = 0;
$vBpCard->Series = 1;
$vBpCard->Phone1 = $vars_phone;
$vBpCard->EmailAddress = $vars_email;
$vBpCard->add();
Never mind, Series had to be 70. I noticed that the series was wrong when cheking existing OCRD rows.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.