cancel
Showing results for 
Search instead for 
Did you mean: 

Incoming Payment DI SERVER

Former Member
0 Kudos

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>

Accepted Solutions (1)

Accepted Solutions (1)

maik_delly
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Problem solved. Thank you!

Mike

Answers (1)

Answers (1)

Former Member
0 Kudos

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/

Former Member
0 Kudos

Thanks sir,

Mike