Skip to Content
0

Get value from business partner addresses di api

Jun 07, 2017 at 01:48 PM

180

avatar image

Hello experts ,

I am trying to save the values from addresses from ocrd in a table using vb .How could i move to the next line from bill to.The code is the following :

Dim oBusPartner As SAPbobsCOM.BusinessPartners
oBusPartner = oCompany.GetBusinessObject(BoObjectTypes.oBusinessPartners)
oBusPartner.GetByKey(rsBP.Fields.Item("CardCode").Value.ToString)

old(2) = oBusPartner.CardCode
old(3) = oBusPartner.CardName
old(21) = oBusPartner.Addresses.AddressName
old(28) = oBusPartner.Addresses.Street
old(29) = oBusPartner.Addresses.StreetNo
old(30) = oBusPartner.Addresses.ZipCode
old(31) = oBusPartner.Addresses.AddressName
old(38) = oBusPartner.Addresses.Street
old(39) = oBusPartner.Addresses.StreetNo
old(40) = oBusPartner.Addresses.ZipCode

Kind Regards ,

Ifigeneia Koumbarda

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Danilo Kasparian Jun 07, 2017 at 04:48 PM
0

Hi,

You should use the code below, after that yout properties will be set for the selected address

oBusPartner.Addresses.SetCurrentLine(LINENUMBER)
Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hello Danilo Kaspirian ,

Thank you for the answer it works for me .To suppose that in the contact persons it' s the same for specific line?

Kind Regards ,

Ifigeneia Koumbarda

0

Yes, it is the same idea, it is like an Array/List, you you always set the line then you will be able to change that specific record... Please close the thread if it worked to benefit others.

0