Skip to Content
avatar image
Former Member

xml structure for credit card payments

Hello Experts,

I am creating an invoice bill project, I am using the sdk of SAP business one 9.1, in C # with visual studio which I care for xml the invoices to sap,

structure for a normal invoice.

<?xml version="1.0" encoding="UTF-8"?>
<BOM xmlns:xsi="" xmlns:xsd="">
        <Comments> factura 36457</Comments>           

I need to import invoices with credit card payments, what would be the way?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 23, 2017 at 02:37 PM

    You could try to create one document manually and use the method GetByKey then GetAsXML from Documents object to get the XML file you are looking for

    Add comment
    10|10000 characters needed characters exceeded

    • See below, I got most of the code from SDK Help files

      Dim vInvoice As SAPbobsCOM.Documents
      Set vInvoice = vCmp.GetBusinessObject(oInvoices)
      'Retrieve an invoice document from the database
      RetVal = vInvoice.GetByKey("1023")
      If RetVal <> 0 Then
           vCmp.GetLastError ErrCode, ErrMsg
           MsgBox "Failed to Retrieve the record " & ErrCode & " " & ErrMsg
           Exit Sub
      End If
      Dim xml As String
      xml = vInvoice.GetAsXML()
  • Oct 23, 2017 at 03:51 PM


    Adding to Danilo Kasparian 's suggestion:

    You can use the DITool to detect the correctness of the XML payload. Refer to SAP Note 2057143 which mentions the details about DI Tool.

    Hope it helps!

    Kind regards,


    SAP SME Support

    Add comment
    10|10000 characters needed characters exceeded