cancel
Showing results for 
Search instead for 
Did you mean: 

Code Undefined when trying to use AddBP2 call in B1iF mobile web scenario

Former Member
0 Kudos

We're trying to develop an application that makes use of the B1iF mobile web services but run into issues when trying to add a business partner using the AddBP2 call.  We get an error "code undefined" back as a response.  We're using a series pulled from NNM1 that has already been defined in SAP and assuming that we can fill in any value for the cardcode.  Is there a reason we might get the DI code undefined error back from this SOAP call?

Content-Type:text/xml;charset=UTF-8\r\n

\r\n

<?xml version="1.0" encoding="UTF-8"?>\r\n

<SOAP-ENV:Envelope xmlns:SOAP-ENV="\r\n" _mce_href="http://schemas.xmlsoap.org/soap/envelope/">\r\n">http://schemas.xmlsoap.org/soap/en...

        <SOAP-ENV:Body>\r\n 

    <AddBP2>\r\n

                                     <CardCode>1</CardCode>\r\n

                                     <CardName>IntelliTouch Test</CardName>\r\n

                                     <CardType>cCustomer</CardType>\r\n

                                     <Series>46</Series>\r\n

                                     <PhoneNum>2223334444</PhoneNum>\r\n

                                     <Email>test@intellitouchdigital.com</Email>\r\n

                                     <Address>123 Main St</Address>\r\n

                                     <ContactPerson>John Svoboda</ContactPerson>\r\n

                                     <WebSite>intellitouchdigital.com</WebSite>\r\n

                        </AddBP2>\r\n 

                        <Connect xmlns="\r\n" _mce_href="http://tempuri.org/">\r\n">http://tempuri.org/">\r\n

                                     <userName>manager</userName>\r\n

                                     <password>axelprod</password>\r\n

                                     <phoneNum>8109087256</phoneNum>\r\n

                                     <deviceIMEI>84:8F:69:B1:20:1D</deviceIMEI>\r\n

                                     <companyDB>AxelTestII</companyDB>\r\n

                        </Connect>\r\n

            </SOAP-ENV:Body>\r\n

</SOAP-ENV:Envelope>\r\n

\r\n

Accepted Solutions (1)

Accepted Solutions (1)

pedro_magueija
Active Contributor
0 Kudos

Hi Kevin,

Maybe it is not the CardCode he is complaining about. Could it be the contact person? I know that you can have more then one contact person for a given BP. Maybe it is expected that if you create a ContactPerson you create also a code for it.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

Former Member
0 Kudos

Thanks for your help.  I think what happened here was ultimately a bit different.  I had to add an xmlns=http://tempuri.org attribute to the AddBP element as well.  It's kind of silly, but after I cleaned that up the error went away.  At least, that specific error.

Kevin Ly

kly@aetherconsulting.com

pedro_magueija
Active Contributor
0 Kudos

Hi Kevin,

Thanks for sharing your solution with us. Good job on fix it .


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

Answers (0)