Skip to Content
0

DI API Error 4002 - To generate this document, first define the numbering series

Dec 19, 2017 at 12:49 PM

141

avatar image
Former Member

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();
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member Dec 19, 2017 at 12:54 PM
0

Never mind, Series had to be 70. I noticed that the series was wrong when cheking existing OCRD rows.

Share
10 |10000 characters needed characters left characters exceeded