Method Name : addFirmMaster

  • Purpose of usage :

Used to add Firm Master data to Axata WMS system.

  • Integration Tables :


Axata Table Name

Process type

Table Type

Description

ENT002

Host_to_WMS

Master Data

Firm Master Data

ENT002_PROP

Host_to_WMS

Master Data Properties

Firma Master Data Properties

  • Integration Table Fields :


Transaction type :

Host_to_WMS




Table Name :

ENT002




Table Description :

Firma master




Field Name

Desc

Type

Len

Mandatory

S02ID

Identity

[bigint]

 

 

S02SKOD

Company Code

[nvarchar]

2

*

S02BAYK

Firm Code

[nvarchar]

50

*

S02OKOD

Special Code

[nvarchar]

50


S02RKOD

Reference Dealer Code

[nvarchar]

50


S02BAYT

Firm type 0-Customer 1-Supplier 2-All

[decimal]

1, 0

*

S02MGRP

Group Code

[nvarchar]

50


S02MUSK

Firm short name

[nvarchar]

100

*

S02MUSA

Firm Description

[nvarchar]

100

*

S02ADR1

Address 1

[nvarchar]

100


S02ADR2

Address 2

[nvarchar]

100


S02ADR3

Address 3

[nvarchar]

100


S02PKOD

Postal Code

[nvarchar]

10


S02UKOD

Country Code

[nvarchar]

3


S02IKOD

Province Code

[nvarchar]

3


S02ILCK

County Code

[nvarchar]

10


S02District

District Code

[nvarchar]

50


S02TEL1

Telephone 1

[nvarchar]

50


S02TEL2

Telephone 2

[nvarchar]

50


S02TEL3

Telephone 3

[nvarchar]

50


S02FAX

Fax

[nvarchar]

50


S02YET1

Authorized People Name 1

[nvarchar]

100


S02YET2

Authorized People Name 2

[nvarchar]

100


S02VERD

Tax Administration

[nvarchar]

200


S02VERN

Tax number

[nvarchar]

20


S02BKOD

Region Code

[nvarchar]

50


S02BLKJ

Blockage Flag

[nvarchar]

1


S02IPTK

Cancel Code (1-Cancel)

[decimal]

1, 0


S02EIEN

Electronic DeliveryNote Indicator (1-Yes 0-No)

[decimal]

1, 0


S02EMAIL

e-mail Address

[nvarchar]

1000


S02ENT1

Integration Data 1

[nvarchar]

50


S02ENT2

Integration Data 2

[nvarchar]

50


S02ENT3

Integration Data 3

[nvarchar]

50


S02MFIFO

Customer FIFO usage  flag

[tinyint]



S02GLNNO

GLN Number

[nvarchar]

50


S02IRSFRM

Delivery Note Format

[nvarchar]

50


S02ELFAT

Electronic Invoice Indicator (1-Yes 0-No)

[tinyint]



S02ISMM

Cost Center Flag (1-Yes 0-No)

[tinyint]



S02SRENGEL

Prevent Serialalization on exit (1-Yes 0-No)

[tinyint]



S02YTENGEL

Prevent future product release (1-Yes 0-No)

[tinyint]



S02ITAR

Transaction date (YYYYMMDD)

[decimal]

8, 0


S02IZMN

Transaction time (HHMMSS)

[decimal]

6, 0


S02HTIP

Free Text

[nvarchar]

20


S02HNUM

Free Text

[decimal]

20, 0



Transaction type :

Host_to_WMS




Table Name :

ENT002_PROP




Table Description :

Firm Properties




Field Name

Desc

Type

Len

Mandatory

S02ID

Identity

[bigint]

 

 

S02SKOD

Company Code

[nvarchar]

2

*

S02BAYK

Firm Code

[nvarchar]

50

*

S02PROP

Property Code

[smallint]


*

S02VAL1

Property Value 1

[nvarchar]

100


S02VAL2

Property Value 2

[datetime]



S02VAL3

Property Value 3

[float]



S02ITAR

Transaction date (YYYYMMDD)

[decimal]

8, 0


S02IZMN

Transaction time (HHMMSS)

[decimal]

6, 0



  • Usage :
    • Multiple Companies can be sent at the same time .
    • Not all fields have to be submitted.
    • If generating XML for submission, the fields should be submitted in the order in the table above..
    • Maximum number of posts is limited (Parametric).
    • A separate processResult object is returned for each Firm .


  • Sample XML
    • Request :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:axat="http://axatawms" xmlns:wms="http://schemas.datacontract.org/2004/07/WMSServiceCore.Models">

  <soapenv:Header/>

  <soapenv:Body>

    <tem:username>axataservice</tem:username>

    <tem:password/>

    <axat:FirmMasterList>

      <!--Zero or more repetitions:-->

      <wms:FirmMaster>

        <wms:ENT002>

          <S02SKOD>01</S02SKOD>

          <S02BAYK>MDENEME101</S02BAYK>

          <S02RKOD>REFKOD</S02RKOD>

          <S02BAYT>2</S02BAYT>

          <S02MGRP>0001</S02MGRP>

          <S02MUSK>DENEME TİC</S02MUSK>

          <S02MUSA>DENEME TİCARET AŞ</S02MUSA>

          <S02ADR1>Address1</S02ADR1>

          <S02ADR2>Address1</S02ADR2>

          <S02ADR3>Address1</S02ADR3>

          <S02PKOD>PKOD</S02PKOD>

          <S02UKOD>TR</S02UKOD>

          <S02IKOD>34</S02IKOD>

          <S02TEL1>2122122212</S02TEL1>

          <S02TEL2>5555555555</S02TEL2>

          <S02TEL3>1122334455</S02TEL3>

          <S02FAX>2121234567</S02FAX>

          <S02YET1>Authorized1</S02YET1>

          <S02YET2>Authorized2</S02YET2>

          <S02VERD>VERGI DAIRESI</S02VERD>

          <S02VERN>VERGINO</S02VERN>

          <S02BKOD>BOLGE</S02BKOD>

          <S02BLKJ>0</S02BLKJ>

          <S02IPTK>0</S02IPTK>

          <S02EIEN>0</S02EIEN>

          <S02EMAIL>ABC@BCD</S02EMAIL>

          <S02HNUM>0</S02HNUM>

          <S02ITAR>20200523</S02ITAR>

          <S02IZMN>121212</S02IZMN>

          <S02ILCK>ILCEKOD</S02ILCK>

          <S02District>DistrictKOD</S02District>

          <S02MFIFO>0</S02MFIFO>

          <S02ISMM>0</S02ISMM>

          <S02ELFAT>0</S02ELFAT>

        </wms:ENT002>

        <wms:ENT002_PROP>

          <S02SKOD>01</S02SKOD>

          <S02BAYK>MDENEME101</S02BAYK>

          <S02PROP>101</S02PROP>

          <S02VAL1>11111</S02VAL1>

        </wms:ENT002_PROP>

      </wms:FirmMaster>

    </axat:FirmMasterList>

  </soapenv:Body>

</soapenv:Envelope>

    • Response :

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">

  <s:Body>

    <state>0</state>

    <message>Success</message>

    <processResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

      <ProcessResult>

        <LogState>0</LogState>

        <LogMessage>Success</LogMessage>

        <EntityID>21006</EntityID>

        <EntityCompany>01</EntityCompany>

        <EntityCode>MDENEME101</EntityCode>

        <EntitySubCode i:nil="true"/>

        <HeaderExt1 i:nil="true"/>

        <HeaderExt2 i:nil="true"/>

        <HeaderExt3 i:nil="true"/>

        <ResultItems/>

      </ProcessResult>

    </processResult>

  </s:Body>

</s:Envelope>


  • Sample c# Source Code :

       Sample Add Method Code C#