Skip to Content

Incoming Payment DI SERVER

Hi experts, im seeking for help with the error above. Even though the credit card code is exist in the OCRC table it kept showing me this error. Any thoughts??? Thank you in advance 😀 i also included a screen shot of my tables and code (NOTE: This is DI SERVER and NOT DI API)

[-10] Credit card code does not exist  [RCT3.CreditCard][line: 2]

<a href='javascript: alert(f.diXML.value);'>[DI Service Error]</a> <textarea class='objhide' id='diXML'><?xml version="1.0" encoding="UTF-16"?>

<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">

<env:Header>

<SessionID>722B64FE-8DA6-42FB-AE56-F82B72A09E40</SessionID>

</env:Header>

<env:Body><dis:Add xmlns:dis="http://www.sap.com/SBO/DIS"><Service>IncomingPaymentsService</Service><Payment>

<CardCode>C50000</CardCode>

<CardName>ADA Technologies</CardName>

<DocCurrency>NZD</DocCurrency>

<DocDate>2015-10-20</DocDate>

<DueDate>2015-10-21</DueDate>

<TaxDate>2015-10-21</TaxDate>

<HandWritten>N</HandWritten>

<PaymentInvoices>

<PaymentInvoice>

<DocEntry>64</DocEntry>

<SumApplied>21093.750000</SumApplied>

</PaymentInvoice>

</PaymentInvoices>

<PaymentCreditCards>

<PaymentCreditCard>

<CreditCard>1</CreditCard>

<CreditCardNumber>M6G9Ix8x/jh5Fi+UbrqBO8sVVPOgRuLpeMvAS1JJASpxlPFA8XA/SBG/2TXR1vr+</CreditCardNumber>

<CardValidUntil>2012-11-30</CardValidUntil>

<CreditAcct>140100</CreditAcct>

<OwnerPhone>0011 64 949 32728500</OwnerPhone>

<CreditSum>23795.860000</CreditSum>

<VoucherNum>31231</VoucherNum>

</PaymentCreditCard>

<PaymentCreditCard>

<CreditCard></CreditCard>

<CreditCardNumber></CreditCardNumber>

<CardValidUntil></CardValidUntil>

<CreditAcct></CreditAcct>

<OwnerPhone></OwnerPhone>

<CreditSum></CreditSum>

<VoucherNum></VoucherNum>

</PaymentCreditCard>

</PaymentCreditCards>

<PaymentChecks>

</PaymentChecks>

<CashFlowAssignments>

</CashFlowAssignments>

</Payment>

</dis:Add></env:Body>

</env:Envelope></textarea>

Capture.PNG (47.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 21, 2015 at 08:39 AM

    Hi Mike,

    you are sending an additional and empty "PaymentCreditCard" node ( -> empty CreditCard ).  This is the "line : 2" mentioned in your error message.

    regards,

    Maik

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 21, 2015 at 08:48 AM

    @Maik Delly is correct. You might want to add validation on how you add your payment.

    Example:

    Dim oRowCount As Integer = 0

    oRowCount = oDetail.DefaultView.Count - 1

         If oRowCount > 0 Then

                                                    oPayment.PaymentChecks.AddLine()

                                                End If

                                                oRowCount -= 1

    Regards,

    Bry

    Blog: http://www.sap-tips-tricks.com/

    Add comment
    10|10000 characters needed characters exceeded