Creating A/R Reserve Invoice through DI API
Hello everyone,
I am trying to create a A/R Reserve invoice through DI API, for that i have to set invoice documnet property is:
oInvoice.WareHouseUpdateType = SAPbobsCOM.BoDocWhsUpdateTypes.dwh_CustomerOrders;
but it throws a exception -
The object does not support this method, Or method not implemented yet.
please anyone have sample code for add A/R reserve invoice or any solution for that, provide me.
Thanks,
Nikhil
Hi,
The Reserve Invoice is coming in the 2007 Version.
See here:
/people/community.user/blog/2007/01/24/whats-new-in-sdk-2007-a
Kind Regards,
Owen
Similar Messages
-
Unable to Change Withholding Tax Base Amount while creating Service AP Invoice through DI API?
Dear All,
I am trying to create Service AP Invoice through DI API.
If I post the document without changing SAPPurchaseInvoice.WithholdingTaxData.TaxableAmount the dount ocument is created in SAP without any problem.
But if I change amount in above field then DI API throws error Unbalanced Transaction.
If I post same document in SAP with changed base amount it got posted in SAP without any Issue.
Where I am doing wrong?
please guide.
Using:
SAP B1 version 9 Patch Level 11
Location : India.
Thanks.Hi ,
maybe you can find solution to these note 1812344
1846344 - Overview Note for SAP Business One 8.82 PL12
Symptom
This SAP Note contains collective information related to upgrades to SAP Business One 8.82 Patch Level 12 (B1 8.82 PL12) from previous SAP Business One releases.
In order to receive information about delivered patches via email or RSS, please use the upper right subscription options on http://service.sap.com/~sapidp/011000358700001458732008E
Solution
Patch installation options:
SAP Business One 8.82 PL12 can be installed directly on previous patches of SAP Business One 8.82
You can upgrade your SAP Business One to 8.82PL12 from all patches of the following versions:8.81; 8.8; 2007 A SP01; 2007 A SP00; 2007 B SP00; 2005 A SP01; 2005 B
Patch content:
SAP Business One 8.82 PL12 includes all corrections from previous patches for releases 8.82, 8.81, 8.8, 2007, and 2005.
For details about the contained corrections, please see the SAP Notes listed in the References section.
Notes: SAP Business One 8.82 PL12 contains B1if version 1.17.5
Patch download:
Open http://service.sap.com/sbo-swcenter -> SAP Business One Products -> Updates -> SAP Business One 8.8 -> SAP BUSINESS ONE 8.82 -> Comprised Software Component Versions -> SAP BUSINESS ONE 8.82 -> Win32 -> Downloads tab
Header Data
Released On
02.05.2013 02:34:18
Release Status
Released for Customer
Component
SBO-BC-UPG Upgrade
Priority
Recommendations/additional info
Category
Upgrade information
References
This document refers to:
SAP Business One Notes
1482452
IN_Wrong tax amount was created for some items in the invoice with Excisable BOM item involves
1650289
Printing Inventory Posting List for huge amount of data
1678528
Withholding amount in the first row is zeroed.
1754529
Error Message When Running Pick and Pack Manager
1756263
Open Items List shuts down on out of memory
1757641
Year-end closing
1757690
SEPA File Formats - New Pain Versions
1757898
Incoming Bank File Format
1757904
Outgoing Bank File Format
1762860
Incorrect weight calculation when Automatic Availability Check is on
1770690
Pro Forma Invoice
1776948
Calendar columns are wrong when working with Group View
1780460
OINM column description is not translated
1780486
UI_System crash when you set extreme value of double type to DataTable column
1788256
Incorrect User-Defined Field displayed in a Stock Transfer Request
1788372
ZH: 'Unacceptable Field' when export document to word
1788818
RU loc: No freight in the Tax Invoice layout
1790404
Cash Flow Inconsistency when Canceling Payment
1791295
B1info property of UI API AddonsInstaller object returns NULL value
1791416
Adding a new item to BoM is slow
1794111
Text is overlapping in specific localization
1795595
Change log for item group shows current system date in all the "Created" fields
1797292
Queries in alerts should support more query results
1800055
B1if_ Line break issue in inbound retrieval using JDBC
1802580
Add Journal Voucher to General Ledger report
1803586
Not realized payment is exported via Payment Engine using 'SAPBPDEOPBT_DTAUS' file format
1803751
Period indicator of document series can be changed although it has been used
1804340
LOC_BR_Cannot update Nota Fiscal Model
1805554
G/L Account displayed in a wrong position when unticking the checkbox "Account with Balance of Zero"
1806576
Payment Cannot Be Reconciled Internally
1807611
Cannot update UDF in Distribution Rule used in transactions
1807654
Serial No./Batch inconsistency by canceled Inventory Transfer
1808694
BR: Business Partner Code cannot be updated with CNPJ CPF error
1809398
CR_Cannot Display Related Multi-Value Parameters
1809758
Arrow key not work for Batch/Serial Number Transactions Report
1810099
Tax Amount is Recalculated Even if Tax Code Is Not Changed
1811270
Upgrade fails on Serial And Batches object with error code -10
1811846
Cannot run Exchange Rate Differences when multi branch is activated
1812344
Withholding Tax Amount Is Not Updated in Payment Once Witholding Tax Code Is Changed in Document through DI API
1812740
DI:"Operation Code" show wrong value when add "A/P Tax Invoice" based on "A/P Invoice"
1813029
US_Vendor address on 1099 Summary by Form/Box Report is not updated according to the latest Invoice
1813835
Wrong amounts of Goods Return in Open Item List
1814207
Preliminary page prints setting does not keep after upgrade
1814860
Value "Zero" cannot be imported to "Minimum Inventory Level" field via Excel file
1815535
RFQ: Web front end not displayed in supplier language
1815810
GT: Adding Incoming Payment for Some Cash Flow Relevant Accounts Fails
1816191
BR:System Crashes While Working with Tax Code Determination Window
1816611
CR_Crystal Report Displayed Incorrectly Afte -
How can I create a reserve invoice with DI API?
HI,
I need to create a reserve invoice with DI API, how do I this?. I have SAP B1 2005A.
Sorry for my english.
Thank's.Hi César,
Unfortunately, I think the reserve invoice is only available in the DI API in version 2007A.
Kind Regards,
Owen -
Import AR Reserve Invoice through DTW
Dear all,
We are on SAP B1 2005A PL50.
Is there any template to import AR Reserve invoice through DTW?
Thank you & Kind Regards,
AsifCheck this threads
A/P Reserve Invoice Template
DTW - Upload of Reserve Invoice
Edited by: Jeyakanthan A on Aug 4, 2009 8:55 PM -
Withholding TAX - AP INVOICE through DI API
Hi Experts,
I am posting AP INVOICE through DI API. When am posting WITHHOLDING TAX for AP INVOICE am getting error like "Total taxable amount of all rows exceeds the base amount [pch5.taxbleamt]". My code
APINVOICE.WithholdingTaxData.WTCode = ORec1.Fields.Item("WTCode").Value
APINVOICE.WithholdingTaxData.WTAmount = ORec1.Fields.Item("WTAmnt").Value
APINVOICE.WithholdingTaxData.Add()
Please help me to solve this issue.
Thanks in advance,
Jeevan.Hi
The below code can be used to add WT tax, But ensure that BP having the WTCode mapped.
APINVOICE.WithholdingTaxData.WTCode = "TC-2"
APINVOICE.WithholdingTaxData.Add()
TC-2 is the WTCode mapped to Vendor i chose to add A/P invoice thro DI API.
Regards,
Tamizh. -
Again How can I create A/P Reserve Invoice using DI , SBO2005B PL41.
Hello , All
I tried to create A/P Reserve Invoice based on PO using DI .
However , I couldn't create AP Reserve Invoice , AP Invoice has been made.
Please , Refer to sample code .
SAPbobsCOM.Documents oDoc;
oDoc = (SAPbobsCOM.Documents)SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseInvoices);
oDoc.ReserveInvoice = SAPbobsCOM.BoYesNoEnum.tYES;
I think that "ReserveInvoice" property is "READ ONLY" .
Can I set to "tYES" ?
If can't create AP Reserve Invoice using DI 2005Ver , I would like to try to create AP Reserve Invoice "DRFT" .
Is this possible way ?This thread , network bug.
Sorry.
TAK -
Adding binlocation items from sales order to sales invoice through DI API
Hi
I want to add items from sales order to sales invoice.
when i am allocated bin locations for the item sales invoice is not adding
is there any way to update BIN Location Alocation-Issue qty through DI API
please help me....
regard,
LakkshmiKantthHi Lakshmi,
check this http://scn.sap.com/message/14740146#14740146
REgards
edy -
How to set local currency in AR/Invoice through DI API SAP B1?
Dear Expert,
I am using DI API to add AR/Invoice document, but I can't find how to set local currency for BP with foreign currency.
This my code snip :
oSO = oCompany.GetBusinessObject(BoObjectTypes.oInvoices)
oSO.DocDate = dtpPostDate.Value
oSO.DocDueDate = dtpDueDate.Value
oSO.TaxDate = dtpDocDate.Value
oSO.Series = cSeries
oSO.DocNum = txtNumber.Text
oSO.DocCurrency = doccur
oSO.CardCode = txtBP.Text
oSO.CardName = txtName.Text
oSO.ContactPersonCode = cntctCode
oSO.JournalMemo = txtRemarks.Text
For i = 0 To dgv.RowCount - 2
oSO.Lines.SetCurrentLine(i)
oSO.Lines.ItemCode = dgv.Item(0, i).Value
oSO.Lines.ItemDescription = dgv.Item(2, i).Value
oSO.Lines.Quantity = dgv.Item(4, i).Value
oSO.Lines.Price = dgv.Item(5, i).Value
oSO.Lines.DiscountPercent = dgv.Item(6, i).Value
oSO.Lines.TaxCode = dgv.Item(7, i).Value
oSO.Lines.LineTotal = dgv.Item(9, i).Value
oSO.Lines.Currency = doccur
oSO.Lines.Add()
Next
lRetCode = oSO.Add()
If lRetCode <> 0 Then
oCompany.GetLastError(lErrCode, sErrMsg)
MsgBox(sErrMsg, 16, "Attention")
Else
MsgBox("Operation completed successfully.", 64, "Information")
End If
When trying to Add, system show error message " Enter valid currency code [OINV.DocCur][Line:1], '$' "
I am not lucky after trying for a day , wish enlightenment from the experts here, Thank you.
My machine : SAP B1 9 PL 4
Best Regards,
Muh.UlfahHi
In the other thread I suggested that you can add document using interface first because there is a possibility that B1 doesn't accept this currency code not because you set it improperly in your code but because of some other reason, for example this currency is not valid for this particular business partner. Despite the fact that this way you can eliminate other possible problems you can also use DI to save an existing document as XML and check what is the actual currency code that B1 itself placed in the document lines object.
Afterwards you can again try to add document using DI.
btw
check this thread:
How to set local currency in sales order for BP with foreign currency through DI?
Kind regards,
Radek -
How to create cross charge AP invoice through Payables Open Interface Import
Hi,
I am working on developing an AP invoice interface program for creating cross charge invoices in Oracle 11i.
Cross charge invoice means the supplier & site is from operating unit A, but the costing should hit the project number in Operating unit B.
The pa_projects_all.allow_cross_charge_flag for the project number is set to Y. I am using below scripts to enter data into the interface tables:
<code>
INSERT INTO ap_invoice_lines_interface
(invoice_id,
invoice_line_id, line_type_lookup_code,
amount, org_id,
last_update_date, last_updated_by,
creation_date, created_by,
project_id, task_id,
expenditure_type, expenditure_item_date,
expenditure_organization_id
VALUES (v_invoice_id,
ap_invoice_lines_interface_s.NEXTVAL, 'ITEM',
c_line.invoice_amount, v_org_id,
TRUNC (SYSDATE), fnd_global.user_id,
TRUNC (SYSDATE), fnd_global.user_id,
v_project_id, v_task_id,
v_expenditure_type, v_expenditure_item_date,
v_organization_id
INSERT INTO ap_invoices_interface
(invoice_id, invoice_num, invoice_date,
gl_date, vendor_id, vendor_site_id,
invoice_amount, invoice_currency_code,
exchange_rate, exchange_rate_type, exchange_date,
terms_id, terms_date, payment_method_lookup_code,
pay_group_lookup_code, payment_currency_code,
last_update_date, last_updated_by, creation_date,
created_by, SOURCE, org_id
VALUES (v_invoice_id, c_head.invoice_num, c_head.invoice_date,
c_head.gl_date, v_vendor_id, v_vendor_site_id,
c_head.invoice_amount, c_head.invoice_currency,
v_rate, 'Corporate', c_head.invoice_date,
v_terms_id, TRUNC (SYSDATE), v_payment_method,
v_paygroup, c_head.payment_currency,
TRUNC (SYSDATE), fnd_global.user_id, TRUNC (SYSDATE),
fnd_global.user_id, 'CONCUR', v_org_id
<code>
After inserting data into the interface tables, I submitted the Payable Open Interface Import with correct source and the record fails with below errors:
REASON DESCRIPTION
Account Required An account is required
PA Flexbuild Failed Project Flexbuilder failed with error
The above inserts are working fine for same entity invoices.
I am not sure what could be the error.
Any help is greatly appreciated.
Thanks
ImranHave you customized/setup the Project Accounting Workflow builder. You need to do some setup for this workflow builder so that the project accounts can be derived properly.
-
Creating SubField Types through DI-API
Hi,
I am trying to create SubFieldType of type Quantity through DI API, but it is not creating the SubFieldType. I am using the below code
DBUpdate.AddFieldToTable(oCompany, "IS_INSROWS", "RejQty", "Rejected Quantity", SAPbobsCOM.BoFieldTypes.db_Numeric, 11, SAPbobsCOM.BoFldSubTypes.st_Quantity)
Public Function AddFieldToTable(ByVal oCompany As SAPbobsCOM.Company, ByVal TblName As String, ByVal FldName As [String], ByVal FldDesc As String, ByVal fType As SAPbobsCOM.BoFieldTypes, ByVal fSize As Integer, _
ByVal subType As SAPbobsCOM.BoFldSubTypes) As Boolean
Dim oUserField As SAPbobsCOM.UserFieldsMD
Try
Dim RetVal As Integer, ErrCode As Integer
Dim ErrMsg As String
oUserField = DirectCast(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields), SAPbobsCOM.UserFieldsMD)
oUserField.TableName = TblName
oUserField.Name = FldName
oUserField.Description = FldDesc
oUserField.Type = fType
oUserField.SubType = subType
'oUserField.Size = fSize;
oUserField.EditSize = fSize
RetVal = oUserField.Add()
If RetVal <> 0 Then
oCompany.GetLastError(ErrCode, ErrMsg)
If RetVal = "-2035" Then
Return True
End If
Return False
Else
Return True
End If
Catch ex As Exception
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserField)
oUserField = Nothing
GC.Collect()
End Try
End Function
Regards,
Noor hussainHi Minhas,
Thanks a lot for your reply. What about percentage, amount,rate and price in what type does this come ?
Noor hussain -
How to create Downpayment Invoice using DI API in SAP B1 2005 version?
Hi there,
I appreciate anyone that can suggest me how to create a down payment invoice using DI API in SAP B1 2005 version? What is the object that we need to use? I can't find any object to achieve this
Many Thanks,
Harianto Ngthe object is SAPbobsCOM.BoObjectTypes.oDownPayments, but if i remember correctly this object wasnt exposed in DI for 2004 and maybe for 2005 too.
-
Payment against Reserved Invoice
Hi Experts,
We are creating Reserved Invoices through the DI API. The Reserved Invoice is received in just fine. After the Invoice is processed through the DI API, we then process a payment for the Invoice. We are getting an error that states "The Base Document Card does not match the Target Document Card".
Orginally we were processing Sales Orders and then bringing in the payment. Both were received into SAP with no errors. We discovered that we could not link the Payment to the Order, so we changed to using Reserved Invoices. Now we are getting the above mentioned error when processing the payments.
Does anyone have any suggestions has to why we could be getting this error? What would be considered the Target Document?
here is the payment code:
SAPbobsCOM.Payments vPays = default(SAPbobsCOM.Payments);
vPays = (SAPbobsCOM.Payments)vCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments);
SAPbobsCOM.Documents SapInvoice = default(SAPbobsCOM.Documents);
SapInvoice = (SAPbobsCOM.Documents)vCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
int SapOrder = GetSapInvoiceNumber(OrderNumber);
SapInvoice.GetByKey(SapOrder);
vPays.Address = SapInvoice.Address;
vPays.CardCode = SapInvoice.CardCode;
vPays.DocDate = PayDate;
vPays.DocType = SAPbobsCOM.BoRcptTypes.rCustomer;
vPays.DocObjectCode = SAPbobsCOM.BoPaymentsObjectType.bopot_IncomingPayments;
vPays.CashAccount = "23500000";
vPays.JournalRemarks = journal;
vPays.Invoices.DocEntry = SapInvoice.DocEntry;
vPays.Invoices.DocLine = 0;
vPays.Invoices.SumApplied = SapInvoice.DocTotal;
vPays.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_Receipt;
lRetCode = vPays.Add();
Thanks,
Josh
Edited by: Josh Mellette on Apr 28, 2009 5:09 PMDear Josh Mellette,
The invoice type should be invoice 13 but not Receipt
vPays.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_Invoice;
and you need to set cash sum if you pay the invoice by cash
vPay.CashSum = SapInvoice.DocTotal;
and please check if the DocEntry of the invoice is correct by check OINV table.
Best Regards
Jane Jing
SAP Business One Forums team -
How to tell AR Reserve Invoice from regular AR Invoice?
SDK says that the invoice subtype is stored in oinv.docsubtype, but when I query invoices I created from AR Reserve Invoice window, the subtype is the same as for ones created from reg. invoice window.
8.81Hi Cindy,
OINV.isIns value 'Y' tells AR Reserve Invoice from regular AR Invoice.
Thanks,
Gordon -
Updating Document Date for an AR Reserve Invoice
A user wants to create an AR Reserve Invoice then at a later date change the Document Date (OINV.TaxDate).
Even with Open documents, sometimes the Document Date field is greyed out and sometimes it is not, so the user cannot always change it.
What causes the Due Date and Document Date fields to become inactive for an open AR Reserve Invoice?
I think allocating a payment does it, but the user sometimes cannot update AR Reserve Invoices where there are no payments, i.e. the Applied Amount is blank.
Regards,
DouglasDouglas,
What is the background that you need to change those dates? You know, the date is sensitive to financial report. It is better to limit this kind of activities.
Thanks,
Gordon -
Create Goods Receipt PO from AP Reserve Invoice (bug?)
Via the user interface of sap2005 pl7 you can create "Goods Receipt PO" from an "AP Reserve Invoice".
In the "base type" field of goods receipt the value "18" is displayed. This seems not to be a "valid value" and it is as a consequence not possible to read the contents of this field with the UI-API, because <i>base type</i> is a combo box and only valid values can be returned.
Is there a workaround to get a none valid value from a combobox?Hi Jurgen,
It looks like it is a bug and that the same bug exists on the sales side of the DI API. Herewith a post that you can read about it.
/thread/48329 [original link is broken]
Hope it helps,
Adele
Maybe you are looking for
-
Since installing a more current version of HP Photosmart, I'm having trouble printing photos in a custom size. In the last version, I was able to create my own size photo to print... in this new version, I don't see how to do that. Is this updated ve
-
Problems with Fullscreen viewing
I was viewing a trailer for a movie and at first I watched it at the size it opened as. I thought the trailer was good so I wanted fullscreen of it. So I click View>FullScreen. It opens up with the Green "This preview has been approved for all audien
-
MULTI-USER AUTHENTICATION PAGE
I am using a server behavior to login my users Using Dreamweaver CS3. I am using a php document. This behavior works, however I would like to modify it allow users to login to their own account page. Maybe I need to download an extension package. I w
-
Viewing VA03 differently in Production client and testing client.
Do any expert out there, know why the accounting document cannot be view in the following document in VA03 but if i view in FB03 it exist. The behaviour is different between our Production client. Do i need to check any box to view this? i'm using EC
-
I am trying to test the event handler functionality. I created a database using the input0.dat file included in the install. I then created a simple materialized view: CREATE MATERIALIZED VIEW xyz.mv AS SELECT * FROM xyz.customer WHERE xyz.customer.r