srprks
21st November 2016, 10:57
HI All
I just want to know how to use the below dll. I tried though but didn't get any result.

long tccom.dll4030.address.search( domain tcbod.type i.bod.type, domain tccom.cadr i.address, domain tcict2 i.country.iso.code, domain tcdsca i.city.description mb, boolean i.use.name, domain tcnama i.name mb, boolean i.use.name.2, domain tcnamb i.name.2 mb, boolean i.use.state.province, domain tcmcs.cste i.state.province, boolean i.use.city.2, domain tcnamf i.city.2 mb, boolean i.use.postalcode, domain tcpstc i.postalcode mb, boolean i.use.street, domain tcnamc i.street mb, boolean i.use.street.2, domain tcnamd i.street.2 mb, boolean i.use.house.number, domain tccom.nmbr i.house.number mb, boolean i.use.po.box, domain tccom.nmbr i.po.box mb, boolean i.use.building, domain tccom.bldg i.building mb, boolean i.use.floor, domain tccom.blfl i.floor mb, boolean i.use.unit, domain tccom.blun i.unit mb, boolean i.use.latitude, domain tcglat i.latitude, boolean i.use.longitude, domain tcglon i.longitude, boolean i.use.address.line.1, domain tcmcs.str100m i.address.line.1 mb, boolean i.use.address.line.2, domain tcmcs.str100m i.address.line.2 mb, boolean i.use.address.line.3, domain tcmcs.str100m i.address.line.3 mb, boolean i.use.address.line.4, domain tcmcs.str100m i.address.line.4 mb, boolean i.use.address.line.5, domain tcmcs.str100m i.address.line.5 mb, boolean i.use.address.line.6, domain tcmcs.str100m i.address.line.6 mb, ref domain tccom.cadr o.address )


Awaiting your replies

bhushanchanda
21st November 2016, 12:07
Hi,

What are you trying to achieve with this DLL? This DLL can tend to create/update the address based on the input parameters.

The DLL will check 2 things -

1. If Address exists, it will check if there are any changes being made. Accordingly will update it.
2. If Address doesn't exists, it will create one.


List of parameters -

1. BOD Type (Values = 0(Not called from BOD), 1 =(Master Data), 2(Transactional))*
2. Address (tccom130.cadr)*
3. Alpha-2 ISO Country Code(2 Characters)*
4. Description(tccom130.dsca) *

Rest fields have a "use" parameter attached with it. If True, the field will be used else not.


Name 2 - tccom130.namb
State Code - tccom130.cste
City 2 - tccom130.namf
Postal/Zip Code - tccom130.pstc
Steet - tccom130.namc
Street 2 - tccom130.namd
House Number - tccom130.hono(Only if PO Box Number is empty)
PO Box - tccom130.pobn(Only if House No is empty)
Building - tccom130.bldg
Floor - tccom130.blfl
Unit - tccom130.blun
Latitude - tccom130.glat
Longitude - tccom130.glon
Address Line 1 - tccom130.ln01
.....
...
Address Line 6 - tccom130.ln06


Output - Address Code


Return Value - True if address is found/updated/created
False if error

srprks
21st November 2016, 13:22
Hi Bhusan

I have already used this dll in my program but its returning -12.

1. We have not set the Parameter for Address Code. Any Random code can be your Address Code e.g S0032 S00987 like this.

2. And what should I pass in the 1st argument.(BOD type).

And exactly I want to do this thing i.e. if any field changed in Address code then it updates the Address code or else it creates a new 1.



Thanks
Soumya