Showing results for 
Search instead for 
Did you mean: 

SAP DI - Amount to draw from down payment is not set in the document currency

0 Kudos

Good day:

I'm using SAP B1 9.3 PL. 07, I want to create a Purchase Invoice through the DI API.

I have created it successfully without problem, but when I want to add a DownPayment, the following error appears:

10001271 - Amount to draw from down payment is not set in the document currency.

What could be the issue? Is it a configuration error in the documents? Or perhaps something in the way the methods are used?

Here is the piece of code I'm using to add the DownPayment:

 SAPbobsCOM.DownPaymentsToDraw dpToDraw = factura.DownPaymentsToDraw;
dpToDraw.DocEntry = idAnticipo;
double valor = montoAnticipo(idAnticipo, "proveedor"); -- this method gets the amount
dpToDraw.AmountToDraw = valor;

I also attached anticipo.xml the xml generated.

Thanks in advance.

Community Manager
Community Manager
0 Kudos

Hi, jtregue:

Welcome to the SAP Community! We're glad you've come here to get answers to your questions. If you're also interested in connecting with community members, please pay a visit to our Welcome Corner. You'll need to sign up, but it's a great way to interact with peers and connect with other experts!

Since you're asking a question here for the first time, I'd like to offer some friendly advice on how to get the most out of your community membership and experience.

First, please see, as this resource page provides tips for preparing questions that draw responses from our members. Second, feel free to take our Q&A tutorial at, as that will help you when submitting questions to the community.

You should also make sure your e-mail notifications are turned on for "Comments and answers to my questions and questions I follow" at #communications -- so you won't miss any replies to your question.

In addition, I recommend that you include a profile picture. By personalizing your profile, you encourage readers to respond:

Now for some specific suggestions on how you might improve your question:

* Outline what steps you took to find answers (and why they weren't helpful) -- so members don't make suggestions that you've already tried.

* Share screenshots of what you've seen/done (if possible), as images always helps our members better understand your problem.

* Use the "insert code" feature to make it easier for members to read the code that you share.

Should you wish, you can revise your question by selecting Actions, then Edit.

I hope you find this advice useful, and please let me know if you require any additional guidance!

All the best,

Accepted Solutions (0)

Answers (0)