How to reverse the Supplier and Customer ID in the 511 segment of a VDA 4905 message?

Technote (FAQ)


Question

How to reverse the Supplier and Customer ID in the 511 segment of a VDA 4905 message?

Answer

The VDA enveloping is done by a system map called BldIvda which can be found by searching under Deployment > Maps.

The BldIvda map contains some extended rules which are used to build the header info depending on message type. These extended rules can be modified to meet customer's needs for the 4905 map.

Edit the Session rules BldIvda.map file.
In the section // ************* Rules to setup 4905 Header ************************** make the following change:

Current definition:

if left(buffer,2) = "51" then
begin
$INPUT.#511_Tag = "511";
$INPUT.#511A = 2;
$INPUT.#511B = CustomerNumber;
$INPUT.#511C = SupplierNumber;
$INPUT.#511D = atoi(ControlNumber) - 1;
$INPUT.#511E = atoi(ControlNumber);
$INPUT.#511F = currDate;
$INPUT.#511H = "";


New definition:

if left(buffer,2) = "51" then
begin
$INPUT.#511_Tag = "511";
$INPUT.#511A = 2;
$INPUT.#511B = SupplierNumber;
$INPUT.#511C = CustomerNumber;
$INPUT.#511D = atoi(ControlNumber) - 1;
$INPUT.#511E = atoi(ControlNumber);
$INPUT.#511F = currDate;
$INPUT.#511H = "";


Recompile the map and check in the new version, making it the default.

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Sterling B2B Integrator
Mapping and Translation

Software version:

5.1, 5.2

Operating system(s):

All

Software edition:

All Editions

Reference #:

1617965

Modified date:

2012-11-20

Translate my page

Machine Translation

Content navigation