Importing Draft AR Invoices
I am importing AR draft invoices, it imports the header fine but not my lines? When I try to re-import to update it gives me the message : Cannot find this opject in B1 application - defined or objectl- defined error odraft
I have checked my line worksheet and all seems to be correct, Item code, etc.
Thanks
Lines:
ParentKey LineNum ItemCode ItemDescription Quantity UnitPrice Currency AccountCode SalesPersonCode ProjectCode TaxCode LineTotal
DocNum LineNum ItemCode Dscription Quantity LineVatS Currency AcctCode SlpCode Project TaxCode LineTotal
1 RENT-ANNASH-STX RENT-ANNAS HOPE-STX 1 170 _SYS00000000054 7 204 E 170
Header: I have tried Hand Written both ways Yes and No
DocEntry DocNum DocType HandWritten DocObjectCode DocDate DocDueDate CardCode CardName Address SalesPersonCode DocTotal
DocEntry DocNum DocType Handwrtten ObjType DocDate DocDueDate CardCode CardName Address SlpCode DocTotal
4480 1 dDocument_Items tYES oInvoices 20110601 20110601 AE002 ALEJANDRO- EMANUEL 7 170
THANKS
Similar Messages
-
Urgent-Importing A/R Invoices thru DTW
I want to import the previous Invoices for a client in SAP from their legacy system. How do I do that. Please help Ots urgent. I have to do it in next two days. I am elaborating the instance.
Requirement- Importing all the open A/R Invoices. The invoices should be visible in SAP screen as open with all the relevant details. The aging report and the incoming payments should also reflect the open invoices as due.Although you can import invoices either through the DTW or visual basic script you should be aware that the first thing you need to consider is are you going to import them as fully paid, etc.
For example I have learned the hard way that if you want to import closed invoices - only import fully paid ones and mark them paid as you import them. You will also have to perform journal entries to reverse the transactions that are going to occur when you import them.
Do the open invoices separately and only import fully open invoices - I suggest that you not try to import an invoice that is partially paid as this will cause you headaches.
Also watch the order that you do these things as you need to maintain the integrety of the general ledger. -
Transform an object draft (purchase invoice) to one final with SDK.
Some body help me.
I need transform an object draft (purchase invoice) to one final with SDK.
I want make a massive approving puchase invoice in draf mode.
How can i do that???
CGMHi,
Different DI API Versions handles different XML versions.
see ocompany documentation or you can use the following to reach version 2.
oCompany.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode
oCompany.XMLAsString = False
You can define in the xml file the version. Even if you have an older version it can work also.
I have put here a stocktransfer, but i have found a Purchase Invoice
Here is version 1/2 from 2004ABC versions up to 2007AB ... I had a full function for you.input is the draft absentry.
Private Function saveDraftAsPurchaseInvoice(ByVal AbsEntry As String) As Boolean
'oCompany.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode
'oCompany.XMLAsString = False
Dim oPI As SAPbobsCOM.Documents = oCompany.GetBusinessObject(BoObjectTypes.oPurchaseInvoices)
If oPI.GetByKey(1) Then
oPI.SaveXML(My.Application.Info.DirectoryPath & "\sample_Purchase_invoice.xml")
End If
Dim oDraft As SAPbobsCOM.Documents = oCompany.GetBusinessObject(BoObjectTypes.oDrafts)
If oDraft.GetByKey(AbsEntry) = False Then
Return False
End If
Dim FileName As String = My.Application.Info.DirectoryPath & "\18_" & CStr(DateDiff(DateInterval.Second, CDate("2007/01/01"), Now)) & ".xml"
Dim xmlString As String
Dim oXmlDoc As New Xml.XmlDocument
xmlString = oDraft.GetAsXML()
' event this is not set you have version 1 using table names!
'oCompany.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode -> version 2 of XML DI API, using DOCUMENT instead
' of table name !
xmlString = xmlString.Replace("<Object>112</Object>", "<Object>18</Object>")
xmlString = xmlString.Replace("<ODRF>", "<OPCH>")
xmlString = xmlString.Replace("</ODRF>", "</OPCH>")
xmlString = xmlString.Replace("<DRF1>", "<PCH1>")
xmlString = xmlString.Replace("</DRF1>", "</PCH1>")
xmlString = xmlString.Replace("<DRF3>", "<PCH3>")
xmlString = xmlString.Replace("</DRF3>", "</PCH3>")
xmlString = xmlString.Replace("<DRF6>", "<PCH6>")
xmlString = xmlString.Replace("</DRF6>", "</PCH6>")
oXmlDoc.LoadXml(xmlString)
oXmlDoc.Save(FileName)
Dim oDoc As SAPbobsCOM.Documents = oCompany.GetBusinessObject(BoObjectTypes.oPurchaseInvoices)
Try
oDoc = oCompany.GetBusinessObjectFromXML(FileName, 0)
oDoc.Comments = oDraft.Comments & " DI API ADDED FROM DRAFT"
oDoc.DocNum = 0
oDoc.DocDate = Date.Today
oDoc.DocDueDate = Date.Today
oDoc.TaxDate = Date.Today
lRetCode = oDoc.Add()
'Kill(FileName)
If lRetCode = 0 Then
Dim NewEntry As String = String.Empty
Call oCompany.GetNewObjectCode(NewEntry)
sbo_application.StatusBar.SetText(NewEntry)
Else
sbo_application.StatusBar.SetText(oCompany.GetLastErrorCode.ToString & " - " & oCompany.GetLastErrorDescription)
End If
Catch ex As Exception
sbo_application.StatusBar.SetText(ex.Message)
End Try
End Function
Regards
J.
Edited by: Janos Nagy on Aug 12, 2008 1:13 PM -
Draft Project invoice stuck on AR interface
Please I have a draft project invoice that is stuck on AR interface line with the error:
"When the payment method is of type Automatic, you must either supply a valid bank account or ensure that a primary bank account for the currency code of the transaction has been set up for the Bill To customer"
Invalid value:1017.
We have disabled the Payment method and even unlinked the payment method and Bank Account from the customer, just to test, but the auto invoice did not push it through.
Project draft status says: transferred to Receivable.
Any suggestion will be appreciated
Regards
IfyHi ALL,
This error appears in the AR interface
"When the payment method is of type Automatic, you must either supply a valid bank account or ensure that a primary bank account for the currency code of the transaction has been set up for the Bill To customer"
Invalid value:1017.
Can someone please let me know how to locate the invalid value from the interface field list. I checked Orginal system bill and and Original system ship customer ID / ref, but none of those gave me the invalid value ref in the interface error ..
Thanks -
Double entry for details from draft to invoice
Hi..
im doing a draft to invoice uploading via SDK, my problem , when im doing the uploading of components and changing the profit cost center and warehouse code, the original warehouse and cost center also affair on the invoice, which in return, the invoice created had a double entry the stock movement also recorded this transaction.
thanks
lorenHi Gordon
Thank you for your response, that exactly what i did, change the warehouse and profit cost center from the draft before the uploading into the invoice, I do also the checking if the data (odrf, drf1 table) for double entry and output from the drafts standard form (display) change the warehouse and profit cost center. Result show the ideal result no duplicate data , warehouse and profit cost center where correct, but still when uploading the data from the draft into the invoice via sdk , the default warehouse and profit cost center where also created and included on the new invoice. So i would like to know what will be the correct procedure or way to transfer this data corrently using SDk
thanks
loren -
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 -
Dear Experts,
Which template table do I need to import A/P invoice via DTA?
Could you please guide me which field do I have to use in each table with some example?
I would be very much appreicated your helps.
Thank you very much.Hi,
Assuming you are on new version, you need at least OPCH and PCH1 template under Purchase folder. You can open the template to find the required fields. It is DTW, not DTA.
Thanks,
Gordon -
Freigt Charge are imported in separate invoice
Hi ,
I make Sales Order with Freight Charge and while i make import for the sales order i found the Freight Charge imported in separate invoice , How to make it import in the same invoice?
Thanks
Mohammed MoustafaHi
Please review the following note in metalink:
Invoice And Freight Lines Appear On Separate Invoices
The manner in which lines are consolidated to create an invoice is controlled by Grouping Rules. Check the attributes associated to your context, then check the grouping rules associated to these attributes. Typically the segmentation of the lines into multiple invoices is due to differences in the values in the line attribute fields and your grouping rule definition.
Please review Note 1084554.1, Troubleshooting Grouping Rules In AutoInvoice for more specific information.
Thanks and Regards
Manish Jain. -
ZX_TAX_RATE_NOT_EXIST when importing lease payment invoices from Assets
All,
I am on 12.1.2
I have created a lease agreement in oracle assets and run the export lease rentals to payables program.
Then, I ran the "Payables Open Interface Import" program.
The invoices fail import with error "ZX_TAX_RATE_NOT_EXIST - This Tax Rate does not exist".
I have not given any tax code for the lease or the invoice. Also have checked the supplier master and there is no tax setup.
Please advise.
Thanks,
Vishal.Hello JD
I had read that note earlier. It says "The tax rate specified on the imported tax line does not exist. The provided tax rate should be existing to get processed".
As i mentioned, my invoice does not have any tax line. So I am not sure why this error msg is coming.
Thanks Vishal. -
DTW Error while importing A/R Invoice
Hi,
Iam using SAP B1 2005B Patch 38
When importing Item type A/R Invoices using DTW it shown
the following errpr message
customer record not found[INV1.ActDelDate][Line:1]Application-defined or object-defined error..."
In my Item master data i create the Item code as
HARCUT is a only sales item not a inventory item and
purchase item
Documents :
1.RecoreKey - 1
2.CardCode - C000001
3.HandWritten - tYES
4.DocNum - 10653
5.DocDate - 20081001
6.DocDueDate - 20081001
7.TaxDate - 20081001
8.SalesPersonCode - 2
9.Comments - Importing Through DTW
Documents Lines :
1.RecordKey - 1
2.temCode - HARCUT
3.CostingCode - NGM
4.LineTotal - 1149
5.Quantity - 1
6.TaxCode - Srv12.36
7.WarehouseCode - CH-NGM
Regards
P.Jambulingamhi jambulingam,
If you use manual number then defined
HandWritten - tYES in DTW otherwise make it as tNo.
If you use manual number then DocNum - 10653 is Ok,
but if you are using any numbering series remove it.
Jeyakanthan -
Ap invoices import in perticular invoice batch
Hi all,
I want to upload ap invoices data from my staging tables to ap_invoice_interface ad ap_invoice_lines_interfaces, before i am going to do that, i want to know some questions regarding interface issues.
As my workaround says that
1- create stage tables a) invoice_master b) invoice_detail
2- import data from legecy system to stage tables
3- load data from stage to interfce tables ap_invoices_interface and ap_invoice_lines_interface. Using validation techinecs to make sure that the data storing in interface table is correct or not.
4- run import request from application to pull data into application tables.
Here one question is distrubing me that how i associate these all invoices with one perticular batch. Well our normal practice regarding batch creation is like, we create AP Invoice Batches as our weekly-payables it is named like (2008-10-1, 2008-10-2, 2008-10-3 one, two, three show week number), so question is how could i associate these all import invoices with a perticular batch.
I request all of you please sugguest me solution or idea which is best suites to my requirments and also check my workround is in a right flow ?
Regards
anwerthank you very much
ssuhasar for reply .....................so it means that when we run request for import invoices open interface at that time we give batch name in parameters. can we create new batches or we just import open invoices in existing batch .
Please confirm me
regards
thanks in advance -
GR for import Vendor before Invoice verification of Customs clearing agent
Dear MM Gurus,
I have a client requirement as follows,
Its a Import purchase with Batch management
The Import PO is created without taxes because the client does not know the exact taxes applicable.
The client gets invoice from the vendor only after 7 days after he receives the material.
But they want to do GR for the material as they need the material urgently for their production before doing Invoice verification for the customs clearing agent.
In such a scenario how to go about with invoicing for the clearing agent and subsequent posting of taxes .
Is there any standard procedure available or any round about solutions or user exits. Your suggestions and solutions will be highly appreciated.
Thanks in advance.
Arul.You can do GR and then do the MIRO for planned delivery costs i,e all the taxes to be paid to customs and then do MIRO for the cost of materials
-
Import PO
done custom invoice through MIRO and changed the excise value in MIRO.
Now how this changed value will flow to MIGO?After posting customs MIRO,system should not allow you to change excise values,because it creates FI documents.
If MIRO is holded / parked you can change values.
If payment is not done to customs vendor,you can invoice using MR8M.
Create fresh customs MIRO with corrected duty values. -
DTW template for importing AR DP Invoice
Dear all,
Is there any DTW template used to import AR Down payment invoices into SAP B1?
Thanks
Mohamed AsifHi Jambulingam.P,
I checked through the link and analysed both the options:
*Option 1:*
on the SAP note, 1155803 - Accessing the Down Payment template; i dont have this object "oDownpayment" in DTW. We are using DTW version 2005.0.21, API version 6.80.321 and SAP B1 version is 2005A PL50. Is this a version problem?
Option 2:
I used the 'oInvoices' template and created the extra column "Dowpaymenttype" and 'dptInvoice' as its contents but thes exports transactions in the Invoice document and not the AR Downpayment Invoice. Below is the extract from the template:
Documents excel sheet:
RecordKey: 1
CardCode: C00221
DocDate: 20090102
DocDueDate: 20090102
DocTotal : 50
DocType: dDocument_Items
DownPaymentType: dptInvoice
Document Lines excel sheet:
RecordKey: 1
ItemCode: F00001
LineTotal: 50
Price: 10
PriceAfterVAT: 10
Quantity: 1
TaxCode: O1
WarehouseCode: MSAC_FGM
Please advice on both the options as to where the problem could be,
Kind regards,
Asif -
Import purchase Material Invoice Problem
Dear All,
In Import Purchasing after GR Itried to post the Material Vendor Invoice with referance to Delivery Note no,But in MIRO item level system not capturing the GR Qty and Value.That two field is Empty.
Then I tried to post with referance to PO ,But in the Pop-Up Box Material Import Vendor Code not appearing.can Anybody tell me the reason?
Thanks,
Manis.UKHi Mani,
Please be confirmed in above screen of MIRO there is transaction here did you select invoice and above layout there is one more selection did you select here Goods/Service items.
Regards
Vivek
-- Reward if helpful
Maybe you are looking for
-
I have a set of jpeg files that I created with another photo editing program. Each photo is 500 max pixels on a side and the file size is about 100 kB. I imported these photos into iPhoto. I notice that if I double-click on one of the photos in iPhot
-
I have mp4 videos on my computer that I want to add to itunes...the add a file or folder is not working. Why?
-
Even when iTunes is not running & my iPhone is not connected to the comfuser, there are 2 Apple related services running: Can I place these into Manual so they only start when iTunes is opened & stop when iTunes is closed?
-
Why wont attach to email work?
why wont attach to email work?
-
How to update Business Object, rather than doing a final commit?
Hello experts, I have the following <u>java web dynpro</u> code: What I am trying to do is to access a business object through my code. The business object has got a root node and a child node called 'version'. And the association is 1:n. I want to c