How to Bypass certain DD Validation like Next Numbering using JDE API jdeDDValidation

Purpose of Document

A certain Data Dictionary (DD) Item may have associated properties and rules (Edit Rule, Next Numbering, Upper Case and so on). This document shows how to bypass a certain DD Specification which are associated with it using API jdeDDValidation.

jdeDDValidation API information

Information of this API, its syntax, parameters, return value etc. can be found in the jdeapis.chm file of your tools release. Look for the following category.

 

Business Scenario:

One of your business party sends you a certain data with address number populated. Based on given information, you want to validate inbound value but you do not want to waste a next number defined in your next number table (F0002).

Consideration:

Data Dictionary item specification for Address Number (Alias: AN8),

Expectation:

 

Implementation:

Bypass next numbering,

idJDBReturn = jdeDDValidation(lpBhvrCom, lpVoid, _J("AN8"),
                             (LPVOID) &mnAddressHold, (PJSTR) NULL,
                              IDERRmnAddressNumber_3, DD_NO_NEXT_NUMBER,
                             (LPDDOVERRIDES) NULL);
if (idJDBReturn != JDEDB_FAILED)
{
       jdeSetGBRError(lpBhvrCom, lpVoid, (ID) 0, _J("2736"));
       JDB_FreeBhvr (hUser);
       return ER_ERROR;
}

 

Note: