How to post a document in the future using DI API?
Please can someone help me find a clever way around this....
I am using SAP 2005 SP01 PL09. I am trying to add an invoice into SAP using a VB.Net application. I want to set the date for the invoice to a future date (e.g. 01/01/2008). The problem is that even though I have set the setting which "<b>Allows future Posting Date</b>" in SBO I still get a "<b>Date deviates from permissable range</b>" Error (-5002) when I try adding the invoice.
I know that when I try post the invoice through the SAP <i>front end</i> (i.e. still posting it in 01/01/2008) I get a confirmation screen which pops up and says "<b>Posting Date later that System Date</b>" and I can either click on "<i>OK</i>" or "<i>Cancel</i>". If i click on OK the Invoice goes through no problem.
This however does not work when i try use the DIAPI to do the same thing.
How can i bypass this error when i use the DIAPI??
Any help is much appreciated