A/P invoice object id...............
Hello Experts,
What is the object id A/P invoice?
Hi Prashant,
What you want to do with object code? From where you are accessing? Can you elaborate something what is your requirement exactly??
Thanks
Sachin
Similar Messages
-
A/P DownPayment Invoice Objects Id
Hi
Please tell me the A/P Downpayment Invoice Objects Id.
Regards,
M.Dhivya.Hi,
CHeck this thread..
ODPO and ODPI Object Id
Vasu Natari. -
Dear all,
I have not found the down payment invoice object in the SDK 2005 SP1.
Is it still not in the SDK 2005 SP1?
Will it be in the 2007?
Kind RegardsHi Bart,
The DownPaymets object is available in 2007 version.
You can already download the preview version and have a look at the Preview Program at:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/105cbf3c-2d82-2910-6e9d-b3c774cd5985
Regards
Trinidad. -
Print Invoice "Object Blocked"
when the user trying to print the invoice it is givng an error that the object is blocked. the error contains invoice number and the application 3 and output type. i am not able to think where to start investigation, thanks for your support
Hi
Will you please check two things :-
1) in the table VBRK for the said Invoice no. check is there any Billing Block. If it is blocked then you need to remove it.
2) What is the requirement assigned to the Output Procedure ( IMG --> Sales & Distribution --> Basic Function --> Output Control --> Output Determination >Output determination Using the Condition technique>mainatin Output Determination for Billing Doc-->Maintain Output Determination Procedure) may be your requirement assigned is not getting fulfilled.
Regards
Amitesh -
AP Invoice Object : Passing Customer Code instead of Vendor Code Using SDK
Hi,
Can i use customer code instead of the vendor code in AP Invoice SDK Object?
i.e.I want only one code for Customer and Vendor in BP Master system.
I know this is not possible in system then also if anybody knows the alternative solution Kindly suggest the same.
Warm Regards,
MahendraDear Mahendrakumar,
You can not implement the required function by SDK also.
Best Regards
Jane Jing
SAP Business One Forums team -
How to create an Invoice in delivery screen?
Hi everybody.
I am trying to create an invoice in the delivery screen, but i am getting an error "-5002 Invalid total[OINV.DocTotal]". Can anyone tell me how to solve this ?
here is my code
Dim sNewObjCode As String
Dim i As Integer
' Get last added document number (the order that was added)
oCompany.GetNewObjectCode(sNewObjCode)
' this loop adds the different items to the invoice object
i = 0
Do
oInvoice.Lines.BaseEntry = sNewObjCode
oInvoice.Lines.BaseLine = i
oInvoice.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oOrders
oInvoice.Lines.TaxCode = TableLines.Rows(i).Item(4)
i += 1
If i <> TableLines.Rows.Count Then
oInvoice.Lines.Add()
End If
Loop Until i = TableLines.Rows.Count
' Try to add the invoice object to the database
lRetCode = oInvoice.Add()
If lRetCode <> 0 Then ' If the addition failed
oCompany.GetLastError(lErrCode, sErrMsg)
MsgBox(lErrCode & " " & sErrMsg) ' Display error message
Else
cmdInvoice.Enabled = True
MsgBox("inv Added to DataBase", MsgBoxStyle.Information, "Order Added")
End If
Thanks
MinaMina,
You have to fill the mandatory fields of the invoice
oInvoice.CardCode = oDelivery.CardCode
oInvoice.DocTotal = oDelivery.DocTotal
oInvoice.HandWritten = tNO
oInvoice.DocDate = oDelivery.DocDate
Regards,
Edwin van Kwikkelberghe -
Local and Export sale same excise invoice number range
Dear gurus,
How to have Number range for Following same.
Object- J_1IEXCLOC- Factory sale invoice
Object - J_1IEXCEXP- Export Sales Invoice
ie. 00000001-Factory sale invoice
00000002-Export sale invoice
ie. Sales area is different for both
Reg,
AmolTry with my suggestion given here
http://scn.sap.com/thread/1024034
G. Lakshmipathi -
How to create A/R Down payment Invoice
Hi;
I am trying to create A/R Down Payment Invoice through DI API by using the below mentioned object but the system is giving me the following error "Invalid Value. {DPI1.ExLineNo} {Line No. 1}".
SAPbobsCOM.Documents oDoc SAPbobsCOM.Documents)x.CompanyObject.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDownPayments);
oDoc.Lines.SetCurrentLine(0);
oDoc.CardCode = "C0001";
oDoc.Lines.ItemCode = "Test";
oDoc.Lines.Quantity = 2;
oDoc.Lines.UnitPrice = 10;
oDoc.Lines.ActualDeliveryDate = DateTime.Now.Date;
oDoc.Lines.BaseType = 17;
oDoc.Lines.BaseLine = 1;
oDoc.Lines.BaseEntry = 1;
oDoc.Lines.ExLineNo
int oRetVal = oDoc.Add();
if (oRetVal != 0)
MessageBox.Show(x.CompanyObject.GetLastErrorDescription());
Please suggest me how I can create AR Down Payment Invoice along with Incoming Payment and then wanted to link AR down payment invoice with AR invoice.
Regards;
DeepakHi
Try this code
Try
'Create DownPayment Invoice Object
oDPM = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDownPayments)
'Set Down Payment Header Values
oDPM.CardCode = "Some Card code"
oDPM.DocDueDate = "Suitable Date"
oDPM.DownPaymentPercentage =" Numeric value (Double)"
oDPM.DownPaymentType = SAPbobsCOM.DownPaymentTypeEnum.dptInvoice
'Set Down Payment Line Values
oDPM.Lines.ItemCode =" Some Item Code"
oDPM.Lines.Quantity =" Quantity"
oDPM.Lines.Price =" Item Price"
lRetCode = oDPM.Add ' Try to add the invoice to the database
If lRetCode <> 0 Then
oCompany.GetLastError(lErrCode, sErrMsg)
MsgBox(lErrCode & " " & sErrMsg) ' Display error message
Else
MsgBox("Down Paymeny Invoice Added to DataBase", MsgBoxStyle.Information, "Invoice Added")
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
Regards
Arun -
Attachment List in Generic Object Services disabled
I want to attach documents to a work centre (transaction CR02, business object BUS0011). This has been configured so that the document will reside in the content management server and will be accessed using Archivelink. I can successfully store the doc using trasnaction OAWD, and can then retrieve the doc using transaction OAOR. The links are correctly created in table TOA03.
However, when I try and view the docs from the Generic object services button for transaction CR02 the "Attachment List" link is greyed out.
I've just set this up for invoices (object BKPF) so can't understand why this hasn't worked for work centres.
I've implemented the interface IFARCH21 for BUS0011, and this hasn't resolved the issue.
Any ideas?
Thanks
RichardRichard,
Your using the wrong object, I don't have access to an SAP system right now, so I can't tell you what the correct object is, but when it's configured correctly in OAC3 it will not be grey out. Best thing to do it see what the object the program is publishing. This is what GOS is looking for. IFARCH21 is not the answer, unless your using workflow -
Hi,
I am trying to write code to update an existing AP Invoice and cannot get it working. Basically the code I am using is:
Dim itemCode As String
REM set the item code
itemCode = "P-0004-SAP001-2" 'Not sure where to get this
Dim Inv As SAPbobsCOM.Documents
Dim InvLine As SAPbobsCOM.Document_Lines
'Get Invoice Object
Inv = vCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseInvoices)
REM get the relevant invoice
System.Console.WriteLine("Getting AP Invoice")
Inv.GetByKey(168)
'Add a line to the Invoice
InvLine = Inv.Lines
System.Console.WriteLine("Count(1): " & CStr(InvLine.Count))
InvLine.Add()
System.Console.WriteLine("Count(2): " & CStr(InvLine.Count))
System.Console.WriteLine("Setting current line")
InvLine.SetCurrentLine(InvLine.Count - 1)
InvLine.ItemCode = itemCode
InvLine.Quantity = 3
InvLine.PriceAfterVAT = 666.0
InvLine.TaxCode = "S"
InvLine.VatGroup = "S"
InvLine.Currency = "GBP"
InvLine.ItemDescription = "This is an add item to existing test"
'Add the Reserced Invoice
retVal = Inv.Update()
InvLine = Inv.Lines
System.Console.WriteLine("Count(3): " & CStr(InvLine.Count))
'Check the result
If retVal <> 0 Then
vCmp.GetLastError(ErrCode, ErrMsg)
System.Console.WriteLine(ErrCode & " " & ErrMsg)
End If
(Note: The System.Console.WriteLine... statements are just for debugging purposes)
The error I'm getting from this is:
ErrCode -5002
ErrMsg "Cannot add or update this document; rows are missing [OPCH.DocNum][line: 0]"
Can someone explain what I am doing wrong or point me in the right direction.
Many thanks
AdrianHI all,
see [Update A/P Invoice;
for credit memo
this is sales process, replace document types with A/P
Regards
J. -
Link IDoc to FI document using Object Services
We are using a custom IDoc to post financial documents to the R/3 system. There is a requirement to determine the IDoc number that created the accounting document as happens automatically with Incoming Invoices (object type BUS2081).
I'd like to form the link between the IDoc and the Financial document using Generic Object Services so that the Relationships functionality in transaction FB03 can be used. Does anyone know how I can form the link between the IDoc and the Accounting document when posting the document? We use BAPI_ACC_DOCUMENT_POST to post the Accounting document.
Thanks in advance for any help.
Regards,
JBcall function 'BDS_BUSINESSDOCUMENT_CREA_URL'
exporting
logical_system = logical_system
classname = classname_select
classtype = classtype_select
client = sy-mandt
object_key = objkey_select
tables
uris = i_uris
exceptions
error_kpro = 1
internal_error = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
for logical_system use FM OWN_LOGICAL_SYSTEM_GET to get your logical system name.
class name= BKPF
classtype = BO
object_key = <companycode><doc number><year> e.g 011000001234562007
in uris talbe pass the urls to be created.
Raja -
Need help with adding arrays to invoice.java please willing to pay?
Using your Invoice class created in lab02, write a client program that allows the user to input three Invoice objects into an array of Invoice objects. After you have inputted all of the invoices, print a heading and then output all of the array elements (Invoice objects) by calling the method from your Invoice class that displays all of the data members on a single line using uniform field widths to insure that all Invoice objects will line up in column format (created in Lab04). At the end of the loop, display the calculated total retail value of all products entered in the proper currency format.
Example of possible program execution:
Part Number : WIDGET
Part Description : A fictitious product
Quantity : 100
Price : 19.95
(etc.)
Example of possible output
Part Number Part Description Quantity Price Amount
WIDGET A fictitious product 100 19.95 199.95
Hammer 9 pounds 10 5.00 50.00
(etc.)
Total Retail Value: 249.95
This is what i have so far Invoice Test
//Lab 2 InvoiceTest.java
//Application to test class Invoice.
//By Morris Folkes
public class InvoiceTest
public static void main( String args[] )
Invoice invoice1 = new Invoice( "1234", "Hammer", 2, 14.95 );
// display invoice1
System.out.println( "Original invoice information" );
System.out.printf( "Part number: %s\n", invoice1.getPartNumber() );
System.out.printf( "Description: %s\n",
invoice1.getPartDescription() );
System.out.printf( "Quantity: %d\n", invoice1.getQuantity() );
System.out.printf( "Price: %.2f\n", invoice1.getPricePerItem() );
System.out.printf( "Invoice amount: %.2f\n",
invoice1.getInvoiceAmount() );
// change invoice1's data
invoice1.setPartNumber( "001234" );
invoice1.setPartDescription( "Blue Hammer" );
invoice1.setQuantity( 3 );
invoice1.setPricePerItem( 19.49 );
// display invoice1 with new data
System.out.println( "\nUpdated invoice information" );
System.out.printf( "Part number: %s\n", invoice1.getPartNumber() );
System.out.printf( "Description: %s\n",
invoice1.getPartDescription() );
System.out.printf( "Quantity: %d\n", invoice1.getQuantity() );
System.out.printf( "Price: %.2f\n", invoice1.getPricePerItem() );
System.out.printf( "Invoice amount: %.2f\n",
invoice1.getInvoiceAmount() );
Invoice invoice2 = new Invoice( "5678", "PaintBrush", -5, -9.99 );
// display invoice2
System.out.println( "\nOriginal invoice information" );
System.out.printf( "Part number: %s\n", invoice2.getPartNumber() );
System.out.printf( "Description: %s\n",
invoice2.getPartDescription() );
System.out.printf( "Quantity: %d\n", invoice2.getQuantity() );
System.out.printf( "Price: %.2f\n", invoice2.getPricePerItem() );
System.out.printf( "Invoice amount: %.2f\n",
invoice2.getInvoiceAmount() );
// change invoice2's data
invoice2.setQuantity( 3 );
invoice2.setPricePerItem( 9.49 );
// display invoice2 with new data
System.out.println( "\nUpdated invoice information" );
System.out.printf( "Part number: %s\n", invoice2.getPartNumber() );
System.out.printf( "Description: %s\n",
invoice2.getPartDescription() );
System.out.printf( "Quantity: %d\n", invoice2.getQuantity() );
System.out.printf( "Price: %.2f\n", invoice2.getPricePerItem() );
System.out.printf( "Invoice amount: %.2f\n",
invoice2.getInvoiceAmount() );
} // end main
} // end class InvoiceTesti suck in java There are 2 possible reasons for this:
1. you haven't studied
2. you aren't cut out for programming
and there r hardly any tutors at my school. plus i work 2 jobs day n night. Please, I'm only want help thats allYou have the help of the ENTIRE WORLD COMMUNITY right here, right now. But you're not willing to make any effort whatsoever. You think people will help or even respect you? You may fail your class and you may fail in life!
Cheaters don't win and winners don't cheat! -
Create A/R Invoice + Payment
Hi,
My customer is using a our POS (point of sale) system to made order and invoice (payment is done immediate). I want to import these transaction information to SAP B1. I will also use B1 to maintain my stock inventory and Journal entry. I think what I need is similar to the "A/R Invoice + Payment". Instead of creating these invoice with the B1 front-end, I would like to develop a console program in VB .NET (2008) with the B1 SDK.
I have reference the SDK help on invoice and try the following code.
'Create the Documents object
Dim vInvoice As SAPbobsCOM.Documents
vInvoice = oCompany.GetBusinessObject(BoObjectTypes.oInvoices)
'Set values to the fields
vInvoice.Series = 0
vInvoice.CardCode = "C99998"
vInvoice.HandWritten = BoYesNoEnum.tNO
vInvoice.PaymentGroupCode = "-1"
vInvoice.DocDate = Today
vInvoice.DocTotal = 5733
'Invoice Lines - Set values to the first line
vInvoice.Lines.ItemCode = "A00001"
vInvoice.Lines.ItemDescription = "IBM Infoprint 1312 喷墨打印机"
vInvoice.Lines.PriceAfterVAT = 4095
vInvoice.Lines.Quantity = 5
vInvoice.Lines.Currency = "RMB"
vInvoice.Lines.DiscountPercent = 0
'Invoice Lines - Set values to the second line
vInvoice.Lines.Add()
vInvoice.Lines.ItemCode = " A00002"
vInvoice.Lines.ItemDescription = "IBM Infoprint 1222 喷墨打印机"
vInvoice.Lines.PriceAfterVAT = 2047.5
vInvoice.Lines.Quantity = 5
vInvoice.Lines.Currency = "RMB"
vInvoice.Lines.DiscountPercent = 0
'Add the Invoice
lRetCode = vInvoice.Add
However, the vInvoice.Add always return below errors.
-2028 No matching records found (ODBC -2028)
Can you give me some advise?
Besides, I think I only need to create the invoice and payment objects so as to pretend as A/R Invoices + payment? I don't need to create an order object, isn't it?
I think it may be easier if I can load the invoice object from an XML file. Can I use the GetBusinessObjectFromXML method on invoice and payment object? Can you share with me some code samples?
Thank you very much!
YvonneI'm not sure about this but give it a Try to remove the line which set the series. ( remove/comment that line )
I have same error message regarding with UDO series ( which is working fine in 2005 )
ref note : 1328973 -
I have a requirement to issue consolidated invoices at regular intervals. How can this be done without invoicing the client twice. Has anybody ever come across a similar requirement and how can it be tackled.
ThanksHi Funke,
Your problem is this - you allready created invoices for the client. That affects your accounting. You can not invoice them again - this will push the client balance into a "wrong" amount. Therefore you can not use the invoices object. The only way to draw a consolidated invoice is to design a report (date driven I would guess) and issue this as the "consolidated invoice". -
Invoice create from DeliveryNote
Good Day
Experts:
I have SalesOrders that were "Copied To" a DeliveryOrder using the Copy To button on the lower right portion of
the SalesOrder screen. I then use the DeliveryNote object via the DocEntry value to get information to build an
Invoice. My code works fine. However, I am a bit concerned that I am sending "enough" information for all the "behind the scenes" things that go on with the Invoice. This after I found the amount of fields available on oDeliveryNote. How can I know if I am sending all the information that is needed? Here is my code:
oDeliveryNote.GetByKey(sDocEntry)
'Set DeliveryOrder header info to Invoice object
oInvoice.CardCode = oDeliveryNote.CardCode
oInvoice.CardName = oDeliveryNote.CardName
oInvoice.Address = oDeliveryNote.Address
oInvoice.DocDate = oDeliveryNote.DocDate
oInvoice.DocDueDate = oDeliveryNote.DocDate
For i = 0 To oDeliveryNote.Lines.Count - 1
oDeliveryNote.Lines.SetCurrentLine(i)
If i > 0 Then
oInvoice.Lines.Add()
End If
'Set DeliveryOrder line info to Invoice object
oInvoice.Lines.BaseEntry = oDeliveryNote.DocEntry
oInvoice.Lines.BaseLine = oDeliveryNote.Lines.LineNum
oInvoice.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oDeliveryNotes
oInvoice.Lines.ItemCode = oDeliveryNote.Lines.ItemCode
oInvoice.Lines.Quantity = oDeliveryNote.Lines.Quantity
oInvoice.Lines.Price = oDeliveryNote.Lines.Price
Next
retVal = oInvoice.Add()
Next
Thanks for helping,
EdHi Ed,
actually you set the important things in your code.
you might also set the Project, Discount and Freight in the Invoice.
the important "scene" that happens is that the invoice create journal entries.
lg David
Maybe you are looking for
-
How do I turn off the downloads window?
How do I turn off the downloads window? I recently upgraded FF, hated the new one, so downgraded back. When I upgraded I got the new downloads ribbon at the bottom of the screen and no longer had the downloads window. However, for whatever reason I d
-
Disk problem persists after hard drive replaced
I've recently inherited a Macbook Pro which proceeded to die almost immediately. It showed all the signs of hard disk failure - erratic crashing, sometimes failing to boot, hanging/going slow. Eventually it completely refused to boot, sometimes showi
-
Configuration for storing CRM attachments to content server
Hi Experts, We are in the process of large scale implementation. As part of it we are trying out solution to store attachments of business a transaction (ex- crmd_order - opportunities) to content server. As part of Initial configuration and se
-
No chapter selection using Remote App
I am unable to see chapters in movies using the Remote App but can select them directly on ATV. Is this a missing feature.
-
hi am triggering the standard apprisal workflow WS12300122 its triggering mail to all .In the workflow log i have checked in the task it is coming as all users can process the task. but i want the mail should trigger to only one person. how to r