Skip to main content

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

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

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

Content navigation