cancel
Showing results for 
Search instead for 
Did you mean: 

oBusinessPartners missing MailBlock

Former Member
0 Kudos

Hello all.

I'm trying to add a new BP to SBO using the oBusinessPartners object and DIServer. It works great but I have one minor problem. I can't find any fields in the oBusinessPartners-XML where I can add the Block field on the Mail address. I have fields for MailStreet, MailZipCode and more, but no MailBlock field. Is this field names something else?

Thanks

Endre

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello.

Sorry to wake out this old thread, but after some investigations this looks like a bug in the DI-server module that I use. So, where should I report this?

Endre

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Kudos

You must create a customer message into the SAP web site.

For that you should have your id as a partner.

You should then access to it using the link:

http://www.service.sap.com/smb/sbo/support

and then create a Customer Message.

You can also ask to your local SAP vendor if you have some questions, they can help you with the process.

Regards

Trinidad.

Answers (1)

Answers (1)

Former Member
0 Kudos

In standard DI API, the property named "MailAddress" maps to the Block field for the Ship-to address. It may be similarly named in the DIServer XML.


Private Sub CreateSampleBP()

    Dim sboBP As SAPbobsCOM.BusinessPartners
    Set sboBP = sboCompany.GetBusinessObject(oBusinessPartners)
    
    sboBP.CardCode = "SAMPLE"
    sboBP.MailAddress = "Mail Block"
    sboBP.MailCity = "Mail City"
    sboBP.Add
    
End Sub

John.

Former Member
0 Kudos

It looks like its different in the DIServer-XML and the DI API.

In DI-server MailAddress maps to the Street property of the Ship-To Address, not the Block property.

The XML have double up with most address properties, but not block

Address and MailAddress

ZipCode and MailZipCode

City and MailCity

Country and MailContry

Block, but no MailBlock.

Thanks

Endre